Stackdriver Trace V2 Client - Class BatchWriteSpansRequest (1.4.11)

Reference documentation and code samples for the Stackdriver Trace V2 Client class BatchWriteSpansRequest.

The request message for the BatchWriteSpans method.

Generated from protobuf message google.devtools.cloudtrace.v2.BatchWriteSpansRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

↳ spans array<Google\Cloud\Trace\V2\Span>

Required. A list of new spans. The span names must not match existing spans, or the results are undefined.

getName

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setName

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpans

Required. A list of new spans. The span names must not match existing spans, or the results are undefined.

Generated from protobuf field repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSpans

Required. A list of new spans. The span names must not match existing spans, or the results are undefined.

Generated from protobuf field repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var array<Google\Cloud\Trace\V2\Span>
Returns
TypeDescription
$this