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| Modifier and Type | Method and Description |
|---|---|
QuotaOperation.Builder |
addAllQuotaMetrics(java.lang.Iterable<? extends MetricValueSet> values)
Represents information about this operation.
|
QuotaOperation.Builder |
addQuotaMetrics(int index,
MetricValueSet.Builder builderForValue)
Represents information about this operation.
|
QuotaOperation.Builder |
addQuotaMetrics(int index,
MetricValueSet value)
Represents information about this operation.
|
QuotaOperation.Builder |
addQuotaMetrics(MetricValueSet.Builder builderForValue)
Represents information about this operation.
|
QuotaOperation.Builder |
addQuotaMetrics(MetricValueSet value)
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,
java.lang.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(java.lang.String key)
Labels describing the operation.
|
java.lang.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() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels describing the operation.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
Labels describing the operation.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Labels describing the operation.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
Labels describing the operation.
|
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
java.lang.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.
|
java.util.List<MetricValueSet.Builder> |
getQuotaMetricsBuilderList()
Represents information about this operation.
|
int |
getQuotaMetricsCount()
Represents information about this operation.
|
java.util.List<MetricValueSet> |
getQuotaMetricsList()
Represents information about this operation.
|
MetricValueSetOrBuilder |
getQuotaMetricsOrBuilder(int index)
Represents information about this operation.
|
java.util.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.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
QuotaOperation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QuotaOperation.Builder |
mergeFrom(com.google.protobuf.Message other) |
QuotaOperation.Builder |
mergeFrom(QuotaOperation other) |
QuotaOperation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QuotaOperation.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Labels describing the operation.
|
QuotaOperation.Builder |
putLabels(java.lang.String key,
java.lang.String value)
Labels describing the operation.
|
QuotaOperation.Builder |
removeLabels(java.lang.String key)
Labels describing the operation.
|
QuotaOperation.Builder |
removeQuotaMetrics(int index)
Represents information about this operation.
|
QuotaOperation.Builder |
setConsumerId(java.lang.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,
java.lang.Object value) |
QuotaOperation.Builder |
setMethodName(java.lang.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(java.lang.String value)
Identity of the operation.
|
QuotaOperation.Builder |
setOperationIdBytes(com.google.protobuf.ByteString value)
Identity of the operation.
|
QuotaOperation.Builder |
setQuotaMetrics(int index,
MetricValueSet.Builder builderForValue)
Represents information about this operation.
|
QuotaOperation.Builder |
setQuotaMetrics(int index,
MetricValueSet value)
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,
java.lang.Object value) |
QuotaOperation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QuotaOperation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QuotaOperation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QuotaOperation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder mergeFrom(QuotaOperation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public QuotaOperation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuotaOperation.Builder>java.io.IOExceptionpublic java.lang.String getOperationId()
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls AllocateQuota and ReleaseQuota on the same operation, the two calls should carry the same ID. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.
optional string operation_id = 1;getOperationId in interface QuotaOperationOrBuilderpublic com.google.protobuf.ByteString getOperationIdBytes()
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls AllocateQuota and ReleaseQuota on the same operation, the two calls should carry the same ID. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.
optional string operation_id = 1;getOperationIdBytes in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder setOperationId(java.lang.String value)
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls AllocateQuota and ReleaseQuota on the same operation, the two calls should carry the same ID. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.
optional string operation_id = 1;public QuotaOperation.Builder clearOperationId()
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls AllocateQuota and ReleaseQuota on the same operation, the two calls should carry the same ID. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.
optional string operation_id = 1;public QuotaOperation.Builder setOperationIdBytes(com.google.protobuf.ByteString value)
Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls AllocateQuota and ReleaseQuota on the same operation, the two calls should carry the same ID. UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.
optional string operation_id = 1;public java.lang.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 is not
required if the quota operation is performed on non-API resources.
Example of an RPC method name:
google.example.library.v1.LibraryService.CreateShelf
optional string method_name = 2;getMethodName in interface QuotaOperationOrBuilderpublic 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 is not
required if the quota operation is performed on non-API resources.
Example of an RPC method name:
google.example.library.v1.LibraryService.CreateShelf
optional string method_name = 2;getMethodNameBytes in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder setMethodName(java.lang.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 is not
required if the quota operation is performed on non-API resources.
Example of an RPC method name:
google.example.library.v1.LibraryService.CreateShelf
optional string method_name = 2;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 is not
required if the quota operation is performed on non-API resources.
Example of an RPC method name:
google.example.library.v1.LibraryService.CreateShelf
optional string method_name = 2;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 is not
required if the quota operation is performed on non-API resources.
Example of an RPC method name:
google.example.library.v1.LibraryService.CreateShelf
optional string method_name = 2;public java.lang.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>. (--GOOGLE_INTERNAL: spatula_header:<spatula_header> and loas:<loas_role> are also accepted. --)
optional string consumer_id = 3;getConsumerId in interface QuotaOperationOrBuilderpublic 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>. (--GOOGLE_INTERNAL: spatula_header:<spatula_header> and loas:<loas_role> are also accepted. --)
optional string consumer_id = 3;getConsumerIdBytes in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder setConsumerId(java.lang.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>. (--GOOGLE_INTERNAL: spatula_header:<spatula_header> and loas:<loas_role> are also accepted. --)
optional string consumer_id = 3;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>. (--GOOGLE_INTERNAL: spatula_header:<spatula_header> and loas:<loas_role> are also accepted. --)
optional string consumer_id = 3;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>. (--GOOGLE_INTERNAL: spatula_header:<spatula_header> and loas:<loas_role> are also accepted. --)
optional string consumer_id = 3;public int getLabelsCount()
QuotaOperationOrBuilderLabels describing the operation.
map<string, string> labels = 4;getLabelsCount in interface QuotaOperationOrBuilderpublic boolean containsLabels(java.lang.String key)
Labels describing the operation.
map<string, string> labels = 4;containsLabels in interface QuotaOperationOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface QuotaOperationOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Labels describing the operation.
map<string, string> labels = 4;getLabelsMap in interface QuotaOperationOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Labels describing the operation.
map<string, string> labels = 4;getLabelsOrDefault in interface QuotaOperationOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
Labels describing the operation.
map<string, string> labels = 4;getLabelsOrThrow in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder clearLabels()
public QuotaOperation.Builder removeLabels(java.lang.String key)
Labels describing the operation.
map<string, string> labels = 4;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public QuotaOperation.Builder putLabels(java.lang.String key, java.lang.String value)
Labels describing the operation.
map<string, string> labels = 4;public QuotaOperation.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Labels describing the operation.
map<string, string> labels = 4;public java.util.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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;getQuotaMetricsList in interface QuotaOperationOrBuilderpublic 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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;getQuotaMetricsCount in interface QuotaOperationOrBuilderpublic 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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;getQuotaMetrics in interface QuotaOperationOrBuilderpublic 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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;public QuotaOperation.Builder addAllQuotaMetrics(java.lang.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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;getQuotaMetricsOrBuilder in interface QuotaOperationOrBuilderpublic java.util.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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;getQuotaMetricsOrBuilderList in interface QuotaOperationOrBuilderpublic 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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;public java.util.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.
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5;public int getQuotaModeValue()
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;getQuotaModeValue in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder setQuotaModeValue(int value)
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;public QuotaOperation.QuotaMode getQuotaMode()
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;getQuotaMode in interface QuotaOperationOrBuilderpublic QuotaOperation.Builder setQuotaMode(QuotaOperation.QuotaMode value)
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;public QuotaOperation.Builder clearQuotaMode()
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;public final QuotaOperation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>public final QuotaOperation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessage.Builder<QuotaOperation.Builder>