Class Exemplar.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
- io.opentelemetry.proto.metrics.v1.Exemplar.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExemplarOrBuilder,Cloneable
- Enclosing class:
- Exemplar
public static final class Exemplar.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder> implements ExemplarOrBuilder
A representation of an exemplar, which is a sample input measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.
Protobuf typeopentelemetry.proto.metrics.v1.Exemplar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Exemplar.BuilderaddAllFilteredAttributes(Iterable<? extends KeyValue> values)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderaddFilteredAttributes(int index, KeyValue value)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderaddFilteredAttributes(int index, KeyValue.Builder builderForValue)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderaddFilteredAttributes(KeyValue value)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderaddFilteredAttributes(KeyValue.Builder builderForValue)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.KeyValue.BuilderaddFilteredAttributesBuilder()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.KeyValue.BuilderaddFilteredAttributesBuilder(int index)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Exemplarbuild()ExemplarbuildPartial()Exemplar.Builderclear()Exemplar.BuilderclearAsDouble()double as_double = 3;Exemplar.BuilderclearAsInt()sfixed64 as_int = 6;Exemplar.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Exemplar.BuilderclearFilteredAttributes()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Exemplar.BuilderclearSpanId()(Optional) Span ID of the exemplar trace.Exemplar.BuilderclearTimeUnixNano()time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.Exemplar.BuilderclearTraceId()(Optional) Trace ID of the exemplar trace.Exemplar.BuilderclearValue()Exemplar.Builderclone()doublegetAsDouble()double as_double = 3;longgetAsInt()sfixed64 as_int = 6;ExemplargetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()KeyValuegetFilteredAttributes(int index)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.KeyValue.BuildergetFilteredAttributesBuilder(int index)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.List<KeyValue.Builder>getFilteredAttributesBuilderList()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.intgetFilteredAttributesCount()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.List<KeyValue>getFilteredAttributesList()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.KeyValueOrBuildergetFilteredAttributesOrBuilder(int index)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.List<? extends KeyValueOrBuilder>getFilteredAttributesOrBuilderList()The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.com.google.protobuf.ByteStringgetSpanId()(Optional) Span ID of the exemplar trace.longgetTimeUnixNano()time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.com.google.protobuf.ByteStringgetTraceId()(Optional) Trace ID of the exemplar trace.Exemplar.ValueCasegetValueCase()booleanhasAsDouble()double as_double = 3;booleanhasAsInt()sfixed64 as_int = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Exemplar.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Exemplar.BuildermergeFrom(com.google.protobuf.Message other)Exemplar.BuildermergeFrom(Exemplar other)Exemplar.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Exemplar.BuilderremoveFilteredAttributes(int index)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuildersetAsDouble(double value)double as_double = 3;Exemplar.BuildersetAsInt(long value)sfixed64 as_int = 6;Exemplar.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Exemplar.BuildersetFilteredAttributes(int index, KeyValue value)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuildersetFilteredAttributes(int index, KeyValue.Builder builderForValue)The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.Exemplar.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Exemplar.BuildersetSpanId(com.google.protobuf.ByteString value)(Optional) Span ID of the exemplar trace.Exemplar.BuildersetTimeUnixNano(long value)time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.Exemplar.BuildersetTraceId(com.google.protobuf.ByteString value)(Optional) Trace ID of the exemplar trace.Exemplar.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Exemplar.Builder>
-
clear
public Exemplar.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
getDefaultInstanceForType
public Exemplar getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Exemplar build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Exemplar buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Exemplar.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
setField
public Exemplar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
clearField
public Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
clearOneof
public Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
setRepeatedField
public Exemplar.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
addRepeatedField
public Exemplar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
mergeFrom
public Exemplar.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Exemplar.Builder>
-
mergeFrom
public Exemplar.Builder mergeFrom(Exemplar other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
mergeFrom
public Exemplar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Exemplar.Builder>- Throws:
IOException
-
getValueCase
public Exemplar.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceExemplarOrBuilder
-
clearValue
public Exemplar.Builder clearValue()
-
getFilteredAttributesList
public List<KeyValue> getFilteredAttributesList()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesListin interfaceExemplarOrBuilder
-
getFilteredAttributesCount
public int getFilteredAttributesCount()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesCountin interfaceExemplarOrBuilder
-
getFilteredAttributes
public KeyValue getFilteredAttributes(int index)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesin interfaceExemplarOrBuilder
-
setFilteredAttributes
public Exemplar.Builder setFilteredAttributes(int index, KeyValue value)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
setFilteredAttributes
public Exemplar.Builder setFilteredAttributes(int index, KeyValue.Builder builderForValue)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addFilteredAttributes
public Exemplar.Builder addFilteredAttributes(KeyValue value)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addFilteredAttributes
public Exemplar.Builder addFilteredAttributes(int index, KeyValue value)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addFilteredAttributes
public Exemplar.Builder addFilteredAttributes(KeyValue.Builder builderForValue)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addFilteredAttributes
public Exemplar.Builder addFilteredAttributes(int index, KeyValue.Builder builderForValue)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addAllFilteredAttributes
public Exemplar.Builder addAllFilteredAttributes(Iterable<? extends KeyValue> values)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
clearFilteredAttributes
public Exemplar.Builder clearFilteredAttributes()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
removeFilteredAttributes
public Exemplar.Builder removeFilteredAttributes(int index)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
getFilteredAttributesBuilder
public KeyValue.Builder getFilteredAttributesBuilder(int index)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
getFilteredAttributesOrBuilder
public KeyValueOrBuilder getFilteredAttributesOrBuilder(int index)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesOrBuilderin interfaceExemplarOrBuilder
-
getFilteredAttributesOrBuilderList
public List<? extends KeyValueOrBuilder> getFilteredAttributesOrBuilderList()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;- Specified by:
getFilteredAttributesOrBuilderListin interfaceExemplarOrBuilder
-
addFilteredAttributesBuilder
public KeyValue.Builder addFilteredAttributesBuilder()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
addFilteredAttributesBuilder
public KeyValue.Builder addFilteredAttributesBuilder(int index)
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
getFilteredAttributesBuilderList
public List<KeyValue.Builder> getFilteredAttributesBuilderList()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
repeated .opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
-
getTimeUnixNano
public long getTimeUnixNano()
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 2;- Specified by:
getTimeUnixNanoin interfaceExemplarOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
public Exemplar.Builder setTimeUnixNano(long value)
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 2;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
public Exemplar.Builder clearTimeUnixNano()
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 2;- Returns:
- This builder for chaining.
-
hasAsDouble
public boolean hasAsDouble()
double as_double = 3;- Specified by:
hasAsDoublein interfaceExemplarOrBuilder- Returns:
- Whether the asDouble field is set.
-
getAsDouble
public double getAsDouble()
double as_double = 3;- Specified by:
getAsDoublein interfaceExemplarOrBuilder- Returns:
- The asDouble.
-
setAsDouble
public Exemplar.Builder setAsDouble(double value)
double as_double = 3;- Parameters:
value- The asDouble to set.- Returns:
- This builder for chaining.
-
clearAsDouble
public Exemplar.Builder clearAsDouble()
double as_double = 3;- Returns:
- This builder for chaining.
-
hasAsInt
public boolean hasAsInt()
sfixed64 as_int = 6;- Specified by:
hasAsIntin interfaceExemplarOrBuilder- Returns:
- Whether the asInt field is set.
-
getAsInt
public long getAsInt()
sfixed64 as_int = 6;- Specified by:
getAsIntin interfaceExemplarOrBuilder- Returns:
- The asInt.
-
setAsInt
public Exemplar.Builder setAsInt(long value)
sfixed64 as_int = 6;- Parameters:
value- The asInt to set.- Returns:
- This builder for chaining.
-
clearAsInt
public Exemplar.Builder clearAsInt()
sfixed64 as_int = 6;- Returns:
- This builder for chaining.
-
getSpanId
public com.google.protobuf.ByteString getSpanId()
(Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes span_id = 4;- Specified by:
getSpanIdin interfaceExemplarOrBuilder- Returns:
- The spanId.
-
setSpanId
public Exemplar.Builder setSpanId(com.google.protobuf.ByteString value)
(Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes span_id = 4;- Parameters:
value- The spanId to set.- Returns:
- This builder for chaining.
-
clearSpanId
public Exemplar.Builder clearSpanId()
(Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes span_id = 4;- Returns:
- This builder for chaining.
-
getTraceId
public com.google.protobuf.ByteString getTraceId()
(Optional) Trace ID of the exemplar trace. trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes trace_id = 5;- Specified by:
getTraceIdin interfaceExemplarOrBuilder- Returns:
- The traceId.
-
setTraceId
public Exemplar.Builder setTraceId(com.google.protobuf.ByteString value)
(Optional) Trace ID of the exemplar trace. trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes trace_id = 5;- Parameters:
value- The traceId to set.- Returns:
- This builder for chaining.
-
clearTraceId
public Exemplar.Builder clearTraceId()
(Optional) Trace ID of the exemplar trace. trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
bytes trace_id = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Exemplar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
mergeUnknownFields
public final Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Exemplar.Builder>
-
-