Class QuotaConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.cloudquotas.v1.QuotaConfig
All Implemented Interfaces:
QuotaConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class QuotaConfig extends com.google.protobuf.GeneratedMessage implements QuotaConfigOrBuilder
 The preferred quota configuration.
 
Protobuf type google.api.cloudquotas.v1.QuotaConfig
See Also:
  • Field Details

    • PREFERRED_VALUE_FIELD_NUMBER

      public static final int PREFERRED_VALUE_FIELD_NUMBER
      See Also:
    • STATE_DETAIL_FIELD_NUMBER

      public static final int STATE_DETAIL_FIELD_NUMBER
      See Also:
    • GRANTED_VALUE_FIELD_NUMBER

      public static final int GRANTED_VALUE_FIELD_NUMBER
      See Also:
    • TRACE_ID_FIELD_NUMBER

      public static final int TRACE_ID_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_FIELD_NUMBER
      See Also:
    • REQUEST_ORIGIN_FIELD_NUMBER

      public static final int REQUEST_ORIGIN_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static QuotaConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QuotaConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QuotaConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QuotaConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QuotaConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QuotaConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QuotaConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static QuotaConfig.Builder newBuilder()
    • newBuilder

      public static QuotaConfig.Builder newBuilder(QuotaConfig prototype)
    • toBuilder

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

      protected QuotaConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QuotaConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QuotaConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<QuotaConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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