Class QuotaPreference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QuotaPreference.Builder>
com.google.api.cloudquotas.v1.QuotaPreference.Builder
All Implemented Interfaces:
QuotaPreferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QuotaPreference

public static final class QuotaPreference.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuotaPreference.Builder> implements QuotaPreferenceOrBuilder
 QuotaPreference represents the preferred quota configuration specified for
 a project, folder or organization. There is only one QuotaPreference
 resource for a quota value targeting a unique set of dimensions.
 
Protobuf type google.api.cloudquotas.v1.QuotaPreference
  • 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<QuotaPreference.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public QuotaPreference.Builder mergeFrom(QuotaPreference other)
    • isInitialized

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

      public QuotaPreference.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<QuotaPreference.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required except in the CREATE requests.
       The resource name of the quota preference.
       The ID component following "locations/" must be "global".
       Example:
       `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
       
      string name = 1;
      Specified by:
      getName in interface QuotaPreferenceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required except in the CREATE requests.
       The resource name of the quota preference.
       The ID component following "locations/" must be "global".
       Example:
       `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
       
      string name = 1;
      Specified by:
      getNameBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public QuotaPreference.Builder setName(String value)
       Required except in the CREATE requests.
       The resource name of the quota preference.
       The ID component following "locations/" must be "global".
       Example:
       `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public QuotaPreference.Builder clearName()
       Required except in the CREATE requests.
       The resource name of the quota preference.
       The ID component following "locations/" must be "global".
       Example:
       `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public QuotaPreference.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required except in the CREATE requests.
       The resource name of the quota preference.
       The ID component following "locations/" must be "global".
       Example:
       `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDimensionsCount

      public int getDimensionsCount()
      Description copied from interface: QuotaPreferenceOrBuilder
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDimensionsCount in interface QuotaPreferenceOrBuilder
    • containsDimensions

      public boolean containsDimensions(String key)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      containsDimensions in interface QuotaPreferenceOrBuilder
    • getDimensions

      @Deprecated public Map<String,String> getDimensions()
      Deprecated.
      Use getDimensionsMap() instead.
      Specified by:
      getDimensions in interface QuotaPreferenceOrBuilder
    • getDimensionsMap

      public Map<String,String> getDimensionsMap()
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDimensionsMap in interface QuotaPreferenceOrBuilder
    • getDimensionsOrDefault

      public String getDimensionsOrDefault(String key, String defaultValue)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDimensionsOrDefault in interface QuotaPreferenceOrBuilder
    • getDimensionsOrThrow

      public String getDimensionsOrThrow(String key)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDimensionsOrThrow in interface QuotaPreferenceOrBuilder
    • clearDimensions

      public QuotaPreference.Builder clearDimensions()
    • removeDimensions

      public QuotaPreference.Builder removeDimensions(String key)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
    • getMutableDimensions

      @Deprecated public Map<String,String> getMutableDimensions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putDimensions

      public QuotaPreference.Builder putDimensions(String key, String value)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
    • putAllDimensions

      public QuotaPreference.Builder putAllDimensions(Map<String,String> values)
       Immutable. The dimensions that this quota preference applies to. The key of
       the map entry is the name of a dimension, such as "region", "zone",
       "network_id", and the value of the map entry is the dimension value.
      
       If a dimension is missing from the map of dimensions, the quota preference
       applies to all the dimension values except for those that have other quota
       preferences configured for the specific value.
      
       NOTE: QuotaPreferences can only be applied across all values of "user" and
       "resource" dimension. Do not set values for "user" or "resource" in the
       dimension map.
      
       Example: {"provider", "Foo Inc"} where "provider" is a service specific
       dimension.
       
      map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];
    • hasQuotaConfig

      public boolean hasQuotaConfig()
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuotaConfig in interface QuotaPreferenceOrBuilder
      Returns:
      Whether the quotaConfig field is set.
    • getQuotaConfig

      public QuotaConfig getQuotaConfig()
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaConfig in interface QuotaPreferenceOrBuilder
      Returns:
      The quotaConfig.
    • setQuotaConfig

      public QuotaPreference.Builder setQuotaConfig(QuotaConfig value)
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • setQuotaConfig

      public QuotaPreference.Builder setQuotaConfig(QuotaConfig.Builder builderForValue)
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeQuotaConfig

      public QuotaPreference.Builder mergeQuotaConfig(QuotaConfig value)
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearQuotaConfig

      public QuotaPreference.Builder clearQuotaConfig()
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getQuotaConfigBuilder

      public QuotaConfig.Builder getQuotaConfigBuilder()
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getQuotaConfigOrBuilder

      public QuotaConfigOrBuilder getQuotaConfigOrBuilder()
       Required. Preferred quota configuration.
       
      .google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaConfigOrBuilder in interface QuotaPreferenceOrBuilder
    • getEtag

      public String getEtag()
       Optional. The current etag of the quota preference. If an etag is provided
       on update and does not match the current server's etag of the quota
       preference, the request will be blocked and an ABORTED error will be
       returned. See https://google.aip.dev/134#etags for more details on etags.
       
      string etag = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface QuotaPreferenceOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. The current etag of the quota preference. If an etag is provided
       on update and does not match the current server's etag of the quota
       preference, the request will be blocked and an ABORTED error will be
       returned. See https://google.aip.dev/134#etags for more details on etags.
       
      string etag = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public QuotaPreference.Builder setEtag(String value)
       Optional. The current etag of the quota preference. If an etag is provided
       on update and does not match the current server's etag of the quota
       preference, the request will be blocked and an ABORTED error will be
       returned. See https://google.aip.dev/134#etags for more details on etags.
       
      string etag = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public QuotaPreference.Builder clearEtag()
       Optional. The current etag of the quota preference. If an etag is provided
       on update and does not match the current server's etag of the quota
       preference, the request will be blocked and an ABORTED error will be
       returned. See https://google.aip.dev/134#etags for more details on etags.
       
      string etag = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public QuotaPreference.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. The current etag of the quota preference. If an etag is provided
       on update and does not match the current server's etag of the quota
       preference, the request will be blocked and an ABORTED error will be
       returned. See https://google.aip.dev/134#etags for more details on etags.
       
      string etag = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface QuotaPreferenceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface QuotaPreferenceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public QuotaPreference.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public QuotaPreference.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public QuotaPreference.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public QuotaPreference.Builder clearCreateTime()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time stamp
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface QuotaPreferenceOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface QuotaPreferenceOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface QuotaPreferenceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public QuotaPreference.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public QuotaPreference.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public QuotaPreference.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public QuotaPreference.Builder clearUpdateTime()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time stamp
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface QuotaPreferenceOrBuilder
    • getService

      public String getService()
       Required. The name of the service to which the quota preference is applied.
       
      string service = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getService in interface QuotaPreferenceOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. The name of the service to which the quota preference is applied.
       
      string service = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for service.
    • setService

      public QuotaPreference.Builder setService(String value)
       Required. The name of the service to which the quota preference is applied.
       
      string service = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public QuotaPreference.Builder clearService()
       Required. The name of the service to which the quota preference is applied.
       
      string service = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setServiceBytes

      public QuotaPreference.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. The name of the service to which the quota preference is applied.
       
      string service = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getQuotaId

      public String getQuotaId()
       Required. The id of the quota to which the quota preference is applied. A
       quota name is unique in the service. Example: `CpusPerProjectPerRegion`
       
      string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaId in interface QuotaPreferenceOrBuilder
      Returns:
      The quotaId.
    • getQuotaIdBytes

      public com.google.protobuf.ByteString getQuotaIdBytes()
       Required. The id of the quota to which the quota preference is applied. A
       quota name is unique in the service. Example: `CpusPerProjectPerRegion`
       
      string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuotaIdBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for quotaId.
    • setQuotaId

      public QuotaPreference.Builder setQuotaId(String value)
       Required. The id of the quota to which the quota preference is applied. A
       quota name is unique in the service. Example: `CpusPerProjectPerRegion`
       
      string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The quotaId to set.
      Returns:
      This builder for chaining.
    • clearQuotaId

      public QuotaPreference.Builder clearQuotaId()
       Required. The id of the quota to which the quota preference is applied. A
       quota name is unique in the service. Example: `CpusPerProjectPerRegion`
       
      string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setQuotaIdBytes

      public QuotaPreference.Builder setQuotaIdBytes(com.google.protobuf.ByteString value)
       Required. The id of the quota to which the quota preference is applied. A
       quota name is unique in the service. Example: `CpusPerProjectPerRegion`
       
      string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for quotaId to set.
      Returns:
      This builder for chaining.
    • getReconciling

      public boolean getReconciling()
       Output only. Is the quota preference pending Google Cloud approval and
       fulfillment.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReconciling in interface QuotaPreferenceOrBuilder
      Returns:
      The reconciling.
    • setReconciling

      public QuotaPreference.Builder setReconciling(boolean value)
       Output only. Is the quota preference pending Google Cloud approval and
       fulfillment.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reconciling to set.
      Returns:
      This builder for chaining.
    • clearReconciling

      public QuotaPreference.Builder clearReconciling()
       Output only. Is the quota preference pending Google Cloud approval and
       fulfillment.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getJustification

      public String getJustification()
       The reason / justification for this quota preference.
       
      string justification = 11;
      Specified by:
      getJustification in interface QuotaPreferenceOrBuilder
      Returns:
      The justification.
    • getJustificationBytes

      public com.google.protobuf.ByteString getJustificationBytes()
       The reason / justification for this quota preference.
       
      string justification = 11;
      Specified by:
      getJustificationBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for justification.
    • setJustification

      public QuotaPreference.Builder setJustification(String value)
       The reason / justification for this quota preference.
       
      string justification = 11;
      Parameters:
      value - The justification to set.
      Returns:
      This builder for chaining.
    • clearJustification

      public QuotaPreference.Builder clearJustification()
       The reason / justification for this quota preference.
       
      string justification = 11;
      Returns:
      This builder for chaining.
    • setJustificationBytes

      public QuotaPreference.Builder setJustificationBytes(com.google.protobuf.ByteString value)
       The reason / justification for this quota preference.
       
      string justification = 11;
      Parameters:
      value - The bytes for justification to set.
      Returns:
      This builder for chaining.
    • getContactEmail

      public String getContactEmail()
       Input only. An email address that can be used to contact the the user, in
       case Google Cloud needs more information to make a decision before
       additional quota can be granted.
      
       When requesting a quota increase, the email address is required.
       When requesting a quota decrease, the email address is optional.
       For example, the email address is optional when the
       `QuotaConfig.preferred_value` is smaller than the
       `QuotaDetails.reset_value`.
       
      string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getContactEmail in interface QuotaPreferenceOrBuilder
      Returns:
      The contactEmail.
    • getContactEmailBytes

      public com.google.protobuf.ByteString getContactEmailBytes()
       Input only. An email address that can be used to contact the the user, in
       case Google Cloud needs more information to make a decision before
       additional quota can be granted.
      
       When requesting a quota increase, the email address is required.
       When requesting a quota decrease, the email address is optional.
       For example, the email address is optional when the
       `QuotaConfig.preferred_value` is smaller than the
       `QuotaDetails.reset_value`.
       
      string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getContactEmailBytes in interface QuotaPreferenceOrBuilder
      Returns:
      The bytes for contactEmail.
    • setContactEmail

      public QuotaPreference.Builder setContactEmail(String value)
       Input only. An email address that can be used to contact the the user, in
       case Google Cloud needs more information to make a decision before
       additional quota can be granted.
      
       When requesting a quota increase, the email address is required.
       When requesting a quota decrease, the email address is optional.
       For example, the email address is optional when the
       `QuotaConfig.preferred_value` is smaller than the
       `QuotaDetails.reset_value`.
       
      string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The contactEmail to set.
      Returns:
      This builder for chaining.
    • clearContactEmail

      public QuotaPreference.Builder clearContactEmail()
       Input only. An email address that can be used to contact the the user, in
       case Google Cloud needs more information to make a decision before
       additional quota can be granted.
      
       When requesting a quota increase, the email address is required.
       When requesting a quota decrease, the email address is optional.
       For example, the email address is optional when the
       `QuotaConfig.preferred_value` is smaller than the
       `QuotaDetails.reset_value`.
       
      string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • setContactEmailBytes

      public QuotaPreference.Builder setContactEmailBytes(com.google.protobuf.ByteString value)
       Input only. An email address that can be used to contact the the user, in
       case Google Cloud needs more information to make a decision before
       additional quota can be granted.
      
       When requesting a quota increase, the email address is required.
       When requesting a quota decrease, the email address is optional.
       For example, the email address is optional when the
       `QuotaConfig.preferred_value` is smaller than the
       `QuotaDetails.reset_value`.
       
      string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes for contactEmail to set.
      Returns:
      This builder for chaining.