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.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
- com.google.api.Distribution.BucketOptions.Builder
-
- All Implemented Interfaces:
Distribution.BucketOptionsOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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 typegoogle.api.Distribution.BucketOptions
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
clear
public Distribution.BucketOptions.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.BucketOptions.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.GeneratedMessage.Builder<Distribution.BucketOptions.Builder>
-
getDefaultInstanceForType
public Distribution.BucketOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution.BucketOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution.BucketOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
setField
public Distribution.BucketOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
clearField
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
clearOneof
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
setRepeatedField
public Distribution.BucketOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
addRepeatedField
public Distribution.BucketOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.BucketOptions.Builder>
-
mergeFrom
public Distribution.BucketOptions.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.BucketOptions.Builder>
-
mergeFrom
public Distribution.BucketOptions.Builder mergeFrom(Distribution.BucketOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Distribution.BucketOptions.Builder>
-
mergeFrom
public Distribution.BucketOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.BucketOptions.Builder>
- Throws:
java.io.IOException
-
getOptionsCase
public Distribution.BucketOptions.OptionsCase getOptionsCase()
- Specified by:
getOptionsCase
in interfaceDistribution.BucketOptionsOrBuilder
-
clearOptions
public Distribution.BucketOptions.Builder clearOptions()
-
hasLinearBuckets
public boolean hasLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
- Specified by:
hasLinearBuckets
in interfaceDistribution.BucketOptionsOrBuilder
- Returns:
- Whether the linearBuckets field is set.
-
getLinearBuckets
public Distribution.BucketOptions.Linear getLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
- Specified by:
getLinearBuckets
in interfaceDistribution.BucketOptionsOrBuilder
- Returns:
- The linearBuckets.
-
setLinearBuckets
public Distribution.BucketOptions.Builder setLinearBuckets(Distribution.BucketOptions.Linear value)
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
public Distribution.BucketOptions.Builder clearLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
-
getLinearBucketsBuilder
public Distribution.BucketOptions.Linear.Builder getLinearBucketsBuilder()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
-
getLinearBucketsOrBuilder
public Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
- Specified by:
getLinearBucketsOrBuilder
in interfaceDistribution.BucketOptionsOrBuilder
-
hasExponentialBuckets
public boolean hasExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
- Specified by:
hasExponentialBuckets
in interfaceDistribution.BucketOptionsOrBuilder
- Returns:
- Whether the exponentialBuckets field is set.
-
getExponentialBuckets
public Distribution.BucketOptions.Exponential getExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
- Specified by:
getExponentialBuckets
in 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
public Distribution.BucketOptions.Builder clearExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
-
getExponentialBucketsBuilder
public Distribution.BucketOptions.Exponential.Builder getExponentialBucketsBuilder()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
-
getExponentialBucketsOrBuilder
public Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
- Specified by:
getExponentialBucketsOrBuilder
in interfaceDistribution.BucketOptionsOrBuilder
-
hasExplicitBuckets
public boolean hasExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
- Specified by:
hasExplicitBuckets
in interfaceDistribution.BucketOptionsOrBuilder
- Returns:
- Whether the explicitBuckets field is set.
-
getExplicitBuckets
public Distribution.BucketOptions.Explicit getExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
- Specified by:
getExplicitBuckets
in 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
public Distribution.BucketOptions.Builder clearExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
-
getExplicitBucketsBuilder
public Distribution.BucketOptions.Explicit.Builder getExplicitBucketsBuilder()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
-
getExplicitBucketsOrBuilder
public Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
- Specified by:
getExplicitBucketsOrBuilder
in interfaceDistribution.BucketOptionsOrBuilder
-
setUnknownFields
public final Distribution.BucketOptions.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.BucketOptions.Builder>
-
mergeUnknownFields
public final Distribution.BucketOptions.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.BucketOptions.Builder>
-
-