Package com.google.api
Class Distribution.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
- com.google.api.Distribution.Builder
-
- All Implemented Interfaces:
DistributionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Distribution
public static final class Distribution.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder> implements DistributionOrBuilder
`Distribution` contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets. The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths. Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the `mean` and `sum_of_squared_deviation` fields meaningless.
Protobuf typegoogle.api.Distribution
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution.Builder
addAllBucketCounts(Iterable<? extends Long> values)
The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.Builder
addAllExemplars(Iterable<? extends Distribution.Exemplar> values)
Must be in increasing order of `value` field.Distribution.Builder
addBucketCounts(long value)
The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.Builder
addExemplars(int index, Distribution.Exemplar value)
Must be in increasing order of `value` field.Distribution.Builder
addExemplars(int index, Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.Distribution.Builder
addExemplars(Distribution.Exemplar value)
Must be in increasing order of `value` field.Distribution.Builder
addExemplars(Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.Distribution.Exemplar.Builder
addExemplarsBuilder()
Must be in increasing order of `value` field.Distribution.Exemplar.Builder
addExemplarsBuilder(int index)
Must be in increasing order of `value` field.Distribution.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Distribution
build()
Distribution
buildPartial()
Distribution.Builder
clear()
Distribution.Builder
clearBucketCounts()
The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.Builder
clearBucketOptions()
Defines the histogram bucket boundaries.Distribution.Builder
clearCount()
The number of values in the population.Distribution.Builder
clearExemplars()
Must be in increasing order of `value` field.Distribution.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Distribution.Builder
clearMean()
The arithmetic mean of the values in the population.Distribution.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Distribution.Builder
clearRange()
If specified, contains the range of the population values.Distribution.Builder
clearSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the population.Distribution.Builder
clone()
long
getBucketCounts(int index)
The number of values in each bucket of the histogram, as described in `bucket_options`.int
getBucketCountsCount()
The number of values in each bucket of the histogram, as described in `bucket_options`.List<Long>
getBucketCountsList()
The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.BucketOptions
getBucketOptions()
Defines the histogram bucket boundaries.Distribution.BucketOptions.Builder
getBucketOptionsBuilder()
Defines the histogram bucket boundaries.Distribution.BucketOptionsOrBuilder
getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries.long
getCount()
The number of values in the population.Distribution
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Distribution.Exemplar
getExemplars(int index)
Must be in increasing order of `value` field.Distribution.Exemplar.Builder
getExemplarsBuilder(int index)
Must be in increasing order of `value` field.List<Distribution.Exemplar.Builder>
getExemplarsBuilderList()
Must be in increasing order of `value` field.int
getExemplarsCount()
Must be in increasing order of `value` field.List<Distribution.Exemplar>
getExemplarsList()
Must be in increasing order of `value` field.Distribution.ExemplarOrBuilder
getExemplarsOrBuilder(int index)
Must be in increasing order of `value` field.List<? extends Distribution.ExemplarOrBuilder>
getExemplarsOrBuilderList()
Must be in increasing order of `value` field.double
getMean()
The arithmetic mean of the values in the population.Distribution.Range
getRange()
If specified, contains the range of the population values.Distribution.Range.Builder
getRangeBuilder()
If specified, contains the range of the population values.Distribution.RangeOrBuilder
getRangeOrBuilder()
If specified, contains the range of the population values.double
getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the population.boolean
hasBucketOptions()
Defines the histogram bucket boundaries.boolean
hasRange()
If specified, contains the range of the population values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Distribution.Builder
mergeBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.Distribution.Builder
mergeFrom(Distribution other)
Distribution.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Distribution.Builder
mergeFrom(com.google.protobuf.Message other)
Distribution.Builder
mergeRange(Distribution.Range value)
If specified, contains the range of the population values.Distribution.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Distribution.Builder
removeExemplars(int index)
Must be in increasing order of `value` field.Distribution.Builder
setBucketCounts(int index, long value)
The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.Builder
setBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries.Distribution.Builder
setBucketOptions(Distribution.BucketOptions.Builder builderForValue)
Defines the histogram bucket boundaries.Distribution.Builder
setCount(long value)
The number of values in the population.Distribution.Builder
setExemplars(int index, Distribution.Exemplar value)
Must be in increasing order of `value` field.Distribution.Builder
setExemplars(int index, Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.Distribution.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Distribution.Builder
setMean(double value)
The arithmetic mean of the values in the population.Distribution.Builder
setRange(Distribution.Range value)
If specified, contains the range of the population values.Distribution.Builder
setRange(Distribution.Range.Builder builderForValue)
If specified, contains the range of the population values.Distribution.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Distribution.Builder
setSumOfSquaredDeviation(double value)
The sum of squared deviations from the mean of the values in the population.Distribution.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clear
public Distribution.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDefaultInstanceForType
public Distribution getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setField
public Distribution.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearField
public Distribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearOneof
public Distribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setRepeatedField
public Distribution.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
addRepeatedField
public Distribution.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(Distribution other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
- Throws:
IOException
-
getCount
public long getCount()
The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided.
int64 count = 1;
- Specified by:
getCount
in interfaceDistributionOrBuilder
- Returns:
- The count.
-
setCount
public Distribution.Builder setCount(long value)
The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided.
int64 count = 1;
- Parameters:
value
- The count to set.- Returns:
- This builder for chaining.
-
clearCount
public Distribution.Builder clearCount()
The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided.
int64 count = 1;
- Returns:
- This builder for chaining.
-
getMean
public double getMean()
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;
- Specified by:
getMean
in interfaceDistributionOrBuilder
- Returns:
- The mean.
-
setMean
public Distribution.Builder setMean(double value)
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;
- Parameters:
value
- The mean to set.- Returns:
- This builder for chaining.
-
clearMean
public Distribution.Builder clearMean()
The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
double mean = 2;
- Returns:
- This builder for chaining.
-
getSumOfSquaredDeviation
public double getSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero.
double sum_of_squared_deviation = 3;
- Specified by:
getSumOfSquaredDeviation
in interfaceDistributionOrBuilder
- Returns:
- The sumOfSquaredDeviation.
-
setSumOfSquaredDeviation
public Distribution.Builder setSumOfSquaredDeviation(double value)
The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero.
double sum_of_squared_deviation = 3;
- Parameters:
value
- The sumOfSquaredDeviation to set.- Returns:
- This builder for chaining.
-
clearSumOfSquaredDeviation
public Distribution.Builder clearSumOfSquaredDeviation()
The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero.
double sum_of_squared_deviation = 3;
- Returns:
- This builder for chaining.
-
hasRange
public boolean hasRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
- Specified by:
hasRange
in interfaceDistributionOrBuilder
- Returns:
- Whether the range field is set.
-
getRange
public Distribution.Range getRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
- Specified by:
getRange
in interfaceDistributionOrBuilder
- Returns:
- The range.
-
setRange
public Distribution.Builder setRange(Distribution.Range value)
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
-
setRange
public Distribution.Builder setRange(Distribution.Range.Builder builderForValue)
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
-
mergeRange
public Distribution.Builder mergeRange(Distribution.Range value)
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
-
clearRange
public Distribution.Builder clearRange()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
-
getRangeBuilder
public Distribution.Range.Builder getRangeBuilder()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
-
getRangeOrBuilder
public Distribution.RangeOrBuilder getRangeOrBuilder()
If specified, contains the range of the population values. The field must not be present if the `count` is zero.
.google.api.Distribution.Range range = 4;
- Specified by:
getRangeOrBuilder
in interfaceDistributionOrBuilder
-
hasBucketOptions
public boolean hasBucketOptions()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
- Specified by:
hasBucketOptions
in interfaceDistributionOrBuilder
- Returns:
- Whether the bucketOptions field is set.
-
getBucketOptions
public Distribution.BucketOptions getBucketOptions()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
- Specified by:
getBucketOptions
in interfaceDistributionOrBuilder
- Returns:
- The bucketOptions.
-
setBucketOptions
public Distribution.Builder setBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
-
setBucketOptions
public Distribution.Builder setBucketOptions(Distribution.BucketOptions.Builder builderForValue)
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
-
mergeBucketOptions
public Distribution.Builder mergeBucketOptions(Distribution.BucketOptions value)
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
-
clearBucketOptions
public Distribution.Builder clearBucketOptions()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
-
getBucketOptionsBuilder
public Distribution.BucketOptions.Builder getBucketOptionsBuilder()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
-
getBucketOptionsOrBuilder
public Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder()
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
.google.api.Distribution.BucketOptions bucket_options = 6;
- Specified by:
getBucketOptionsOrBuilder
in interfaceDistributionOrBuilder
-
getBucketCountsList
public List<Long> getBucketCountsList()
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Specified by:
getBucketCountsList
in interfaceDistributionOrBuilder
- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
public int getBucketCountsCount()
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Specified by:
getBucketCountsCount
in interfaceDistributionOrBuilder
- Returns:
- The count of bucketCounts.
-
getBucketCounts
public long getBucketCounts(int index)
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Specified by:
getBucketCounts
in interfaceDistributionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
setBucketCounts
public Distribution.Builder setBucketCounts(int index, long value)
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Parameters:
index
- The index to set the value at.value
- The bucketCounts to set.- Returns:
- This builder for chaining.
-
addBucketCounts
public Distribution.Builder addBucketCounts(long value)
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Parameters:
value
- The bucketCounts to add.- Returns:
- This builder for chaining.
-
addAllBucketCounts
public Distribution.Builder addAllBucketCounts(Iterable<? extends Long> values)
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Parameters:
values
- The bucketCounts to add.- Returns:
- This builder for chaining.
-
clearBucketCounts
public Distribution.Builder clearBucketCounts()
The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
repeated int64 bucket_counts = 7;
- Returns:
- This builder for chaining.
-
getExemplarsList
public List<Distribution.Exemplar> getExemplarsList()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsList
in interfaceDistributionOrBuilder
-
getExemplarsCount
public int getExemplarsCount()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsCount
in interfaceDistributionOrBuilder
-
getExemplars
public Distribution.Exemplar getExemplars(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplars
in interfaceDistributionOrBuilder
-
setExemplars
public Distribution.Builder setExemplars(int index, Distribution.Exemplar value)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
setExemplars
public Distribution.Builder setExemplars(int index, Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addExemplars
public Distribution.Builder addExemplars(Distribution.Exemplar value)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addExemplars
public Distribution.Builder addExemplars(int index, Distribution.Exemplar value)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addExemplars
public Distribution.Builder addExemplars(Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addExemplars
public Distribution.Builder addExemplars(int index, Distribution.Exemplar.Builder builderForValue)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addAllExemplars
public Distribution.Builder addAllExemplars(Iterable<? extends Distribution.Exemplar> values)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
clearExemplars
public Distribution.Builder clearExemplars()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
removeExemplars
public Distribution.Builder removeExemplars(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsBuilder
public Distribution.Exemplar.Builder getExemplarsBuilder(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsOrBuilder
public Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsOrBuilder
in interfaceDistributionOrBuilder
-
getExemplarsOrBuilderList
public List<? extends Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsOrBuilderList
in interfaceDistributionOrBuilder
-
addExemplarsBuilder
public Distribution.Exemplar.Builder addExemplarsBuilder()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
addExemplarsBuilder
public Distribution.Exemplar.Builder addExemplarsBuilder(int index)
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
getExemplarsBuilderList
public List<Distribution.Exemplar.Builder> getExemplarsBuilderList()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
-
setUnknownFields
public final Distribution.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeUnknownFields
public final Distribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
-