public final class AllocateQuotaResponse extends com.google.protobuf.GeneratedMessage implements AllocateQuotaResponseOrBuilder
Response message for the AllocateQuota method.Protobuf type
google.api.servicecontrol.v1.AllocateQuotaResponse| Modifier and Type | Class and Description |
|---|---|
static class |
AllocateQuotaResponse.Builder
Response message for the AllocateQuota method.
|
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 |
ALLOCATE_ERRORS_FIELD_NUMBER |
static int |
OPERATION_ID_FIELD_NUMBER |
static int |
QUOTA_METRICS_FIELD_NUMBER |
static int |
SERVICE_CONFIG_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
QuotaError |
getAllocateErrors(int index)
Indicates the decision of the allocate.
|
int |
getAllocateErrorsCount()
Indicates the decision of the allocate.
|
java.util.List<QuotaError> |
getAllocateErrorsList()
Indicates the decision of the allocate.
|
QuotaErrorOrBuilder |
getAllocateErrorsOrBuilder(int index)
Indicates the decision of the allocate.
|
java.util.List<? extends QuotaErrorOrBuilder> |
getAllocateErrorsOrBuilderList()
Indicates the decision of the allocate.
|
static AllocateQuotaResponse |
getDefaultInstance() |
AllocateQuotaResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getOperationId()
The same operation_id value used in the AllocateQuotaRequest.
|
com.google.protobuf.ByteString |
getOperationIdBytes()
The same operation_id value used in the AllocateQuotaRequest.
|
com.google.protobuf.Parser<AllocateQuotaResponse> |
getParserForType() |
MetricValueSet |
getQuotaMetrics(int index)
Quota metrics to indicate the result of allocation.
|
int |
getQuotaMetricsCount()
Quota metrics to indicate the result of allocation.
|
java.util.List<MetricValueSet> |
getQuotaMetricsList()
Quota metrics to indicate the result of allocation.
|
MetricValueSetOrBuilder |
getQuotaMetricsOrBuilder(int index)
Quota metrics to indicate the result of allocation.
|
java.util.List<? extends MetricValueSetOrBuilder> |
getQuotaMetricsOrBuilderList()
Quota metrics to indicate the result of allocation.
|
int |
getSerializedSize() |
java.lang.String |
getServiceConfigId()
ID of the actual config used to process the request.
|
com.google.protobuf.ByteString |
getServiceConfigIdBytes()
ID of the actual config used to process the request.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AllocateQuotaResponse.Builder |
newBuilder() |
static AllocateQuotaResponse.Builder |
newBuilder(AllocateQuotaResponse prototype) |
AllocateQuotaResponse.Builder |
newBuilderForType() |
protected AllocateQuotaResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static AllocateQuotaResponse |
parseDelimitedFrom(java.io.InputStream input) |
static AllocateQuotaResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocateQuotaResponse |
parseFrom(byte[] data) |
static AllocateQuotaResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocateQuotaResponse |
parseFrom(com.google.protobuf.ByteString data) |
static AllocateQuotaResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocateQuotaResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AllocateQuotaResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocateQuotaResponse |
parseFrom(java.io.InputStream input) |
static AllocateQuotaResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AllocateQuotaResponse> |
parser() |
AllocateQuotaResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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 ALLOCATE_ERRORS_FIELD_NUMBER
public static final int QUOTA_METRICS_FIELD_NUMBER
public static final int SERVICE_CONFIG_ID_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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic java.lang.String getOperationId()
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
optional string operation_id = 1;getOperationId in interface AllocateQuotaResponseOrBuilderpublic com.google.protobuf.ByteString getOperationIdBytes()
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
optional string operation_id = 1;getOperationIdBytes in interface AllocateQuotaResponseOrBuilderpublic java.util.List<QuotaError> getAllocateErrorsList()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;getAllocateErrorsList in interface AllocateQuotaResponseOrBuilderpublic java.util.List<? extends QuotaErrorOrBuilder> getAllocateErrorsOrBuilderList()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;getAllocateErrorsOrBuilderList in interface AllocateQuotaResponseOrBuilderpublic int getAllocateErrorsCount()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;getAllocateErrorsCount in interface AllocateQuotaResponseOrBuilderpublic QuotaError getAllocateErrors(int index)
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;getAllocateErrors in interface AllocateQuotaResponseOrBuilderpublic QuotaErrorOrBuilder getAllocateErrorsOrBuilder(int index)
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;getAllocateErrorsOrBuilder in interface AllocateQuotaResponseOrBuilderpublic java.util.List<MetricValueSet> getQuotaMetricsList()
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: "serviceruntime.googleapis.com/quota/exceeded"
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;getQuotaMetricsList in interface AllocateQuotaResponseOrBuilderpublic java.util.List<? extends MetricValueSetOrBuilder> getQuotaMetricsOrBuilderList()
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: "serviceruntime.googleapis.com/quota/exceeded"
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;getQuotaMetricsOrBuilderList in interface AllocateQuotaResponseOrBuilderpublic int getQuotaMetricsCount()
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: "serviceruntime.googleapis.com/quota/exceeded"
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;getQuotaMetricsCount in interface AllocateQuotaResponseOrBuilderpublic MetricValueSet getQuotaMetrics(int index)
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: "serviceruntime.googleapis.com/quota/exceeded"
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;getQuotaMetrics in interface AllocateQuotaResponseOrBuilderpublic MetricValueSetOrBuilder getQuotaMetricsOrBuilder(int index)
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: "serviceruntime.googleapis.com/quota/exceeded"
repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3;getQuotaMetricsOrBuilder in interface AllocateQuotaResponseOrBuilderpublic java.lang.String getServiceConfigId()
ID of the actual config used to process the request.
optional string service_config_id = 4;getServiceConfigId in interface AllocateQuotaResponseOrBuilderpublic com.google.protobuf.ByteString getServiceConfigIdBytes()
ID of the actual config used to process the request.
optional string service_config_id = 4;getServiceConfigIdBytes in interface AllocateQuotaResponseOrBuilderpublic 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 AllocateQuotaResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocateQuotaResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocateQuotaResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocateQuotaResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocateQuotaResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AllocateQuotaResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AllocateQuotaResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AllocateQuotaResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AllocateQuotaResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AllocateQuotaResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AllocateQuotaResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AllocateQuotaResponse.Builder newBuilder()
public static AllocateQuotaResponse.Builder newBuilder(AllocateQuotaResponse prototype)
public AllocateQuotaResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AllocateQuotaResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic static AllocateQuotaResponse getDefaultInstance()
public static com.google.protobuf.Parser<AllocateQuotaResponse> parser()
public com.google.protobuf.Parser<AllocateQuotaResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic AllocateQuotaResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder