Class NumberDataPoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
- io.opentelemetry.proto.metrics.v1.NumberDataPoint.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NumberDataPointOrBuilder,Cloneable
- Enclosing class:
- NumberDataPoint
public static final class NumberDataPoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder> implements NumberDataPointOrBuilder
NumberDataPoint is a single data point in a timeseries that describes the time-varying scalar value of a metric.
Protobuf typeopentelemetry.proto.metrics.v1.NumberDataPoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberDataPoint.BuilderaddAllAttributes(Iterable<? extends KeyValue> values)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderaddAllExemplars(Iterable<? extends Exemplar> values)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderaddAttributes(int index, KeyValue value)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderaddAttributes(int index, KeyValue.Builder builderForValue)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderaddAttributes(KeyValue value)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderaddAttributes(KeyValue.Builder builderForValue)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.KeyValue.BuilderaddAttributesBuilder()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.KeyValue.BuilderaddAttributesBuilder(int index)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderaddExemplars(int index, Exemplar value)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderaddExemplars(int index, Exemplar.Builder builderForValue)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderaddExemplars(Exemplar value)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderaddExemplars(Exemplar.Builder builderForValue)(Optional) List of exemplars collected from measurements that were used to form the data pointExemplar.BuilderaddExemplarsBuilder()(Optional) List of exemplars collected from measurements that were used to form the data pointExemplar.BuilderaddExemplarsBuilder(int index)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NumberDataPointbuild()NumberDataPointbuildPartial()NumberDataPoint.Builderclear()NumberDataPoint.BuilderclearAsDouble()double as_double = 4;NumberDataPoint.BuilderclearAsInt()sfixed64 as_int = 6;NumberDataPoint.BuilderclearAttributes()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderclearExemplars()(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NumberDataPoint.BuilderclearFlags()Flags that apply to this specific data point.NumberDataPoint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NumberDataPoint.BuilderclearStartTimeUnixNano()StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.NumberDataPoint.BuilderclearTimeUnixNano()TimeUnixNano is required, see the detailed comments above Metric.NumberDataPoint.BuilderclearValue()NumberDataPoint.Builderclone()doublegetAsDouble()double as_double = 4;longgetAsInt()sfixed64 as_int = 6;KeyValuegetAttributes(int index)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.KeyValue.BuildergetAttributesBuilder(int index)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.List<KeyValue.Builder>getAttributesBuilderList()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.intgetAttributesCount()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.List<KeyValue>getAttributesList()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.KeyValueOrBuildergetAttributesOrBuilder(int index)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ExemplargetExemplars(int index)(Optional) List of exemplars collected from measurements that were used to form the data pointExemplar.BuildergetExemplarsBuilder(int index)(Optional) List of exemplars collected from measurements that were used to form the data pointList<Exemplar.Builder>getExemplarsBuilderList()(Optional) List of exemplars collected from measurements that were used to form the data pointintgetExemplarsCount()(Optional) List of exemplars collected from measurements that were used to form the data pointList<Exemplar>getExemplarsList()(Optional) List of exemplars collected from measurements that were used to form the data pointExemplarOrBuildergetExemplarsOrBuilder(int index)(Optional) List of exemplars collected from measurements that were used to form the data pointList<? extends ExemplarOrBuilder>getExemplarsOrBuilderList()(Optional) List of exemplars collected from measurements that were used to form the data pointintgetFlags()Flags that apply to this specific data point.longgetStartTimeUnixNano()StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.longgetTimeUnixNano()TimeUnixNano is required, see the detailed comments above Metric.NumberDataPoint.ValueCasegetValueCase()booleanhasAsDouble()double as_double = 4;booleanhasAsInt()sfixed64 as_int = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NumberDataPoint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NumberDataPoint.BuildermergeFrom(com.google.protobuf.Message other)NumberDataPoint.BuildermergeFrom(NumberDataPoint other)NumberDataPoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NumberDataPoint.BuilderremoveAttributes(int index)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuilderremoveExemplars(int index)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuildersetAsDouble(double value)double as_double = 4;NumberDataPoint.BuildersetAsInt(long value)sfixed64 as_int = 6;NumberDataPoint.BuildersetAttributes(int index, KeyValue value)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuildersetAttributes(int index, KeyValue.Builder builderForValue)The set of key/value pairs that uniquely identify the timeseries from where this point belongs.NumberDataPoint.BuildersetExemplars(int index, Exemplar value)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuildersetExemplars(int index, Exemplar.Builder builderForValue)(Optional) List of exemplars collected from measurements that were used to form the data pointNumberDataPoint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NumberDataPoint.BuildersetFlags(int value)Flags that apply to this specific data point.NumberDataPoint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NumberDataPoint.BuildersetStartTimeUnixNano(long value)StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.NumberDataPoint.BuildersetTimeUnixNano(long value)TimeUnixNano is required, see the detailed comments above Metric.NumberDataPoint.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<NumberDataPoint.Builder>
-
clear
public NumberDataPoint.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<NumberDataPoint.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<NumberDataPoint.Builder>
-
getDefaultInstanceForType
public NumberDataPoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NumberDataPoint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NumberDataPoint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NumberDataPoint.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<NumberDataPoint.Builder>
-
setField
public NumberDataPoint.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<NumberDataPoint.Builder>
-
clearField
public NumberDataPoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
clearOneof
public NumberDataPoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
setRepeatedField
public NumberDataPoint.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<NumberDataPoint.Builder>
-
addRepeatedField
public NumberDataPoint.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<NumberDataPoint.Builder>
-
mergeFrom
public NumberDataPoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NumberDataPoint.Builder>
-
mergeFrom
public NumberDataPoint.Builder mergeFrom(NumberDataPoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
mergeFrom
public NumberDataPoint.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<NumberDataPoint.Builder>- Throws:
IOException
-
getValueCase
public NumberDataPoint.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceNumberDataPointOrBuilder
-
clearValue
public NumberDataPoint.Builder clearValue()
-
getAttributesList
public List<KeyValue> getAttributesList()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;- Specified by:
getAttributesListin interfaceNumberDataPointOrBuilder
-
getAttributesCount
public int getAttributesCount()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;- Specified by:
getAttributesCountin interfaceNumberDataPointOrBuilder
-
getAttributes
public KeyValue getAttributes(int index)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;- Specified by:
getAttributesin interfaceNumberDataPointOrBuilder
-
setAttributes
public NumberDataPoint.Builder setAttributes(int index, KeyValue value)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
setAttributes
public NumberDataPoint.Builder setAttributes(int index, KeyValue.Builder builderForValue)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAttributes
public NumberDataPoint.Builder addAttributes(KeyValue value)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAttributes
public NumberDataPoint.Builder addAttributes(int index, KeyValue value)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAttributes
public NumberDataPoint.Builder addAttributes(KeyValue.Builder builderForValue)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAttributes
public NumberDataPoint.Builder addAttributes(int index, KeyValue.Builder builderForValue)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAllAttributes
public NumberDataPoint.Builder addAllAttributes(Iterable<? extends KeyValue> values)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
clearAttributes
public NumberDataPoint.Builder clearAttributes()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
removeAttributes
public NumberDataPoint.Builder removeAttributes(int index)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
getAttributesBuilder
public KeyValue.Builder getAttributesBuilder(int index)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
getAttributesOrBuilder
public KeyValueOrBuilder getAttributesOrBuilder(int index)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;- Specified by:
getAttributesOrBuilderin interfaceNumberDataPointOrBuilder
-
getAttributesOrBuilderList
public List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;- Specified by:
getAttributesOrBuilderListin interfaceNumberDataPointOrBuilder
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder(int index)
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
getAttributesBuilderList
public List<KeyValue.Builder> getAttributesBuilderList()
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
-
getStartTimeUnixNano
public long getStartTimeUnixNano()
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Specified by:
getStartTimeUnixNanoin interfaceNumberDataPointOrBuilder- Returns:
- The startTimeUnixNano.
-
setStartTimeUnixNano
public NumberDataPoint.Builder setStartTimeUnixNano(long value)
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Parameters:
value- The startTimeUnixNano to set.- Returns:
- This builder for chaining.
-
clearStartTimeUnixNano
public NumberDataPoint.Builder clearStartTimeUnixNano()
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Returns:
- This builder for chaining.
-
getTimeUnixNano
public long getTimeUnixNano()
TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Specified by:
getTimeUnixNanoin interfaceNumberDataPointOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
public NumberDataPoint.Builder setTimeUnixNano(long value)
TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
public NumberDataPoint.Builder clearTimeUnixNano()
TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Returns:
- This builder for chaining.
-
hasAsDouble
public boolean hasAsDouble()
double as_double = 4;- Specified by:
hasAsDoublein interfaceNumberDataPointOrBuilder- Returns:
- Whether the asDouble field is set.
-
getAsDouble
public double getAsDouble()
double as_double = 4;- Specified by:
getAsDoublein interfaceNumberDataPointOrBuilder- Returns:
- The asDouble.
-
setAsDouble
public NumberDataPoint.Builder setAsDouble(double value)
double as_double = 4;- Parameters:
value- The asDouble to set.- Returns:
- This builder for chaining.
-
clearAsDouble
public NumberDataPoint.Builder clearAsDouble()
double as_double = 4;- Returns:
- This builder for chaining.
-
hasAsInt
public boolean hasAsInt()
sfixed64 as_int = 6;- Specified by:
hasAsIntin interfaceNumberDataPointOrBuilder- Returns:
- Whether the asInt field is set.
-
getAsInt
public long getAsInt()
sfixed64 as_int = 6;- Specified by:
getAsIntin interfaceNumberDataPointOrBuilder- Returns:
- The asInt.
-
setAsInt
public NumberDataPoint.Builder setAsInt(long value)
sfixed64 as_int = 6;- Parameters:
value- The asInt to set.- Returns:
- This builder for chaining.
-
clearAsInt
public NumberDataPoint.Builder clearAsInt()
sfixed64 as_int = 6;- Returns:
- This builder for chaining.
-
getExemplarsList
public List<Exemplar> getExemplarsList()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;- Specified by:
getExemplarsListin interfaceNumberDataPointOrBuilder
-
getExemplarsCount
public int getExemplarsCount()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;- Specified by:
getExemplarsCountin interfaceNumberDataPointOrBuilder
-
getExemplars
public Exemplar getExemplars(int index)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;- Specified by:
getExemplarsin interfaceNumberDataPointOrBuilder
-
setExemplars
public NumberDataPoint.Builder setExemplars(int index, Exemplar value)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
setExemplars
public NumberDataPoint.Builder setExemplars(int index, Exemplar.Builder builderForValue)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addExemplars
public NumberDataPoint.Builder addExemplars(Exemplar value)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addExemplars
public NumberDataPoint.Builder addExemplars(int index, Exemplar value)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addExemplars
public NumberDataPoint.Builder addExemplars(Exemplar.Builder builderForValue)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addExemplars
public NumberDataPoint.Builder addExemplars(int index, Exemplar.Builder builderForValue)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addAllExemplars
public NumberDataPoint.Builder addAllExemplars(Iterable<? extends Exemplar> values)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
clearExemplars
public NumberDataPoint.Builder clearExemplars()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
removeExemplars
public NumberDataPoint.Builder removeExemplars(int index)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
getExemplarsBuilder
public Exemplar.Builder getExemplarsBuilder(int index)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
getExemplarsOrBuilder
public ExemplarOrBuilder getExemplarsOrBuilder(int index)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;- Specified by:
getExemplarsOrBuilderin interfaceNumberDataPointOrBuilder
-
getExemplarsOrBuilderList
public List<? extends ExemplarOrBuilder> getExemplarsOrBuilderList()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;- Specified by:
getExemplarsOrBuilderListin interfaceNumberDataPointOrBuilder
-
addExemplarsBuilder
public Exemplar.Builder addExemplarsBuilder()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
addExemplarsBuilder
public Exemplar.Builder addExemplarsBuilder(int index)
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
getExemplarsBuilderList
public List<Exemplar.Builder> getExemplarsBuilderList()
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
-
getFlags
public int getFlags()
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 8;- Specified by:
getFlagsin interfaceNumberDataPointOrBuilder- Returns:
- The flags.
-
setFlags
public NumberDataPoint.Builder setFlags(int value)
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 8;- Parameters:
value- The flags to set.- Returns:
- This builder for chaining.
-
clearFlags
public NumberDataPoint.Builder clearFlags()
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final NumberDataPoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
mergeUnknownFields
public final NumberDataPoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NumberDataPoint.Builder>
-
-