Class AllocateQuotaResponse (1.4.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
TypeDescription
int

OPERATION_ID_FIELD_NUMBER

public static final int OPERATION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

QUOTA_METRICS_FIELD_NUMBER

public static final int QUOTA_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_CONFIG_ID_FIELD_NUMBER

public static final int SERVICE_CONFIG_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AllocateQuotaResponse getDefaultInstance()
Returns
TypeDescription
AllocateQuotaResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AllocateQuotaResponse.Builder newBuilder()
Returns
TypeDescription
AllocateQuotaResponse.Builder

newBuilder(AllocateQuotaResponse prototype)

public static AllocateQuotaResponse.Builder newBuilder(AllocateQuotaResponse prototype)
Parameter
NameDescription
prototypeAllocateQuotaResponse
Returns
TypeDescription
AllocateQuotaResponse.Builder

parseDelimitedFrom(InputStream input)

public static AllocateQuotaResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AllocateQuotaResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocateQuotaResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocateQuotaResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AllocateQuotaResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AllocateQuotaResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocateQuotaResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocateQuotaResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AllocateQuotaResponse> parser()
Returns
TypeDescription
Parser<AllocateQuotaResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QuotaError

getAllocateErrorsCount()

public int getAllocateErrorsCount()

Indicates the decision of the allocate.

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

Returns
TypeDescription
int

getAllocateErrorsList()

public List<QuotaError> getAllocateErrorsList()

Indicates the decision of the allocate.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QuotaErrorOrBuilder

getAllocateErrorsOrBuilderList()

public List<? extends QuotaErrorOrBuilder> getAllocateErrorsOrBuilderList()

Indicates the decision of the allocate.

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

Returns
TypeDescription
List<? extends com.google.api.servicecontrol.v1.QuotaErrorOrBuilder>

getDefaultInstanceForType()

public AllocateQuotaResponse getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for operationId.

getParserForType()

public Parser<AllocateQuotaResponse> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.api.servicecontrol.v1.MetricValueSetOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceConfigId()

public String getServiceConfigId()

ID of the actual config used to process the request.

string service_config_id = 4;

Returns
TypeDescription
String

The serviceConfigId.

getServiceConfigIdBytes()

public ByteString getServiceConfigIdBytes()

ID of the actual config used to process the request.

string service_config_id = 4;

Returns
TypeDescription
ByteString

The bytes for serviceConfigId.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AllocateQuotaResponse.Builder newBuilderForType()
Returns
TypeDescription
AllocateQuotaResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocateQuotaResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AllocateQuotaResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AllocateQuotaResponse.Builder toBuilder()
Returns
TypeDescription
AllocateQuotaResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException