Class Exemplar.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type
opentelemetry.proto.metrics.v1.Exemplar-
Method Summary
Modifier and TypeMethodDescriptionaddAllFilteredAttributes(Iterable<? extends KeyValue> values) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.addFilteredAttributes(int index, KeyValue value) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.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.addFilteredAttributes(KeyValue value) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.addFilteredAttributes(KeyValue.Builder builderForValue) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.addFilteredAttributesBuilder(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.build()clear()double as_double = 3;sfixed64 as_int = 6;The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.(Optional) Span ID of the exemplar trace.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.(Optional) Trace ID of the exemplar trace.doubledouble as_double = 3;longgetAsInt()sfixed64 as_int = 6;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFilteredAttributes(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.getFilteredAttributesBuilder(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.intThe set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.getFilteredAttributesOrBuilder(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.List<? extends KeyValueOrBuilder>The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.com.google.protobuf.ByteString(Optional) Span ID of the exemplar trace.longtime_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.ByteString(Optional) Trace ID of the exemplar trace.booleandouble as_double = 3;booleanhasAsInt()sfixed64 as_int = 6;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFilteredAttributes(int index) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.setAsDouble(double value) double as_double = 3;setAsInt(long value) sfixed64 as_int = 6;setFilteredAttributes(int index, KeyValue value) The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.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.setSpanId(com.google.protobuf.ByteString value) (Optional) Span ID of the exemplar trace.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.setTraceId(com.google.protobuf.ByteString value) (Optional) Trace ID of the exemplar trace.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Exemplar.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Exemplar.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Exemplar.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getValueCasein interfaceExemplarOrBuilder
-
clearValue
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
double as_double = 3;- Parameters:
value- The asDouble to set.- Returns:
- This builder for chaining.
-
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
sfixed64 as_int = 6;- Parameters:
value- The asInt to set.- Returns:
- This builder for chaining.
-
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
(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
(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
(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
(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.
-