public final class QuotaConfig extends com.google.protobuf.GeneratedMessageV3 implements QuotaConfigOrBuilder
The preferred quota configuration.Protobuf type
google.api.cloudquotas.v1beta.QuotaConfig| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaConfig.Builder
The preferred quota configuration.
|
static class |
QuotaConfig.Origin
The enumeration of the origins of quota preference requests.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
GRANTED_VALUE_FIELD_NUMBER |
static int |
PREFERRED_VALUE_FIELD_NUMBER |
static int |
REQUEST_ORIGIN_FIELD_NUMBER |
static int |
STATE_DETAIL_FIELD_NUMBER |
static int |
TRACE_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Optional.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Optional.
|
Map<String,String> |
getAnnotationsMap()
Optional.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getAnnotationsOrThrow(String key)
Optional.
|
static QuotaConfig |
getDefaultInstance() |
QuotaConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Int64Value |
getGrantedValue()
Output only.
|
com.google.protobuf.Int64ValueOrBuilder |
getGrantedValueOrBuilder()
Output only.
|
com.google.protobuf.Parser<QuotaConfig> |
getParserForType() |
long |
getPreferredValue()
Required.
|
QuotaConfig.Origin |
getRequestOrigin()
Output only.
|
int |
getRequestOriginValue()
Output only.
|
int |
getSerializedSize() |
String |
getStateDetail()
Output only.
|
com.google.protobuf.ByteString |
getStateDetailBytes()
Output only.
|
String |
getTraceId()
Output only.
|
com.google.protobuf.ByteString |
getTraceIdBytes()
Output only.
|
boolean |
hasGrantedValue()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static QuotaConfig.Builder |
newBuilder() |
static QuotaConfig.Builder |
newBuilder(QuotaConfig prototype) |
QuotaConfig.Builder |
newBuilderForType() |
protected QuotaConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QuotaConfig |
parseDelimitedFrom(InputStream input) |
static QuotaConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaConfig |
parseFrom(byte[] data) |
static QuotaConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaConfig |
parseFrom(ByteBuffer data) |
static QuotaConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaConfig |
parseFrom(com.google.protobuf.ByteString data) |
static QuotaConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QuotaConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QuotaConfig |
parseFrom(InputStream input) |
static QuotaConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QuotaConfig> |
parser() |
QuotaConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PREFERRED_VALUE_FIELD_NUMBER
public static final int STATE_DETAIL_FIELD_NUMBER
public static final int GRANTED_VALUE_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int REQUEST_ORIGIN_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getPreferredValue()
Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited".
int64 preferred_value = 1 [(.google.api.field_behavior) = REQUIRED];getPreferredValue in interface QuotaConfigOrBuilderpublic String getStateDetail()
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetail in interface QuotaConfigOrBuilderpublic com.google.protobuf.ByteString getStateDetailBytes()
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetailBytes in interface QuotaConfigOrBuilderpublic boolean hasGrantedValue()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasGrantedValue in interface QuotaConfigOrBuilderpublic com.google.protobuf.Int64Value getGrantedValue()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGrantedValue in interface QuotaConfigOrBuilderpublic com.google.protobuf.Int64ValueOrBuilder getGrantedValueOrBuilder()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGrantedValueOrBuilder in interface QuotaConfigOrBuilderpublic String getTraceId()
Output only. The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getTraceId in interface QuotaConfigOrBuilderpublic com.google.protobuf.ByteString getTraceIdBytes()
Output only. The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
string trace_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getTraceIdBytes in interface QuotaConfigOrBuilderpublic int getAnnotationsCount()
QuotaConfigOrBuilderOptional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsCount in interface QuotaConfigOrBuilderpublic boolean containsAnnotations(String key)
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
containsAnnotations in interface QuotaConfigOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface QuotaConfigOrBuilderpublic Map<String,String> getAnnotationsMap()
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsMap in interface QuotaConfigOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsOrDefault in interface QuotaConfigOrBuilderpublic String getAnnotationsOrThrow(String key)
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationsOrThrow in interface QuotaConfigOrBuilderpublic int getRequestOriginValue()
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1beta.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRequestOriginValue in interface QuotaConfigOrBuilderpublic QuotaConfig.Origin getRequestOrigin()
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1beta.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRequestOrigin in interface QuotaConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 QuotaConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QuotaConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QuotaConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QuotaConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QuotaConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QuotaConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QuotaConfig.Builder newBuilder()
public static QuotaConfig.Builder newBuilder(QuotaConfig prototype)
public QuotaConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QuotaConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QuotaConfig getDefaultInstance()
public static com.google.protobuf.Parser<QuotaConfig> parser()
public com.google.protobuf.Parser<QuotaConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QuotaConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.