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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Span.Link build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Span.Link buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Span.Link.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
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.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Link.Builder>
public Span.Link.Builder mergeFrom(Span.Link other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public Span.Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Link.Builder>
java.io.IOException
public java.lang.String getTraceId()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;
getTraceId
in interface Span.LinkOrBuilder
public ByteString getTraceIdBytes()
The [TRACE_ID] for a trace within a project.
string trace_id = 1;
getTraceIdBytes
in interface Span.LinkOrBuilder
public 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.LinkOrBuilder
public ByteString getSpanIdBytes()
The [SPAN_ID] for a span within a trace.
string span_id = 2;
getSpanIdBytes
in interface Span.LinkOrBuilder
public 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.LinkOrBuilder
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;
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.LinkOrBuilder
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;
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.LinkOrBuilder
public 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.LinkOrBuilder
public 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.LinkOrBuilder
public final Span.Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Span.Link.Builder>
public final Span.Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Span.Link.Builder>