Class BudgetAmount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
- com.google.cloud.billing.budgets.v1.BudgetAmount.Builder
-
- All Implemented Interfaces:
BudgetAmountOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BudgetAmount
public static final class BudgetAmount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder> implements BudgetAmountOrBuilder
The budgeted amount for each usage period.
Protobuf typegoogle.cloud.billing.budgets.v1.BudgetAmount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BudgetAmount.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BudgetAmount
build()
BudgetAmount
buildPartial()
BudgetAmount.Builder
clear()
BudgetAmount.Builder
clearBudgetAmount()
BudgetAmount.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BudgetAmount.Builder
clearLastPeriodAmount()
Use the last period's actual spend as the budget for the present period.BudgetAmount.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BudgetAmount.Builder
clearSpecifiedAmount()
A specified amount to use as the budget.BudgetAmount.Builder
clone()
BudgetAmount.BudgetAmountCase
getBudgetAmountCase()
BudgetAmount
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
LastPeriodAmount
getLastPeriodAmount()
Use the last period's actual spend as the budget for the present period.LastPeriodAmount.Builder
getLastPeriodAmountBuilder()
Use the last period's actual spend as the budget for the present period.LastPeriodAmountOrBuilder
getLastPeriodAmountOrBuilder()
Use the last period's actual spend as the budget for the present period.com.google.type.Money
getSpecifiedAmount()
A specified amount to use as the budget.com.google.type.Money.Builder
getSpecifiedAmountBuilder()
A specified amount to use as the budget.com.google.type.MoneyOrBuilder
getSpecifiedAmountOrBuilder()
A specified amount to use as the budget.boolean
hasLastPeriodAmount()
Use the last period's actual spend as the budget for the present period.boolean
hasSpecifiedAmount()
A specified amount to use as the budget.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BudgetAmount.Builder
mergeFrom(BudgetAmount other)
BudgetAmount.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BudgetAmount.Builder
mergeFrom(com.google.protobuf.Message other)
BudgetAmount.Builder
mergeLastPeriodAmount(LastPeriodAmount value)
Use the last period's actual spend as the budget for the present period.BudgetAmount.Builder
mergeSpecifiedAmount(com.google.type.Money value)
A specified amount to use as the budget.BudgetAmount.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BudgetAmount.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BudgetAmount.Builder
setLastPeriodAmount(LastPeriodAmount value)
Use the last period's actual spend as the budget for the present period.BudgetAmount.Builder
setLastPeriodAmount(LastPeriodAmount.Builder builderForValue)
Use the last period's actual spend as the budget for the present period.BudgetAmount.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BudgetAmount.Builder
setSpecifiedAmount(com.google.type.Money value)
A specified amount to use as the budget.BudgetAmount.Builder
setSpecifiedAmount(com.google.type.Money.Builder builderForValue)
A specified amount to use as the budget.BudgetAmount.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
clear
public BudgetAmount.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
getDefaultInstanceForType
public BudgetAmount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BudgetAmount build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BudgetAmount buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BudgetAmount.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
setField
public BudgetAmount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
clearField
public BudgetAmount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
clearOneof
public BudgetAmount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
setRepeatedField
public BudgetAmount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
addRepeatedField
public BudgetAmount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
mergeFrom
public BudgetAmount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BudgetAmount.Builder>
-
mergeFrom
public BudgetAmount.Builder mergeFrom(BudgetAmount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
mergeFrom
public BudgetAmount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BudgetAmount.Builder>
- Throws:
IOException
-
getBudgetAmountCase
public BudgetAmount.BudgetAmountCase getBudgetAmountCase()
- Specified by:
getBudgetAmountCase
in interfaceBudgetAmountOrBuilder
-
clearBudgetAmount
public BudgetAmount.Builder clearBudgetAmount()
-
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;
- Specified by:
hasSpecifiedAmount
in interfaceBudgetAmountOrBuilder
- Returns:
- Whether the specifiedAmount field is set.
-
getSpecifiedAmount
public com.google.type.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;
- Specified by:
getSpecifiedAmount
in interfaceBudgetAmountOrBuilder
- Returns:
- The specifiedAmount.
-
setSpecifiedAmount
public BudgetAmount.Builder setSpecifiedAmount(com.google.type.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;
-
setSpecifiedAmount
public BudgetAmount.Builder setSpecifiedAmount(com.google.type.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;
-
mergeSpecifiedAmount
public BudgetAmount.Builder mergeSpecifiedAmount(com.google.type.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;
-
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;
-
getSpecifiedAmountBuilder
public com.google.type.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;
-
getSpecifiedAmountOrBuilder
public com.google.type.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;
- Specified by:
getSpecifiedAmountOrBuilder
in interfaceBudgetAmountOrBuilder
-
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
- Specified by:
hasLastPeriodAmount
in interfaceBudgetAmountOrBuilder
- Returns:
- Whether the lastPeriodAmount field is set.
-
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
- Specified by:
getLastPeriodAmount
in interfaceBudgetAmountOrBuilder
- Returns:
- The lastPeriodAmount.
-
setLastPeriodAmount
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
-
setLastPeriodAmount
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
-
mergeLastPeriodAmount
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
-
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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.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][google.cloud.billing.budgets.v1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1.Filter.custom_period].
.google.cloud.billing.budgets.v1.LastPeriodAmount last_period_amount = 2;
- Specified by:
getLastPeriodAmountOrBuilder
in interfaceBudgetAmountOrBuilder
-
setUnknownFields
public final BudgetAmount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
mergeUnknownFields
public final BudgetAmount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>
-
-