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| Modifier and Type | Method and Description |
|---|---|
Span.Link.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Span.Link |
build() |
Span.Link |
buildPartial() |
Span.Link.Builder |
clear() |
Span.Link.Builder |
clearAttributes()
A set of attributes on the link.
|
Span.Link.Builder |
clearField(Descriptors.FieldDescriptor field) |
Span.Link.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Span.Link.Builder |
clearSpanId()
The [SPAN_ID] for a span within a trace.
|
Span.Link.Builder |
clearTraceId()
The [TRACE_ID] for a trace within a project.
|
Span.Link.Builder |
clearType()
The relationship of the current span relative to the linked span.
|
Span.Link.Builder |
clone() |
Span.Attributes |
getAttributes()
A set of attributes on the link.
|
Span.Attributes.Builder |
getAttributesBuilder()
A set of attributes on the link.
|
Span.AttributesOrBuilder |
getAttributesOrBuilder()
A set of attributes on the link.
|
Span.Link |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getSpanId()
The [SPAN_ID] for a span within a trace.
|
ByteString |
getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
|
java.lang.String |
getTraceId()
The [TRACE_ID] for a trace within a project.
|
ByteString |
getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
|
Span.Link.Type |
getType()
The relationship of the current span relative to the linked span.
|
int |
getTypeValue()
The relationship of the current span relative to the linked span.
|
boolean |
hasAttributes()
A set of attributes on the link.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Span.Link.Builder |
mergeAttributes(Span.Attributes value)
A set of attributes on the link.
|
Span.Link.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Span.Link.Builder |
mergeFrom(Message other) |
Span.Link.Builder |
mergeFrom(Span.Link other) |
Span.Link.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Span.Link.Builder |
setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the link.
|
Span.Link.Builder |
setAttributes(Span.Attributes value)
A set of attributes on the link.
|
Span.Link.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Span.Link.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Span.Link.Builder |
setSpanId(java.lang.String value)
The [SPAN_ID] for a span within a trace.
|
Span.Link.Builder |
setSpanIdBytes(ByteString value)
The [SPAN_ID] for a span within a trace.
|
Span.Link.Builder |
setTraceId(java.lang.String value)
The [TRACE_ID] for a trace within a project.
|
Span.Link.Builder |
setTraceIdBytes(ByteString value)
The [TRACE_ID] for a trace within a project.
|
Span.Link.Builder |
setType(Span.Link.Type value)
The relationship of the current span relative to the linked span.
|
Span.Link.Builder |
setTypeValue(int value)
The relationship of the current span relative to the linked span.
|
Span.Link.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Span.Link.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Span.Link build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Span.Link buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Span.Link.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Span.Link.Builder>public Span.Link.Builder mergeFrom(Span.Link other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Span.Link.Builder>public Span.Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Span.Link.Builder>java.io.IOExceptionpublic java.lang.String getTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;getTraceId in interface Span.LinkOrBuilderpublic ByteString getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;getTraceIdBytes in interface Span.LinkOrBuilderpublic Span.Link.Builder setTraceId(java.lang.String value)
The [TRACE_ID] for a trace within a project.
string trace_id = 1;public Span.Link.Builder clearTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;public Span.Link.Builder setTraceIdBytes(ByteString value)
The [TRACE_ID] for a trace within a project.
string trace_id = 1;public java.lang.String getSpanId()
The [SPAN_ID] for a span within a trace.
string span_id = 2;getSpanId in interface Span.LinkOrBuilderpublic ByteString getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
string span_id = 2;getSpanIdBytes in interface Span.LinkOrBuilderpublic Span.Link.Builder setSpanId(java.lang.String value)
The [SPAN_ID] for a span within a trace.
string span_id = 2;public Span.Link.Builder clearSpanId()
The [SPAN_ID] for a span within a trace.
string span_id = 2;public Span.Link.Builder setSpanIdBytes(ByteString value)
The [SPAN_ID] for a span within a trace.
string span_id = 2;public int getTypeValue()
The relationship of the current span relative to the linked span.
.google.devtools.cloudtrace.v2.Span.Link.Type type = 3;getTypeValue in interface Span.LinkOrBuilderpublic 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;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;getType in interface Span.LinkOrBuilderpublic 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;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;public boolean hasAttributes()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;hasAttributes in interface Span.LinkOrBuilderpublic Span.Attributes getAttributes()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;getAttributes in interface Span.LinkOrBuilderpublic Span.Link.Builder setAttributes(Span.Attributes value)
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;public Span.Link.Builder setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;public Span.Link.Builder mergeAttributes(Span.Attributes value)
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;public Span.Link.Builder clearAttributes()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;public Span.Attributes.Builder getAttributesBuilder()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link. You have have up to 32 attributes per link.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;getAttributesOrBuilder in interface Span.LinkOrBuilderpublic final Span.Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Span.Link.Builder>public final Span.Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Span.Link.Builder>