public static final class BudgetAmount.Builder extends GeneratedMessage.Builder<BudgetAmount.Builder> implements BudgetAmountOrBuilder
The budgeted amount for each usage period.
Protobuf type google.cloud.billing.budgets.v1.BudgetAmount
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public BudgetAmount build()
buildPartial()
public BudgetAmount buildPartial()
clear()
public BudgetAmount.Builder clear()
Overrides
clearBudgetAmount()
public BudgetAmount.Builder clearBudgetAmount()
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;
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;
getBudgetAmountCase()
public BudgetAmount.BudgetAmountCase getBudgetAmountCase()
getDefaultInstanceForType()
public BudgetAmount getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BudgetAmount other)
public BudgetAmount.Builder mergeFrom(BudgetAmount other)
public BudgetAmount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BudgetAmount.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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;
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
|
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;
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;
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
|
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
|