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.BuilderaddAllBucketCounts(Iterable<? extends Long> values)The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.BuilderaddAllExemplars(Iterable<? extends Distribution.Exemplar> values)Must be in increasing order of `value` field.Distribution.BuilderaddBucketCounts(long value)The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.BuilderaddExemplars(int index, Distribution.Exemplar value)Must be in increasing order of `value` field.Distribution.BuilderaddExemplars(int index, Distribution.Exemplar.Builder builderForValue)Must be in increasing order of `value` field.Distribution.BuilderaddExemplars(Distribution.Exemplar value)Must be in increasing order of `value` field.Distribution.BuilderaddExemplars(Distribution.Exemplar.Builder builderForValue)Must be in increasing order of `value` field.Distribution.Exemplar.BuilderaddExemplarsBuilder()Must be in increasing order of `value` field.Distribution.Exemplar.BuilderaddExemplarsBuilder(int index)Must be in increasing order of `value` field.Distribution.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distributionbuild()DistributionbuildPartial()Distribution.Builderclear()Distribution.BuilderclearBucketCounts()The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.BuilderclearBucketOptions()Defines the histogram bucket boundaries.Distribution.BuilderclearCount()The number of values in the population.Distribution.BuilderclearExemplars()Must be in increasing order of `value` field.Distribution.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Distribution.BuilderclearMean()The arithmetic mean of the values in the population.Distribution.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Distribution.BuilderclearRange()If specified, contains the range of the population values.Distribution.BuilderclearSumOfSquaredDeviation()The sum of squared deviations from the mean of the values in the population.Distribution.Builderclone()longgetBucketCounts(int index)The number of values in each bucket of the histogram, as described in `bucket_options`.intgetBucketCountsCount()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.BucketOptionsgetBucketOptions()Defines the histogram bucket boundaries.Distribution.BucketOptions.BuildergetBucketOptionsBuilder()Defines the histogram bucket boundaries.Distribution.BucketOptionsOrBuildergetBucketOptionsOrBuilder()Defines the histogram bucket boundaries.longgetCount()The number of values in the population.DistributiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Distribution.ExemplargetExemplars(int index)Must be in increasing order of `value` field.Distribution.Exemplar.BuildergetExemplarsBuilder(int index)Must be in increasing order of `value` field.List<Distribution.Exemplar.Builder>getExemplarsBuilderList()Must be in increasing order of `value` field.intgetExemplarsCount()Must be in increasing order of `value` field.List<Distribution.Exemplar>getExemplarsList()Must be in increasing order of `value` field.Distribution.ExemplarOrBuildergetExemplarsOrBuilder(int index)Must be in increasing order of `value` field.List<? extends Distribution.ExemplarOrBuilder>getExemplarsOrBuilderList()Must be in increasing order of `value` field.doublegetMean()The arithmetic mean of the values in the population.Distribution.RangegetRange()If specified, contains the range of the population values.Distribution.Range.BuildergetRangeBuilder()If specified, contains the range of the population values.Distribution.RangeOrBuildergetRangeOrBuilder()If specified, contains the range of the population values.doublegetSumOfSquaredDeviation()The sum of squared deviations from the mean of the values in the population.booleanhasBucketOptions()Defines the histogram bucket boundaries.booleanhasRange()If specified, contains the range of the population values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Distribution.BuildermergeBucketOptions(Distribution.BucketOptions value)Defines the histogram bucket boundaries.Distribution.BuildermergeFrom(Distribution other)Distribution.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Distribution.BuildermergeFrom(com.google.protobuf.Message other)Distribution.BuildermergeRange(Distribution.Range value)If specified, contains the range of the population values.Distribution.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Distribution.BuilderremoveExemplars(int index)Must be in increasing order of `value` field.Distribution.BuildersetBucketCounts(int index, long value)The number of values in each bucket of the histogram, as described in `bucket_options`.Distribution.BuildersetBucketOptions(Distribution.BucketOptions value)Defines the histogram bucket boundaries.Distribution.BuildersetBucketOptions(Distribution.BucketOptions.Builder builderForValue)Defines the histogram bucket boundaries.Distribution.BuildersetCount(long value)The number of values in the population.Distribution.BuildersetExemplars(int index, Distribution.Exemplar value)Must be in increasing order of `value` field.Distribution.BuildersetExemplars(int index, Distribution.Exemplar.Builder builderForValue)Must be in increasing order of `value` field.Distribution.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distribution.BuildersetMean(double value)The arithmetic mean of the values in the population.Distribution.BuildersetRange(Distribution.Range value)If specified, contains the range of the population values.Distribution.BuildersetRange(Distribution.Range.Builder builderForValue)If specified, contains the range of the population values.Distribution.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Distribution.BuildersetSumOfSquaredDeviation(double value)The sum of squared deviations from the mean of the values in the population.Distribution.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clear
public Distribution.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<Distribution.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<Distribution.Builder>
-
getDefaultInstanceForType
public Distribution getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.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<Distribution.Builder>
-
setField
public Distribution.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<Distribution.Builder>
-
clearField
public Distribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearOneof
public Distribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setRepeatedField
public Distribution.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<Distribution.Builder>
-
addRepeatedField
public Distribution.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<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(Distribution other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getCountin 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:
getMeanin 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:
getSumOfSquaredDeviationin 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:
hasRangein 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:
getRangein 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:
getRangeOrBuilderin 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:
hasBucketOptionsin 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:
getBucketOptionsin 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:
getBucketOptionsOrBuilderin 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:
getBucketCountsListin 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:
getBucketCountsCountin 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:
getBucketCountsin 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:
getExemplarsListin interfaceDistributionOrBuilder
-
getExemplarsCount
public int getExemplarsCount()
Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsCountin 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:
getExemplarsin 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:
getExemplarsOrBuilderin 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:
getExemplarsOrBuilderListin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeUnknownFields
public final Distribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
-