All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.proto.metrics.v1.Histogram Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/metrics/v1/metrics.proto

package io.opentelemetry.proto.metrics.v1;

/**
 * 
 * Histogram represents the type of a metric that is calculated by aggregating
 * as a Histogram of all reported measurements over a time interval.
 * 
* * Protobuf type {@code opentelemetry.proto.metrics.v1.Histogram} */ public final class Histogram extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.Histogram) HistogramOrBuilder { private static final long serialVersionUID = 0L; // Use Histogram.newBuilder() to construct. private Histogram(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Histogram() { dataPoints_ = java.util.Collections.emptyList(); aggregationTemporality_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Histogram(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Histogram( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dataPoints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dataPoints_.add( input.readMessage(io.opentelemetry.proto.metrics.v1.HistogramDataPoint.parser(), extensionRegistry)); break; } case 16: { int rawValue = input.readEnum(); aggregationTemporality_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dataPoints_ = java.util.Collections.unmodifiableList(dataPoints_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.metrics.v1.Histogram.class, io.opentelemetry.proto.metrics.v1.Histogram.Builder.class); } public static final int DATA_POINTS_FIELD_NUMBER = 1; private java.util.List dataPoints_; /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ @java.lang.Override public java.util.List getDataPointsList() { return dataPoints_; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ @java.lang.Override public java.util.List getDataPointsOrBuilderList() { return dataPoints_; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ @java.lang.Override public int getDataPointsCount() { return dataPoints_.size(); } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.HistogramDataPoint getDataPoints(int index) { return dataPoints_.get(index); } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder getDataPointsOrBuilder( int index) { return dataPoints_.get(index); } public static final int AGGREGATION_TEMPORALITY_FIELD_NUMBER = 2; private int aggregationTemporality_; /** *
   * aggregation_temporality describes if the aggregator reports delta changes
   * since last report time, or cumulative changes since a fixed start time.
   * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return The enum numeric value on the wire for aggregationTemporality. */ @java.lang.Override public int getAggregationTemporalityValue() { return aggregationTemporality_; } /** *
   * aggregation_temporality describes if the aggregator reports delta changes
   * since last report time, or cumulative changes since a fixed start time.
   * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return The aggregationTemporality. */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.AggregationTemporality getAggregationTemporality() { @SuppressWarnings("deprecation") io.opentelemetry.proto.metrics.v1.AggregationTemporality result = io.opentelemetry.proto.metrics.v1.AggregationTemporality.valueOf(aggregationTemporality_); return result == null ? io.opentelemetry.proto.metrics.v1.AggregationTemporality.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dataPoints_.size(); i++) { output.writeMessage(1, dataPoints_.get(i)); } if (aggregationTemporality_ != io.opentelemetry.proto.metrics.v1.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) { output.writeEnum(2, aggregationTemporality_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < dataPoints_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, dataPoints_.get(i)); } if (aggregationTemporality_ != io.opentelemetry.proto.metrics.v1.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, aggregationTemporality_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opentelemetry.proto.metrics.v1.Histogram)) { return super.equals(obj); } io.opentelemetry.proto.metrics.v1.Histogram other = (io.opentelemetry.proto.metrics.v1.Histogram) obj; if (!getDataPointsList() .equals(other.getDataPointsList())) return false; if (aggregationTemporality_ != other.aggregationTemporality_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDataPointsCount() > 0) { hash = (37 * hash) + DATA_POINTS_FIELD_NUMBER; hash = (53 * hash) + getDataPointsList().hashCode(); } hash = (37 * hash) + AGGREGATION_TEMPORALITY_FIELD_NUMBER; hash = (53 * hash) + aggregationTemporality_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opentelemetry.proto.metrics.v1.Histogram parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.metrics.v1.Histogram parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opentelemetry.proto.metrics.v1.Histogram prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Histogram represents the type of a metric that is calculated by aggregating
   * as a Histogram of all reported measurements over a time interval.
   * 
* * Protobuf type {@code opentelemetry.proto.metrics.v1.Histogram} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.metrics.v1.Histogram) io.opentelemetry.proto.metrics.v1.HistogramOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.metrics.v1.Histogram.class, io.opentelemetry.proto.metrics.v1.Histogram.Builder.class); } // Construct using io.opentelemetry.proto.metrics.v1.Histogram.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDataPointsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (dataPointsBuilder_ == null) { dataPoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dataPointsBuilder_.clear(); } aggregationTemporality_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_descriptor; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.Histogram getDefaultInstanceForType() { return io.opentelemetry.proto.metrics.v1.Histogram.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.metrics.v1.Histogram build() { io.opentelemetry.proto.metrics.v1.Histogram result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.Histogram buildPartial() { io.opentelemetry.proto.metrics.v1.Histogram result = new io.opentelemetry.proto.metrics.v1.Histogram(this); int from_bitField0_ = bitField0_; if (dataPointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataPoints_ = java.util.Collections.unmodifiableList(dataPoints_); bitField0_ = (bitField0_ & ~0x00000001); } result.dataPoints_ = dataPoints_; } else { result.dataPoints_ = dataPointsBuilder_.build(); } result.aggregationTemporality_ = aggregationTemporality_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opentelemetry.proto.metrics.v1.Histogram) { return mergeFrom((io.opentelemetry.proto.metrics.v1.Histogram)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.metrics.v1.Histogram other) { if (other == io.opentelemetry.proto.metrics.v1.Histogram.getDefaultInstance()) return this; if (dataPointsBuilder_ == null) { if (!other.dataPoints_.isEmpty()) { if (dataPoints_.isEmpty()) { dataPoints_ = other.dataPoints_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataPointsIsMutable(); dataPoints_.addAll(other.dataPoints_); } onChanged(); } } else { if (!other.dataPoints_.isEmpty()) { if (dataPointsBuilder_.isEmpty()) { dataPointsBuilder_.dispose(); dataPointsBuilder_ = null; dataPoints_ = other.dataPoints_; bitField0_ = (bitField0_ & ~0x00000001); dataPointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataPointsFieldBuilder() : null; } else { dataPointsBuilder_.addAllMessages(other.dataPoints_); } } } if (other.aggregationTemporality_ != 0) { setAggregationTemporalityValue(other.getAggregationTemporalityValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opentelemetry.proto.metrics.v1.Histogram parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opentelemetry.proto.metrics.v1.Histogram) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List dataPoints_ = java.util.Collections.emptyList(); private void ensureDataPointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataPoints_ = new java.util.ArrayList(dataPoints_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.HistogramDataPoint, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder, io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder> dataPointsBuilder_; /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public java.util.List getDataPointsList() { if (dataPointsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataPoints_); } else { return dataPointsBuilder_.getMessageList(); } } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public int getDataPointsCount() { if (dataPointsBuilder_ == null) { return dataPoints_.size(); } else { return dataPointsBuilder_.getCount(); } } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public io.opentelemetry.proto.metrics.v1.HistogramDataPoint getDataPoints(int index) { if (dataPointsBuilder_ == null) { return dataPoints_.get(index); } else { return dataPointsBuilder_.getMessage(index); } } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder setDataPoints( int index, io.opentelemetry.proto.metrics.v1.HistogramDataPoint value) { if (dataPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataPointsIsMutable(); dataPoints_.set(index, value); onChanged(); } else { dataPointsBuilder_.setMessage(index, value); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder setDataPoints( int index, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder builderForValue) { if (dataPointsBuilder_ == null) { ensureDataPointsIsMutable(); dataPoints_.set(index, builderForValue.build()); onChanged(); } else { dataPointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder addDataPoints(io.opentelemetry.proto.metrics.v1.HistogramDataPoint value) { if (dataPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataPointsIsMutable(); dataPoints_.add(value); onChanged(); } else { dataPointsBuilder_.addMessage(value); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder addDataPoints( int index, io.opentelemetry.proto.metrics.v1.HistogramDataPoint value) { if (dataPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataPointsIsMutable(); dataPoints_.add(index, value); onChanged(); } else { dataPointsBuilder_.addMessage(index, value); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder addDataPoints( io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder builderForValue) { if (dataPointsBuilder_ == null) { ensureDataPointsIsMutable(); dataPoints_.add(builderForValue.build()); onChanged(); } else { dataPointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder addDataPoints( int index, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder builderForValue) { if (dataPointsBuilder_ == null) { ensureDataPointsIsMutable(); dataPoints_.add(index, builderForValue.build()); onChanged(); } else { dataPointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder addAllDataPoints( java.lang.Iterable values) { if (dataPointsBuilder_ == null) { ensureDataPointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataPoints_); onChanged(); } else { dataPointsBuilder_.addAllMessages(values); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder clearDataPoints() { if (dataPointsBuilder_ == null) { dataPoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataPointsBuilder_.clear(); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public Builder removeDataPoints(int index) { if (dataPointsBuilder_ == null) { ensureDataPointsIsMutable(); dataPoints_.remove(index); onChanged(); } else { dataPointsBuilder_.remove(index); } return this; } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder getDataPointsBuilder( int index) { return getDataPointsFieldBuilder().getBuilder(index); } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder getDataPointsOrBuilder( int index) { if (dataPointsBuilder_ == null) { return dataPoints_.get(index); } else { return dataPointsBuilder_.getMessageOrBuilder(index); } } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public java.util.List getDataPointsOrBuilderList() { if (dataPointsBuilder_ != null) { return dataPointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataPoints_); } } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder addDataPointsBuilder() { return getDataPointsFieldBuilder().addBuilder( io.opentelemetry.proto.metrics.v1.HistogramDataPoint.getDefaultInstance()); } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder addDataPointsBuilder( int index) { return getDataPointsFieldBuilder().addBuilder( index, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.getDefaultInstance()); } /** * repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1; */ public java.util.List getDataPointsBuilderList() { return getDataPointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.HistogramDataPoint, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder, io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder> getDataPointsFieldBuilder() { if (dataPointsBuilder_ == null) { dataPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.HistogramDataPoint, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder, io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder>( dataPoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataPoints_ = null; } return dataPointsBuilder_; } private int aggregationTemporality_ = 0; /** *
     * aggregation_temporality describes if the aggregator reports delta changes
     * since last report time, or cumulative changes since a fixed start time.
     * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return The enum numeric value on the wire for aggregationTemporality. */ @java.lang.Override public int getAggregationTemporalityValue() { return aggregationTemporality_; } /** *
     * aggregation_temporality describes if the aggregator reports delta changes
     * since last report time, or cumulative changes since a fixed start time.
     * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @param value The enum numeric value on the wire for aggregationTemporality to set. * @return This builder for chaining. */ public Builder setAggregationTemporalityValue(int value) { aggregationTemporality_ = value; onChanged(); return this; } /** *
     * aggregation_temporality describes if the aggregator reports delta changes
     * since last report time, or cumulative changes since a fixed start time.
     * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return The aggregationTemporality. */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.AggregationTemporality getAggregationTemporality() { @SuppressWarnings("deprecation") io.opentelemetry.proto.metrics.v1.AggregationTemporality result = io.opentelemetry.proto.metrics.v1.AggregationTemporality.valueOf(aggregationTemporality_); return result == null ? io.opentelemetry.proto.metrics.v1.AggregationTemporality.UNRECOGNIZED : result; } /** *
     * aggregation_temporality describes if the aggregator reports delta changes
     * since last report time, or cumulative changes since a fixed start time.
     * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @param value The aggregationTemporality to set. * @return This builder for chaining. */ public Builder setAggregationTemporality(io.opentelemetry.proto.metrics.v1.AggregationTemporality value) { if (value == null) { throw new NullPointerException(); } aggregationTemporality_ = value.getNumber(); onChanged(); return this; } /** *
     * aggregation_temporality describes if the aggregator reports delta changes
     * since last report time, or cumulative changes since a fixed start time.
     * 
* * .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return This builder for chaining. */ public Builder clearAggregationTemporality() { aggregationTemporality_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opentelemetry.proto.metrics.v1.Histogram) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.Histogram) private static final io.opentelemetry.proto.metrics.v1.Histogram DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.metrics.v1.Histogram(); } public static io.opentelemetry.proto.metrics.v1.Histogram getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Histogram parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Histogram(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.Histogram getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy