Class BudgetAmount.Builder (2.19.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.v1beta1.BudgetAmount

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BudgetAmount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BudgetAmount.Builder
Overrides

build()

public BudgetAmount build()
Returns
TypeDescription
BudgetAmount

buildPartial()

public BudgetAmount buildPartial()
Returns
TypeDescription
BudgetAmount

clear()

public BudgetAmount.Builder clear()
Returns
TypeDescription
BudgetAmount.Builder
Overrides

clearBudgetAmount()

public BudgetAmount.Builder clearBudgetAmount()
Returns
TypeDescription
BudgetAmount.Builder

clearField(Descriptors.FieldDescriptor field)

public BudgetAmount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Returns
TypeDescription
BudgetAmount.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BudgetAmount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BudgetAmount.Builder

clone()

public BudgetAmount.Builder clone()
Returns
TypeDescription
BudgetAmount.Builder
Overrides

getBudgetAmountCase()

public BudgetAmount.BudgetAmountCase getBudgetAmountCase()
Returns
TypeDescription
BudgetAmount.BudgetAmountCase

getDefaultInstanceForType()

public BudgetAmount getDefaultInstanceForType()
Returns
TypeDescription
BudgetAmount

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the specifiedAmount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BudgetAmount other)

public BudgetAmount.Builder mergeFrom(BudgetAmount other)
Parameter
NameDescription
otherBudgetAmount
Returns
TypeDescription
BudgetAmount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BudgetAmount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BudgetAmount.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BudgetAmount.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Parameter
NameDescription
valueLastPeriodAmount
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
BudgetAmount.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BudgetAmount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BudgetAmount.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BudgetAmount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Parameter
NameDescription
valueLastPeriodAmount
Returns
TypeDescription
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.v1beta1.LastPeriodAmount last_period_amount = 2;

Parameter
NameDescription
builderForValueLastPeriodAmount.Builder
Returns
TypeDescription
BudgetAmount.Builder

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

public BudgetAmount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Money.Builder
Returns
TypeDescription
BudgetAmount.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BudgetAmount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BudgetAmount.Builder
Overrides