Class Budget.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Budget.Builder>
com.google.cloud.billing.budgets.v1.Budget.Builder
All Implemented Interfaces:
BudgetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Budget

public static final class Budget.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Budget.Builder>
    • clear

      public Budget.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Budget.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Budget.Builder>
    • getDefaultInstanceForType

      public Budget getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Budget build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Budget buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Budget.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Budget.Builder>
    • mergeFrom

      public Budget.Builder mergeFrom(Budget other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Budget.Builder>
    • mergeFrom

      public Budget.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Budget.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface BudgetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface BudgetOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Budget.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getDisplayName in interface BudgetOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User data for display name in UI. The name must be less than or equal to 60
       characters.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface BudgetOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDisplayNameBytes

      public Budget.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User data for display name in UI. The name must be less than or equal to 60
       characters.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasBudgetFilter in interface BudgetOrBuilder
      Returns:
      Whether the budgetFilter field is set.
    • 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];
      Specified by:
      getBudgetFilter in interface BudgetOrBuilder
      Returns:
      The budgetFilter.
    • setBudgetFilter

      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];
    • setBudgetFilter

      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];
    • mergeBudgetFilter

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getBudgetFilterOrBuilder in interface BudgetOrBuilder
    • hasAmount

      public boolean hasAmount()
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAmount in interface BudgetOrBuilder
      Returns:
      Whether the amount field is set.
    • getAmount

      public BudgetAmount getAmount()
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAmount in interface BudgetOrBuilder
      Returns:
      The amount.
    • setAmount

      public Budget.Builder setAmount(BudgetAmount value)
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
    • setAmount

      public Budget.Builder setAmount(BudgetAmount.Builder builderForValue)
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeAmount

      public Budget.Builder mergeAmount(BudgetAmount value)
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearAmount

      public Budget.Builder clearAmount()
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
    • getAmountBuilder

      public BudgetAmount.Builder getAmountBuilder()
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
    • getAmountOrBuilder

      public BudgetAmountOrBuilder getAmountOrBuilder()
       Required. Budgeted amount.
       
      .google.cloud.billing.budgets.v1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAmountOrBuilder in interface BudgetOrBuilder
    • 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];
      Specified by:
      getThresholdRulesList in interface BudgetOrBuilder
    • 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];
      Specified by:
      getThresholdRulesCount in interface BudgetOrBuilder
    • getThresholdRules

      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];
      Specified by:
      getThresholdRules in interface BudgetOrBuilder
    • setThresholdRules

      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];
    • setThresholdRules

      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];
    • addThresholdRules

      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];
    • addThresholdRules

      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];
    • addThresholdRules

      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];
    • addThresholdRules

      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];
    • addAllThresholdRules

      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];
    • 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];
    • removeThresholdRules

      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];
    • getThresholdRulesBuilder

      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];
    • getThresholdRulesOrBuilder

      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];
      Specified by:
      getThresholdRulesOrBuilder in interface BudgetOrBuilder
    • 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];
      Specified by:
      getThresholdRulesOrBuilderList in interface BudgetOrBuilder
    • 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];
    • addThresholdRulesBuilder

      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];
    • 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];
    • 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];
      Specified by:
      hasNotificationsRule in interface BudgetOrBuilder
      Returns:
      Whether the notificationsRule field is set.
    • 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];
      Specified by:
      getNotificationsRule in interface BudgetOrBuilder
      Returns:
      The notificationsRule.
    • setNotificationsRule

      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];
    • setNotificationsRule

      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];
    • mergeNotificationsRule

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getNotificationsRuleOrBuilder in interface BudgetOrBuilder
    • 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];
      Specified by:
      getEtag in interface BudgetOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.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];
      Specified by:
      getEtagBytes in interface BudgetOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      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];
      Parameters:
      value - The etag to set.
      Returns:
      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:
      This builder for chaining.
    • setEtagBytes

      public Budget.Builder setEtagBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.