Class QuotaOperation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>
com.google.api.servicecontrol.v1.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.GeneratedMessage.Builder<QuotaOperation.Builder> implements QuotaOperationOrBuilder
 Represents information regarding a quota operation.
 
Protobuf type google.api.servicecontrol.v1.QuotaOperation
  • Method Details

    • getDescriptor

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

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

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

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

      public QuotaOperation.Builder mergeFrom(QuotaOperation other)
    • isInitialized

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

      public int getLabelsCount()
      Description copied from interface: QuotaOperationOrBuilder
       Labels describing the operation.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface QuotaOperationOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels describing the operation.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface QuotaOperationOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface QuotaOperationOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels describing the operation.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface QuotaOperationOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels describing the operation.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface QuotaOperationOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels describing the operation.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface QuotaOperationOrBuilder
    • clearLabels

      public QuotaOperation.Builder clearLabels()
    • 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.
    • putLabels

      public QuotaOperation.Builder putLabels(String key, String value)
       Labels describing the operation.
       
      map<string, string> labels = 4;
    • putAllLabels

      public QuotaOperation.Builder putAllLabels(Map<String,String> values)
       Labels describing the operation.
       
      map<string, string> labels = 4;
    • 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.
    • getQuotaMode

      public QuotaOperation.QuotaMode getQuotaMode()
       Quota mode for this operation.
       
      .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;
      Specified by:
      getQuotaMode in interface QuotaOperationOrBuilder
      Returns:
      The quotaMode.
    • 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.