Reference documentation and code samples for the Cloud PubSub V1 Client class PublishOperation.
Telemetry about a Publish operation which may or may not be common across
individual RPCs.
Generated from protobuf message google.pubsub.v1.PubsubClientTelemetry.PublishOperation
Namespace
Google \ Cloud \ PubSub \ V1 \ PubsubClientTelemetryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ hedged_attempt_count |
int
Optional. If the publisher client is using publish hedging, provides the attempt count for the hedge (starting at 1). A value of 0 indicates that the request was not hedged. |
↳ publish_start_time |
Google\Protobuf\Timestamp
Optional. Time at which the |
getHedgedAttemptCount
Optional. If the publisher client is using publish hedging, provides the attempt count for the hedge (starting at 1). A value of 0 indicates that the request was not hedged.
| Returns | |
|---|---|
| Type | Description |
int |
|
setHedgedAttemptCount
Optional. If the publisher client is using publish hedging, provides the attempt count for the hedge (starting at 1). A value of 0 indicates that the request was not hedged.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPublishStartTime
Optional. Time at which the publish() call was initiated in the client
library, meaning across all RPC retry attempts, see grpc
retries. Provides a sense of the
end-to-end publish duration from the client perspective, across retries.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasPublishStartTime
clearPublishStartTime
setPublishStartTime
Optional. Time at which the publish() call was initiated in the client
library, meaning across all RPC retry attempts, see grpc
retries. Provides a sense of the
end-to-end publish duration from the client perspective, across retries.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|