Class AllocateQuotaResponse (1.47.0)

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
Type Description
int

OPERATION_ID_FIELD_NUMBER

public static final int OPERATION_ID_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_METRICS_FIELD_NUMBER

public static final int QUOTA_METRICS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CONFIG_ID_FIELD_NUMBER

public static final int SERVICE_CONFIG_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AllocateQuotaResponse getDefaultInstance()
Returns
Type Description
AllocateQuotaResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AllocateQuotaResponse.Builder newBuilder()
Returns
Type Description
AllocateQuotaResponse.Builder

newBuilder(AllocateQuotaResponse prototype)

public static AllocateQuotaResponse.Builder newBuilder(AllocateQuotaResponse prototype)
Parameter
Name Description
prototype AllocateQuotaResponse
Returns
Type Description
AllocateQuotaResponse.Builder

parseDelimitedFrom(InputStream input)

public static AllocateQuotaResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AllocateQuotaResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocateQuotaResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocateQuotaResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AllocateQuotaResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AllocateQuotaResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocateQuotaResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AllocateQuotaResponse> parser()
Returns
Type Description
Parser<AllocateQuotaResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Name Description
index int
Returns
Type Description
QuotaError

getAllocateErrorsCount()

public int getAllocateErrorsCount()

Indicates the decision of the allocate.

repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;

Returns
Type Description
int

getAllocateErrorsList()

public List<QuotaError> getAllocateErrorsList()

Indicates the decision of the allocate.

repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;

Returns
Type Description
List<QuotaError>

getAllocateErrorsOrBuilder(int index)

public QuotaErrorOrBuilder getAllocateErrorsOrBuilder(int index)

Indicates the decision of the allocate.

repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
QuotaErrorOrBuilder

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
Type Description
AllocateQuotaResponse

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
Type Description
Parser<AllocateQuotaResponse>
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:

  1. 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. 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
Name Description
index int
Returns
Type Description
MetricValueSet

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:

  1. 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. 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
int

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:

  1. 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. 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<MetricValueSet>

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:

  1. 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. 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
Name Description
index int
Returns
Type Description
MetricValueSetOrBuilder

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:

  1. 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. 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
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AllocateQuotaResponse.Builder newBuilderForType()
Returns
Type Description
AllocateQuotaResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocateQuotaResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AllocateQuotaResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AllocateQuotaResponse.Builder toBuilder()
Returns
Type Description
AllocateQuotaResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException