Class AggregationResult.Histogram (0.10.0)

public static final class AggregationResult.Histogram extends GeneratedMessageV3 implements AggregationResult.HistogramOrBuilder

The result of a bucketed histogram aggregation.

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

Static Fields

BUCKETS_FIELD_NUMBER

public static final int BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(AggregationResult.Histogram prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBuckets(int index)

public AggregationResult.Histogram.Bucket getBuckets(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationResult.Histogram.Bucket

getBucketsCount()

public int getBucketsCount()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
TypeDescription
int

getBucketsList()

public List<AggregationResult.Histogram.Bucket> getBucketsList()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
TypeDescription
List<Bucket>

getBucketsOrBuilder(int index)

public AggregationResult.Histogram.BucketOrBuilder getBucketsOrBuilder(int index)

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationResult.Histogram.BucketOrBuilder

getBucketsOrBuilderList()

public List<? extends AggregationResult.Histogram.BucketOrBuilder> getBucketsOrBuilderList()

Buckets in the histogram. There will be n+1 buckets matching n lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.AggregationResult.Histogram.BucketOrBuilder>

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.Builder newBuilderForType()
Returns
TypeDescription
AggregationResult.Histogram.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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