Class Aggregation.Histogram (0.9.0)

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

Histogram of bucketed assets counts by field value.

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

Static Fields

LOWER_BOUNDS_FIELD_NUMBER

public static final int LOWER_BOUNDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Aggregation.Histogram prototype)

public static Aggregation.Histogram.Builder newBuilder(Aggregation.Histogram prototype)
Parameter
NameDescription
prototypeAggregation.Histogram
Returns
TypeDescription
Aggregation.Histogram.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getLowerBounds(int index)

public double getLowerBounds(int index)

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
double

The lowerBounds at the given index.

getLowerBoundsCount()

public int getLowerBoundsCount()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
TypeDescription
int

The count of lowerBounds.

getLowerBoundsList()

public List<Double> getLowerBoundsList()

Lower bounds of buckets. The response will contain n+1 buckets for n bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.

repeated double lower_bounds = 1;

Returns
TypeDescription
List<Double>

A list containing the lowerBounds.

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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