Class MetricsData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricsData.Builder>
io.opentelemetry.proto.metrics.v1.MetricsData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MetricsDataOrBuilder,Cloneable
- Enclosing class:
- MetricsData
public static final class MetricsData.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricsData.Builder>
implements MetricsDataOrBuilder
MetricsData represents the metrics data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP metrics data but do not implement the OTLP protocol. MetricsData └─── ResourceMetrics ├── Resource ├── SchemaURL └── ScopeMetrics ├── Scope ├── SchemaURL └── Metric ├── Name ├── Description ├── Unit └── data ├── Gauge ├── Sum ├── Histogram ├── ExponentialHistogram └── Summary The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol. When new fields are added into this message, the OTLP request MUST be updated as well.Protobuf type
opentelemetry.proto.metrics.v1.MetricsData-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourceMetrics(Iterable<? extends ResourceMetrics> values) An array of ResourceMetrics.addResourceMetrics(int index, ResourceMetrics value) An array of ResourceMetrics.addResourceMetrics(int index, ResourceMetrics.Builder builderForValue) An array of ResourceMetrics.An array of ResourceMetrics.addResourceMetrics(ResourceMetrics.Builder builderForValue) An array of ResourceMetrics.An array of ResourceMetrics.addResourceMetricsBuilder(int index) An array of ResourceMetrics.build()clear()An array of ResourceMetrics.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetResourceMetrics(int index) An array of ResourceMetrics.getResourceMetricsBuilder(int index) An array of ResourceMetrics.An array of ResourceMetrics.intAn array of ResourceMetrics.An array of ResourceMetrics.getResourceMetricsOrBuilder(int index) An array of ResourceMetrics.List<? extends ResourceMetricsOrBuilder>An array of ResourceMetrics.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MetricsData other) removeResourceMetrics(int index) An array of ResourceMetrics.setResourceMetrics(int index, ResourceMetrics value) An array of ResourceMetrics.setResourceMetrics(int index, ResourceMetrics.Builder builderForValue) An array of ResourceMetrics.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<MetricsData.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<MetricsData.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<MetricsData.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<MetricsData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricsData.Builder>
-
mergeFrom
public MetricsData.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<MetricsData.Builder>- Throws:
IOException
-
getResourceMetricsList
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;- Specified by:
getResourceMetricsListin interfaceMetricsDataOrBuilder
-
getResourceMetricsCount
public int getResourceMetricsCount()An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;- Specified by:
getResourceMetricsCountin interfaceMetricsDataOrBuilder
-
getResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;- Specified by:
getResourceMetricsin interfaceMetricsDataOrBuilder
-
setResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
setResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addAllResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
clearResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
removeResourceMetrics
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
getResourceMetricsBuilder
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
getResourceMetricsOrBuilder
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;- Specified by:
getResourceMetricsOrBuilderin interfaceMetricsDataOrBuilder
-
getResourceMetricsOrBuilderList
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;- Specified by:
getResourceMetricsOrBuilderListin interfaceMetricsDataOrBuilder
-
addResourceMetricsBuilder
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
addResourceMetricsBuilder
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; -
getResourceMetricsBuilderList
An array of ResourceMetrics. For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.
repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;
-