Class 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.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.v1beta1.Budget
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Budget.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • setField

        public Budget.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • clearField

        public Budget.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • clearOneof

        public Budget.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • setRepeatedField

        public Budget.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • addRepeatedField

        public Budget.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
         Validation: <= 60 chars.
         
        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.
         Validation: <= 60 chars.
         
        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.
         Validation: <= 60 chars.
         
        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.
         Validation: <= 60 chars.
         
        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.
         Validation: <= 60 chars.
         
        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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
      • setAmount

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

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

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

        public BudgetAmount.Builder getAmountBuilder()
         Required. Budgeted amount.
         
        .google.cloud.billing.budgets.v1beta1.BudgetAmount amount = 4 [(.google.api.field_behavior) = REQUIRED];
      • 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ThresholdRule threshold_rules = 5 [(.google.api.field_behavior) = OPTIONAL];
      • hasAllUpdatesRule

        public boolean hasAllUpdatesRule()
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasAllUpdatesRule in interface BudgetOrBuilder
        Returns:
        Whether the allUpdatesRule field is set.
      • getAllUpdatesRule

        public AllUpdatesRule getAllUpdatesRule()
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAllUpdatesRule in interface BudgetOrBuilder
        Returns:
        The allUpdatesRule.
      • setAllUpdatesRule

        public Budget.Builder setAllUpdatesRule​(AllUpdatesRule value)
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setAllUpdatesRule

        public Budget.Builder setAllUpdatesRule​(AllUpdatesRule.Builder builderForValue)
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergeAllUpdatesRule

        public Budget.Builder mergeAllUpdatesRule​(AllUpdatesRule value)
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearAllUpdatesRule

        public Budget.Builder clearAllUpdatesRule()
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getAllUpdatesRuleBuilder

        public AllUpdatesRule.Builder getAllUpdatesRuleBuilder()
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getAllUpdatesRuleOrBuilder

        public AllUpdatesRuleOrBuilder getAllUpdatesRuleOrBuilder()
         Optional. Rules to apply to notifications sent based on budget spend and
         thresholds.
         
        .google.cloud.billing.budgets.v1beta1.AllUpdatesRule all_updates_rule = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAllUpdatesRuleOrBuilder 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 will cause 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 will cause 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 will cause 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 will cause 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 will cause 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.
      • setUnknownFields

        public final Budget.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>
      • mergeUnknownFields

        public final Budget.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Budget.Builder>