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

io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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;

/**
 * 
 * HistogramDataPoint is a single data point in a timeseries that describes the
 * time-varying values of a Histogram. A Histogram contains summary statistics
 * for a population of values, it may optionally contain the distribution of
 * those values across a set of buckets.
 * If the histogram contains the distribution of values, then both
 * "explicit_bounds" and "bucket counts" fields must be defined.
 * If the histogram does not contain the distribution of values, then both
 * "explicit_bounds" and "bucket_counts" must be omitted and only "count" and
 * "sum" are known.
 * 
* * Protobuf type {@code opentelemetry.proto.metrics.v1.HistogramDataPoint} */ public final class HistogramDataPoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.HistogramDataPoint) HistogramDataPointOrBuilder { private static final long serialVersionUID = 0L; // Use HistogramDataPoint.newBuilder() to construct. private HistogramDataPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HistogramDataPoint() { attributes_ = java.util.Collections.emptyList(); bucketCounts_ = emptyLongList(); explicitBounds_ = emptyDoubleList(); exemplars_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HistogramDataPoint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HistogramDataPoint( 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 17: { startTimeUnixNano_ = input.readFixed64(); break; } case 25: { timeUnixNano_ = input.readFixed64(); break; } case 33: { count_ = input.readFixed64(); break; } case 41: { bitField0_ |= 0x00000001; sum_ = input.readDouble(); break; } case 49: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { bucketCounts_ = newLongList(); mutable_bitField0_ |= 0x00000004; } bucketCounts_.addLong(input.readFixed64()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { bucketCounts_ = newLongList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { bucketCounts_.addLong(input.readFixed64()); } input.popLimit(limit); break; } case 57: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { explicitBounds_ = newDoubleList(); mutable_bitField0_ |= 0x00000008; } explicitBounds_.addDouble(input.readDouble()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { explicitBounds_ = newDoubleList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { explicitBounds_.addDouble(input.readDouble()); } input.popLimit(limit); break; } case 66: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { exemplars_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } exemplars_.add( input.readMessage(io.opentelemetry.proto.metrics.v1.Exemplar.parser(), extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } attributes_.add( input.readMessage(io.opentelemetry.proto.common.v1.KeyValue.parser(), extensionRegistry)); break; } case 80: { flags_ = input.readUInt32(); break; } case 89: { bitField0_ |= 0x00000002; min_ = input.readDouble(); break; } case 97: { bitField0_ |= 0x00000004; max_ = input.readDouble(); 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_ & 0x00000004) != 0)) { bucketCounts_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000008) != 0)) { explicitBounds_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000010) != 0)) { exemplars_ = java.util.Collections.unmodifiableList(exemplars_); } if (((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } 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_HistogramDataPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_HistogramDataPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.metrics.v1.HistogramDataPoint.class, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder.class); } private int bitField0_; public static final int ATTRIBUTES_FIELD_NUMBER = 9; private java.util.List attributes_; /** *
   * 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 = 9; */ @java.lang.Override public java.util.List getAttributesList() { return attributes_; } /** *
   * 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 = 9; */ @java.lang.Override public java.util.List getAttributesOrBuilderList() { return attributes_; } /** *
   * 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 = 9; */ @java.lang.Override public int getAttributesCount() { return attributes_.size(); } /** *
   * 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 = 9; */ @java.lang.Override public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) { return attributes_.get(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 = 9; */ @java.lang.Override public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } public static final int START_TIME_UNIX_NANO_FIELD_NUMBER = 2; private long startTimeUnixNano_; /** *
   * 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; * @return The startTimeUnixNano. */ @java.lang.Override public long getStartTimeUnixNano() { return startTimeUnixNano_; } public static final int TIME_UNIX_NANO_FIELD_NUMBER = 3; private long timeUnixNano_; /** *
   * 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; * @return The timeUnixNano. */ @java.lang.Override public long getTimeUnixNano() { return timeUnixNano_; } public static final int COUNT_FIELD_NUMBER = 4; private long count_; /** *
   * count is the number of values in the population. Must be non-negative. This
   * value must be equal to the sum of the "count" fields in buckets if a
   * histogram is provided.
   * 
* * fixed64 count = 4; * @return The count. */ @java.lang.Override public long getCount() { return count_; } public static final int SUM_FIELD_NUMBER = 5; private double sum_; /** *
   * sum of the values in the population. If count is zero then this field
   * must be zero.
   * Note: Sum should only be filled out when measuring non-negative discrete
   * events, and is assumed to be monotonic over the values of these events.
   * Negative events *can* be recorded, but sum should not be filled out when
   * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
   * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
   * 
* * optional double sum = 5; * @return Whether the sum field is set. */ @java.lang.Override public boolean hasSum() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * sum of the values in the population. If count is zero then this field
   * must be zero.
   * Note: Sum should only be filled out when measuring non-negative discrete
   * events, and is assumed to be monotonic over the values of these events.
   * Negative events *can* be recorded, but sum should not be filled out when
   * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
   * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
   * 
* * optional double sum = 5; * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } public static final int BUCKET_COUNTS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.LongList bucketCounts_; /** *
   * bucket_counts is an optional field contains the count values of histogram
   * for each bucket.
   * The sum of the bucket_counts must equal the value in the count field.
   * The number of elements in bucket_counts array must be by one greater than
   * the number of elements in explicit_bounds array.
   * 
* * repeated fixed64 bucket_counts = 6; * @return A list containing the bucketCounts. */ @java.lang.Override public java.util.List getBucketCountsList() { return bucketCounts_; } /** *
   * bucket_counts is an optional field contains the count values of histogram
   * for each bucket.
   * The sum of the bucket_counts must equal the value in the count field.
   * The number of elements in bucket_counts array must be by one greater than
   * the number of elements in explicit_bounds array.
   * 
* * repeated fixed64 bucket_counts = 6; * @return The count of bucketCounts. */ public int getBucketCountsCount() { return bucketCounts_.size(); } /** *
   * bucket_counts is an optional field contains the count values of histogram
   * for each bucket.
   * The sum of the bucket_counts must equal the value in the count field.
   * The number of elements in bucket_counts array must be by one greater than
   * the number of elements in explicit_bounds array.
   * 
* * repeated fixed64 bucket_counts = 6; * @param index The index of the element to return. * @return The bucketCounts at the given index. */ public long getBucketCounts(int index) { return bucketCounts_.getLong(index); } private int bucketCountsMemoizedSerializedSize = -1; public static final int EXPLICIT_BOUNDS_FIELD_NUMBER = 7; private com.google.protobuf.Internal.DoubleList explicitBounds_; /** *
   * explicit_bounds specifies buckets with explicitly defined bounds for values.
   * The boundaries for bucket at index i are:
   * (-infinity, explicit_bounds[i]] for i == 0
   * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
   * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
   * The values in the explicit_bounds array must be strictly increasing.
   * Histogram buckets are inclusive of their upper boundary, except the last
   * bucket where the boundary is at infinity. This format is intentionally
   * compatible with the OpenMetrics histogram definition.
   * 
* * repeated double explicit_bounds = 7; * @return A list containing the explicitBounds. */ @java.lang.Override public java.util.List getExplicitBoundsList() { return explicitBounds_; } /** *
   * explicit_bounds specifies buckets with explicitly defined bounds for values.
   * The boundaries for bucket at index i are:
   * (-infinity, explicit_bounds[i]] for i == 0
   * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
   * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
   * The values in the explicit_bounds array must be strictly increasing.
   * Histogram buckets are inclusive of their upper boundary, except the last
   * bucket where the boundary is at infinity. This format is intentionally
   * compatible with the OpenMetrics histogram definition.
   * 
* * repeated double explicit_bounds = 7; * @return The count of explicitBounds. */ public int getExplicitBoundsCount() { return explicitBounds_.size(); } /** *
   * explicit_bounds specifies buckets with explicitly defined bounds for values.
   * The boundaries for bucket at index i are:
   * (-infinity, explicit_bounds[i]] for i == 0
   * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
   * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
   * The values in the explicit_bounds array must be strictly increasing.
   * Histogram buckets are inclusive of their upper boundary, except the last
   * bucket where the boundary is at infinity. This format is intentionally
   * compatible with the OpenMetrics histogram definition.
   * 
* * repeated double explicit_bounds = 7; * @param index The index of the element to return. * @return The explicitBounds at the given index. */ public double getExplicitBounds(int index) { return explicitBounds_.getDouble(index); } private int explicitBoundsMemoizedSerializedSize = -1; public static final int EXEMPLARS_FIELD_NUMBER = 8; private java.util.List exemplars_; /** *
   * (Optional) List of exemplars collected from
   * measurements that were used to form the data point
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ @java.lang.Override public java.util.List getExemplarsList() { return exemplars_; } /** *
   * (Optional) List of exemplars collected from
   * measurements that were used to form the data point
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ @java.lang.Override public java.util.List getExemplarsOrBuilderList() { return exemplars_; } /** *
   * (Optional) List of exemplars collected from
   * measurements that were used to form the data point
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ @java.lang.Override public int getExemplarsCount() { return exemplars_.size(); } /** *
   * (Optional) List of exemplars collected from
   * measurements that were used to form the data point
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.Exemplar getExemplars(int index) { return exemplars_.get(index); } /** *
   * (Optional) List of exemplars collected from
   * measurements that were used to form the data point
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder getExemplarsOrBuilder( int index) { return exemplars_.get(index); } public static final int FLAGS_FIELD_NUMBER = 10; private int flags_; /** *
   * Flags that apply to this specific data point.  See DataPointFlags
   * for the available flags and their meaning.
   * 
* * uint32 flags = 10; * @return The flags. */ @java.lang.Override public int getFlags() { return flags_; } public static final int MIN_FIELD_NUMBER = 11; private double min_; /** *
   * min is the minimum value over (start_time, end_time].
   * 
* * optional double min = 11; * @return Whether the min field is set. */ @java.lang.Override public boolean hasMin() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * min is the minimum value over (start_time, end_time].
   * 
* * optional double min = 11; * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 12; private double max_; /** *
   * max is the maximum value over (start_time, end_time].
   * 
* * optional double max = 12; * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * max is the maximum value over (start_time, end_time].
   * 
* * optional double max = 12; * @return The max. */ @java.lang.Override public double getMax() { return max_; } 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 { getSerializedSize(); if (startTimeUnixNano_ != 0L) { output.writeFixed64(2, startTimeUnixNano_); } if (timeUnixNano_ != 0L) { output.writeFixed64(3, timeUnixNano_); } if (count_ != 0L) { output.writeFixed64(4, count_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(5, sum_); } if (getBucketCountsList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(bucketCountsMemoizedSerializedSize); } for (int i = 0; i < bucketCounts_.size(); i++) { output.writeFixed64NoTag(bucketCounts_.getLong(i)); } if (getExplicitBoundsList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(explicitBoundsMemoizedSerializedSize); } for (int i = 0; i < explicitBounds_.size(); i++) { output.writeDoubleNoTag(explicitBounds_.getDouble(i)); } for (int i = 0; i < exemplars_.size(); i++) { output.writeMessage(8, exemplars_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(9, attributes_.get(i)); } if (flags_ != 0) { output.writeUInt32(10, flags_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(11, min_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeDouble(12, max_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTimeUnixNano_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(2, startTimeUnixNano_); } if (timeUnixNano_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(3, timeUnixNano_); } if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(4, count_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, sum_); } { int dataSize = 0; dataSize = 8 * getBucketCountsList().size(); size += dataSize; if (!getBucketCountsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } bucketCountsMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getExplicitBoundsList().size(); size += dataSize; if (!getExplicitBoundsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } explicitBoundsMemoizedSerializedSize = dataSize; } for (int i = 0; i < exemplars_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, exemplars_.get(i)); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, attributes_.get(i)); } if (flags_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, flags_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, min_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, max_); } 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.HistogramDataPoint)) { return super.equals(obj); } io.opentelemetry.proto.metrics.v1.HistogramDataPoint other = (io.opentelemetry.proto.metrics.v1.HistogramDataPoint) obj; if (!getAttributesList() .equals(other.getAttributesList())) return false; if (getStartTimeUnixNano() != other.getStartTimeUnixNano()) return false; if (getTimeUnixNano() != other.getTimeUnixNano()) return false; if (getCount() != other.getCount()) return false; if (hasSum() != other.hasSum()) return false; if (hasSum()) { if (java.lang.Double.doubleToLongBits(getSum()) != java.lang.Double.doubleToLongBits( other.getSum())) return false; } if (!getBucketCountsList() .equals(other.getBucketCountsList())) return false; if (!getExplicitBoundsList() .equals(other.getExplicitBoundsList())) return false; if (!getExemplarsList() .equals(other.getExemplarsList())) return false; if (getFlags() != other.getFlags()) return false; if (hasMin() != other.hasMin()) return false; if (hasMin()) { if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits( other.getMin())) return false; } if (hasMax() != other.hasMax()) return false; if (hasMax()) { if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits( other.getMax())) 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 (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } hash = (37 * hash) + START_TIME_UNIX_NANO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimeUnixNano()); hash = (37 * hash) + TIME_UNIX_NANO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeUnixNano()); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); if (hasSum()) { hash = (37 * hash) + SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSum())); } if (getBucketCountsCount() > 0) { hash = (37 * hash) + BUCKET_COUNTS_FIELD_NUMBER; hash = (53 * hash) + getBucketCountsList().hashCode(); } if (getExplicitBoundsCount() > 0) { hash = (37 * hash) + EXPLICIT_BOUNDS_FIELD_NUMBER; hash = (53 * hash) + getExplicitBoundsList().hashCode(); } if (getExemplarsCount() > 0) { hash = (37 * hash) + EXEMPLARS_FIELD_NUMBER; hash = (53 * hash) + getExemplarsList().hashCode(); } hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlags(); if (hasMin()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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.HistogramDataPoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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.HistogramDataPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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.HistogramDataPoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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.HistogramDataPoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint 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.HistogramDataPoint 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.HistogramDataPoint 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.HistogramDataPoint 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; } /** *
   * HistogramDataPoint is a single data point in a timeseries that describes the
   * time-varying values of a Histogram. A Histogram contains summary statistics
   * for a population of values, it may optionally contain the distribution of
   * those values across a set of buckets.
   * If the histogram contains the distribution of values, then both
   * "explicit_bounds" and "bucket counts" fields must be defined.
   * If the histogram does not contain the distribution of values, then both
   * "explicit_bounds" and "bucket_counts" must be omitted and only "count" and
   * "sum" are known.
   * 
* * Protobuf type {@code opentelemetry.proto.metrics.v1.HistogramDataPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.metrics.v1.HistogramDataPoint) io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_HistogramDataPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_HistogramDataPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.metrics.v1.HistogramDataPoint.class, io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder.class); } // Construct using io.opentelemetry.proto.metrics.v1.HistogramDataPoint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAttributesFieldBuilder(); getExemplarsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { attributesBuilder_.clear(); } startTimeUnixNano_ = 0L; timeUnixNano_ = 0L; count_ = 0L; sum_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); bucketCounts_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); explicitBounds_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000008); if (exemplarsBuilder_ == null) { exemplars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { exemplarsBuilder_.clear(); } flags_ = 0; min_ = 0D; bitField0_ = (bitField0_ & ~0x00000020); max_ = 0D; bitField0_ = (bitField0_ & ~0x00000040); 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_HistogramDataPoint_descriptor; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.HistogramDataPoint getDefaultInstanceForType() { return io.opentelemetry.proto.metrics.v1.HistogramDataPoint.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.metrics.v1.HistogramDataPoint build() { io.opentelemetry.proto.metrics.v1.HistogramDataPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.HistogramDataPoint buildPartial() { io.opentelemetry.proto.metrics.v1.HistogramDataPoint result = new io.opentelemetry.proto.metrics.v1.HistogramDataPoint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000001); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } result.startTimeUnixNano_ = startTimeUnixNano_; result.timeUnixNano_ = timeUnixNano_; result.count_ = count_; if (((from_bitField0_ & 0x00000002) != 0)) { result.sum_ = sum_; to_bitField0_ |= 0x00000001; } if (((bitField0_ & 0x00000004) != 0)) { bucketCounts_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.bucketCounts_ = bucketCounts_; if (((bitField0_ & 0x00000008) != 0)) { explicitBounds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); } result.explicitBounds_ = explicitBounds_; if (exemplarsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { exemplars_ = java.util.Collections.unmodifiableList(exemplars_); bitField0_ = (bitField0_ & ~0x00000010); } result.exemplars_ = exemplars_; } else { result.exemplars_ = exemplarsBuilder_.build(); } result.flags_ = flags_; if (((from_bitField0_ & 0x00000020) != 0)) { result.min_ = min_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.max_ = max_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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.HistogramDataPoint) { return mergeFrom((io.opentelemetry.proto.metrics.v1.HistogramDataPoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.metrics.v1.HistogramDataPoint other) { if (other == io.opentelemetry.proto.metrics.v1.HistogramDataPoint.getDefaultInstance()) return this; if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000001); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } if (other.getStartTimeUnixNano() != 0L) { setStartTimeUnixNano(other.getStartTimeUnixNano()); } if (other.getTimeUnixNano() != 0L) { setTimeUnixNano(other.getTimeUnixNano()); } if (other.getCount() != 0L) { setCount(other.getCount()); } if (other.hasSum()) { setSum(other.getSum()); } if (!other.bucketCounts_.isEmpty()) { if (bucketCounts_.isEmpty()) { bucketCounts_ = other.bucketCounts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureBucketCountsIsMutable(); bucketCounts_.addAll(other.bucketCounts_); } onChanged(); } if (!other.explicitBounds_.isEmpty()) { if (explicitBounds_.isEmpty()) { explicitBounds_ = other.explicitBounds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExplicitBoundsIsMutable(); explicitBounds_.addAll(other.explicitBounds_); } onChanged(); } if (exemplarsBuilder_ == null) { if (!other.exemplars_.isEmpty()) { if (exemplars_.isEmpty()) { exemplars_ = other.exemplars_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureExemplarsIsMutable(); exemplars_.addAll(other.exemplars_); } onChanged(); } } else { if (!other.exemplars_.isEmpty()) { if (exemplarsBuilder_.isEmpty()) { exemplarsBuilder_.dispose(); exemplarsBuilder_ = null; exemplars_ = other.exemplars_; bitField0_ = (bitField0_ & ~0x00000010); exemplarsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExemplarsFieldBuilder() : null; } else { exemplarsBuilder_.addAllMessages(other.exemplars_); } } } if (other.getFlags() != 0) { setFlags(other.getFlags()); } if (other.hasMin()) { setMin(other.getMin()); } if (other.hasMax()) { setMax(other.getMax()); } 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.HistogramDataPoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opentelemetry.proto.metrics.v1.HistogramDataPoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> attributesBuilder_; /** *
     * 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 = 9; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** *
     * 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 = 9; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** *
     * 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 = 9; */ public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(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 = 9; */ public Builder setAttributes( int index, io.opentelemetry.proto.common.v1.KeyValue value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** *
     * 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 = 9; */ public Builder setAttributes( int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 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 = 9; */ public Builder addAttributes(io.opentelemetry.proto.common.v1.KeyValue value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** *
     * 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 = 9; */ public Builder addAttributes( int index, io.opentelemetry.proto.common.v1.KeyValue value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** *
     * 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 = 9; */ public Builder addAttributes( io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 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 = 9; */ public Builder addAttributes( int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 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 = 9; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** *
     * 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 = 9; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** *
     * 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 = 9; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** *
     * 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 = 9; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(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 = 9; */ public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(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 = 9; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** *
     * 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 = 9; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * 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 = 9; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * 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 = 9; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder>( attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } private long startTimeUnixNano_ ; /** *
     * 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; * @return The startTimeUnixNano. */ @java.lang.Override public long getStartTimeUnixNano() { return startTimeUnixNano_; } /** *
     * 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; * @param value The startTimeUnixNano to set. * @return This builder for chaining. */ public Builder setStartTimeUnixNano(long value) { startTimeUnixNano_ = value; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearStartTimeUnixNano() { startTimeUnixNano_ = 0L; onChanged(); return this; } private long timeUnixNano_ ; /** *
     * 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; * @return The timeUnixNano. */ @java.lang.Override public long getTimeUnixNano() { return timeUnixNano_; } /** *
     * 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; * @param value The timeUnixNano to set. * @return This builder for chaining. */ public Builder setTimeUnixNano(long value) { timeUnixNano_ = value; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearTimeUnixNano() { timeUnixNano_ = 0L; onChanged(); return this; } private long count_ ; /** *
     * count is the number of values in the population. Must be non-negative. This
     * value must be equal to the sum of the "count" fields in buckets if a
     * histogram is provided.
     * 
* * fixed64 count = 4; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** *
     * count is the number of values in the population. Must be non-negative. This
     * value must be equal to the sum of the "count" fields in buckets if a
     * histogram is provided.
     * 
* * fixed64 count = 4; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** *
     * count is the number of values in the population. Must be non-negative. This
     * value must be equal to the sum of the "count" fields in buckets if a
     * histogram is provided.
     * 
* * fixed64 count = 4; * @return This builder for chaining. */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } private double sum_ ; /** *
     * sum of the values in the population. If count is zero then this field
     * must be zero.
     * Note: Sum should only be filled out when measuring non-negative discrete
     * events, and is assumed to be monotonic over the values of these events.
     * Negative events *can* be recorded, but sum should not be filled out when
     * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
     * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
     * 
* * optional double sum = 5; * @return Whether the sum field is set. */ @java.lang.Override public boolean hasSum() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * sum of the values in the population. If count is zero then this field
     * must be zero.
     * Note: Sum should only be filled out when measuring non-negative discrete
     * events, and is assumed to be monotonic over the values of these events.
     * Negative events *can* be recorded, but sum should not be filled out when
     * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
     * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
     * 
* * optional double sum = 5; * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } /** *
     * sum of the values in the population. If count is zero then this field
     * must be zero.
     * Note: Sum should only be filled out when measuring non-negative discrete
     * events, and is assumed to be monotonic over the values of these events.
     * Negative events *can* be recorded, but sum should not be filled out when
     * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
     * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
     * 
* * optional double sum = 5; * @param value The sum to set. * @return This builder for chaining. */ public Builder setSum(double value) { bitField0_ |= 0x00000002; sum_ = value; onChanged(); return this; } /** *
     * sum of the values in the population. If count is zero then this field
     * must be zero.
     * Note: Sum should only be filled out when measuring non-negative discrete
     * events, and is assumed to be monotonic over the values of these events.
     * Negative events *can* be recorded, but sum should not be filled out when
     * doing so.  This is specifically to enforce compatibility w/ OpenMetrics,
     * see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram
     * 
* * optional double sum = 5; * @return This builder for chaining. */ public Builder clearSum() { bitField0_ = (bitField0_ & ~0x00000002); sum_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList(); private void ensureBucketCountsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { bucketCounts_ = mutableCopy(bucketCounts_); bitField0_ |= 0x00000004; } } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @return A list containing the bucketCounts. */ public java.util.List getBucketCountsList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(bucketCounts_) : bucketCounts_; } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @return The count of bucketCounts. */ public int getBucketCountsCount() { return bucketCounts_.size(); } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @param index The index of the element to return. * @return The bucketCounts at the given index. */ public long getBucketCounts(int index) { return bucketCounts_.getLong(index); } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @param index The index to set the value at. * @param value The bucketCounts to set. * @return This builder for chaining. */ public Builder setBucketCounts( int index, long value) { ensureBucketCountsIsMutable(); bucketCounts_.setLong(index, value); onChanged(); return this; } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @param value The bucketCounts to add. * @return This builder for chaining. */ public Builder addBucketCounts(long value) { ensureBucketCountsIsMutable(); bucketCounts_.addLong(value); onChanged(); return this; } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @param values The bucketCounts to add. * @return This builder for chaining. */ public Builder addAllBucketCounts( java.lang.Iterable values) { ensureBucketCountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bucketCounts_); onChanged(); return this; } /** *
     * bucket_counts is an optional field contains the count values of histogram
     * for each bucket.
     * The sum of the bucket_counts must equal the value in the count field.
     * The number of elements in bucket_counts array must be by one greater than
     * the number of elements in explicit_bounds array.
     * 
* * repeated fixed64 bucket_counts = 6; * @return This builder for chaining. */ public Builder clearBucketCounts() { bucketCounts_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList explicitBounds_ = emptyDoubleList(); private void ensureExplicitBoundsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { explicitBounds_ = mutableCopy(explicitBounds_); bitField0_ |= 0x00000008; } } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @return A list containing the explicitBounds. */ public java.util.List getExplicitBoundsList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(explicitBounds_) : explicitBounds_; } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @return The count of explicitBounds. */ public int getExplicitBoundsCount() { return explicitBounds_.size(); } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @param index The index of the element to return. * @return The explicitBounds at the given index. */ public double getExplicitBounds(int index) { return explicitBounds_.getDouble(index); } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @param index The index to set the value at. * @param value The explicitBounds to set. * @return This builder for chaining. */ public Builder setExplicitBounds( int index, double value) { ensureExplicitBoundsIsMutable(); explicitBounds_.setDouble(index, value); onChanged(); return this; } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @param value The explicitBounds to add. * @return This builder for chaining. */ public Builder addExplicitBounds(double value) { ensureExplicitBoundsIsMutable(); explicitBounds_.addDouble(value); onChanged(); return this; } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @param values The explicitBounds to add. * @return This builder for chaining. */ public Builder addAllExplicitBounds( java.lang.Iterable values) { ensureExplicitBoundsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, explicitBounds_); onChanged(); return this; } /** *
     * explicit_bounds specifies buckets with explicitly defined bounds for values.
     * The boundaries for bucket at index i are:
     * (-infinity, explicit_bounds[i]] for i == 0
     * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
     * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
     * The values in the explicit_bounds array must be strictly increasing.
     * Histogram buckets are inclusive of their upper boundary, except the last
     * bucket where the boundary is at infinity. This format is intentionally
     * compatible with the OpenMetrics histogram definition.
     * 
* * repeated double explicit_bounds = 7; * @return This builder for chaining. */ public Builder clearExplicitBounds() { explicitBounds_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List exemplars_ = java.util.Collections.emptyList(); private void ensureExemplarsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { exemplars_ = new java.util.ArrayList(exemplars_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder> exemplarsBuilder_; /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public java.util.List getExemplarsList() { if (exemplarsBuilder_ == null) { return java.util.Collections.unmodifiableList(exemplars_); } else { return exemplarsBuilder_.getMessageList(); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public int getExemplarsCount() { if (exemplarsBuilder_ == null) { return exemplars_.size(); } else { return exemplarsBuilder_.getCount(); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public io.opentelemetry.proto.metrics.v1.Exemplar getExemplars(int index) { if (exemplarsBuilder_ == null) { return exemplars_.get(index); } else { return exemplarsBuilder_.getMessage(index); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder setExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.set(index, value); onChanged(); } else { exemplarsBuilder_.setMessage(index, value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder setExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.set(index, builderForValue.build()); onChanged(); } else { exemplarsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder addExemplars(io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.add(value); onChanged(); } else { exemplarsBuilder_.addMessage(value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder addExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.add(index, value); onChanged(); } else { exemplarsBuilder_.addMessage(index, value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder addExemplars( io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(builderForValue.build()); onChanged(); } else { exemplarsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder addExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(index, builderForValue.build()); onChanged(); } else { exemplarsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder addAllExemplars( java.lang.Iterable values) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exemplars_); onChanged(); } else { exemplarsBuilder_.addAllMessages(values); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder clearExemplars() { if (exemplarsBuilder_ == null) { exemplars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { exemplarsBuilder_.clear(); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public Builder removeExemplars(int index) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.remove(index); onChanged(); } else { exemplarsBuilder_.remove(index); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder getExemplarsBuilder( int index) { return getExemplarsFieldBuilder().getBuilder(index); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder getExemplarsOrBuilder( int index) { if (exemplarsBuilder_ == null) { return exemplars_.get(index); } else { return exemplarsBuilder_.getMessageOrBuilder(index); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public java.util.List getExemplarsOrBuilderList() { if (exemplarsBuilder_ != null) { return exemplarsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exemplars_); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder addExemplarsBuilder() { return getExemplarsFieldBuilder().addBuilder( io.opentelemetry.proto.metrics.v1.Exemplar.getDefaultInstance()); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder addExemplarsBuilder( int index) { return getExemplarsFieldBuilder().addBuilder( index, io.opentelemetry.proto.metrics.v1.Exemplar.getDefaultInstance()); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; */ public java.util.List getExemplarsBuilderList() { return getExemplarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder> getExemplarsFieldBuilder() { if (exemplarsBuilder_ == null) { exemplarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder>( exemplars_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); exemplars_ = null; } return exemplarsBuilder_; } private int flags_ ; /** *
     * Flags that apply to this specific data point.  See DataPointFlags
     * for the available flags and their meaning.
     * 
* * uint32 flags = 10; * @return The flags. */ @java.lang.Override public int getFlags() { return flags_; } /** *
     * Flags that apply to this specific data point.  See DataPointFlags
     * for the available flags and their meaning.
     * 
* * uint32 flags = 10; * @param value The flags to set. * @return This builder for chaining. */ public Builder setFlags(int value) { flags_ = value; onChanged(); return this; } /** *
     * Flags that apply to this specific data point.  See DataPointFlags
     * for the available flags and their meaning.
     * 
* * uint32 flags = 10; * @return This builder for chaining. */ public Builder clearFlags() { flags_ = 0; onChanged(); return this; } private double min_ ; /** *
     * min is the minimum value over (start_time, end_time].
     * 
* * optional double min = 11; * @return Whether the min field is set. */ @java.lang.Override public boolean hasMin() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * min is the minimum value over (start_time, end_time].
     * 
* * optional double min = 11; * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** *
     * min is the minimum value over (start_time, end_time].
     * 
* * optional double min = 11; * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { bitField0_ |= 0x00000020; min_ = value; onChanged(); return this; } /** *
     * min is the minimum value over (start_time, end_time].
     * 
* * optional double min = 11; * @return This builder for chaining. */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000020); min_ = 0D; onChanged(); return this; } private double max_ ; /** *
     * max is the maximum value over (start_time, end_time].
     * 
* * optional double max = 12; * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * max is the maximum value over (start_time, end_time].
     * 
* * optional double max = 12; * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** *
     * max is the maximum value over (start_time, end_time].
     * 
* * optional double max = 12; * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { bitField0_ |= 0x00000040; max_ = value; onChanged(); return this; } /** *
     * max is the maximum value over (start_time, end_time].
     * 
* * optional double max = 12; * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000040); max_ = 0D; 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.HistogramDataPoint) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.HistogramDataPoint) private static final io.opentelemetry.proto.metrics.v1.HistogramDataPoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.metrics.v1.HistogramDataPoint(); } public static io.opentelemetry.proto.metrics.v1.HistogramDataPoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HistogramDataPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HistogramDataPoint(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.HistogramDataPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy