Package com.google.api
Class Distribution.BucketOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
com.google.api.Distribution.BucketOptions.Builder
- All Implemented Interfaces:
Distribution.BucketOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Distribution.BucketOptions
public static final class Distribution.BucketOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
implements Distribution.BucketOptionsOrBuilder
`BucketOptions` describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. `BucketOptions` does not include the number of values in each bucket. A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.Protobuf type
google.api.Distribution.BucketOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The explicit buckets.The exponential buckets.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The linear bucket.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe explicit buckets.The explicit buckets.The explicit buckets.The exponential buckets.The exponential buckets.The exponential buckets.The linear bucket.The linear bucket.The linear bucket.booleanThe explicit buckets.booleanThe exponential buckets.booleanThe linear bucket.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe explicit buckets.The exponential buckets.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The linear bucket.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The explicit buckets.setExplicitBuckets(Distribution.BucketOptions.Explicit.Builder builderForValue) The explicit buckets.The exponential buckets.setExponentialBuckets(Distribution.BucketOptions.Exponential.Builder builderForValue) The exponential buckets.The linear bucket.setLinearBuckets(Distribution.BucketOptions.Linear.Builder builderForValue) The linear bucket.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.BucketOptions.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.BucketOptions.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.BucketOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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.BucketOptions.Builder>
-
setField
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
clearField
public Distribution.BucketOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
clearOneof
public Distribution.BucketOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
setRepeatedField
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
addRepeatedField
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.BucketOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
mergeFrom
public Distribution.BucketOptions.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.BucketOptions.Builder>- Throws:
IOException
-
getOptionsCase
- Specified by:
getOptionsCasein interfaceDistribution.BucketOptionsOrBuilder
-
clearOptions
-
hasLinearBuckets
public boolean hasLinearBuckets()The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;- Specified by:
hasLinearBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- Whether the linearBuckets field is set.
-
getLinearBuckets
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;- Specified by:
getLinearBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- The linearBuckets.
-
setLinearBuckets
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1; -
setLinearBuckets
public Distribution.BucketOptions.Builder setLinearBuckets(Distribution.BucketOptions.Linear.Builder builderForValue) The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1; -
mergeLinearBuckets
public Distribution.BucketOptions.Builder mergeLinearBuckets(Distribution.BucketOptions.Linear value) The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1; -
clearLinearBuckets
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1; -
getLinearBucketsBuilder
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1; -
getLinearBucketsOrBuilder
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;- Specified by:
getLinearBucketsOrBuilderin interfaceDistribution.BucketOptionsOrBuilder
-
hasExponentialBuckets
public boolean hasExponentialBuckets()The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;- Specified by:
hasExponentialBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- Whether the exponentialBuckets field is set.
-
getExponentialBuckets
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;- Specified by:
getExponentialBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- The exponentialBuckets.
-
setExponentialBuckets
public Distribution.BucketOptions.Builder setExponentialBuckets(Distribution.BucketOptions.Exponential value) The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; -
setExponentialBuckets
public Distribution.BucketOptions.Builder setExponentialBuckets(Distribution.BucketOptions.Exponential.Builder builderForValue) The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; -
mergeExponentialBuckets
public Distribution.BucketOptions.Builder mergeExponentialBuckets(Distribution.BucketOptions.Exponential value) The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; -
clearExponentialBuckets
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; -
getExponentialBucketsBuilder
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; -
getExponentialBucketsOrBuilder
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;- Specified by:
getExponentialBucketsOrBuilderin interfaceDistribution.BucketOptionsOrBuilder
-
hasExplicitBuckets
public boolean hasExplicitBuckets()The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;- Specified by:
hasExplicitBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- Whether the explicitBuckets field is set.
-
getExplicitBuckets
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;- Specified by:
getExplicitBucketsin interfaceDistribution.BucketOptionsOrBuilder- Returns:
- The explicitBuckets.
-
setExplicitBuckets
public Distribution.BucketOptions.Builder setExplicitBuckets(Distribution.BucketOptions.Explicit value) The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; -
setExplicitBuckets
public Distribution.BucketOptions.Builder setExplicitBuckets(Distribution.BucketOptions.Explicit.Builder builderForValue) The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; -
mergeExplicitBuckets
public Distribution.BucketOptions.Builder mergeExplicitBuckets(Distribution.BucketOptions.Explicit value) The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; -
clearExplicitBuckets
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; -
getExplicitBucketsBuilder
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; -
getExplicitBucketsOrBuilder
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;- Specified by:
getExplicitBucketsOrBuilderin interfaceDistribution.BucketOptionsOrBuilder
-
setUnknownFields
public final Distribution.BucketOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
mergeUnknownFields
public final Distribution.BucketOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-