Package io.opencensus.proto.trace.v1
Class TraceConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.trace.v1.TraceConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TraceConfigOrBuilder,Serializable
public final class TraceConfig extends com.google.protobuf.GeneratedMessageV3 implements TraceConfigOrBuilder
Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.
Protobuf typeopencensus.proto.trace.v1.TraceConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTraceConfig.BuilderGlobal configuration of the trace service.static classTraceConfig.SamplerCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTANT_SAMPLER_FIELD_NUMBERstatic intMAX_NUMBER_OF_ANNOTATIONS_FIELD_NUMBERstatic intMAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBERstatic intMAX_NUMBER_OF_LINKS_FIELD_NUMBERstatic intMAX_NUMBER_OF_MESSAGE_EVENTS_FIELD_NUMBERstatic intPROBABILITY_SAMPLER_FIELD_NUMBERstatic intRATE_LIMITING_SAMPLER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ConstantSamplergetConstantSampler().opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;ConstantSamplerOrBuildergetConstantSamplerOrBuilder().opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;static TraceConfiggetDefaultInstance()TraceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetMaxNumberOfAnnotations()The global default max number of annotation events per span.longgetMaxNumberOfAttributes()The global default max number of attributes per span.longgetMaxNumberOfLinks()The global default max number of link entries per span.longgetMaxNumberOfMessageEvents()The global default max number of message events per span.com.google.protobuf.Parser<TraceConfig>getParserForType()ProbabilitySamplergetProbabilitySampler().opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;ProbabilitySamplerOrBuildergetProbabilitySamplerOrBuilder().opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;RateLimitingSamplergetRateLimitingSampler().opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;RateLimitingSamplerOrBuildergetRateLimitingSamplerOrBuilder().opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;TraceConfig.SamplerCasegetSamplerCase()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasConstantSampler().opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;inthashCode()booleanhasProbabilitySampler().opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;booleanhasRateLimitingSampler().opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TraceConfig.BuildernewBuilder()static TraceConfig.BuildernewBuilder(TraceConfig prototype)TraceConfig.BuildernewBuilderForType()protected TraceConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TraceConfigparseDelimitedFrom(InputStream input)static TraceConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(byte[] data)static TraceConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(com.google.protobuf.ByteString data)static TraceConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(com.google.protobuf.CodedInputStream input)static TraceConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(InputStream input)static TraceConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TraceConfigparseFrom(ByteBuffer data)static TraceConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TraceConfig>parser()TraceConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PROBABILITY_SAMPLER_FIELD_NUMBER
public static final int PROBABILITY_SAMPLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSTANT_SAMPLER_FIELD_NUMBER
public static final int CONSTANT_SAMPLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RATE_LIMITING_SAMPLER_FIELD_NUMBER
public static final int RATE_LIMITING_SAMPLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBER
public static final int MAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_ANNOTATIONS_FIELD_NUMBER
public static final int MAX_NUMBER_OF_ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_MESSAGE_EVENTS_FIELD_NUMBER
public static final int MAX_NUMBER_OF_MESSAGE_EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUMBER_OF_LINKS_FIELD_NUMBER
public static final int MAX_NUMBER_OF_LINKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSamplerCase
public TraceConfig.SamplerCase getSamplerCase()
- Specified by:
getSamplerCasein interfaceTraceConfigOrBuilder
-
hasProbabilitySampler
public boolean hasProbabilitySampler()
.opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;- Specified by:
hasProbabilitySamplerin interfaceTraceConfigOrBuilder- Returns:
- Whether the probabilitySampler field is set.
-
getProbabilitySampler
public ProbabilitySampler getProbabilitySampler()
.opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;- Specified by:
getProbabilitySamplerin interfaceTraceConfigOrBuilder- Returns:
- The probabilitySampler.
-
getProbabilitySamplerOrBuilder
public ProbabilitySamplerOrBuilder getProbabilitySamplerOrBuilder()
.opencensus.proto.trace.v1.ProbabilitySampler probability_sampler = 1;- Specified by:
getProbabilitySamplerOrBuilderin interfaceTraceConfigOrBuilder
-
hasConstantSampler
public boolean hasConstantSampler()
.opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;- Specified by:
hasConstantSamplerin interfaceTraceConfigOrBuilder- Returns:
- Whether the constantSampler field is set.
-
getConstantSampler
public ConstantSampler getConstantSampler()
.opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;- Specified by:
getConstantSamplerin interfaceTraceConfigOrBuilder- Returns:
- The constantSampler.
-
getConstantSamplerOrBuilder
public ConstantSamplerOrBuilder getConstantSamplerOrBuilder()
.opencensus.proto.trace.v1.ConstantSampler constant_sampler = 2;- Specified by:
getConstantSamplerOrBuilderin interfaceTraceConfigOrBuilder
-
hasRateLimitingSampler
public boolean hasRateLimitingSampler()
.opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
hasRateLimitingSamplerin interfaceTraceConfigOrBuilder- Returns:
- Whether the rateLimitingSampler field is set.
-
getRateLimitingSampler
public RateLimitingSampler getRateLimitingSampler()
.opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
getRateLimitingSamplerin interfaceTraceConfigOrBuilder- Returns:
- The rateLimitingSampler.
-
getRateLimitingSamplerOrBuilder
public RateLimitingSamplerOrBuilder getRateLimitingSamplerOrBuilder()
.opencensus.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;- Specified by:
getRateLimitingSamplerOrBuilderin interfaceTraceConfigOrBuilder
-
getMaxNumberOfAttributes
public long getMaxNumberOfAttributes()
The global default max number of attributes per span.
int64 max_number_of_attributes = 4;- Specified by:
getMaxNumberOfAttributesin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfAttributes.
-
getMaxNumberOfAnnotations
public long getMaxNumberOfAnnotations()
The global default max number of annotation events per span.
int64 max_number_of_annotations = 5;- Specified by:
getMaxNumberOfAnnotationsin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfAnnotations.
-
getMaxNumberOfMessageEvents
public long getMaxNumberOfMessageEvents()
The global default max number of message events per span.
int64 max_number_of_message_events = 6;- Specified by:
getMaxNumberOfMessageEventsin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfMessageEvents.
-
getMaxNumberOfLinks
public long getMaxNumberOfLinks()
The global default max number of link entries per span.
int64 max_number_of_links = 7;- Specified by:
getMaxNumberOfLinksin interfaceTraceConfigOrBuilder- Returns:
- The maxNumberOfLinks.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TraceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TraceConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TraceConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TraceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TraceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TraceConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TraceConfig.Builder newBuilder()
-
newBuilder
public static TraceConfig.Builder newBuilder(TraceConfig prototype)
-
toBuilder
public TraceConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TraceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TraceConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TraceConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<TraceConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TraceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-