Class LastPeriodAmount (2.36.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
TypeDescription
LastPeriodAmount

getDescriptor()

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

newBuilder()

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

newBuilder(LastPeriodAmount prototype)

public static LastPeriodAmount.Builder newBuilder(LastPeriodAmount prototype)
Parameter
NameDescription
prototypeLastPeriodAmount
Returns
TypeDescription
LastPeriodAmount.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public LastPeriodAmount getDefaultInstanceForType()
Returns
TypeDescription
LastPeriodAmount

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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