public static final class Distribution.BucketOptions extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Distribution.BucketOptionsImplements
Distribution.BucketOptionsOrBuilderStatic Fields
EXPLICIT_BUCKETS_FIELD_NUMBER
public static final int EXPLICIT_BUCKETS_FIELD_NUMBER
Type | Description |
int |
EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
Type | Description |
int |
LINEAR_BUCKETS_FIELD_NUMBER
public static final int LINEAR_BUCKETS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Distribution.BucketOptions getDefaultInstance()
Type | Description |
Distribution.BucketOptions |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Distribution.BucketOptions.Builder newBuilder()
Type | Description |
Distribution.BucketOptions.Builder |
newBuilder(Distribution.BucketOptions prototype)
public static Distribution.BucketOptions.Builder newBuilder(Distribution.BucketOptions prototype)
Name | Description |
prototype | Distribution.BucketOptions |
Type | Description |
Distribution.BucketOptions.Builder |
parseDelimitedFrom(InputStream input)
public static Distribution.BucketOptions parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Distribution.BucketOptions parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Distribution.BucketOptions parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Distribution.BucketOptions parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Distribution.BucketOptions parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Distribution.BucketOptions parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Distribution.BucketOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Distribution.BucketOptions |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Distribution.BucketOptions> parser()
Type | Description |
Parser<BucketOptions> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Distribution.BucketOptions getDefaultInstanceForType()
Type | Description |
Distribution.BucketOptions |
getExplicitBuckets()
public Distribution.BucketOptions.Explicit getExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Type | Description |
Distribution.BucketOptions.Explicit | The explicitBuckets. |
getExplicitBucketsOrBuilder()
public Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Type | Description |
Distribution.BucketOptions.ExplicitOrBuilder |
getExponentialBuckets()
public Distribution.BucketOptions.Exponential getExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Type | Description |
Distribution.BucketOptions.Exponential | The exponentialBuckets. |
getExponentialBucketsOrBuilder()
public Distribution.BucketOptions.ExponentialOrBuilder getExponentialBucketsOrBuilder()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Type | Description |
Distribution.BucketOptions.ExponentialOrBuilder |
getLinearBuckets()
public Distribution.BucketOptions.Linear getLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Type | Description |
Distribution.BucketOptions.Linear | The linearBuckets. |
getLinearBucketsOrBuilder()
public Distribution.BucketOptions.LinearOrBuilder getLinearBucketsOrBuilder()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Type | Description |
Distribution.BucketOptions.LinearOrBuilder |
getOptionsCase()
public Distribution.BucketOptions.OptionsCase getOptionsCase()
Type | Description |
Distribution.BucketOptions.OptionsCase |
getParserForType()
public Parser<Distribution.BucketOptions> getParserForType()
Type | Description |
Parser<BucketOptions> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasExplicitBuckets()
public boolean hasExplicitBuckets()
The explicit buckets.
.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
Type | Description |
boolean | Whether the explicitBuckets field is set. |
hasExponentialBuckets()
public boolean hasExponentialBuckets()
The exponential buckets.
.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;
Type | Description |
boolean | Whether the exponentialBuckets field is set. |
hasLinearBuckets()
public boolean hasLinearBuckets()
The linear bucket.
.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
Type | Description |
boolean | Whether the linearBuckets field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Distribution.BucketOptions.Builder newBuilderForType()
Type | Description |
Distribution.BucketOptions.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Distribution.BucketOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Distribution.BucketOptions.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Distribution.BucketOptions.Builder toBuilder()
Type | Description |
Distribution.BucketOptions.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |