Class AggregationResult.Histogram.Bucket (0.14.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
TypeDescription
int

LOWER_BOUND_FIELD_NUMBER

public static final int LOWER_BOUND_FIELD_NUMBER
Field Value
TypeDescription
int

UPPER_BOUND_FIELD_NUMBER

public static final int UPPER_BOUND_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AggregationResult.Histogram.Bucket getDefaultInstance()
Returns
TypeDescription
AggregationResult.Histogram.Bucket

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AggregationResult.Histogram.Bucket.Builder newBuilder()
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

newBuilder(AggregationResult.Histogram.Bucket prototype)

public static AggregationResult.Histogram.Bucket.Builder newBuilder(AggregationResult.Histogram.Bucket prototype)
Parameter
NameDescription
prototypeAggregationResult.Histogram.Bucket
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

parseDelimitedFrom(InputStream input)

public static AggregationResult.Histogram.Bucket parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AggregationResult.Histogram.Bucket parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AggregationResult.Histogram.Bucket parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AggregationResult.Histogram.Bucket parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AggregationResult.Histogram.Bucket parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AggregationResult.Histogram.Bucket parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AggregationResult.Histogram.Bucket parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AggregationResult.Histogram.Bucket
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCount()

public long getCount()

Count of items in the bucket.

int64 count = 3;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public AggregationResult.Histogram.Bucket getDefaultInstanceForType()
Returns
TypeDescription
AggregationResult.Histogram.Bucket

getLowerBound()

public double getLowerBound()

Lower bound - inclusive.

double lower_bound = 1;

Returns
TypeDescription
double

The lowerBound.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpperBound()

public double getUpperBound()

Upper bound - exclusive.

double upper_bound = 2;

Returns
TypeDescription
double

The upperBound.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AggregationResult.Histogram.Bucket.Builder newBuilderForType()
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AggregationResult.Histogram.Bucket.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AggregationResult.Histogram.Bucket.Builder toBuilder()
Returns
TypeDescription
AggregationResult.Histogram.Bucket.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException