Package io.opencensus.proto.stats.v1
Class DistributionAggregation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
- io.opencensus.proto.stats.v1.DistributionAggregation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DistributionAggregationOrBuilder,Cloneable
- Enclosing class:
- DistributionAggregation
public static final class DistributionAggregation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder> implements DistributionAggregationOrBuilder
Protobuf typeopencensus.proto.stats.v1.DistributionAggregation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributionAggregation.BuilderaddAllBucketBounds(Iterable<? extends Double> values)A Distribution may optionally contain a histogram of the values in the population.DistributionAggregation.BuilderaddBucketBounds(double value)A Distribution may optionally contain a histogram of the values in the population.DistributionAggregation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionAggregationbuild()DistributionAggregationbuildPartial()DistributionAggregation.Builderclear()DistributionAggregation.BuilderclearBucketBounds()A Distribution may optionally contain a histogram of the values in the population.DistributionAggregation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DistributionAggregation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DistributionAggregation.Builderclone()doublegetBucketBounds(int index)A Distribution may optionally contain a histogram of the values in the population.intgetBucketBoundsCount()A Distribution may optionally contain a histogram of the values in the population.List<Double>getBucketBoundsList()A Distribution may optionally contain a histogram of the values in the population.DistributionAggregationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DistributionAggregation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DistributionAggregation.BuildermergeFrom(com.google.protobuf.Message other)DistributionAggregation.BuildermergeFrom(DistributionAggregation other)DistributionAggregation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DistributionAggregation.BuildersetBucketBounds(int index, double value)A Distribution may optionally contain a histogram of the values in the population.DistributionAggregation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionAggregation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DistributionAggregation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
clear
public DistributionAggregation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
getDefaultInstanceForType
public DistributionAggregation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DistributionAggregation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DistributionAggregation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DistributionAggregation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
setField
public DistributionAggregation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
clearField
public DistributionAggregation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
clearOneof
public DistributionAggregation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
setRepeatedField
public DistributionAggregation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
addRepeatedField
public DistributionAggregation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
mergeFrom
public DistributionAggregation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionAggregation.Builder>
-
mergeFrom
public DistributionAggregation.Builder mergeFrom(DistributionAggregation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
mergeFrom
public DistributionAggregation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionAggregation.Builder>- Throws:
IOException
-
getBucketBoundsList
public List<Double> getBucketBoundsList()
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Specified by:
getBucketBoundsListin interfaceDistributionAggregationOrBuilder- Returns:
- A list containing the bucketBounds.
-
getBucketBoundsCount
public int getBucketBoundsCount()
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Specified by:
getBucketBoundsCountin interfaceDistributionAggregationOrBuilder- Returns:
- The count of bucketBounds.
-
getBucketBounds
public double getBucketBounds(int index)
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Specified by:
getBucketBoundsin interfaceDistributionAggregationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bucketBounds at the given index.
-
setBucketBounds
public DistributionAggregation.Builder setBucketBounds(int index, double value)
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Parameters:
index- The index to set the value at.value- The bucketBounds to set.- Returns:
- This builder for chaining.
-
addBucketBounds
public DistributionAggregation.Builder addBucketBounds(double value)
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Parameters:
value- The bucketBounds to add.- Returns:
- This builder for chaining.
-
addAllBucketBounds
public DistributionAggregation.Builder addAllBucketBounds(Iterable<? extends Double> values)
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Parameters:
values- The bucketBounds to add.- Returns:
- This builder for chaining.
-
clearBucketBounds
public DistributionAggregation.Builder clearBucketBounds()
A Distribution may optionally contain a histogram of the values in the population. The bucket boundaries for that histogram are described by `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N) buckets. The boundaries for bucket index i are: (-infinity, bucket_bounds[i]) for i == 0 [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2 [bucket_bounds[i-1], +infinity) for i == N-1 i.e. an underflow bucket (number 0), zero or more finite buckets (1 through N - 2, and an overflow bucket (N - 1), with inclusive lower bounds and exclusive upper bounds. If `bucket_bounds` has no elements (zero size), then there is no histogram associated with the Distribution. If `bucket_bounds` has only one element, there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets. The values must be monotonically increasing.
repeated double bucket_bounds = 1;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DistributionAggregation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
mergeUnknownFields
public final DistributionAggregation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionAggregation.Builder>
-
-