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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BudgetAmount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BudgetAmount build()
buildPartial()
public BudgetAmount buildPartial()
clear()
public BudgetAmount.Builder clear()
Overrides
clearBudgetAmount()
public BudgetAmount.Builder clearBudgetAmount()
clearField(Descriptors.FieldDescriptor field)
public BudgetAmount.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public BudgetAmount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public BudgetAmount.Builder clone()
Overrides
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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()
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.v1beta1.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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BudgetAmount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BudgetAmount.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BudgetAmount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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
|
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BudgetAmount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides