Class BudgetAmount.Builder (2.48.0)

public static final class BudgetAmount.Builder extends GeneratedMessageV3.Builder<BudgetAmount.Builder> implements BudgetAmountOrBuilder

The budgeted amount for each usage period.

Protobuf type google.cloud.billing.budgets.v1.BudgetAmount

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BudgetAmount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BudgetAmount.Builder
Overrides

build()

public BudgetAmount build()
Returns
Type Description
BudgetAmount

buildPartial()

public BudgetAmount buildPartial()
Returns
Type Description
BudgetAmount

clear()

public BudgetAmount.Builder clear()
Returns
Type Description
BudgetAmount.Builder
Overrides

clearBudgetAmount()

public BudgetAmount.Builder clearBudgetAmount()
Returns
Type Description
BudgetAmount.Builder

clearField(Descriptors.FieldDescriptor field)

public BudgetAmount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BudgetAmount.Builder
Overrides

clearLastPeriodAmount()

public BudgetAmount.Builder clearLastPeriodAmount()

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Returns
Type Description
BudgetAmount.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BudgetAmount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BudgetAmount.Builder
Overrides

clearSpecifiedAmount()

public BudgetAmount.Builder clearSpecifiedAmount()

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Returns
Type Description
BudgetAmount.Builder

clone()

public BudgetAmount.Builder clone()
Returns
Type Description
BudgetAmount.Builder
Overrides

getBudgetAmountCase()

public BudgetAmount.BudgetAmountCase getBudgetAmountCase()
Returns
Type Description
BudgetAmount.BudgetAmountCase

getDefaultInstanceForType()

public BudgetAmount getDefaultInstanceForType()
Returns
Type Description
BudgetAmount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLastPeriodAmount()

public LastPeriodAmount getLastPeriodAmount()

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Returns
Type Description
LastPeriodAmount

The lastPeriodAmount.

getLastPeriodAmountBuilder()

public LastPeriodAmount.Builder getLastPeriodAmountBuilder()

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Returns
Type Description
LastPeriodAmount.Builder

getLastPeriodAmountOrBuilder()

public LastPeriodAmountOrBuilder getLastPeriodAmountOrBuilder()

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Returns
Type Description
LastPeriodAmountOrBuilder

getSpecifiedAmount()

public Money getSpecifiedAmount()

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Returns
Type Description
com.google.type.Money

The specifiedAmount.

getSpecifiedAmountBuilder()

public Money.Builder getSpecifiedAmountBuilder()

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Returns
Type Description
com.google.type.Money.Builder

getSpecifiedAmountOrBuilder()

public MoneyOrBuilder getSpecifiedAmountOrBuilder()

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Returns
Type Description
com.google.type.MoneyOrBuilder

hasLastPeriodAmount()

public boolean hasLastPeriodAmount()

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Returns
Type Description
boolean

Whether the lastPeriodAmount field is set.

hasSpecifiedAmount()

public boolean hasSpecifiedAmount()

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Returns
Type Description
boolean

Whether the specifiedAmount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BudgetAmount other)

public BudgetAmount.Builder mergeFrom(BudgetAmount other)
Parameter
Name Description
other BudgetAmount
Returns
Type Description
BudgetAmount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BudgetAmount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BudgetAmount.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BudgetAmount.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BudgetAmount.Builder
Overrides

mergeLastPeriodAmount(LastPeriodAmount value)

public BudgetAmount.Builder mergeLastPeriodAmount(LastPeriodAmount value)

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Parameter
Name Description
value LastPeriodAmount
Returns
Type Description
BudgetAmount.Builder

mergeSpecifiedAmount(Money value)

public BudgetAmount.Builder mergeSpecifiedAmount(Money value)

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
BudgetAmount.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BudgetAmount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BudgetAmount.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BudgetAmount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BudgetAmount.Builder
Overrides

setLastPeriodAmount(LastPeriodAmount value)

public BudgetAmount.Builder setLastPeriodAmount(LastPeriodAmount value)

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Parameter
Name Description
value LastPeriodAmount
Returns
Type Description
BudgetAmount.Builder

setLastPeriodAmount(LastPeriodAmount.Builder builderForValue)

public BudgetAmount.Builder setLastPeriodAmount(LastPeriodAmount.Builder builderForValue)

Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;

Parameter
Name Description
builderForValue LastPeriodAmount.Builder
Returns
Type Description
BudgetAmount.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BudgetAmount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BudgetAmount.Builder
Overrides

setSpecifiedAmount(Money value)

public BudgetAmount.Builder setSpecifiedAmount(Money value)

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
BudgetAmount.Builder

setSpecifiedAmount(Money.Builder builderForValue)

public BudgetAmount.Builder setSpecifiedAmount(Money.Builder builderForValue)

A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

.google.type.Money specified_amount = 1;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
BudgetAmount.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BudgetAmount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BudgetAmount.Builder
Overrides