public static final class BatchWriteSpansRequest.Builder extends GeneratedMessageV3.Builder<BatchWriteSpansRequest.Builder> implements BatchWriteSpansRequestOrBuilder
The request message for the BatchWriteSpans
method.
Protobuf type google.devtools.cloudtrace.v2.BatchWriteSpansRequest
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public BatchWriteSpansRequest.Builder addAllSpans(Iterable<? extends Span> values)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
values | Iterable<? extends com.google.devtools.cloudtrace.v2.Span>
|
Returns
public BatchWriteSpansRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchWriteSpansRequest.Builder addSpans(Span value)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public BatchWriteSpansRequest.Builder addSpans(Span.Builder builderForValue)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public BatchWriteSpansRequest.Builder addSpans(int index, Span value)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public BatchWriteSpansRequest.Builder addSpans(int index, Span.Builder builderForValue)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public Span.Builder addSpansBuilder()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public Span.Builder addSpansBuilder(int index)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public BatchWriteSpansRequest build()
Returns
public BatchWriteSpansRequest buildPartial()
Returns
public BatchWriteSpansRequest.Builder clear()
Returns
Overrides
public BatchWriteSpansRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchWriteSpansRequest.Builder clearName()
Required. The name of the project where the spans belong. The format is
projects/[PROJECT_ID]
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public BatchWriteSpansRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public BatchWriteSpansRequest.Builder clearSpans()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public BatchWriteSpansRequest.Builder clone()
Returns
Overrides
public BatchWriteSpansRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Required. The name of the project where the spans belong. The format is
projects/[PROJECT_ID]
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Required. The name of the project where the spans belong. The format is
projects/[PROJECT_ID]
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public Span getSpans(int index)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public Span.Builder getSpansBuilder(int index)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public List<Span.Builder> getSpansBuilderList()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getSpansCount()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public List<Span> getSpansList()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public SpanOrBuilder getSpansOrBuilder(int index)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public List<? extends SpanOrBuilder> getSpansOrBuilderList()
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.devtools.cloudtrace.v2.SpanOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchWriteSpansRequest.Builder mergeFrom(BatchWriteSpansRequest other)
Parameter
Returns
public BatchWriteSpansRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchWriteSpansRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final BatchWriteSpansRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public BatchWriteSpansRequest.Builder removeSpans(int index)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public BatchWriteSpansRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchWriteSpansRequest.Builder setName(String value)
Required. The name of the project where the spans belong. The format is
projects/[PROJECT_ID]
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public BatchWriteSpansRequest.Builder setNameBytes(ByteString value)
Required. The name of the project where the spans belong. The format is
projects/[PROJECT_ID]
.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public BatchWriteSpansRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public BatchWriteSpansRequest.Builder setSpans(int index, Span value)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public BatchWriteSpansRequest.Builder setSpans(int index, Span.Builder builderForValue)
Required. A list of new spans. The span names must not match existing
spans, or the results are undefined.
repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public final BatchWriteSpansRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides