Class QuotaConfig.Builder (0.5.0)

public static final class QuotaConfig.Builder extends GeneratedMessageV3.Builder<QuotaConfig.Builder> implements QuotaConfigOrBuilder

The preferred quota configuration.

Protobuf type google.api.cloudquotas.v1.QuotaConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QuotaConfig.Builder
Overrides

build()

public QuotaConfig build()
Returns
TypeDescription
QuotaConfig

buildPartial()

public QuotaConfig buildPartial()
Returns
TypeDescription
QuotaConfig

clear()

public QuotaConfig.Builder clear()
Returns
TypeDescription
QuotaConfig.Builder
Overrides

clearAnnotations()

public QuotaConfig.Builder clearAnnotations()
Returns
TypeDescription
QuotaConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public QuotaConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QuotaConfig.Builder
Overrides

clearGrantedValue()

public QuotaConfig.Builder clearGrantedValue()

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QuotaConfig.Builder
Overrides

clearPreferredValue()

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];

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

clearRequestOrigin()

public QuotaConfig.Builder clearRequestOrigin()

Output only. The origin of the quota preference request.

.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

clearStateDetail()

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];

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

clearTraceId()

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];

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

clone()

public QuotaConfig.Builder clone()
Returns
TypeDescription
QuotaConfig.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

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;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

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;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public QuotaConfig getDefaultInstanceForType()
Returns
TypeDescription
QuotaConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGrantedValue()

public Int64Value getGrantedValue()

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Int64Value

The grantedValue.

getGrantedValueBuilder()

public Int64Value.Builder getGrantedValueBuilder()

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getGrantedValueOrBuilder()

public Int64ValueOrBuilder getGrantedValueOrBuilder()

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Int64ValueOrBuilder

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPreferredValue()

public 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];

Returns
TypeDescription
long

The preferredValue.

getRequestOrigin()

public QuotaConfig.Origin getRequestOrigin()

Output only. The origin of the quota preference request.

.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaConfig.Origin

The requestOrigin.

getRequestOriginValue()

public int getRequestOriginValue()

Output only. The origin of the quota preference request.

.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for requestOrigin.

getStateDetail()

public String getStateDetail()

Output only. Optional details about the state of this quota preference.

string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The stateDetail.

getStateDetailBytes()

public ByteString getStateDetailBytes()

Output only. Optional details about the state of this quota preference.

string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateDetail.

getTraceId()

public 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];

Returns
TypeDescription
String

The traceId.

getTraceIdBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for traceId.

hasGrantedValue()

public boolean hasGrantedValue()

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the grantedValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QuotaConfig other)

public QuotaConfig.Builder mergeFrom(QuotaConfig other)
Parameter
NameDescription
otherQuotaConfig
Returns
TypeDescription
QuotaConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotaConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotaConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QuotaConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QuotaConfig.Builder
Overrides

mergeGrantedValue(Int64Value value)

public QuotaConfig.Builder mergeGrantedValue(Int64Value value)

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
QuotaConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QuotaConfig.Builder
Overrides

putAllAnnotations(Map<String,String> values)

public QuotaConfig.Builder putAllAnnotations(Map<String,String> values)

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;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
QuotaConfig.Builder

putAnnotations(String key, String value)

public QuotaConfig.Builder putAnnotations(String key, String value)

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;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
QuotaConfig.Builder

removeAnnotations(String key)

public QuotaConfig.Builder removeAnnotations(String key)

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
QuotaConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QuotaConfig.Builder
Overrides

setGrantedValue(Int64Value value)

public QuotaConfig.Builder setGrantedValue(Int64Value value)

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
QuotaConfig.Builder

setGrantedValue(Int64Value.Builder builderForValue)

public QuotaConfig.Builder setGrantedValue(Int64Value.Builder builderForValue)

Output only. Granted quota value.

.google.protobuf.Int64Value granted_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
QuotaConfig.Builder

setPreferredValue(long value)

public 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];

Parameter
NameDescription
valuelong

The preferredValue to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QuotaConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QuotaConfig.Builder
Overrides

setRequestOrigin(QuotaConfig.Origin value)

public QuotaConfig.Builder setRequestOrigin(QuotaConfig.Origin value)

Output only. The origin of the quota preference request.

.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueQuotaConfig.Origin

The requestOrigin to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setRequestOriginValue(int value)

public QuotaConfig.Builder setRequestOriginValue(int value)

Output only. The origin of the quota preference request.

.google.api.cloudquotas.v1.QuotaConfig.Origin request_origin = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for requestOrigin to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setStateDetail(String value)

public 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];

Parameter
NameDescription
valueString

The stateDetail to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setStateDetailBytes(ByteString value)

public QuotaConfig.Builder setStateDetailBytes(ByteString value)

Output only. Optional details about the state of this quota preference.

string state_detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for stateDetail to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setTraceId(String value)

public 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];

Parameter
NameDescription
valueString

The traceId to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setTraceIdBytes(ByteString value)

public QuotaConfig.Builder setTraceIdBytes(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];

Parameter
NameDescription
valueByteString

The bytes for traceId to set.

Returns
TypeDescription
QuotaConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotaConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QuotaConfig.Builder
Overrides