Package com.google.api.servicecontrol.v1
Class AllocateQuotaResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
com.google.api.servicecontrol.v1.AllocateQuotaResponse.Builder
- All Implemented Interfaces:
AllocateQuotaResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocateQuotaResponse
public static final class AllocateQuotaResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
implements AllocateQuotaResponseOrBuilder
Response message for the AllocateQuota method.Protobuf type
google.api.servicecontrol.v1.AllocateQuotaResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllocateErrors(Iterable<? extends QuotaError> values) Indicates the decision of the allocate.addAllocateErrors(int index, QuotaError value) Indicates the decision of the allocate.addAllocateErrors(int index, QuotaError.Builder builderForValue) Indicates the decision of the allocate.addAllocateErrors(QuotaError value) Indicates the decision of the allocate.addAllocateErrors(QuotaError.Builder builderForValue) Indicates the decision of the allocate.Indicates the decision of the allocate.addAllocateErrorsBuilder(int index) Indicates the decision of the allocate.addAllQuotaMetrics(Iterable<? extends MetricValueSet> values) Quota metrics to indicate the result of allocation.addQuotaMetrics(int index, MetricValueSet value) Quota metrics to indicate the result of allocation.addQuotaMetrics(int index, MetricValueSet.Builder builderForValue) Quota metrics to indicate the result of allocation.addQuotaMetrics(MetricValueSet value) Quota metrics to indicate the result of allocation.addQuotaMetrics(MetricValueSet.Builder builderForValue) Quota metrics to indicate the result of allocation.Quota metrics to indicate the result of allocation.addQuotaMetricsBuilder(int index) Quota metrics to indicate the result of allocation.build()clear()Indicates the decision of the allocate.The same operation_id value used in the AllocateQuotaRequest.Quota metrics to indicate the result of allocation.ID of the actual config used to process the request.getAllocateErrors(int index) Indicates the decision of the allocate.getAllocateErrorsBuilder(int index) Indicates the decision of the allocate.Indicates the decision of the allocate.intIndicates the decision of the allocate.Indicates the decision of the allocate.getAllocateErrorsOrBuilder(int index) Indicates the decision of the allocate.List<? extends QuotaErrorOrBuilder>Indicates the decision of the allocate.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe same operation_id value used in the AllocateQuotaRequest.com.google.protobuf.ByteStringThe same operation_id value used in the AllocateQuotaRequest.getQuotaMetrics(int index) Quota metrics to indicate the result of allocation.getQuotaMetricsBuilder(int index) Quota metrics to indicate the result of allocation.Quota metrics to indicate the result of allocation.intQuota metrics to indicate the result of allocation.Quota metrics to indicate the result of allocation.getQuotaMetricsOrBuilder(int index) Quota metrics to indicate the result of allocation.List<? extends MetricValueSetOrBuilder>Quota metrics to indicate the result of allocation.ID of the actual config used to process the request.com.google.protobuf.ByteStringID of the actual config used to process the request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AllocateQuotaResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAllocateErrors(int index) Indicates the decision of the allocate.removeQuotaMetrics(int index) Quota metrics to indicate the result of allocation.setAllocateErrors(int index, QuotaError value) Indicates the decision of the allocate.setAllocateErrors(int index, QuotaError.Builder builderForValue) Indicates the decision of the allocate.setOperationId(String value) The same operation_id value used in the AllocateQuotaRequest.setOperationIdBytes(com.google.protobuf.ByteString value) The same operation_id value used in the AllocateQuotaRequest.setQuotaMetrics(int index, MetricValueSet value) Quota metrics to indicate the result of allocation.setQuotaMetrics(int index, MetricValueSet.Builder builderForValue) Quota metrics to indicate the result of allocation.setServiceConfigId(String value) ID of the actual config used to process the request.setServiceConfigIdBytes(com.google.protobuf.ByteString value) ID of the actual config used to process the request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocateQuotaResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocateQuotaResponse.Builder>
-
mergeFrom
public AllocateQuotaResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocateQuotaResponse.Builder>- Throws:
IOException
-
getOperationId
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
string operation_id = 1;- Specified by:
getOperationIdin interfaceAllocateQuotaResponseOrBuilder- Returns:
- The operationId.
-
getOperationIdBytes
public com.google.protobuf.ByteString getOperationIdBytes()The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
string operation_id = 1;- Specified by:
getOperationIdBytesin interfaceAllocateQuotaResponseOrBuilder- Returns:
- The bytes for operationId.
-
setOperationId
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
string operation_id = 1;- Parameters:
value- The operationId to set.- Returns:
- This builder for chaining.
-
clearOperationId
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
string operation_id = 1;- Returns:
- This builder for chaining.
-
setOperationIdBytes
The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
string operation_id = 1;- Parameters:
value- The bytes for operationId to set.- Returns:
- This builder for chaining.
-
getAllocateErrorsList
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;- Specified by:
getAllocateErrorsListin interfaceAllocateQuotaResponseOrBuilder
-
getAllocateErrorsCount
public int getAllocateErrorsCount()Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;- Specified by:
getAllocateErrorsCountin interfaceAllocateQuotaResponseOrBuilder
-
getAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;- Specified by:
getAllocateErrorsin interfaceAllocateQuotaResponseOrBuilder
-
setAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
setAllocateErrors
public AllocateQuotaResponse.Builder setAllocateErrors(int index, QuotaError.Builder builderForValue) Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllocateErrors
public AllocateQuotaResponse.Builder addAllocateErrors(int index, QuotaError.Builder builderForValue) Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
clearAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
removeAllocateErrors
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
getAllocateErrorsBuilder
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
getAllocateErrorsOrBuilder
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;- Specified by:
getAllocateErrorsOrBuilderin interfaceAllocateQuotaResponseOrBuilder
-
getAllocateErrorsOrBuilderList
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2;- Specified by:
getAllocateErrorsOrBuilderListin interfaceAllocateQuotaResponseOrBuilder
-
addAllocateErrorsBuilder
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
addAllocateErrorsBuilder
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
getAllocateErrorsBuilderList
Indicates the decision of the allocate.
repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; -
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;- Specified by:
getQuotaMetricsListin interfaceAllocateQuotaResponseOrBuilder
-
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;- Specified by:
getQuotaMetricsCountin interfaceAllocateQuotaResponseOrBuilder
-
getQuotaMetrics
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;- Specified by:
getQuotaMetricsin interfaceAllocateQuotaResponseOrBuilder
-
setQuotaMetrics
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; -
setQuotaMetrics
public AllocateQuotaResponse.Builder setQuotaMetrics(int index, MetricValueSet.Builder builderForValue) 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; -
addQuotaMetrics
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; -
addQuotaMetrics
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; -
addQuotaMetrics
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; -
addQuotaMetrics
public AllocateQuotaResponse.Builder addQuotaMetrics(int index, MetricValueSet.Builder builderForValue) 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; -
addAllQuotaMetrics
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; -
clearQuotaMetrics
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; -
removeQuotaMetrics
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; -
getQuotaMetricsBuilder
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; -
getQuotaMetricsOrBuilder
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;- Specified by:
getQuotaMetricsOrBuilderin interfaceAllocateQuotaResponseOrBuilder
-
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;- Specified by:
getQuotaMetricsOrBuilderListin interfaceAllocateQuotaResponseOrBuilder
-
addQuotaMetricsBuilder
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; -
addQuotaMetricsBuilder
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; -
getQuotaMetricsBuilderList
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; -
getServiceConfigId
ID of the actual config used to process the request.
string service_config_id = 4;- Specified by:
getServiceConfigIdin interfaceAllocateQuotaResponseOrBuilder- Returns:
- The serviceConfigId.
-
getServiceConfigIdBytes
public com.google.protobuf.ByteString getServiceConfigIdBytes()ID of the actual config used to process the request.
string service_config_id = 4;- Specified by:
getServiceConfigIdBytesin interfaceAllocateQuotaResponseOrBuilder- Returns:
- The bytes for serviceConfigId.
-
setServiceConfigId
ID of the actual config used to process the request.
string service_config_id = 4;- Parameters:
value- The serviceConfigId to set.- Returns:
- This builder for chaining.
-
clearServiceConfigId
ID of the actual config used to process the request.
string service_config_id = 4;- Returns:
- This builder for chaining.
-
setServiceConfigIdBytes
ID of the actual config used to process the request.
string service_config_id = 4;- Parameters:
value- The bytes for serviceConfigId to set.- Returns:
- This builder for chaining.
-