Class Budget.Builder (2.47.0)

public static final class Budget.Builder extends GeneratedMessageV3.Builder<Budget.Builder> implements BudgetOrBuilder

A budget is a plan that describes what you expect to spend on Cloud projects, plus the rules to execute as spend is tracked against that plan, (for example, send an alert when 90% of the target spend is met). The budget time period is configurable, with options such as month (default), quarter, year, or custom time period.

Protobuf type google.cloud.billing.budgets.v1.Budget

Implements

BudgetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllThresholdRules(Iterable<? extends ThresholdRule> values)

public Budget.Builder addAllThresholdRules(Iterable<? extends ThresholdRule> values)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.billing.budgets.v1.ThresholdRule>
Returns
Type Description
Budget.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Budget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Budget.Builder
Overrides

addThresholdRules(ThresholdRule value)

public Budget.Builder addThresholdRules(ThresholdRule value)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ThresholdRule
Returns
Type Description
Budget.Builder

addThresholdRules(ThresholdRule.Builder builderForValue)

public Budget.Builder addThresholdRules(ThresholdRule.Builder builderForValue)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ThresholdRule.Builder
Returns
Type Description
Budget.Builder

addThresholdRules(int index, ThresholdRule value)

public Budget.Builder addThresholdRules(int index, ThresholdRule value)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ThresholdRule
Returns
Type Description
Budget.Builder

addThresholdRules(int index, ThresholdRule.Builder builderForValue)

public Budget.Builder addThresholdRules(int index, ThresholdRule.Builder builderForValue)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ThresholdRule.Builder
Returns
Type Description
Budget.Builder

addThresholdRulesBuilder()

public ThresholdRule.Builder addThresholdRulesBuilder()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ThresholdRule.Builder

addThresholdRulesBuilder(int index)

public ThresholdRule.Builder addThresholdRulesBuilder(int index)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThresholdRule.Builder

build()

public Budget build()
Returns
Type Description
Budget

buildPartial()

public Budget buildPartial()
Returns
Type Description
Budget

clear()

public Budget.Builder clear()
Returns
Type Description
Budget.Builder
Overrides

clearAmount()

public Budget.Builder clearAmount()

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Budget.Builder

clearBudgetFilter()

public Budget.Builder clearBudgetFilter()

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Budget.Builder

clearDisplayName()

public Budget.Builder clearDisplayName()

User data for display name in UI. The name must be less than or equal to 60 characters.

string display_name = 2;

Returns
Type Description
Budget.Builder

This builder for chaining.

clearEtag()

public Budget.Builder clearEtag()

Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Budget.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Budget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Budget.Builder
Overrides

clearName()

public Budget.Builder clearName()

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Budget.Builder

This builder for chaining.

clearNotificationsRule()

public Budget.Builder clearNotificationsRule()

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Budget.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Budget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Budget.Builder
Overrides

clearThresholdRules()

public Budget.Builder clearThresholdRules()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Budget.Builder

clone()

public Budget.Builder clone()
Returns
Type Description
Budget.Builder
Overrides

getAmount()

public BudgetAmount getAmount()

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BudgetAmount

The amount.

getAmountBuilder()

public BudgetAmount.Builder getAmountBuilder()

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BudgetAmount.Builder

getAmountOrBuilder()

public BudgetAmountOrBuilder getAmountOrBuilder()

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BudgetAmountOrBuilder

getBudgetFilter()

public Filter getBudgetFilter()

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Filter

The budgetFilter.

getBudgetFilterBuilder()

public Filter.Builder getBudgetFilterBuilder()

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Filter.Builder

getBudgetFilterOrBuilder()

public FilterOrBuilder getBudgetFilterOrBuilder()

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FilterOrBuilder

getDefaultInstanceForType()

public Budget getDefaultInstanceForType()
Returns
Type Description
Budget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User data for display name in UI. The name must be less than or equal to 60 characters.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User data for display name in UI. The name must be less than or equal to 60 characters.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNotificationsRule()

public NotificationsRule getNotificationsRule()

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NotificationsRule

The notificationsRule.

getNotificationsRuleBuilder()

public NotificationsRule.Builder getNotificationsRuleBuilder()

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NotificationsRule.Builder

getNotificationsRuleOrBuilder()

public NotificationsRuleOrBuilder getNotificationsRuleOrBuilder()

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NotificationsRuleOrBuilder

getThresholdRules(int index)

public ThresholdRule getThresholdRules(int index)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThresholdRule

getThresholdRulesBuilder(int index)

public ThresholdRule.Builder getThresholdRulesBuilder(int index)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThresholdRule.Builder

getThresholdRulesBuilderList()

public List<ThresholdRule.Builder> getThresholdRulesBuilderList()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getThresholdRulesCount()

public int getThresholdRulesCount()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getThresholdRulesList()

public List<ThresholdRule> getThresholdRulesList()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ThresholdRule>

getThresholdRulesOrBuilder(int index)

public ThresholdRuleOrBuilder getThresholdRulesOrBuilder(int index)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ThresholdRuleOrBuilder

getThresholdRulesOrBuilderList()

public List<? extends ThresholdRuleOrBuilder> getThresholdRulesOrBuilderList()

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.billing.budgets.v1.ThresholdRuleOrBuilder>

hasAmount()

public boolean hasAmount()

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the amount field is set.

hasBudgetFilter()

public boolean hasBudgetFilter()

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the budgetFilter field is set.

hasNotificationsRule()

public boolean hasNotificationsRule()

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the notificationsRule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAmount(BudgetAmount value)

public Budget.Builder mergeAmount(BudgetAmount value)

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BudgetAmount
Returns
Type Description
Budget.Builder

mergeBudgetFilter(Filter value)

public Budget.Builder mergeBudgetFilter(Filter value)

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Filter
Returns
Type Description
Budget.Builder

mergeFrom(Budget other)

public Budget.Builder mergeFrom(Budget other)
Parameter
Name Description
other Budget
Returns
Type Description
Budget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Budget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Budget.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Budget.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Budget.Builder
Overrides

mergeNotificationsRule(NotificationsRule value)

public Budget.Builder mergeNotificationsRule(NotificationsRule value)

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NotificationsRule
Returns
Type Description
Budget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Budget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Budget.Builder
Overrides

removeThresholdRules(int index)

public Budget.Builder removeThresholdRules(int index)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Budget.Builder

setAmount(BudgetAmount value)

public Budget.Builder setAmount(BudgetAmount value)

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BudgetAmount
Returns
Type Description
Budget.Builder

setAmount(BudgetAmount.Builder builderForValue)

public Budget.Builder setAmount(BudgetAmount.Builder builderForValue)

Required. Budgeted amount.

.google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BudgetAmount.Builder
Returns
Type Description
Budget.Builder

setBudgetFilter(Filter value)

public Budget.Builder setBudgetFilter(Filter value)

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Filter
Returns
Type Description
Budget.Builder

setBudgetFilter(Filter.Builder builderForValue)

public Budget.Builder setBudgetFilter(Filter.Builder builderForValue)

Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.

.google.cloud.billing.budgets.v1.Filter budget_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Filter.Builder
Returns
Type Description
Budget.Builder

setDisplayName(String value)

public Budget.Builder setDisplayName(String value)

User data for display name in UI. The name must be less than or equal to 60 characters.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Budget.Builder setDisplayNameBytes(ByteString value)

User data for display name in UI. The name must be less than or equal to 60 characters.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setEtag(String value)

public Budget.Builder setEtag(String value)

Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Budget.Builder setEtagBytes(ByteString value)

Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.

string etag = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Budget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Budget.Builder
Overrides

setName(String value)

public Budget.Builder setName(String value)

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Budget.Builder setNameBytes(ByteString value)

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Budget.Builder

This builder for chaining.

setNotificationsRule(NotificationsRule value)

public Budget.Builder setNotificationsRule(NotificationsRule value)

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NotificationsRule
Returns
Type Description
Budget.Builder

setNotificationsRule(NotificationsRule.Builder builderForValue)

public Budget.Builder setNotificationsRule(NotificationsRule.Builder builderForValue)

Optional. Rules to apply to notifications sent based on budget spend and thresholds.

.google.cloud.billing.budgets.v1.NotificationsRule notifications_rule = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue NotificationsRule.Builder
Returns
Type Description
Budget.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Budget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Budget.Builder
Overrides

setThresholdRules(int index, ThresholdRule value)

public Budget.Builder setThresholdRules(int index, ThresholdRule value)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ThresholdRule
Returns
Type Description
Budget.Builder

setThresholdRules(int index, ThresholdRule.Builder builderForValue)

public Budget.Builder setThresholdRules(int index, ThresholdRule.Builder builderForValue)

Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget.

Optional for pubsubTopic notifications.

Required if using email notifications.

repeated .google.cloud.billing.budgets.v1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ThresholdRule.Builder
Returns
Type Description
Budget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Budget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Budget.Builder
Overrides