public final class AllocateQuotaResponse extends GeneratedMessageV3 implements AllocateQuotaResponseOrBuilder
Response message for the AllocateQuota method.
Protobuf type google.api.servicecontrol.v1.AllocateQuotaResponse
Static Fields
ALLOCATE_ERRORS_FIELD_NUMBER
public static final int ALLOCATE_ERRORS_FIELD_NUMBER
Field Value
OPERATION_ID_FIELD_NUMBER
public static final int OPERATION_ID_FIELD_NUMBER
Field Value
QUOTA_METRICS_FIELD_NUMBER
public static final int QUOTA_METRICS_FIELD_NUMBER
Field Value
SERVICE_CONFIG_ID_FIELD_NUMBER
public static final int SERVICE_CONFIG_ID_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AllocateQuotaResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AllocateQuotaResponse.Builder newBuilder()
Returns
newBuilder(AllocateQuotaResponse prototype)
public static AllocateQuotaResponse.Builder newBuilder(AllocateQuotaResponse prototype)
Parameter
Returns
public static AllocateQuotaResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocateQuotaResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AllocateQuotaResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocateQuotaResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AllocateQuotaResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocateQuotaResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocateQuotaResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AllocateQuotaResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocateQuotaResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocateQuotaResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AllocateQuotaResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocateQuotaResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AllocateQuotaResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAllocateErrors(int index)
public QuotaError getAllocateErrors(int index)
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
Parameter
Returns
getAllocateErrorsCount()
public int getAllocateErrorsCount()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
Returns
getAllocateErrorsList()
public List<QuotaError> getAllocateErrorsList()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
Returns
getAllocateErrorsOrBuilder(int index)
public QuotaErrorOrBuilder getAllocateErrorsOrBuilder(int index)
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
Parameter
Returns
getAllocateErrorsOrBuilderList()
public List<? extends QuotaErrorOrBuilder> getAllocateErrorsOrBuilderList()
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;
Returns
Type | Description |
List<? extends com.google.api.servicecontrol.v1.QuotaErrorOrBuilder> | |
getDefaultInstanceForType()
public AllocateQuotaResponse getDefaultInstanceForType()
Returns
getOperationId()
public String getOperationId()
The same operation_id value used in the AllocateQuotaRequest. Used for
logging and diagnostics purposes.
string operation_id = 1;
Returns
Type | Description |
String | The operationId.
|
getOperationIdBytes()
public ByteString getOperationIdBytes()
The same operation_id value used in the AllocateQuotaRequest. Used for
logging and diagnostics purposes.
string operation_id = 1;
Returns
Type | Description |
ByteString | The bytes for operationId.
|
getParserForType()
public Parser<AllocateQuotaResponse> getParserForType()
Returns
Overrides
getQuotaMetrics(int index)
public 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:
- 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"
- 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;
Parameter
Returns
getQuotaMetricsCount()
public int getQuotaMetricsCount()
Quota metrics to indicate the result of allocation. Depending on the
request, one or more of the following metrics will be included:
- 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"
- 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;
Returns
getQuotaMetricsList()
public 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:
- 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"
- 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;
Returns
getQuotaMetricsOrBuilder(int index)
public 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:
- 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"
- 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;
Parameter
Returns
getQuotaMetricsOrBuilderList()
public 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:
- 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"
- 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;
Returns
Type | Description |
List<? extends com.google.api.servicecontrol.v1.MetricValueSetOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getServiceConfigId()
public String getServiceConfigId()
ID of the actual config used to process the request.
string service_config_id = 4;
Returns
Type | Description |
String | The serviceConfigId.
|
getServiceConfigIdBytes()
public ByteString getServiceConfigIdBytes()
ID of the actual config used to process the request.
string service_config_id = 4;
Returns
Type | Description |
ByteString | The bytes for serviceConfigId.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AllocateQuotaResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocateQuotaResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AllocateQuotaResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions