Reference documentation and code samples for the Cloud Bigtable V2 Client class Metadata.
Container for all vRPC Metadata.
Generated from protobuf message google.bigtable.v2.VirtualRpcRequest.Metadata
Namespace
Google \ Cloud \ Bigtable \ V2 \ VirtualRpcRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ attempt_number |
int|string
Track retry attempts for this vRPC at the AFE. |
↳ attempt_start |
Google\Protobuf\Timestamp
Track the client's known start time for the attempt. This is likely not easily compared with the server's time due to clock skew. |
↳ traceparent |
string
Link OpenTelemetry traces (e.g. Tapper). This can be used to link attempts together for the same logical operation (e.g. in logs / traces). Note, this may not be needed for V1, TBD. |
getAttemptNumber
Track retry attempts for this vRPC at the AFE.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setAttemptNumber
Track retry attempts for this vRPC at the AFE.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttemptStart
Track the client's known start time for the attempt. This is likely not easily compared with the server's time due to clock skew.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasAttemptStart
clearAttemptStart
setAttemptStart
Track the client's known start time for the attempt. This is likely not easily compared with the server's time due to clock skew.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTraceparent
Link OpenTelemetry traces (e.g. Tapper). This can be used to link attempts together for the same logical operation (e.g. in logs / traces).
Note, this may not be needed for V1, TBD.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTraceparent
Link OpenTelemetry traces (e.g. Tapper). This can be used to link attempts together for the same logical operation (e.g. in logs / traces).
Note, this may not be needed for V1, TBD.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|