Class AggregationResult.Histogram.Bucket (0.24.0)

public static final class AggregationResult.Histogram.Bucket extends GeneratedMessageV3 implements AggregationResult.Histogram.BucketOrBuilder

A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds. The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.

Protobuf type google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationResult.Histogram.Bucket

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
Type Description
int

LOWER_BOUND_FIELD_NUMBER

public static final int LOWER_BOUND_FIELD_NUMBER
Field Value
Type Description
int

UPPER_BOUND_FIELD_NUMBER

public static final int UPPER_BOUND_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AggregationResult.Histogram.Bucket getDefaultInstance()
Returns
Type Description
AggregationResult.Histogram.Bucket

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AggregationResult.Histogram.Bucket.Builder newBuilder()
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

newBuilder(AggregationResult.Histogram.Bucket prototype)

public static AggregationResult.Histogram.Bucket.Builder newBuilder(AggregationResult.Histogram.Bucket prototype)
Parameter
Name Description
prototype AggregationResult.Histogram.Bucket
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

parseDelimitedFrom(InputStream input)

public static AggregationResult.Histogram.Bucket parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AggregationResult.Histogram.Bucket parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AggregationResult.Histogram.Bucket parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AggregationResult.Histogram.Bucket parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AggregationResult.Histogram.Bucket parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AggregationResult.Histogram.Bucket parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationResult.Histogram.Bucket
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AggregationResult.Histogram.Bucket> parser()
Returns
Type Description
Parser<Bucket>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCount()

public long getCount()

Count of items in the bucket.

int64 count = 3;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public AggregationResult.Histogram.Bucket getDefaultInstanceForType()
Returns
Type Description
AggregationResult.Histogram.Bucket

getLowerBound()

public double getLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
Type Description
double

The lowerBound.

getParserForType()

public Parser<AggregationResult.Histogram.Bucket> getParserForType()
Returns
Type Description
Parser<Bucket>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpperBound()

public double getUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
Type Description
double

The upperBound.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AggregationResult.Histogram.Bucket.Builder newBuilderForType()
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AggregationResult.Histogram.Bucket.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AggregationResult.Histogram.Bucket.Builder toBuilder()
Returns
Type Description
AggregationResult.Histogram.Bucket.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException