Class IntHistogramDataPoint.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • clear

        public IntHistogramDataPoint.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • getDefaultInstanceForType

        public IntHistogramDataPoint getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IntHistogramDataPoint build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IntHistogramDataPoint buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IntHistogramDataPoint.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • clearField

        public IntHistogramDataPoint.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • clearOneof

        public IntHistogramDataPoint.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • setRepeatedField

        public IntHistogramDataPoint.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • addRepeatedField

        public IntHistogramDataPoint.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • mergeFrom

        public IntHistogramDataPoint.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IntHistogramDataPoint.Builder>
        Throws:
        IOException
      • getLabelsCount

        public int getLabelsCount()
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
        Specified by:
        getLabelsCount in interface IntHistogramDataPointOrBuilder
      • setLabels

        public IntHistogramDataPoint.Builder setLabels​(int index,
                                                       StringKeyValue value)
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • addLabels

        public IntHistogramDataPoint.Builder addLabels​(int index,
                                                       StringKeyValue value)
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • clearLabels

        public IntHistogramDataPoint.Builder clearLabels()
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • removeLabels

        public IntHistogramDataPoint.Builder removeLabels​(int index)
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • getLabelsBuilder

        public StringKeyValue.Builder getLabelsBuilder​(int index)
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • addLabelsBuilder

        public StringKeyValue.Builder addLabelsBuilder()
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • addLabelsBuilder

        public StringKeyValue.Builder addLabelsBuilder​(int index)
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • getLabelsBuilderList

        public List<StringKeyValue.Builder> getLabelsBuilderList()
         The set of labels that uniquely identify this timeseries.
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;
      • getStartTimeUnixNano

        public long getStartTimeUnixNano()
         StartTimeUnixNano is optional but strongly encouraged, see the
         the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 start_time_unix_nano = 2;
        Specified by:
        getStartTimeUnixNano in interface IntHistogramDataPointOrBuilder
      • setStartTimeUnixNano

        public IntHistogramDataPoint.Builder setStartTimeUnixNano​(long value)
         StartTimeUnixNano is optional but strongly encouraged, see the
         the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 start_time_unix_nano = 2;
      • clearStartTimeUnixNano

        public IntHistogramDataPoint.Builder clearStartTimeUnixNano()
         StartTimeUnixNano is optional but strongly encouraged, see the
         the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 start_time_unix_nano = 2;
      • getTimeUnixNano

        public long getTimeUnixNano()
         TimeUnixNano is required, see the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 3;
        Specified by:
        getTimeUnixNano in interface IntHistogramDataPointOrBuilder
      • setTimeUnixNano

        public IntHistogramDataPoint.Builder setTimeUnixNano​(long value)
         TimeUnixNano is required, see the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 3;
      • clearTimeUnixNano

        public IntHistogramDataPoint.Builder clearTimeUnixNano()
         TimeUnixNano is required, see the detailed comments above Metric.
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 3;
      • getCount

        public long getCount()
         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;
        Specified by:
        getCount in interface IntHistogramDataPointOrBuilder
      • setCount

        public IntHistogramDataPoint.Builder setCount​(long value)
         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;
      • clearCount

        public IntHistogramDataPoint.Builder clearCount()
         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;
      • getSum

        public long getSum()
         sum of the values in the population. If count is zero then this field
         must be zero. This value must be equal to the sum of the "sum" fields in
         buckets if a histogram is provided.
         
        sfixed64 sum = 5;
        Specified by:
        getSum in interface IntHistogramDataPointOrBuilder
      • setSum

        public IntHistogramDataPoint.Builder setSum​(long value)
         sum of the values in the population. If count is zero then this field
         must be zero. This value must be equal to the sum of the "sum" fields in
         buckets if a histogram is provided.
         
        sfixed64 sum = 5;
      • clearSum

        public IntHistogramDataPoint.Builder clearSum()
         sum of the values in the population. If count is zero then this field
         must be zero. This value must be equal to the sum of the "sum" fields in
         buckets if a histogram is provided.
         
        sfixed64 sum = 5;
      • getBucketCountsList

        public List<Long> getBucketCountsList()
         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;
        Specified by:
        getBucketCountsList in interface IntHistogramDataPointOrBuilder
      • getBucketCountsCount

        public int getBucketCountsCount()
         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;
        Specified by:
        getBucketCountsCount in interface IntHistogramDataPointOrBuilder
      • getBucketCounts

        public long getBucketCounts​(int 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;
        Specified by:
        getBucketCounts in interface IntHistogramDataPointOrBuilder
      • setBucketCounts

        public IntHistogramDataPoint.Builder setBucketCounts​(int index,
                                                             long value)
         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;
      • addBucketCounts

        public IntHistogramDataPoint.Builder addBucketCounts​(long value)
         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;
      • addAllBucketCounts

        public IntHistogramDataPoint.Builder addAllBucketCounts​(Iterable<? extends Long> values)
         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;
      • clearBucketCounts

        public IntHistogramDataPoint.Builder clearBucketCounts()
         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;
      • getExplicitBoundsList

        public List<Double> getExplicitBoundsList()
         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;
        Specified by:
        getExplicitBoundsList in interface IntHistogramDataPointOrBuilder
      • getExplicitBoundsCount

        public int getExplicitBoundsCount()
         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;
        Specified by:
        getExplicitBoundsCount in interface IntHistogramDataPointOrBuilder
      • getExplicitBounds

        public double getExplicitBounds​(int 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;
        Specified by:
        getExplicitBounds in interface IntHistogramDataPointOrBuilder
      • setExplicitBounds

        public IntHistogramDataPoint.Builder setExplicitBounds​(int index,
                                                               double value)
         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;
      • addExplicitBounds

        public IntHistogramDataPoint.Builder addExplicitBounds​(double value)
         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;
      • addAllExplicitBounds

        public IntHistogramDataPoint.Builder addAllExplicitBounds​(Iterable<? extends Double> values)
         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;
      • clearExplicitBounds

        public IntHistogramDataPoint.Builder clearExplicitBounds()
         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;
      • getExemplarsCount

        public int getExemplarsCount()
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
        Specified by:
        getExemplarsCount in interface IntHistogramDataPointOrBuilder
      • getExemplars

        public IntExemplar getExemplars​(int index)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
        Specified by:
        getExemplars in interface IntHistogramDataPointOrBuilder
      • setExemplars

        public IntHistogramDataPoint.Builder setExemplars​(int index,
                                                          IntExemplar value)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • setExemplars

        public IntHistogramDataPoint.Builder setExemplars​(int index,
                                                          IntExemplar.Builder builderForValue)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplars

        public IntHistogramDataPoint.Builder addExemplars​(IntExemplar value)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplars

        public IntHistogramDataPoint.Builder addExemplars​(int index,
                                                          IntExemplar value)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplars

        public IntHistogramDataPoint.Builder addExemplars​(IntExemplar.Builder builderForValue)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplars

        public IntHistogramDataPoint.Builder addExemplars​(int index,
                                                          IntExemplar.Builder builderForValue)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addAllExemplars

        public IntHistogramDataPoint.Builder addAllExemplars​(Iterable<? extends IntExemplar> values)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • clearExemplars

        public IntHistogramDataPoint.Builder clearExemplars()
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • removeExemplars

        public IntHistogramDataPoint.Builder removeExemplars​(int index)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • getExemplarsBuilder

        public IntExemplar.Builder getExemplarsBuilder​(int index)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplarsBuilder

        public IntExemplar.Builder addExemplarsBuilder()
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • addExemplarsBuilder

        public IntExemplar.Builder addExemplarsBuilder​(int index)
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • getExemplarsBuilderList

        public List<IntExemplar.Builder> getExemplarsBuilderList()
         (Optional) List of exemplars collected from
         measurements that were used to form the data point
         
        repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 8;
      • setUnknownFields

        public final IntHistogramDataPoint.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>
      • mergeUnknownFields

        public final IntHistogramDataPoint.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntHistogramDataPoint.Builder>