Class Metric.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
io.opentelemetry.proto.metrics.v1.Metric.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MetricOrBuilder,Cloneable
- Enclosing class:
- Metric
public static final class Metric.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
implements MetricOrBuilder
Defines a Metric which has one or more timeseries. The following is a
brief summary of the Metric data model. For more details, see:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md
The data model and relation between entities is shown in the
diagram below. Here, "DataPoint" is the term used to refer to any
one of the specific data point value types, and "points" is the term used
to refer to any one of the lists of points contained in the Metric.
- Metric is composed of a metadata and data.
- Metadata part contains a name, description, unit.
- Data is one of the possible types (Sum, Gauge, Histogram, Summary).
- DataPoint contains timestamps, attributes, and one of the possible value type
fields.
Metric
+------------+
|name |
|description |
|unit | +------------------------------------+
|data |---> |Gauge, Sum, Histogram, Summary, ... |
+------------+ +------------------------------------+
Data [One of Gauge, Sum, Histogram, Summary, ...]
+-----------+
|... | // Metadata about the Data.
|points |--+
+-----------+ |
| +---------------------------+
| |DataPoint 1 |
v |+------+------+ +------+ |
+-----+ ||label |label |...|label | |
| 1 |-->||value1|value2|...|valueN| |
+-----+ |+------+------+ +------+ |
| . | |+-----+ |
| . | ||value| |
| . | |+-----+ |
| . | +---------------------------+
| . | .
| . | .
| . | .
| . | +---------------------------+
| . | |DataPoint M |
+-----+ |+------+------+ +------+ |
| M |-->||label |label |...|label | |
+-----+ ||value1|value2|...|valueN| |
|+------+------+ +------+ |
|+-----+ |
||value| |
|+-----+ |
+---------------------------+
Each distinct type of DataPoint represents the output of a specific
aggregation function, the result of applying the DataPoint's
associated function of to one or more measurements.
All DataPoint types have three common fields:
- Attributes includes key-value pairs associated with the data point
- TimeUnixNano is required, set to the end time of the aggregation
- StartTimeUnixNano is optional, but strongly encouraged for DataPoints
having an AggregationTemporality field, as discussed below.
Both TimeUnixNano and StartTimeUnixNano values are expressed as
UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
# TimeUnixNano
This field is required, having consistent interpretation across
DataPoint types. TimeUnixNano is the moment corresponding to when
the data point's aggregate value was captured.
Data points with the 0 value for TimeUnixNano SHOULD be rejected
by consumers.
# StartTimeUnixNano
StartTimeUnixNano in general allows detecting when a sequence of
observations is unbroken. This field indicates to consumers the
start time for points with cumulative and delta
AggregationTemporality, and it should be included whenever possible
to support correct rate calculation. Although it may be omitted
when the start time is truly unknown, setting StartTimeUnixNano is
strongly encouraged.
Protobuf type opentelemetry.proto.metrics.v1.Metric-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetadata(Iterable<? extends KeyValue> values) Additional metadata attributes that describe the metric.addMetadata(int index, KeyValue value) Additional metadata attributes that describe the metric.addMetadata(int index, KeyValue.Builder builderForValue) Additional metadata attributes that describe the metric.addMetadata(KeyValue value) Additional metadata attributes that describe the metric.addMetadata(KeyValue.Builder builderForValue) Additional metadata attributes that describe the metric.Additional metadata attributes that describe the metric.addMetadataBuilder(int index) Additional metadata attributes that describe the metric.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()description of the metric, which can be used in documentation..opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) .opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;Additional metadata attributes that describe the metric.name of the metric.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearSum().opentelemetry.proto.metrics.v1.Sum sum = 7;.opentelemetry.proto.metrics.v1.Summary summary = 11;unit in which the metric value is reported.clone()description of the metric, which can be used in documentation.com.google.protobuf.ByteStringdescription of the metric, which can be used in documentation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;getGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Gauge gauge = 5;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;.opentelemetry.proto.metrics.v1.Histogram histogram = 9;getMetadata(int index) Additional metadata attributes that describe the metric.getMetadataBuilder(int index) Additional metadata attributes that describe the metric.Additional metadata attributes that describe the metric.intAdditional metadata attributes that describe the metric.Additional metadata attributes that describe the metric.getMetadataOrBuilder(int index) Additional metadata attributes that describe the metric.List<? extends KeyValueOrBuilder>Additional metadata attributes that describe the metric.getName()name of the metric.com.google.protobuf.ByteStringname of the metric.getSum().opentelemetry.proto.metrics.v1.Sum sum = 7;.opentelemetry.proto.metrics.v1.Sum sum = 7;.opentelemetry.proto.metrics.v1.Summary summary = 11;.opentelemetry.proto.metrics.v1.Summary summary = 11;.opentelemetry.proto.metrics.v1.Summary summary = 11;.opentelemetry.proto.metrics.v1.Sum sum = 7;getUnit()unit in which the metric value is reported.com.google.protobuf.ByteStringunit in which the metric value is reported.boolean.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;booleanhasGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;boolean.opentelemetry.proto.metrics.v1.Histogram histogram = 9;booleanhasSum().opentelemetry.proto.metrics.v1.Sum sum = 7;boolean.opentelemetry.proto.metrics.v1.Summary summary = 11;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal boolean.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGauge(Gauge value) .opentelemetry.proto.metrics.v1.Gauge gauge = 5;mergeHistogram(Histogram value) .opentelemetry.proto.metrics.v1.Histogram histogram = 9;.opentelemetry.proto.metrics.v1.Sum sum = 7;mergeSummary(Summary value) .opentelemetry.proto.metrics.v1.Summary summary = 11;final Metric.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeMetadata(int index) Additional metadata attributes that describe the metric.setDescription(String value) description of the metric, which can be used in documentation.setDescriptionBytes(com.google.protobuf.ByteString value) description of the metric, which can be used in documentation..opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;setExponentialHistogram(ExponentialHistogram.Builder builderForValue) .opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;.opentelemetry.proto.metrics.v1.Gauge gauge = 5;setGauge(Gauge.Builder builderForValue) .opentelemetry.proto.metrics.v1.Gauge gauge = 5;setHistogram(Histogram value) .opentelemetry.proto.metrics.v1.Histogram histogram = 9;setHistogram(Histogram.Builder builderForValue) .opentelemetry.proto.metrics.v1.Histogram histogram = 9;setMetadata(int index, KeyValue value) Additional metadata attributes that describe the metric.setMetadata(int index, KeyValue.Builder builderForValue) Additional metadata attributes that describe the metric.name of the metric.setNameBytes(com.google.protobuf.ByteString value) name of the metric.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) .opentelemetry.proto.metrics.v1.Sum sum = 7;setSum(Sum.Builder builderForValue) .opentelemetry.proto.metrics.v1.Sum sum = 7;setSummary(Summary value) .opentelemetry.proto.metrics.v1.Summary summary = 11;setSummary(Summary.Builder builderForValue) .opentelemetry.proto.metrics.v1.Summary summary = 11;unit in which the metric value is reported.setUnitBytes(com.google.protobuf.ByteString value) unit in which the metric value is reported.final Metric.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.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<Metric.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<Metric.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
setRepeatedField
public Metric.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<Metric.Builder>
-
addRepeatedField
public Metric.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<Metric.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Metric.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
mergeFrom
public Metric.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<Metric.Builder>- Throws:
IOException
-
getDataCase
- Specified by:
getDataCasein interfaceMetricOrBuilder
-
clearData
-
getName
name of the metric.
string name = 1;- Specified by:
getNamein interfaceMetricOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of the metric.
string name = 1;- Specified by:
getNameBytesin interfaceMetricOrBuilder- Returns:
- The bytes for name.
-
setName
name of the metric.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
name of the metric.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
name of the metric.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
description of the metric, which can be used in documentation.
string description = 2;- Specified by:
getDescriptionin interfaceMetricOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()description of the metric, which can be used in documentation.
string description = 2;- Specified by:
getDescriptionBytesin interfaceMetricOrBuilder- Returns:
- The bytes for description.
-
setDescription
description of the metric, which can be used in documentation.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
description of the metric, which can be used in documentation.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
description of the metric, which can be used in documentation.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getUnit
unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;- Specified by:
getUnitin interfaceMetricOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;- Specified by:
getUnitBytesin interfaceMetricOrBuilder- Returns:
- The bytes for unit.
-
setUnit
unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;- Parameters:
value- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;- Returns:
- This builder for chaining.
-
setUnitBytes
unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;- Parameters:
value- The bytes for unit to set.- Returns:
- This builder for chaining.
-
hasGauge
public boolean hasGauge().opentelemetry.proto.metrics.v1.Gauge gauge = 5;- Specified by:
hasGaugein interfaceMetricOrBuilder- Returns:
- Whether the gauge field is set.
-
getGauge
.opentelemetry.proto.metrics.v1.Gauge gauge = 5;- Specified by:
getGaugein interfaceMetricOrBuilder- Returns:
- The gauge.
-
setGauge
.opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
setGauge
.opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
mergeGauge
.opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
clearGauge
.opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
getGaugeBuilder
.opentelemetry.proto.metrics.v1.Gauge gauge = 5; -
getGaugeOrBuilder
.opentelemetry.proto.metrics.v1.Gauge gauge = 5;- Specified by:
getGaugeOrBuilderin interfaceMetricOrBuilder
-
hasSum
public boolean hasSum().opentelemetry.proto.metrics.v1.Sum sum = 7;- Specified by:
hasSumin interfaceMetricOrBuilder- Returns:
- Whether the sum field is set.
-
getSum
.opentelemetry.proto.metrics.v1.Sum sum = 7;- Specified by:
getSumin interfaceMetricOrBuilder- Returns:
- The sum.
-
setSum
.opentelemetry.proto.metrics.v1.Sum sum = 7; -
setSum
.opentelemetry.proto.metrics.v1.Sum sum = 7; -
mergeSum
.opentelemetry.proto.metrics.v1.Sum sum = 7; -
clearSum
.opentelemetry.proto.metrics.v1.Sum sum = 7; -
getSumBuilder
.opentelemetry.proto.metrics.v1.Sum sum = 7; -
getSumOrBuilder
.opentelemetry.proto.metrics.v1.Sum sum = 7;- Specified by:
getSumOrBuilderin interfaceMetricOrBuilder
-
hasHistogram
public boolean hasHistogram().opentelemetry.proto.metrics.v1.Histogram histogram = 9;- Specified by:
hasHistogramin interfaceMetricOrBuilder- Returns:
- Whether the histogram field is set.
-
getHistogram
.opentelemetry.proto.metrics.v1.Histogram histogram = 9;- Specified by:
getHistogramin interfaceMetricOrBuilder- Returns:
- The histogram.
-
setHistogram
.opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
setHistogram
.opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
mergeHistogram
.opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
clearHistogram
.opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
getHistogramBuilder
.opentelemetry.proto.metrics.v1.Histogram histogram = 9; -
getHistogramOrBuilder
.opentelemetry.proto.metrics.v1.Histogram histogram = 9;- Specified by:
getHistogramOrBuilderin interfaceMetricOrBuilder
-
hasExponentialHistogram
public boolean hasExponentialHistogram().opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;- Specified by:
hasExponentialHistogramin interfaceMetricOrBuilder- Returns:
- Whether the exponentialHistogram field is set.
-
getExponentialHistogram
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;- Specified by:
getExponentialHistogramin interfaceMetricOrBuilder- Returns:
- The exponentialHistogram.
-
setExponentialHistogram
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
setExponentialHistogram
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
mergeExponentialHistogram
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
clearExponentialHistogram
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
getExponentialHistogramBuilder
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10; -
getExponentialHistogramOrBuilder
.opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;- Specified by:
getExponentialHistogramOrBuilderin interfaceMetricOrBuilder
-
hasSummary
public boolean hasSummary().opentelemetry.proto.metrics.v1.Summary summary = 11;- Specified by:
hasSummaryin interfaceMetricOrBuilder- Returns:
- Whether the summary field is set.
-
getSummary
.opentelemetry.proto.metrics.v1.Summary summary = 11;- Specified by:
getSummaryin interfaceMetricOrBuilder- Returns:
- The summary.
-
setSummary
.opentelemetry.proto.metrics.v1.Summary summary = 11; -
setSummary
.opentelemetry.proto.metrics.v1.Summary summary = 11; -
mergeSummary
.opentelemetry.proto.metrics.v1.Summary summary = 11; -
clearSummary
.opentelemetry.proto.metrics.v1.Summary summary = 11; -
getSummaryBuilder
.opentelemetry.proto.metrics.v1.Summary summary = 11; -
getSummaryOrBuilder
.opentelemetry.proto.metrics.v1.Summary summary = 11;- Specified by:
getSummaryOrBuilderin interfaceMetricOrBuilder
-
getMetadataList
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12;- Specified by:
getMetadataListin interfaceMetricOrBuilder
-
getMetadataCount
public int getMetadataCount()Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12;- Specified by:
getMetadataCountin interfaceMetricOrBuilder
-
getMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12;- Specified by:
getMetadatain interfaceMetricOrBuilder
-
setMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
setMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addAllMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
clearMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
removeMetadata
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
getMetadataBuilder
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
getMetadataOrBuilder
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12;- Specified by:
getMetadataOrBuilderin interfaceMetricOrBuilder
-
getMetadataOrBuilderList
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12;- Specified by:
getMetadataOrBuilderListin interfaceMetricOrBuilder
-
addMetadataBuilder
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
addMetadataBuilder
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
getMetadataBuilderList
Additional metadata attributes that describe the metric. [Optional]. Attributes are non-identifying. Consumers SHOULD NOT need to be aware of these attributes. These attributes MAY be used to encode information allowing for lossless roundtrip translation to / from another data model. 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 metadata = 12; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Metric.Builder>
-