Stackdriver Trace V2 Client - Class BatchWriteSpansRequest (1.6.5)

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

Namespace

Google \ Cloud \ Trace \ V2

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, otherwise the results are undefined.

getName

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

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpans

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSpans

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

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

static::build

Parameters
NameDescription
name string

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID]. Please see Google\Cloud\Trace\V2\TraceServiceClient::projectName() for help formatting this field.

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

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

Returns
TypeDescription
Google\Cloud\Trace\V2\BatchWriteSpansRequest