public static final class BudgetAmount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder> implements BudgetAmountOrBuilder
The budgeted amount for each usage period.Protobuf type
google.cloud.billing.budgets.v1beta1.BudgetAmount| Modifier and Type | Method and 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.Builder builderForValue)
Use the last period's actual spend as the budget for the present period.
|
BudgetAmount.Builder |
setLastPeriodAmount(LastPeriodAmount value)
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.Builder builderForValue)
A specified amount to use as the budget.
|
BudgetAmount.Builder |
setSpecifiedAmount(com.google.type.Money value)
A specified amount to use as the budget.
|
BudgetAmount.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BudgetAmount build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BudgetAmount buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BudgetAmount.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BudgetAmount.Builder>public BudgetAmount.Builder mergeFrom(BudgetAmount other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public BudgetAmount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BudgetAmount.Builder>IOExceptionpublic BudgetAmount.BudgetAmountCase getBudgetAmountCase()
getBudgetAmountCase in interface BudgetAmountOrBuilderpublic BudgetAmount.Builder clearBudgetAmount()
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;hasSpecifiedAmount in interface BudgetAmountOrBuilderpublic 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;getSpecifiedAmount in interface BudgetAmountOrBuilderpublic 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;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;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;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;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;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;getSpecifiedAmountOrBuilder in interface BudgetAmountOrBuilderpublic 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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;hasLastPeriodAmount in interface BudgetAmountOrBuilderpublic 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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;getLastPeriodAmount in interface BudgetAmountOrBuilderpublic 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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;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.v1beta1.Filter.calendar_period]. It cannot be set in combination with [Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
.google.cloud.billing.budgets.v1beta1.LastPeriodAmount last_period_amount = 2;getLastPeriodAmountOrBuilder in interface BudgetAmountOrBuilderpublic final BudgetAmount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>public final BudgetAmount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BudgetAmount.Builder>Copyright © 2024 Google LLC. All rights reserved.