public final class QuotaOperation extends com.google.protobuf.GeneratedMessage implements QuotaOperationOrBuilder
Represents information regarding a quota operation.Protobuf type
google.api.servicecontrol.v1.QuotaOperation| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaOperation.Builder
Represents information regarding a quota operation.
|
static class |
QuotaOperation.QuotaMode
Supported quota modes.
|
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
CONSUMER_ID_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
METHOD_NAME_FIELD_NUMBER |
static int |
OPERATION_ID_FIELD_NUMBER |
static int |
QUOTA_METRICS_FIELD_NUMBER |
static int |
QUOTA_MODE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(java.lang.String key)
Labels describing the operation.
|
boolean |
equals(java.lang.Object obj) |
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.
|
static QuotaOperation |
getDefaultInstance() |
QuotaOperation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.lang.String |
getOperationId()
Identity of the operation.
|
com.google.protobuf.ByteString |
getOperationIdBytes()
Identity of the operation.
|
com.google.protobuf.Parser<QuotaOperation> |
getParserForType() |
MetricValueSet |
getQuotaMetrics(int index)
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static QuotaOperation.Builder |
newBuilder() |
static QuotaOperation.Builder |
newBuilder(QuotaOperation prototype) |
QuotaOperation.Builder |
newBuilderForType() |
protected QuotaOperation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static QuotaOperation |
parseDelimitedFrom(java.io.InputStream input) |
static QuotaOperation |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOperation |
parseFrom(byte[] data) |
static QuotaOperation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOperation |
parseFrom(com.google.protobuf.ByteString data) |
static QuotaOperation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOperation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QuotaOperation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaOperation |
parseFrom(java.io.InputStream input) |
static QuotaOperation |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QuotaOperation> |
parser() |
QuotaOperation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int OPERATION_ID_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER
public static final int CONSUMER_ID_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int QUOTA_METRICS_FIELD_NUMBER
public static final int QUOTA_MODE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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 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 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 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 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 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 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 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 int getQuotaModeValue()
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;getQuotaModeValue in interface QuotaOperationOrBuilderpublic QuotaOperation.QuotaMode getQuotaMode()
Quota mode for this operation.
optional .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6;getQuotaMode in interface QuotaOperationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QuotaOperation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOperation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOperation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaOperation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QuotaOperation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QuotaOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QuotaOperation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QuotaOperation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QuotaOperation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic QuotaOperation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QuotaOperation.Builder newBuilder()
public static QuotaOperation.Builder newBuilder(QuotaOperation prototype)
public QuotaOperation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QuotaOperation.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic static QuotaOperation getDefaultInstance()
public static com.google.protobuf.Parser<QuotaOperation> parser()
public com.google.protobuf.Parser<QuotaOperation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic QuotaOperation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder