Package com.google.api.servicecontrol.v1
Class QuotaOperation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<QuotaOperation.Builder> implements QuotaOperationOrBuilder
Represents information regarding a quota operation.
Protobuf typegoogle.api.servicecontrol.v1.QuotaOperation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QuotaOperation.BuilderaddAllQuotaMetrics(Iterable<? extends MetricValueSet> values)Represents information about this operation.QuotaOperation.BuilderaddQuotaMetrics(int index, MetricValueSet value)Represents information about this operation.QuotaOperation.BuilderaddQuotaMetrics(int index, MetricValueSet.Builder builderForValue)Represents information about this operation.QuotaOperation.BuilderaddQuotaMetrics(MetricValueSet value)Represents information about this operation.QuotaOperation.BuilderaddQuotaMetrics(MetricValueSet.Builder builderForValue)Represents information about this operation.MetricValueSet.BuilderaddQuotaMetricsBuilder()Represents information about this operation.MetricValueSet.BuilderaddQuotaMetricsBuilder(int index)Represents information about this operation.QuotaOperation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QuotaOperationbuild()QuotaOperationbuildPartial()QuotaOperation.Builderclear()QuotaOperation.BuilderclearConsumerId()Identity of the consumer for whom this quota operation is being performed.QuotaOperation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QuotaOperation.BuilderclearLabels()QuotaOperation.BuilderclearMethodName()Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QuotaOperation.BuilderclearOperationId()Identity of the operation.QuotaOperation.BuilderclearQuotaMetrics()Represents information about this operation.QuotaOperation.BuilderclearQuotaMode()Quota mode for this operation.QuotaOperation.Builderclone()booleancontainsLabels(String key)Labels describing the operation.StringgetConsumerId()Identity of the consumer for whom this quota operation is being performed.com.google.protobuf.ByteStringgetConsumerIdBytes()Identity of the consumer for whom this quota operation is being performed.QuotaOperationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels describing the operation.Map<String,String>getLabelsMap()Labels describing the operation.StringgetLabelsOrDefault(String key, String defaultValue)Labels describing the operation.StringgetLabelsOrThrow(String key)Labels describing the operation.StringgetMethodName()Fully qualified name of the API method for which this quota operation is requested.com.google.protobuf.ByteStringgetMethodNameBytes()Fully qualified name of the API method for which this quota operation is requested.Map<String,String>getMutableLabels()Deprecated.StringgetOperationId()Identity of the operation.com.google.protobuf.ByteStringgetOperationIdBytes()Identity of the operation.MetricValueSetgetQuotaMetrics(int index)Represents information about this operation.MetricValueSet.BuildergetQuotaMetricsBuilder(int index)Represents information about this operation.List<MetricValueSet.Builder>getQuotaMetricsBuilderList()Represents information about this operation.intgetQuotaMetricsCount()Represents information about this operation.List<MetricValueSet>getQuotaMetricsList()Represents information about this operation.MetricValueSetOrBuildergetQuotaMetricsOrBuilder(int index)Represents information about this operation.List<? extends MetricValueSetOrBuilder>getQuotaMetricsOrBuilderList()Represents information about this operation.QuotaOperation.QuotaModegetQuotaMode()Quota mode for this operation.intgetQuotaModeValue()Quota mode for this operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()QuotaOperation.BuildermergeFrom(QuotaOperation other)QuotaOperation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QuotaOperation.BuildermergeFrom(com.google.protobuf.Message other)QuotaOperation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QuotaOperation.BuilderputAllLabels(Map<String,String> values)Labels describing the operation.QuotaOperation.BuilderputLabels(String key, String value)Labels describing the operation.QuotaOperation.BuilderremoveLabels(String key)Labels describing the operation.QuotaOperation.BuilderremoveQuotaMetrics(int index)Represents information about this operation.QuotaOperation.BuildersetConsumerId(String value)Identity of the consumer for whom this quota operation is being performed.QuotaOperation.BuildersetConsumerIdBytes(com.google.protobuf.ByteString value)Identity of the consumer for whom this quota operation is being performed.QuotaOperation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QuotaOperation.BuildersetMethodName(String value)Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.BuildersetMethodNameBytes(com.google.protobuf.ByteString value)Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.BuildersetOperationId(String value)Identity of the operation.QuotaOperation.BuildersetOperationIdBytes(com.google.protobuf.ByteString value)Identity of the operation.QuotaOperation.BuildersetQuotaMetrics(int index, MetricValueSet value)Represents information about this operation.QuotaOperation.BuildersetQuotaMetrics(int index, MetricValueSet.Builder builderForValue)Represents information about this operation.QuotaOperation.BuildersetQuotaMode(QuotaOperation.QuotaMode value)Quota mode for this operation.QuotaOperation.BuildersetQuotaModeValue(int value)Quota mode for this operation.QuotaOperation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QuotaOperation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clear
public QuotaOperation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
getDefaultInstanceForType
public QuotaOperation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QuotaOperation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QuotaOperation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QuotaOperation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
setField
public QuotaOperation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clearField
public QuotaOperation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clearOneof
public QuotaOperation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
setRepeatedField
public QuotaOperation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
addRepeatedField
public QuotaOperation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
mergeFrom
public QuotaOperation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QuotaOperation.Builder>
-
mergeFrom
public QuotaOperation.Builder mergeFrom(QuotaOperation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getOperationIdin interfaceQuotaOperationOrBuilder- 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:
getOperationIdBytesin interfaceQuotaOperationOrBuilder- 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.CreateShelfstring method_name = 2;- Specified by:
getMethodNamein interfaceQuotaOperationOrBuilder- 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.CreateShelfstring method_name = 2;- Specified by:
getMethodNameBytesin interfaceQuotaOperationOrBuilder- 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.CreateShelfstring 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.CreateShelfstring 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.CreateShelfstring 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:
getConsumerIdin interfaceQuotaOperationOrBuilder- 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:
getConsumerIdBytesin interfaceQuotaOperationOrBuilder- 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:QuotaOperationOrBuilderLabels describing the operation.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceQuotaOperationOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels describing the operation.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceQuotaOperationOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceQuotaOperationOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels describing the operation.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceQuotaOperationOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels describing the operation.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceQuotaOperationOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels describing the operation.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceQuotaOperationOrBuilder
-
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:
getQuotaMetricsListin interfaceQuotaOperationOrBuilder
-
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:
getQuotaMetricsCountin interfaceQuotaOperationOrBuilder
-
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:
getQuotaMetricsin interfaceQuotaOperationOrBuilder
-
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:
getQuotaMetricsOrBuilderin interfaceQuotaOperationOrBuilder
-
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:
getQuotaMetricsOrBuilderListin interfaceQuotaOperationOrBuilder
-
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:
getQuotaModeValuein interfaceQuotaOperationOrBuilder- 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:
getQuotaModein interfaceQuotaOperationOrBuilder- 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.
-
setUnknownFields
public final QuotaOperation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
mergeUnknownFields
public final QuotaOperation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
-