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
Name
Description
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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$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
Type
Description
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
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: