Class Filter.Builder

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

public static final class Filter.Builder extends com.google.protobuf.GeneratedMessage.Builder<Filter.Builder> implements FilterOrBuilder
 A filter for a budget, limiting the scope of the cost to calculate.
 
Protobuf type google.cloud.billing.budgets.v1.Filter
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Filter.Builder>
    • internalGetFieldAccessorTable

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

      public Filter.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<Filter.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<Filter.Builder>
    • getDefaultInstanceForType

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

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

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

      public Filter.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<Filter.Builder>
    • mergeFrom

      public Filter.Builder mergeFrom(Filter other)
    • isInitialized

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

      public Filter.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<Filter.Builder>
      Throws:
      IOException
    • getUsagePeriodCase

      public Filter.UsagePeriodCase getUsagePeriodCase()
      Specified by:
      getUsagePeriodCase in interface FilterOrBuilder
    • clearUsagePeriod

      public Filter.Builder clearUsagePeriod()
    • getProjectsList

      public com.google.protobuf.ProtocolStringList getProjectsList()
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectsList in interface FilterOrBuilder
      Returns:
      A list containing the projects.
    • getProjectsCount

      public int getProjectsCount()
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectsCount in interface FilterOrBuilder
      Returns:
      The count of projects.
    • getProjects

      public String getProjects(int index)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjects in interface FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The projects at the given index.
    • getProjectsBytes

      public com.google.protobuf.ByteString getProjectsBytes(int index)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectsBytes in interface FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the projects at the given index.
    • setProjects

      public Filter.Builder setProjects(int index, String value)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The projects to set.
      Returns:
      This builder for chaining.
    • addProjects

      public Filter.Builder addProjects(String value)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The projects to add.
      Returns:
      This builder for chaining.
    • addAllProjects

      public Filter.Builder addAllProjects(Iterable<String> values)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The projects to add.
      Returns:
      This builder for chaining.
    • clearProjects

      public Filter.Builder clearProjects()
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addProjectsBytes

      public Filter.Builder addProjectsBytes(com.google.protobuf.ByteString value)
       Optional. A set of projects of the form `projects/{project}`,
       specifying that usage from only this set of projects should be
       included in the budget. If omitted, the report includes all usage for
       the billing account, regardless of which project the usage occurred on.
       
      repeated string projects = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the projects to add.
      Returns:
      This builder for chaining.
    • getResourceAncestorsList

      public com.google.protobuf.ProtocolStringList getResourceAncestorsList()
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceAncestorsList in interface FilterOrBuilder
      Returns:
      A list containing the resourceAncestors.
    • getResourceAncestorsCount

      public int getResourceAncestorsCount()
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceAncestorsCount in interface FilterOrBuilder
      Returns:
      The count of resourceAncestors.
    • getResourceAncestors

      public String getResourceAncestors(int index)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceAncestors in interface FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourceAncestors at the given index.
    • getResourceAncestorsBytes

      public com.google.protobuf.ByteString getResourceAncestorsBytes(int index)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceAncestorsBytes in interface FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourceAncestors at the given index.
    • setResourceAncestors

      public Filter.Builder setResourceAncestors(int index, String value)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The resourceAncestors to set.
      Returns:
      This builder for chaining.
    • addResourceAncestors

      public Filter.Builder addResourceAncestors(String value)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The resourceAncestors to add.
      Returns:
      This builder for chaining.
    • addAllResourceAncestors

      public Filter.Builder addAllResourceAncestors(Iterable<String> values)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The resourceAncestors to add.
      Returns:
      This builder for chaining.
    • clearResourceAncestors

      public Filter.Builder clearResourceAncestors()
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addResourceAncestorsBytes

      public Filter.Builder addResourceAncestorsBytes(com.google.protobuf.ByteString value)
       Optional. A set of folder and organization names of the form
       `folders/{folderId}` or `organizations/{organizationId}`, specifying that
       usage from only this set of folders and organizations should be included in
       the budget. If omitted, the budget includes all usage that the billing
       account pays for. If the folder or organization contains projects that are
       paid for by a different Cloud Billing account, the budget *doesn't* apply
       to those projects.
       
      repeated string resource_ancestors = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the resourceAncestors to add.
      Returns:
      This builder for chaining.
    • getCreditTypesList

      public com.google.protobuf.ProtocolStringList getCreditTypesList()
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypesList in interface FilterOrBuilder
      Returns:
      A list containing the creditTypes.
    • getCreditTypesCount

      public int getCreditTypesCount()
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypesCount in interface FilterOrBuilder
      Returns:
      The count of creditTypes.
    • getCreditTypes

      public String getCreditTypes(int index)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypes in interface FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The creditTypes at the given index.
    • getCreditTypesBytes

      public com.google.protobuf.ByteString getCreditTypesBytes(int index)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypesBytes in interface FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the creditTypes at the given index.
    • setCreditTypes

      public Filter.Builder setCreditTypes(int index, String value)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The creditTypes to set.
      Returns:
      This builder for chaining.
    • addCreditTypes

      public Filter.Builder addCreditTypes(String value)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The creditTypes to add.
      Returns:
      This builder for chaining.
    • addAllCreditTypes

      public Filter.Builder addAllCreditTypes(Iterable<String> values)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The creditTypes to add.
      Returns:
      This builder for chaining.
    • clearCreditTypes

      public Filter.Builder clearCreditTypes()
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addCreditTypesBytes

      public Filter.Builder addCreditTypesBytes(com.google.protobuf.ByteString value)
       Optional. If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be
       subtracted from gross cost to determine the spend for threshold
       calculations. See [a list of acceptable credit type
       values](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).
      
       If
       [Filter.credit_types_treatment][google.cloud.billing.budgets.v1.Filter.credit_types_treatment]
       is **not** INCLUDE_SPECIFIED_CREDITS, this field must be empty.
       
      repeated string credit_types = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the creditTypes to add.
      Returns:
      This builder for chaining.
    • getCreditTypesTreatmentValue

      public int getCreditTypesTreatmentValue()
       Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
       
      .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypesTreatmentValue in interface FilterOrBuilder
      Returns:
      The enum numeric value on the wire for creditTypesTreatment.
    • setCreditTypesTreatmentValue

      public Filter.Builder setCreditTypesTreatmentValue(int value)
       Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
       
      .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for creditTypesTreatment to set.
      Returns:
      This builder for chaining.
    • getCreditTypesTreatment

      public Filter.CreditTypesTreatment getCreditTypesTreatment()
       Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
       
      .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCreditTypesTreatment in interface FilterOrBuilder
      Returns:
      The creditTypesTreatment.
    • setCreditTypesTreatment

      public Filter.Builder setCreditTypesTreatment(Filter.CreditTypesTreatment value)
       Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
       
      .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The creditTypesTreatment to set.
      Returns:
      This builder for chaining.
    • clearCreditTypesTreatment

      public Filter.Builder clearCreditTypesTreatment()
       Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
       
      .google.cloud.billing.budgets.v1.Filter.CreditTypesTreatment credit_types_treatment = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getServicesList

      public com.google.protobuf.ProtocolStringList getServicesList()
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServicesList in interface FilterOrBuilder
      Returns:
      A list containing the services.
    • getServicesCount

      public int getServicesCount()
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServicesCount in interface FilterOrBuilder
      Returns:
      The count of services.
    • getServices

      public String getServices(int index)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServices in interface FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The services at the given index.
    • getServicesBytes

      public com.google.protobuf.ByteString getServicesBytes(int index)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServicesBytes in interface FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the services at the given index.
    • setServices

      public Filter.Builder setServices(int index, String value)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The services to set.
      Returns:
      This builder for chaining.
    • addServices

      public Filter.Builder addServices(String value)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The services to add.
      Returns:
      This builder for chaining.
    • addAllServices

      public Filter.Builder addAllServices(Iterable<String> values)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The services to add.
      Returns:
      This builder for chaining.
    • clearServices

      public Filter.Builder clearServices()
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addServicesBytes

      public Filter.Builder addServicesBytes(com.google.protobuf.ByteString value)
       Optional. A set of services of the form `services/{service_id}`,
       specifying that usage from only this set of services should be
       included in the budget. If omitted, the report includes usage for
       all the services.
       The service names are available through the Catalog API:
       https://cloud.google.com/billing/v1/how-tos/catalog-api.
       
      repeated string services = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the services to add.
      Returns:
      This builder for chaining.
    • getSubaccountsList

      public com.google.protobuf.ProtocolStringList getSubaccountsList()
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubaccountsList in interface FilterOrBuilder
      Returns:
      A list containing the subaccounts.
    • getSubaccountsCount

      public int getSubaccountsCount()
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubaccountsCount in interface FilterOrBuilder
      Returns:
      The count of subaccounts.
    • getSubaccounts

      public String getSubaccounts(int index)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubaccounts in interface FilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The subaccounts at the given index.
    • getSubaccountsBytes

      public com.google.protobuf.ByteString getSubaccountsBytes(int index)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubaccountsBytes in interface FilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the subaccounts at the given index.
    • setSubaccounts

      public Filter.Builder setSubaccounts(int index, String value)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The subaccounts to set.
      Returns:
      This builder for chaining.
    • addSubaccounts

      public Filter.Builder addSubaccounts(String value)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The subaccounts to add.
      Returns:
      This builder for chaining.
    • addAllSubaccounts

      public Filter.Builder addAllSubaccounts(Iterable<String> values)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The subaccounts to add.
      Returns:
      This builder for chaining.
    • clearSubaccounts

      public Filter.Builder clearSubaccounts()
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSubaccountsBytes

      public Filter.Builder addSubaccountsBytes(com.google.protobuf.ByteString value)
       Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,
       specifying that usage from only this set of subaccounts should be included
       in the budget. If a subaccount is set to the name of the parent account,
       usage from the parent account is included. If the field is omitted,
       the report includes usage from the parent account and all subaccounts,
       if they exist.
       
      repeated string subaccounts = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the subaccounts to add.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: FilterOrBuilder
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface FilterOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface FilterOrBuilder
    • getLabels

      @Deprecated public Map<String,com.google.protobuf.ListValue> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface FilterOrBuilder
    • getLabelsMap

      public Map<String,com.google.protobuf.ListValue> getLabelsMap()
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface FilterOrBuilder
    • getLabelsOrDefault

      public com.google.protobuf.ListValue getLabelsOrDefault(String key, com.google.protobuf.ListValue defaultValue)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface FilterOrBuilder
    • getLabelsOrThrow

      public com.google.protobuf.ListValue getLabelsOrThrow(String key)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface FilterOrBuilder
    • clearLabels

      public Filter.Builder clearLabels()
    • removeLabels

      public Filter.Builder removeLabels(String key)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,com.google.protobuf.ListValue> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Filter.Builder putLabels(String key, com.google.protobuf.ListValue value)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Filter.Builder putAllLabels(Map<String,com.google.protobuf.ListValue> values)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • putLabelsBuilderIfAbsent

      public com.google.protobuf.ListValue.Builder putLabelsBuilderIfAbsent(String key)
       Optional. A single label and value pair specifying that usage from only
       this set of labeled resources should be included in the budget. If omitted,
       the report includes all labeled and unlabeled usage.
      
       An object containing a single `"key": value` pair. Example: `{ "name":
       "wrench" }`.
      
       _Currently, multiple entries or multiple values per entry are not
       allowed._
       
      map<string, .google.protobuf.ListValue> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • hasCalendarPeriod

      public boolean hasCalendarPeriod()
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCalendarPeriod in interface FilterOrBuilder
      Returns:
      Whether the calendarPeriod field is set.
    • getCalendarPeriodValue

      public int getCalendarPeriodValue()
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCalendarPeriodValue in interface FilterOrBuilder
      Returns:
      The enum numeric value on the wire for calendarPeriod.
    • setCalendarPeriodValue

      public Filter.Builder setCalendarPeriodValue(int value)
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for calendarPeriod to set.
      Returns:
      This builder for chaining.
    • getCalendarPeriod

      public CalendarPeriod getCalendarPeriod()
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCalendarPeriod in interface FilterOrBuilder
      Returns:
      The calendarPeriod.
    • setCalendarPeriod

      public Filter.Builder setCalendarPeriod(CalendarPeriod value)
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The calendarPeriod to set.
      Returns:
      This builder for chaining.
    • clearCalendarPeriod

      public Filter.Builder clearCalendarPeriod()
       Optional. Specifies to track usage for recurring calendar period.
       For example, assume that CalendarPeriod.QUARTER is set. The budget
       tracks usage from April 1 to June 30, when the current calendar month is
       April, May, June. After that, it tracks usage from July 1 to
       September 30 when the current calendar month is July, August, September,
       so on.
       
      .google.cloud.billing.budgets.v1.CalendarPeriod calendar_period = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasCustomPeriod

      public boolean hasCustomPeriod()
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomPeriod in interface FilterOrBuilder
      Returns:
      Whether the customPeriod field is set.
    • getCustomPeriod

      public CustomPeriod getCustomPeriod()
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPeriod in interface FilterOrBuilder
      Returns:
      The customPeriod.
    • setCustomPeriod

      public Filter.Builder setCustomPeriod(CustomPeriod value)
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomPeriod

      public Filter.Builder setCustomPeriod(CustomPeriod.Builder builderForValue)
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomPeriod

      public Filter.Builder mergeCustomPeriod(CustomPeriod value)
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomPeriod

      public Filter.Builder clearCustomPeriod()
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomPeriodBuilder

      public CustomPeriod.Builder getCustomPeriodBuilder()
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomPeriodOrBuilder

      public CustomPeriodOrBuilder getCustomPeriodOrBuilder()
       Optional. Specifies to track usage from any start date (required) to any
       end date (optional). This time period is static, it does not recur.
       
      .google.cloud.billing.budgets.v1.CustomPeriod custom_period = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomPeriodOrBuilder in interface FilterOrBuilder