Class AggregationInfo (2.43.0)

public final class AggregationInfo extends GeneratedMessageV3 implements AggregationInfoOrBuilder

Represents the aggregation level and interval for pricing of a single SKU.

Protobuf type google.cloud.billing.v1.AggregationInfo

Static Fields

AGGREGATION_COUNT_FIELD_NUMBER

public static final int AGGREGATION_COUNT_FIELD_NUMBER
Field Value
Type Description
int

AGGREGATION_INTERVAL_FIELD_NUMBER

public static final int AGGREGATION_INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

AGGREGATION_LEVEL_FIELD_NUMBER

public static final int AGGREGATION_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AggregationInfo getDefaultInstance()
Returns
Type Description
AggregationInfo

getDescriptor()

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

newBuilder()

public static AggregationInfo.Builder newBuilder()
Returns
Type Description
AggregationInfo.Builder

newBuilder(AggregationInfo prototype)

public static AggregationInfo.Builder newBuilder(AggregationInfo prototype)
Parameter
Name Description
prototype AggregationInfo
Returns
Type Description
AggregationInfo.Builder

parseDelimitedFrom(InputStream input)

public static AggregationInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AggregationInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AggregationInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AggregationInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AggregationInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AggregationInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AggregationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AggregationInfo> parser()
Returns
Type Description
Parser<AggregationInfo>

Methods

equals(Object obj)

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

getAggregationCount()

public int getAggregationCount()

The number of intervals to aggregate over. Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days.

int32 aggregation_count = 3;

Returns
Type Description
int

The aggregationCount.

getAggregationInterval()

public AggregationInfo.AggregationInterval getAggregationInterval()

.google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;

Returns
Type Description
AggregationInfo.AggregationInterval

The aggregationInterval.

getAggregationIntervalValue()

public int getAggregationIntervalValue()

.google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;

Returns
Type Description
int

The enum numeric value on the wire for aggregationInterval.

getAggregationLevel()

public AggregationInfo.AggregationLevel getAggregationLevel()

.google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;

Returns
Type Description
AggregationInfo.AggregationLevel

The aggregationLevel.

getAggregationLevelValue()

public int getAggregationLevelValue()

.google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;

Returns
Type Description
int

The enum numeric value on the wire for aggregationLevel.

getDefaultInstanceForType()

public AggregationInfo getDefaultInstanceForType()
Returns
Type Description
AggregationInfo

getParserForType()

public Parser<AggregationInfo> getParserForType()
Returns
Type Description
Parser<AggregationInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 AggregationInfo.Builder newBuilderForType()
Returns
Type Description
AggregationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AggregationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AggregationInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AggregationInfo.Builder toBuilder()
Returns
Type Description
AggregationInfo.Builder

writeTo(CodedOutputStream output)

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