Class AggregationResult.Frequency (0.5.0)

public static final class AggregationResult.Frequency extends GeneratedMessageV3 implements AggregationResult.FrequencyOrBuilder

The result of a frequency distribution aggregation.

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

Static Fields

VALUES_FIELD_NUMBER

public static final int VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(AggregationResult.Frequency prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsValues(String key)

public boolean containsValues(String key)

map<string, int64> values = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValues()

public Map<String,Long> getValues()

Use #getValuesMap() instead.

Returns
TypeDescription
Map<String,java.lang.Long>

getValuesCount()

public int getValuesCount()

map<string, int64> values = 1;

Returns
TypeDescription
int

getValuesMap()

public Map<String,Long> getValuesMap()

map<string, int64> values = 1;

Returns
TypeDescription
Map<String,java.lang.Long>

getValuesOrDefault(String key, long defaultValue)

public long getValuesOrDefault(String key, long defaultValue)

map<string, int64> values = 1;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getValuesOrThrow(String key)

public long getValuesOrThrow(String key)

map<string, int64> values = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AggregationResult.Frequency.Builder newBuilderForType()
Returns
TypeDescription
AggregationResult.Frequency.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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