Class QuotaConfig.Builder

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

public static final class QuotaConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuotaConfig.Builder> implements QuotaConfigOrBuilder
 The preferred quota configuration.
 
Protobuf type google.api.cloudquotas.v1.QuotaConfig
  • 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<QuotaConfig.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public QuotaConfig.Builder mergeFrom(QuotaConfig other)
    • isInitialized

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

      public QuotaConfig.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<QuotaConfig.Builder>
      Throws:
      IOException
    • getPreferredValue

      public long getPreferredValue()
       Required. The preferred value. Must be greater than or equal to -1. If set
       to -1, it means the value is "unlimited".
       
      int64 preferred_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPreferredValue in interface QuotaConfigOrBuilder
      Returns:
      The preferredValue.
    • setPreferredValue

      public QuotaConfig.Builder setPreferredValue(long value)
       Required. The preferred value. Must be greater than or equal to -1. If set
       to -1, it means the value is "unlimited".
       
      int64 preferred_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The preferredValue to set.
      Returns:
      This builder for chaining.
    • clearPreferredValue

      public QuotaConfig.Builder clearPreferredValue()
       Required. The preferred value. Must be greater than or equal to -1. If set
       to -1, it means the value is "unlimited".
       
      int64 preferred_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getStateDetail

      public String getStateDetail()
       Output only. Optional details about the state of this quota preference.
       
      string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDetail in interface QuotaConfigOrBuilder
      Returns:
      The stateDetail.
    • getStateDetailBytes

      public com.google.protobuf.ByteString getStateDetailBytes()
       Output only. Optional details about the state of this quota preference.
       
      string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDetailBytes in interface QuotaConfigOrBuilder
      Returns:
      The bytes for stateDetail.
    • setStateDetail

      public QuotaConfig.Builder setStateDetail(String value)
       Output only. Optional details about the state of this quota preference.
       
      string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The stateDetail to set.
      Returns:
      This builder for chaining.
    • clearStateDetail

      public QuotaConfig.Builder clearStateDetail()
       Output only. Optional details about the state of this quota preference.
       
      string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setStateDetailBytes

      public QuotaConfig.Builder setStateDetailBytes(com.google.protobuf.ByteString value)
       Output only. Optional details about the state of this quota preference.
       
      string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for stateDetail to set.
      Returns:
      This builder for chaining.
    • hasGrantedValue

      public boolean hasGrantedValue()
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasGrantedValue in interface QuotaConfigOrBuilder
      Returns:
      Whether the grantedValue field is set.
    • getGrantedValue

      public com.google.protobuf.Int64Value getGrantedValue()
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGrantedValue in interface QuotaConfigOrBuilder
      Returns:
      The grantedValue.
    • setGrantedValue

      public QuotaConfig.Builder setGrantedValue(com.google.protobuf.Int64Value value)
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setGrantedValue

      public QuotaConfig.Builder setGrantedValue(com.google.protobuf.Int64Value.Builder builderForValue)
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeGrantedValue

      public QuotaConfig.Builder mergeGrantedValue(com.google.protobuf.Int64Value value)
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearGrantedValue

      public QuotaConfig.Builder clearGrantedValue()
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getGrantedValueBuilder

      public com.google.protobuf.Int64Value.Builder getGrantedValueBuilder()
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getGrantedValueOrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getGrantedValueOrBuilder()
       Output only. Granted quota value.
       
      .google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGrantedValueOrBuilder in interface QuotaConfigOrBuilder
    • getTraceId

      public String getTraceId()
       Output only. The trace id that the Google Cloud uses to provision the
       requested quota. This trace id may be used by the client to contact Cloud
       support to track the state of a quota preference request. The trace id is
       only produced for increase requests and is unique for each request. The
       quota decrease requests do not have a trace id.
       
      string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTraceId in interface QuotaConfigOrBuilder
      Returns:
      The traceId.
    • getTraceIdBytes

      public com.google.protobuf.ByteString getTraceIdBytes()
       Output only. The trace id that the Google Cloud uses to provision the
       requested quota. This trace id may be used by the client to contact Cloud
       support to track the state of a quota preference request. The trace id is
       only produced for increase requests and is unique for each request. The
       quota decrease requests do not have a trace id.
       
      string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTraceIdBytes in interface QuotaConfigOrBuilder
      Returns:
      The bytes for traceId.
    • setTraceId

      public QuotaConfig.Builder setTraceId(String value)
       Output only. The trace id that the Google Cloud uses to provision the
       requested quota. This trace id may be used by the client to contact Cloud
       support to track the state of a quota preference request. The trace id is
       only produced for increase requests and is unique for each request. The
       quota decrease requests do not have a trace id.
       
      string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The traceId to set.
      Returns:
      This builder for chaining.
    • clearTraceId

      public QuotaConfig.Builder clearTraceId()
       Output only. The trace id that the Google Cloud uses to provision the
       requested quota. This trace id may be used by the client to contact Cloud
       support to track the state of a quota preference request. The trace id is
       only produced for increase requests and is unique for each request. The
       quota decrease requests do not have a trace id.
       
      string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTraceIdBytes

      public QuotaConfig.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
       Output only. The trace id that the Google Cloud uses to provision the
       requested quota. This trace id may be used by the client to contact Cloud
       support to track the state of a quota preference request. The trace id is
       only produced for increase requests and is unique for each request. The
       quota decrease requests do not have a trace id.
       
      string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for traceId to set.
      Returns:
      This builder for chaining.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: QuotaConfigOrBuilder
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface QuotaConfigOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface QuotaConfigOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface QuotaConfigOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface QuotaConfigOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface QuotaConfigOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface QuotaConfigOrBuilder
    • clearAnnotations

      public QuotaConfig.Builder clearAnnotations()
    • removeAnnotations

      public QuotaConfig.Builder removeAnnotations(String key)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

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

      public QuotaConfig.Builder putAnnotations(String key, String value)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public QuotaConfig.Builder putAllAnnotations(Map<String,String> values)
       Optional. The annotations map for clients to store small amounts of
       arbitrary data. Do not put PII or other sensitive information here. See
       https://google.aip.dev/128#annotations
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getRequestOriginValue

      public int getRequestOriginValue()
       Output only. The origin of the quota preference request.
       
      .google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestOriginValue in interface QuotaConfigOrBuilder
      Returns:
      The enum numeric value on the wire for requestOrigin.
    • setRequestOriginValue

      public QuotaConfig.Builder setRequestOriginValue(int value)
       Output only. The origin of the quota preference request.
       
      .google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for requestOrigin to set.
      Returns:
      This builder for chaining.
    • getRequestOrigin

      public QuotaConfig.Origin getRequestOrigin()
       Output only. The origin of the quota preference request.
       
      .google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestOrigin in interface QuotaConfigOrBuilder
      Returns:
      The requestOrigin.
    • setRequestOrigin

      public QuotaConfig.Builder setRequestOrigin(QuotaConfig.Origin value)
       Output only. The origin of the quota preference request.
       
      .google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The requestOrigin to set.
      Returns:
      This builder for chaining.
    • clearRequestOrigin

      public QuotaConfig.Builder clearRequestOrigin()
       Output only. The origin of the quota preference request.
       
      .google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.