- 2.48.0 (latest)
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.7
- 2.2.0
- 2.1.13
public static final class Span.Link.Builder extends GeneratedMessageV3.Builder<Span.Link.Builder> implements Span.LinkOrBuilder
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
Protobuf type google.devtools.cloudtrace.v2.Span.Link
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Span.Link.BuilderImplements
Span.LinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Span.Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
build()
public Span.Link build()
Returns | |
---|---|
Type | Description |
Span.Link |
buildPartial()
public Span.Link buildPartial()
Returns | |
---|---|
Type | Description |
Span.Link |
clear()
public Span.Link.Builder clear()
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
clearAttributes()
public Span.Link.Builder clearAttributes()
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
clearField(Descriptors.FieldDescriptor field)
public Span.Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Span.Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
clearSpanId()
public Span.Link.Builder clearSpanId()
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
clearTraceId()
public Span.Link.Builder clearTraceId()
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
clearType()
public Span.Link.Builder clearType()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
clone()
public Span.Link.Builder clone()
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
getAttributes()
public Span.Attributes getAttributes()
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns | |
---|---|
Type | Description |
Span.Attributes |
The attributes. |
getAttributesBuilder()
public Span.Attributes.Builder getAttributesBuilder()
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns | |
---|---|
Type | Description |
Span.Attributes.Builder |
getAttributesOrBuilder()
public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns | |
---|---|
Type | Description |
Span.AttributesOrBuilder |
getDefaultInstanceForType()
public Span.Link getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Span.Link |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getSpanId()
public String getSpanId()
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Returns | |
---|---|
Type | Description |
String |
The spanId. |
getSpanIdBytes()
public ByteString getSpanIdBytes()
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for spanId. |
getTraceId()
public String getTraceId()
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Returns | |
---|---|
Type | Description |
String |
The traceId. |
getTraceIdBytes()
public ByteString getTraceIdBytes()
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for traceId. |
getType()
public Span.Link.Type getType()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Returns | |
---|---|
Type | Description |
Span.Link.Type |
The type. |
getTypeValue()
public int getTypeValue()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for type. |
hasAttributes()
public boolean hasAttributes()
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the attributes field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAttributes(Span.Attributes value)
public Span.Link.Builder mergeAttributes(Span.Attributes value)
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Parameter | |
---|---|
Name | Description |
value |
Span.Attributes |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
mergeFrom(Span.Link other)
public Span.Link.Builder mergeFrom(Span.Link other)
Parameter | |
---|---|
Name | Description |
other |
Span.Link |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Span.Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Span.Link.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Span.Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
setAttributes(Span.Attributes value)
public Span.Link.Builder setAttributes(Span.Attributes value)
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Parameter | |
---|---|
Name | Description |
value |
Span.Attributes |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
setAttributes(Span.Attributes.Builder builderForValue)
public Span.Link.Builder setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the link. Up to 32 attributes can be specified per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Span.Attributes.Builder |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Span.Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Span.Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
setSpanId(String value)
public Span.Link.Builder setSpanId(String value)
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Parameter | |
---|---|
Name | Description |
value |
String The spanId to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setSpanIdBytes(ByteString value)
public Span.Link.Builder setSpanIdBytes(ByteString value)
The [SPAN_ID]
for a span within a trace.
string span_id = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for spanId to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setTraceId(String value)
public Span.Link.Builder setTraceId(String value)
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Parameter | |
---|---|
Name | Description |
value |
String The traceId to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setTraceIdBytes(ByteString value)
public Span.Link.Builder setTraceIdBytes(ByteString value)
The [TRACE_ID]
for a trace within a project.
string trace_id = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for traceId to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setType(Span.Link.Type value)
public Span.Link.Builder setType(Span.Link.Type value)
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Parameter | |
---|---|
Name | Description |
value |
Span.Link.Type The type to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setTypeValue(int value)
public Span.Link.Builder setTypeValue(int value)
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for type to set. |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Span.Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Span.Link.Builder |