Class AllocateQuotaResponse.Builder

    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public AllocateQuotaResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • clearField

        public AllocateQuotaResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • clearOneof

        public AllocateQuotaResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • setRepeatedField

        public AllocateQuotaResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • addRepeatedField

        public AllocateQuotaResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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​(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;
      • 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;
      • 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.
      • setUnknownFields

        public final AllocateQuotaResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>
      • mergeUnknownFields

        public final AllocateQuotaResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocateQuotaResponse.Builder>