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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BudgetAmount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BudgetAmount build()
Returns
buildPartial()
public BudgetAmount buildPartial()
Returns
clear()
public BudgetAmount.Builder clear()
Returns
Overrides
clearBudgetAmount()
public BudgetAmount.Builder clearBudgetAmount()
Returns
clearField(Descriptors.FieldDescriptor field)
public BudgetAmount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public BudgetAmount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public BudgetAmount.Builder clone()
Returns
Overrides
getBudgetAmountCase()
public BudgetAmount.BudgetAmountCase getBudgetAmountCase()
Returns
getDefaultInstanceForType()
public BudgetAmount getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BudgetAmount other)
public BudgetAmount.Builder mergeFrom(BudgetAmount other)
Parameter
Returns
public BudgetAmount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BudgetAmount.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BudgetAmount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BudgetAmount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BudgetAmount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final BudgetAmount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides