public static final class Tracepb.TraceContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder> implements Tracepb.TraceContextOrBuilder
The context of the request to be traced.Protobuf type
tracepb.TraceContext
Modifier and Type | Method and Description |
---|---|
Tracepb.TraceContext.Builder |
addAllRemoteParentSpans(Iterable<? extends Tracepb.RemoteParentSpan> values)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
addRemoteParentSpans(int index,
Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
addRemoteParentSpans(int index,
Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
addRemoteParentSpans(Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
addRemoteParentSpans(Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.RemoteParentSpan.Builder |
addRemoteParentSpansBuilder()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.RemoteParentSpan.Builder |
addRemoteParentSpansBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tracepb.TraceContext |
build() |
Tracepb.TraceContext |
buildPartial() |
Tracepb.TraceContext.Builder |
clear() |
Tracepb.TraceContext.Builder |
clearDurationThresholdMs()
Report the trace records only if the duration of handling the request exceeds the threshold.
|
Tracepb.TraceContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Tracepb.TraceContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Tracepb.TraceContext.Builder |
clearRemoteParentSpans()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
clone() |
Tracepb.TraceContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getDurationThresholdMs()
Report the trace records only if the duration of handling the request exceeds the threshold.
|
Tracepb.RemoteParentSpan |
getRemoteParentSpans(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.RemoteParentSpan.Builder |
getRemoteParentSpansBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
List<Tracepb.RemoteParentSpan.Builder> |
getRemoteParentSpansBuilderList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
int |
getRemoteParentSpansCount()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
List<Tracepb.RemoteParentSpan> |
getRemoteParentSpansList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.RemoteParentSpanOrBuilder |
getRemoteParentSpansOrBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
List<? extends Tracepb.RemoteParentSpanOrBuilder> |
getRemoteParentSpansOrBuilderList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Tracepb.TraceContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Tracepb.TraceContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
Tracepb.TraceContext.Builder |
mergeFrom(Tracepb.TraceContext other) |
Tracepb.TraceContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Tracepb.TraceContext.Builder |
removeRemoteParentSpans(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
setDurationThresholdMs(int value)
Report the trace records only if the duration of handling the request exceeds the threshold.
|
Tracepb.TraceContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tracepb.TraceContext.Builder |
setRemoteParentSpans(int index,
Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
setRemoteParentSpans(int index,
Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1; |
Tracepb.TraceContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Tracepb.TraceContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Tracepb.TraceContext build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Tracepb.TraceContext buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Tracepb.TraceContext.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder mergeFrom(Tracepb.TraceContext other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public Tracepb.TraceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Tracepb.TraceContext.Builder>
IOException
public List<Tracepb.RemoteParentSpan> getRemoteParentSpansList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
getRemoteParentSpansList
in interface Tracepb.TraceContextOrBuilder
public int getRemoteParentSpansCount()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
getRemoteParentSpansCount
in interface Tracepb.TraceContextOrBuilder
public Tracepb.RemoteParentSpan getRemoteParentSpans(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
getRemoteParentSpans
in interface Tracepb.TraceContextOrBuilder
public Tracepb.TraceContext.Builder setRemoteParentSpans(int index, Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder setRemoteParentSpans(int index, Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder addRemoteParentSpans(Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder addRemoteParentSpans(int index, Tracepb.RemoteParentSpan value)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder addRemoteParentSpans(Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder addRemoteParentSpans(int index, Tracepb.RemoteParentSpan.Builder builderForValue)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder addAllRemoteParentSpans(Iterable<? extends Tracepb.RemoteParentSpan> values)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder clearRemoteParentSpans()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.TraceContext.Builder removeRemoteParentSpans(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.RemoteParentSpan.Builder getRemoteParentSpansBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.RemoteParentSpanOrBuilder getRemoteParentSpansOrBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
getRemoteParentSpansOrBuilder
in interface Tracepb.TraceContextOrBuilder
public List<? extends Tracepb.RemoteParentSpanOrBuilder> getRemoteParentSpansOrBuilderList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
getRemoteParentSpansOrBuilderList
in interface Tracepb.TraceContextOrBuilder
public Tracepb.RemoteParentSpan.Builder addRemoteParentSpansBuilder()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public Tracepb.RemoteParentSpan.Builder addRemoteParentSpansBuilder(int index)
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public List<Tracepb.RemoteParentSpan.Builder> getRemoteParentSpansBuilderList()
repeated .tracepb.RemoteParentSpan remote_parent_spans = 1;
public int getDurationThresholdMs()
Report the trace records only if the duration of handling the request exceeds the threshold.
uint32 duration_threshold_ms = 2;
getDurationThresholdMs
in interface Tracepb.TraceContextOrBuilder
public Tracepb.TraceContext.Builder setDurationThresholdMs(int value)
Report the trace records only if the duration of handling the request exceeds the threshold.
uint32 duration_threshold_ms = 2;
value
- The durationThresholdMs to set.public Tracepb.TraceContext.Builder clearDurationThresholdMs()
Report the trace records only if the duration of handling the request exceeds the threshold.
uint32 duration_threshold_ms = 2;
public final Tracepb.TraceContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
public final Tracepb.TraceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Tracepb.TraceContext.Builder>
Copyright © 2024 PingCAP. All rights reserved.