Class QuotaOperation.Builder

  • All Implemented Interfaces:
    QuotaOperationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    QuotaOperation

    public static final class QuotaOperation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
    implements QuotaOperationOrBuilder
     Represents information regarding a quota operation.
     
    Protobuf type google.api.servicecontrol.v1.QuotaOperation
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

        public QuotaOperation.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<QuotaOperation.Builder>
      • setField

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

        public QuotaOperation.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<QuotaOperation.Builder>
      • clearOneof

        public QuotaOperation.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<QuotaOperation.Builder>
      • setRepeatedField

        public QuotaOperation.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<QuotaOperation.Builder>
      • addRepeatedField

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

        public QuotaOperation.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<QuotaOperation.Builder>
      • isInitialized

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

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

        public String getOperationId()
         Identity of the operation. This is expected to be unique within the scope
         of the service that generated the operation, and guarantees idempotency in
         case of retries.
        
         In order to ensure best performance and latency in the Quota backends,
         operation_ids are optimally associated with time, so that related
         operations can be accessed fast in storage. For this reason, the
         recommended token for services that intend to operate at a high QPS is
         Unix time in nanos + UUID
         
        string operation_id = 1;
        Specified by:
        getOperationId in interface QuotaOperationOrBuilder
        Returns:
        The operationId.
      • getOperationIdBytes

        public com.google.protobuf.ByteString getOperationIdBytes()
         Identity of the operation. This is expected to be unique within the scope
         of the service that generated the operation, and guarantees idempotency in
         case of retries.
        
         In order to ensure best performance and latency in the Quota backends,
         operation_ids are optimally associated with time, so that related
         operations can be accessed fast in storage. For this reason, the
         recommended token for services that intend to operate at a high QPS is
         Unix time in nanos + UUID
         
        string operation_id = 1;
        Specified by:
        getOperationIdBytes in interface QuotaOperationOrBuilder
        Returns:
        The bytes for operationId.
      • setOperationId

        public QuotaOperation.Builder setOperationId​(String value)
         Identity of the operation. This is expected to be unique within the scope
         of the service that generated the operation, and guarantees idempotency in
         case of retries.
        
         In order to ensure best performance and latency in the Quota backends,
         operation_ids are optimally associated with time, so that related
         operations can be accessed fast in storage. For this reason, the
         recommended token for services that intend to operate at a high QPS is
         Unix time in nanos + UUID
         
        string operation_id = 1;
        Parameters:
        value - The operationId to set.
        Returns:
        This builder for chaining.
      • clearOperationId

        public QuotaOperation.Builder clearOperationId()
         Identity of the operation. This is expected to be unique within the scope
         of the service that generated the operation, and guarantees idempotency in
         case of retries.
        
         In order to ensure best performance and latency in the Quota backends,
         operation_ids are optimally associated with time, so that related
         operations can be accessed fast in storage. For this reason, the
         recommended token for services that intend to operate at a high QPS is
         Unix time in nanos + UUID
         
        string operation_id = 1;
        Returns:
        This builder for chaining.
      • setOperationIdBytes

        public QuotaOperation.Builder setOperationIdBytes​(com.google.protobuf.ByteString value)
         Identity of the operation. This is expected to be unique within the scope
         of the service that generated the operation, and guarantees idempotency in
         case of retries.
        
         In order to ensure best performance and latency in the Quota backends,
         operation_ids are optimally associated with time, so that related
         operations can be accessed fast in storage. For this reason, the
         recommended token for services that intend to operate at a high QPS is
         Unix time in nanos + UUID
         
        string operation_id = 1;
        Parameters:
        value - The bytes for operationId to set.
        Returns:
        This builder for chaining.
      • getMethodName

        public String getMethodName()
         Fully qualified name of the API method for which this quota operation is
         requested. This name is used for matching quota rules or metric rules and
         billing status rules defined in service configuration.
        
         This field should not be set if any of the following is true:
         (1) the quota operation is performed on non-API resources.
         (2) quota_metrics is set because the caller is doing quota override.
        
        
         Example of an RPC method name:
             google.example.library.v1.LibraryService.CreateShelf
         
        string method_name = 2;
        Specified by:
        getMethodName in interface QuotaOperationOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         Fully qualified name of the API method for which this quota operation is
         requested. This name is used for matching quota rules or metric rules and
         billing status rules defined in service configuration.
        
         This field should not be set if any of the following is true:
         (1) the quota operation is performed on non-API resources.
         (2) quota_metrics is set because the caller is doing quota override.
        
        
         Example of an RPC method name:
             google.example.library.v1.LibraryService.CreateShelf
         
        string method_name = 2;
        Specified by:
        getMethodNameBytes in interface QuotaOperationOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public QuotaOperation.Builder setMethodName​(String value)
         Fully qualified name of the API method for which this quota operation is
         requested. This name is used for matching quota rules or metric rules and
         billing status rules defined in service configuration.
        
         This field should not be set if any of the following is true:
         (1) the quota operation is performed on non-API resources.
         (2) quota_metrics is set because the caller is doing quota override.
        
        
         Example of an RPC method name:
             google.example.library.v1.LibraryService.CreateShelf
         
        string method_name = 2;
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public QuotaOperation.Builder clearMethodName()
         Fully qualified name of the API method for which this quota operation is
         requested. This name is used for matching quota rules or metric rules and
         billing status rules defined in service configuration.
        
         This field should not be set if any of the following is true:
         (1) the quota operation is performed on non-API resources.
         (2) quota_metrics is set because the caller is doing quota override.
        
        
         Example of an RPC method name:
             google.example.library.v1.LibraryService.CreateShelf
         
        string method_name = 2;
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public QuotaOperation.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         Fully qualified name of the API method for which this quota operation is
         requested. This name is used for matching quota rules or metric rules and
         billing status rules defined in service configuration.
        
         This field should not be set if any of the following is true:
         (1) the quota operation is performed on non-API resources.
         (2) quota_metrics is set because the caller is doing quota override.
        
        
         Example of an RPC method name:
             google.example.library.v1.LibraryService.CreateShelf
         
        string method_name = 2;
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • getConsumerId

        public String getConsumerId()
         Identity of the consumer for whom this quota operation is being performed.
        
         This can be in one of the following formats:
           project:<project_id>,
           project_number:<project_number>,
           api_key:<api_key>.
         
        string consumer_id = 3;
        Specified by:
        getConsumerId in interface QuotaOperationOrBuilder
        Returns:
        The consumerId.
      • getConsumerIdBytes

        public com.google.protobuf.ByteString getConsumerIdBytes()
         Identity of the consumer for whom this quota operation is being performed.
        
         This can be in one of the following formats:
           project:<project_id>,
           project_number:<project_number>,
           api_key:<api_key>.
         
        string consumer_id = 3;
        Specified by:
        getConsumerIdBytes in interface QuotaOperationOrBuilder
        Returns:
        The bytes for consumerId.
      • setConsumerId

        public QuotaOperation.Builder setConsumerId​(String value)
         Identity of the consumer for whom this quota operation is being performed.
        
         This can be in one of the following formats:
           project:<project_id>,
           project_number:<project_number>,
           api_key:<api_key>.
         
        string consumer_id = 3;
        Parameters:
        value - The consumerId to set.
        Returns:
        This builder for chaining.
      • clearConsumerId

        public QuotaOperation.Builder clearConsumerId()
         Identity of the consumer for whom this quota operation is being performed.
        
         This can be in one of the following formats:
           project:<project_id>,
           project_number:<project_number>,
           api_key:<api_key>.
         
        string consumer_id = 3;
        Returns:
        This builder for chaining.
      • setConsumerIdBytes

        public QuotaOperation.Builder setConsumerIdBytes​(com.google.protobuf.ByteString value)
         Identity of the consumer for whom this quota operation is being performed.
        
         This can be in one of the following formats:
           project:<project_id>,
           project_number:<project_number>,
           api_key:<api_key>.
         
        string consumer_id = 3;
        Parameters:
        value - The bytes for consumerId to set.
        Returns:
        This builder for chaining.
      • removeLabels

        public QuotaOperation.Builder removeLabels​(String key)
         Labels describing the operation.
         
        map<string, string> labels = 4;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getQuotaMetricsList

        public List<MetricValueSet> getQuotaMetricsList()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
        Specified by:
        getQuotaMetricsList in interface QuotaOperationOrBuilder
      • getQuotaMetricsCount

        public int getQuotaMetricsCount()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
        Specified by:
        getQuotaMetricsCount in interface QuotaOperationOrBuilder
      • getQuotaMetrics

        public MetricValueSet getQuotaMetrics​(int index)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
        Specified by:
        getQuotaMetrics in interface QuotaOperationOrBuilder
      • setQuotaMetrics

        public QuotaOperation.Builder setQuotaMetrics​(int index,
                                                      MetricValueSet value)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • setQuotaMetrics

        public QuotaOperation.Builder setQuotaMetrics​(int index,
                                                      MetricValueSet.Builder builderForValue)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addQuotaMetrics

        public QuotaOperation.Builder addQuotaMetrics​(MetricValueSet value)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addQuotaMetrics

        public QuotaOperation.Builder addQuotaMetrics​(int index,
                                                      MetricValueSet value)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addQuotaMetrics

        public QuotaOperation.Builder addQuotaMetrics​(MetricValueSet.Builder builderForValue)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addQuotaMetrics

        public QuotaOperation.Builder addQuotaMetrics​(int index,
                                                      MetricValueSet.Builder builderForValue)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addAllQuotaMetrics

        public QuotaOperation.Builder addAllQuotaMetrics​(Iterable<? extends MetricValueSet> values)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • clearQuotaMetrics

        public QuotaOperation.Builder clearQuotaMetrics()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • removeQuotaMetrics

        public QuotaOperation.Builder removeQuotaMetrics​(int index)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • getQuotaMetricsBuilder

        public MetricValueSet.Builder getQuotaMetricsBuilder​(int index)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • getQuotaMetricsOrBuilder

        public MetricValueSetOrBuilder getQuotaMetricsOrBuilder​(int index)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
        Specified by:
        getQuotaMetricsOrBuilder in interface QuotaOperationOrBuilder
      • getQuotaMetricsOrBuilderList

        public List<? extends MetricValueSetOrBuilder> getQuotaMetricsOrBuilderList()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
        Specified by:
        getQuotaMetricsOrBuilderList in interface QuotaOperationOrBuilder
      • addQuotaMetricsBuilder

        public MetricValueSet.Builder addQuotaMetricsBuilder()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • addQuotaMetricsBuilder

        public MetricValueSet.Builder addQuotaMetricsBuilder​(int index)
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • getQuotaMetricsBuilderList

        public List<MetricValueSet.Builder> getQuotaMetricsBuilderList()
         Represents information about this operation. Each MetricValueSet
         corresponds to a metric defined in the service configuration.
         The data type used in the MetricValueSet must agree with
         the data type specified in the metric definition.
        
         Within a single operation, it is not allowed to have more than one
         MetricValue instances that have the same metric names and identical
         label value combinations. If a request has such duplicated MetricValue
         instances, the entire request is rejected with
         an invalid argument error.
        
         This field is mutually exclusive with method_name.
         
        repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;
      • getQuotaModeValue

        public int getQuotaModeValue()
         Quota mode for this operation.
         
        .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;
        Specified by:
        getQuotaModeValue in interface QuotaOperationOrBuilder
        Returns:
        The enum numeric value on the wire for quotaMode.
      • setQuotaModeValue

        public QuotaOperation.Builder setQuotaModeValue​(int value)
         Quota mode for this operation.
         
        .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;
        Parameters:
        value - The enum numeric value on the wire for quotaMode to set.
        Returns:
        This builder for chaining.
      • setQuotaMode

        public QuotaOperation.Builder setQuotaMode​(QuotaOperation.QuotaMode value)
         Quota mode for this operation.
         
        .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;
        Parameters:
        value - The quotaMode to set.
        Returns:
        This builder for chaining.
      • clearQuotaMode

        public QuotaOperation.Builder clearQuotaMode()
         Quota mode for this operation.
         
        .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final QuotaOperation.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<QuotaOperation.Builder>
      • mergeUnknownFields

        public final QuotaOperation.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<QuotaOperation.Builder>