Class LastPeriodAmount (2.46.0)

public final class LastPeriodAmount extends GeneratedMessageV3 implements LastPeriodAmountOrBuilder

Describes a budget amount targeted to the last Filter.calendar_period spend. At this time, the amount is automatically 100% of the last calendar period's spend; that is, there are no other options yet. Future configuration options will be described here (for example, configuring a percentage of last period's spend). LastPeriodAmount cannot be set for a budget configured with a Filter.custom_period.

Protobuf type google.cloud.billing.budgets.v1beta1.LastPeriodAmount

Static Methods

getDefaultInstance()

public static LastPeriodAmount getDefaultInstance()
Returns
Type Description
LastPeriodAmount

getDescriptor()

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

newBuilder()

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

newBuilder(LastPeriodAmount prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public LastPeriodAmount getDefaultInstanceForType()
Returns
Type Description
LastPeriodAmount

getParserForType()

public Parser<LastPeriodAmount> getParserForType()
Returns
Type Description
Parser<LastPeriodAmount>
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 LastPeriodAmount.Builder newBuilderForType()
Returns
Type Description
LastPeriodAmount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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