public static final class Span.Link.Builder extends GeneratedMessageV3.Builder<Span.Link.Builder> implements Span.LinkOrBuilderA 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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.TypeThe 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 |
intThe 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 |
|