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.Builder
addAllQuotaMetrics(Iterable<? extends MetricValueSet> values)
Represents information about this operation.QuotaOperation.Builder
addQuotaMetrics(int index, MetricValueSet value)
Represents information about this operation.QuotaOperation.Builder
addQuotaMetrics(int index, MetricValueSet.Builder builderForValue)
Represents information about this operation.QuotaOperation.Builder
addQuotaMetrics(MetricValueSet value)
Represents information about this operation.QuotaOperation.Builder
addQuotaMetrics(MetricValueSet.Builder builderForValue)
Represents information about this operation.MetricValueSet.Builder
addQuotaMetricsBuilder()
Represents information about this operation.MetricValueSet.Builder
addQuotaMetricsBuilder(int index)
Represents information about this operation.QuotaOperation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QuotaOperation
build()
QuotaOperation
buildPartial()
QuotaOperation.Builder
clear()
QuotaOperation.Builder
clearConsumerId()
Identity of the consumer for whom this quota operation is being performed.QuotaOperation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
QuotaOperation.Builder
clearLabels()
QuotaOperation.Builder
clearMethodName()
Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
QuotaOperation.Builder
clearOperationId()
Identity of the operation.QuotaOperation.Builder
clearQuotaMetrics()
Represents information about this operation.QuotaOperation.Builder
clearQuotaMode()
Quota mode for this operation.QuotaOperation.Builder
clone()
boolean
containsLabels(String key)
Labels describing the operation.String
getConsumerId()
Identity of the consumer for whom this quota operation is being performed.com.google.protobuf.ByteString
getConsumerIdBytes()
Identity of the consumer for whom this quota operation is being performed.QuotaOperation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels describing the operation.Map<String,String>
getLabelsMap()
Labels describing the operation.String
getLabelsOrDefault(String key, String defaultValue)
Labels describing the operation.String
getLabelsOrThrow(String key)
Labels describing the operation.String
getMethodName()
Fully qualified name of the API method for which this quota operation is requested.com.google.protobuf.ByteString
getMethodNameBytes()
Fully qualified name of the API method for which this quota operation is requested.Map<String,String>
getMutableLabels()
Deprecated.String
getOperationId()
Identity of the operation.com.google.protobuf.ByteString
getOperationIdBytes()
Identity of the operation.MetricValueSet
getQuotaMetrics(int index)
Represents information about this operation.MetricValueSet.Builder
getQuotaMetricsBuilder(int index)
Represents information about this operation.List<MetricValueSet.Builder>
getQuotaMetricsBuilderList()
Represents information about this operation.int
getQuotaMetricsCount()
Represents information about this operation.List<MetricValueSet>
getQuotaMetricsList()
Represents information about this operation.MetricValueSetOrBuilder
getQuotaMetricsOrBuilder(int index)
Represents information about this operation.List<? extends MetricValueSetOrBuilder>
getQuotaMetricsOrBuilderList()
Represents information about this operation.QuotaOperation.QuotaMode
getQuotaMode()
Quota mode for this operation.int
getQuotaModeValue()
Quota mode for this operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
QuotaOperation.Builder
mergeFrom(QuotaOperation other)
QuotaOperation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
QuotaOperation.Builder
mergeFrom(com.google.protobuf.Message other)
QuotaOperation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
QuotaOperation.Builder
putAllLabels(Map<String,String> values)
Labels describing the operation.QuotaOperation.Builder
putLabels(String key, String value)
Labels describing the operation.QuotaOperation.Builder
removeLabels(String key)
Labels describing the operation.QuotaOperation.Builder
removeQuotaMetrics(int index)
Represents information about this operation.QuotaOperation.Builder
setConsumerId(String value)
Identity of the consumer for whom this quota operation is being performed.QuotaOperation.Builder
setConsumerIdBytes(com.google.protobuf.ByteString value)
Identity of the consumer for whom this quota operation is being performed.QuotaOperation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
QuotaOperation.Builder
setMethodName(String value)
Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.Builder
setMethodNameBytes(com.google.protobuf.ByteString value)
Fully qualified name of the API method for which this quota operation is requested.QuotaOperation.Builder
setOperationId(String value)
Identity of the operation.QuotaOperation.Builder
setOperationIdBytes(com.google.protobuf.ByteString value)
Identity of the operation.QuotaOperation.Builder
setQuotaMetrics(int index, MetricValueSet value)
Represents information about this operation.QuotaOperation.Builder
setQuotaMetrics(int index, MetricValueSet.Builder builderForValue)
Represents information about this operation.QuotaOperation.Builder
setQuotaMode(QuotaOperation.QuotaMode value)
Quota mode for this operation.QuotaOperation.Builder
setQuotaModeValue(int value)
Quota mode for this operation.QuotaOperation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
QuotaOperation.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clear
public QuotaOperation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
getDefaultInstanceForType
public QuotaOperation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public QuotaOperation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QuotaOperation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QuotaOperation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
setField
public QuotaOperation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clearField
public QuotaOperation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
clearOneof
public QuotaOperation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
addRepeatedField
public QuotaOperation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
mergeFrom
public QuotaOperation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QuotaOperation.Builder>
-
mergeFrom
public QuotaOperation.Builder mergeFrom(QuotaOperation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOperationId
in 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:
getOperationIdBytes
in 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.CreateShelf
string method_name = 2;
- Specified by:
getMethodName
in 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.CreateShelf
string method_name = 2;
- Specified by:
getMethodNameBytes
in 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.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 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:
getConsumerIdBytes
in 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:QuotaOperationOrBuilder
Labels describing the operation.
map<string, string> labels = 4;
- Specified by:
getLabelsCount
in interfaceQuotaOperationOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels describing the operation.
map<string, string> labels = 4;
- Specified by:
containsLabels
in interfaceQuotaOperationOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceQuotaOperationOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels describing the operation.
map<string, string> labels = 4;
- Specified by:
getLabelsMap
in interfaceQuotaOperationOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels describing the operation.
map<string, string> labels = 4;
- Specified by:
getLabelsOrDefault
in interfaceQuotaOperationOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels describing the operation.
map<string, string> labels = 4;
- Specified by:
getLabelsOrThrow
in 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:
getQuotaMetricsList
in 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:
getQuotaMetricsCount
in 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:
getQuotaMetrics
in 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:
getQuotaMetricsOrBuilder
in 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:
getQuotaMetricsOrBuilderList
in 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:
getQuotaModeValue
in 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:
getQuotaMode
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
mergeUnknownFields
public final QuotaOperation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QuotaOperation.Builder>
-
-