Class AggregationInfo (2.18.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
TypeDescription
int

AGGREGATION_INTERVAL_FIELD_NUMBER

public static final int AGGREGATION_INTERVAL_FIELD_NUMBER
Field Value
TypeDescription
int

AGGREGATION_LEVEL_FIELD_NUMBER

public static final int AGGREGATION_LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AggregationInfo getDefaultInstance()
Returns
TypeDescription
AggregationInfo

getDescriptor()

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

newBuilder()

public static AggregationInfo.Builder newBuilder()
Returns
TypeDescription
AggregationInfo.Builder

newBuilder(AggregationInfo prototype)

public static AggregationInfo.Builder newBuilder(AggregationInfo prototype)
Parameter
NameDescription
prototypeAggregationInfo
Returns
TypeDescription
AggregationInfo.Builder

parseDelimitedFrom(InputStream input)

public static AggregationInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AggregationInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AggregationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AggregationInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AggregationInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AggregationInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AggregationInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AggregationInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AggregationInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AggregationInfo> parser()
Returns
TypeDescription
Parser<AggregationInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
int

The aggregationCount.

getAggregationInterval()

public AggregationInfo.AggregationInterval getAggregationInterval()

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

Returns
TypeDescription
AggregationInfo.AggregationInterval

The aggregationInterval.

getAggregationIntervalValue()

public int getAggregationIntervalValue()

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

Returns
TypeDescription
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
TypeDescription
AggregationInfo.AggregationLevel

The aggregationLevel.

getAggregationLevelValue()

public int getAggregationLevelValue()

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

Returns
TypeDescription
int

The enum numeric value on the wire for aggregationLevel.

getDefaultInstanceForType()

public AggregationInfo getDefaultInstanceForType()
Returns
TypeDescription
AggregationInfo

getParserForType()

public Parser<AggregationInfo> getParserForType()
Returns
TypeDescription
Parser<AggregationInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 AggregationInfo.Builder newBuilderForType()
Returns
TypeDescription
AggregationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AggregationInfo.Builder toBuilder()
Returns
TypeDescription
AggregationInfo.Builder

writeTo(CodedOutputStream output)

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