public static final class QuotaConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder> implements QuotaConfigOrBuilder
The preferred quota configuration.Protobuf type
google.api.cloudquotas.v1beta.QuotaConfig| Modifier and Type | Method and Description |
|---|---|
QuotaConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QuotaConfig |
build() |
QuotaConfig |
buildPartial() |
QuotaConfig.Builder |
clear() |
QuotaConfig.Builder |
clearAnnotations() |
QuotaConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
QuotaConfig.Builder |
clearGrantedValue()
Output only.
|
QuotaConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
QuotaConfig.Builder |
clearPreferredValue()
Required.
|
QuotaConfig.Builder |
clearRequestOrigin()
Output only.
|
QuotaConfig.Builder |
clearStateDetail()
Output only.
|
QuotaConfig.Builder |
clearTraceId()
Output only.
|
QuotaConfig.Builder |
clone() |
boolean |
containsAnnotations(String key)
Optional.
|
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.
|
QuotaConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Int64Value |
getGrantedValue()
Output only.
|
com.google.protobuf.Int64Value.Builder |
getGrantedValueBuilder()
Output only.
|
com.google.protobuf.Int64ValueOrBuilder |
getGrantedValueOrBuilder()
Output only.
|
Map<String,String> |
getMutableAnnotations()
Deprecated.
|
long |
getPreferredValue()
Required.
|
QuotaConfig.Origin |
getRequestOrigin()
Output only.
|
int |
getRequestOriginValue()
Output only.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
QuotaConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QuotaConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
QuotaConfig.Builder |
mergeFrom(QuotaConfig other) |
QuotaConfig.Builder |
mergeGrantedValue(com.google.protobuf.Int64Value value)
Output only.
|
QuotaConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QuotaConfig.Builder |
putAllAnnotations(Map<String,String> values)
Optional.
|
QuotaConfig.Builder |
putAnnotations(String key,
String value)
Optional.
|
QuotaConfig.Builder |
removeAnnotations(String key)
Optional.
|
QuotaConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QuotaConfig.Builder |
setGrantedValue(com.google.protobuf.Int64Value.Builder builderForValue)
Output only.
|
QuotaConfig.Builder |
setGrantedValue(com.google.protobuf.Int64Value value)
Output only.
|
QuotaConfig.Builder |
setPreferredValue(long value)
Required.
|
QuotaConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
QuotaConfig.Builder |
setRequestOrigin(QuotaConfig.Origin value)
Output only.
|
QuotaConfig.Builder |
setRequestOriginValue(int value)
Output only.
|
QuotaConfig.Builder |
setStateDetail(String value)
Output only.
|
QuotaConfig.Builder |
setStateDetailBytes(com.google.protobuf.ByteString value)
Output only.
|
QuotaConfig.Builder |
setTraceId(String value)
Output only.
|
QuotaConfig.Builder |
setTraceIdBytes(com.google.protobuf.ByteString value)
Output only.
|
QuotaConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QuotaConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QuotaConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QuotaConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuotaConfig.Builder>public QuotaConfig.Builder mergeFrom(QuotaConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public QuotaConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuotaConfig.Builder>IOExceptionpublic 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 QuotaConfig.Builder setPreferredValue(long value)
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];value - The preferredValue to set.public QuotaConfig.Builder clearPreferredValue()
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];public 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 QuotaConfig.Builder setStateDetail(String value)
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateDetail to set.public QuotaConfig.Builder clearStateDetail()
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public QuotaConfig.Builder setStateDetailBytes(com.google.protobuf.ByteString value)
Output only. Optional details about the state of this quota preference.
string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateDetail to set.public 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 QuotaConfig.Builder setGrantedValue(com.google.protobuf.Int64Value value)
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public QuotaConfig.Builder setGrantedValue(com.google.protobuf.Int64Value.Builder builderForValue)
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public QuotaConfig.Builder mergeGrantedValue(com.google.protobuf.Int64Value value)
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public QuotaConfig.Builder clearGrantedValue()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Int64Value.Builder getGrantedValueBuilder()
Output only. Granted quota value.
.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public 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 QuotaConfig.Builder setTraceId(String value)
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];value - The traceId to set.public QuotaConfig.Builder clearTraceId()
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];public QuotaConfig.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
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];value - The bytes for traceId to set.public 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 QuotaConfig.Builder clearAnnotations()
public QuotaConfig.Builder removeAnnotations(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];
@Deprecated public Map<String,String> getMutableAnnotations()
public QuotaConfig.Builder putAnnotations(String key, String value)
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];
public QuotaConfig.Builder putAllAnnotations(Map<String,String> values)
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];
public 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.Builder setRequestOriginValue(int value)
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1beta.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for requestOrigin to set.public 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 QuotaConfig.Builder setRequestOrigin(QuotaConfig.Origin value)
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1beta.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The requestOrigin to set.public QuotaConfig.Builder clearRequestOrigin()
Output only. The origin of the quota preference request.
.google.api.cloudquotas.v1beta.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final QuotaConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>public final QuotaConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuotaConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.