Class AllocateQuotaResponse.Builder

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

public static final class AllocateQuotaResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder> implements AllocateQuotaResponseOrBuilder
 Response message for the AllocateQuota method.
 
Protobuf type google.api.servicecontrol.v1.AllocateQuotaResponse
  • Method Details

    • getDescriptor

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

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

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

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

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

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

    • isInitialized

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

      public AllocateQuotaResponse.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<AllocateQuotaResponse.Builder>
      Throws:
      IOException
    • getOperationId

      public String getOperationId()
       The same operation_id value used in the AllocateQuotaRequest. Used for
       logging and diagnostics purposes.
       
      string operation_id = 1;
      Specified by:
      getOperationId in interface AllocateQuotaResponseOrBuilder
      Returns:
      The operationId.
    • getOperationIdBytes

      public com.google.protobuf.ByteString getOperationIdBytes()
       The same operation_id value used in the AllocateQuotaRequest. Used for
       logging and diagnostics purposes.
       
      string operation_id = 1;
      Specified by:
      getOperationIdBytes in interface AllocateQuotaResponseOrBuilder
      Returns:
      The bytes for operationId.
    • setOperationId

      public AllocateQuotaResponse.Builder setOperationId(String value)
       The same operation_id value used in the AllocateQuotaRequest. Used for
       logging and diagnostics purposes.
       
      string operation_id = 1;
      Parameters:
      value - The operationId to set.
      Returns:
      This builder for chaining.
    • clearOperationId

      public AllocateQuotaResponse.Builder clearOperationId()
       The same operation_id value used in the AllocateQuotaRequest. Used for
       logging and diagnostics purposes.
       
      string operation_id = 1;
      Returns:
      This builder for chaining.
    • setOperationIdBytes

      public AllocateQuotaResponse.Builder setOperationIdBytes(com.google.protobuf.ByteString value)
       The same operation_id value used in the AllocateQuotaRequest. Used for
       logging and diagnostics purposes.
       
      string operation_id = 1;
      Parameters:
      value - The bytes for operationId to set.
      Returns:
      This builder for chaining.
    • getAllocateErrorsList

      public List<QuotaError> getAllocateErrorsList()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
      Specified by:
      getAllocateErrorsList in interface AllocateQuotaResponseOrBuilder
    • getAllocateErrorsCount

      public int getAllocateErrorsCount()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
      Specified by:
      getAllocateErrorsCount in interface AllocateQuotaResponseOrBuilder
    • getAllocateErrors

      public QuotaError getAllocateErrors(int index)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
      Specified by:
      getAllocateErrors in interface AllocateQuotaResponseOrBuilder
    • setAllocateErrors

      public AllocateQuotaResponse.Builder setAllocateErrors(int index, QuotaError value)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • setAllocateErrors

      public AllocateQuotaResponse.Builder setAllocateErrors(int index, QuotaError.Builder builderForValue)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllocateErrors

      public AllocateQuotaResponse.Builder addAllocateErrors(QuotaError value)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllocateErrors

      public AllocateQuotaResponse.Builder addAllocateErrors(int index, QuotaError value)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllocateErrors

      public AllocateQuotaResponse.Builder addAllocateErrors(QuotaError.Builder builderForValue)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllocateErrors

      public AllocateQuotaResponse.Builder addAllocateErrors(int index, QuotaError.Builder builderForValue)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllAllocateErrors

      public AllocateQuotaResponse.Builder addAllAllocateErrors(Iterable<? extends QuotaError> values)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • clearAllocateErrors

      public AllocateQuotaResponse.Builder clearAllocateErrors()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • removeAllocateErrors

      public AllocateQuotaResponse.Builder removeAllocateErrors(int index)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • getAllocateErrorsBuilder

      public QuotaError.Builder getAllocateErrorsBuilder(int index)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • getAllocateErrorsOrBuilder

      public QuotaErrorOrBuilder getAllocateErrorsOrBuilder(int index)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
      Specified by:
      getAllocateErrorsOrBuilder in interface AllocateQuotaResponseOrBuilder
    • getAllocateErrorsOrBuilderList

      public List<? extends QuotaErrorOrBuilder> getAllocateErrorsOrBuilderList()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
      Specified by:
      getAllocateErrorsOrBuilderList in interface AllocateQuotaResponseOrBuilder
    • addAllocateErrorsBuilder

      public QuotaError.Builder addAllocateErrorsBuilder()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • addAllocateErrorsBuilder

      public QuotaError.Builder addAllocateErrorsBuilder(int index)
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • getAllocateErrorsBuilderList

      public List<QuotaError.Builder> getAllocateErrorsBuilderList()
       Indicates the decision of the allocate.
       
      repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
    • getQuotaMetricsList

      public List<MetricValueSet> getQuotaMetricsList()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
      Specified by:
      getQuotaMetricsList in interface AllocateQuotaResponseOrBuilder
    • getQuotaMetricsCount

      public int getQuotaMetricsCount()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
      Specified by:
      getQuotaMetricsCount in interface AllocateQuotaResponseOrBuilder
    • getQuotaMetrics

      public MetricValueSet getQuotaMetrics(int index)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
      Specified by:
      getQuotaMetrics in interface AllocateQuotaResponseOrBuilder
    • setQuotaMetrics

      public AllocateQuotaResponse.Builder setQuotaMetrics(int index, MetricValueSet value)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • setQuotaMetrics

      public AllocateQuotaResponse.Builder setQuotaMetrics(int index, MetricValueSet.Builder builderForValue)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addQuotaMetrics

      public AllocateQuotaResponse.Builder addQuotaMetrics(MetricValueSet value)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addQuotaMetrics

      public AllocateQuotaResponse.Builder addQuotaMetrics(int index, MetricValueSet value)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addQuotaMetrics

      public AllocateQuotaResponse.Builder addQuotaMetrics(MetricValueSet.Builder builderForValue)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addQuotaMetrics

      public AllocateQuotaResponse.Builder addQuotaMetrics(int index, MetricValueSet.Builder builderForValue)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addAllQuotaMetrics

      public AllocateQuotaResponse.Builder addAllQuotaMetrics(Iterable<? extends MetricValueSet> values)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • clearQuotaMetrics

      public AllocateQuotaResponse.Builder clearQuotaMetrics()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • removeQuotaMetrics

      public AllocateQuotaResponse.Builder removeQuotaMetrics(int index)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • getQuotaMetricsBuilder

      public MetricValueSet.Builder getQuotaMetricsBuilder(int index)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • getQuotaMetricsOrBuilder

      public MetricValueSetOrBuilder getQuotaMetricsOrBuilder(int index)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
      Specified by:
      getQuotaMetricsOrBuilder in interface AllocateQuotaResponseOrBuilder
    • getQuotaMetricsOrBuilderList

      public List<? extends MetricValueSetOrBuilder> getQuotaMetricsOrBuilderList()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
      Specified by:
      getQuotaMetricsOrBuilderList in interface AllocateQuotaResponseOrBuilder
    • addQuotaMetricsBuilder

      public MetricValueSet.Builder addQuotaMetricsBuilder()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • addQuotaMetricsBuilder

      public MetricValueSet.Builder addQuotaMetricsBuilder(int index)
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • getQuotaMetricsBuilderList

      public List<MetricValueSet.Builder> getQuotaMetricsBuilderList()
       Quota metrics to indicate the result of allocation. Depending on the
       request, one or more of the following metrics will be included:
      
       1. Per quota group or per quota metric incremental usage will be specified
       using the following delta metric :
       "serviceruntime.googleapis.com/api/consumer/quota_used_count"
      
       2. The quota limit reached condition will be specified using the following
       boolean metric :
       "serviceruntime.googleapis.com/quota/exceeded"
       
      repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;
    • getServiceConfigId

      public String getServiceConfigId()
       ID of the actual config used to process the request.
       
      string service_config_id = 4;
      Specified by:
      getServiceConfigId in interface AllocateQuotaResponseOrBuilder
      Returns:
      The serviceConfigId.
    • getServiceConfigIdBytes

      public com.google.protobuf.ByteString getServiceConfigIdBytes()
       ID of the actual config used to process the request.
       
      string service_config_id = 4;
      Specified by:
      getServiceConfigIdBytes in interface AllocateQuotaResponseOrBuilder
      Returns:
      The bytes for serviceConfigId.
    • setServiceConfigId

      public AllocateQuotaResponse.Builder setServiceConfigId(String value)
       ID of the actual config used to process the request.
       
      string service_config_id = 4;
      Parameters:
      value - The serviceConfigId to set.
      Returns:
      This builder for chaining.
    • clearServiceConfigId

      public AllocateQuotaResponse.Builder clearServiceConfigId()
       ID of the actual config used to process the request.
       
      string service_config_id = 4;
      Returns:
      This builder for chaining.
    • setServiceConfigIdBytes

      public AllocateQuotaResponse.Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value)
       ID of the actual config used to process the request.
       
      string service_config_id = 4;
      Parameters:
      value - The bytes for serviceConfigId to set.
      Returns:
      This builder for chaining.