Class QuotaPreference.Builder (0.9.0)

public static final class QuotaPreference.Builder extends GeneratedMessageV3.Builder<QuotaPreference.Builder> implements QuotaPreferenceOrBuilder

QuotaPreference represents the preferred quota configuration specified for a project, folder or organization. There is only one QuotaPreference resource for a quota value targeting a unique set of dimensions.

Protobuf type google.api.cloudquotas.v1.QuotaPreference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotaPreference build()
Returns
TypeDescription
QuotaPreference

buildPartial()

public QuotaPreference buildPartial()
Returns
TypeDescription
QuotaPreference

clear()

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

clearContactEmail()

public QuotaPreference.Builder clearContactEmail()

Input only. An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted.

The email address is optional for decrease quota preferences. In another word, QuotaConfig.preferred_value is smaller than the QuotaDetails.reset_value. It is required for increase quota preferences. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for.

string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearCreateTime()

public QuotaPreference.Builder clearCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaPreference.Builder

clearDimensions()

public QuotaPreference.Builder clearDimensions()
Returns
TypeDescription
QuotaPreference.Builder

clearEtag()

public QuotaPreference.Builder clearEtag()

Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearJustification()

public QuotaPreference.Builder clearJustification()

The reason / justification for this quota preference.

string justification = 11;

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearName()

public QuotaPreference.Builder clearName()

Required except in the CREATE requests. The resource name of the quota preference. The ID component following "locations/" must be "global". Example: projects/123/locations/global/quotaPreferences/my-config-for-us-east1

string name = 1;

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaConfig()

public QuotaPreference.Builder clearQuotaConfig()

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaPreference.Builder

clearQuotaId()

public QuotaPreference.Builder clearQuotaId()

Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. Example: CpusPerProjectPerRegion

string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearReconciling()

public QuotaPreference.Builder clearReconciling()

Output only. Is the quota preference pending Google Cloud approval and fulfillment.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearService()

public QuotaPreference.Builder clearService()

Required. The name of the service to which the quota preference is applied.

string service = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

clearUpdateTime()

public QuotaPreference.Builder clearUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
QuotaPreference.Builder

clone()

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

containsDimensions(String key)

public boolean containsDimensions(String key)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getContactEmail()

public String getContactEmail()

Input only. An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted.

The email address is optional for decrease quota preferences. In another word, QuotaConfig.preferred_value is smaller than the QuotaDetails.reset_value. It is required for increase quota preferences. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for.

string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The contactEmail.

getContactEmailBytes()

public ByteString getContactEmailBytes()

Input only. An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted.

The email address is optional for decrease quota preferences. In another word, QuotaConfig.preferred_value is smaller than the QuotaDetails.reset_value. It is required for increase quota preferences. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for.

string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for contactEmail.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public QuotaPreference getDefaultInstanceForType()
Returns
TypeDescription
QuotaPreference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensions() (deprecated)

public Map<String,String> getDimensions()

Use #getDimensionsMap() instead.

Returns
TypeDescription
Map<String,String>

getDimensionsCount()

public int getDimensionsCount()

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

getDimensionsMap()

public Map<String,String> getDimensionsMap()

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Map<String,String>

getDimensionsOrDefault(String key, String defaultValue)

public String getDimensionsOrDefault(String key, String defaultValue)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDimensionsOrThrow(String key)

public String getDimensionsOrThrow(String key)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getEtag()

public String getEtag()

Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for etag.

getJustification()

public String getJustification()

The reason / justification for this quota preference.

string justification = 11;

Returns
TypeDescription
String

The justification.

getJustificationBytes()

public ByteString getJustificationBytes()

The reason / justification for this quota preference.

string justification = 11;

Returns
TypeDescription
ByteString

The bytes for justification.

getMutableDimensions() (deprecated)

public Map<String,String> getMutableDimensions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required except in the CREATE requests. The resource name of the quota preference. The ID component following "locations/" must be "global". Example: projects/123/locations/global/quotaPreferences/my-config-for-us-east1

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required except in the CREATE requests. The resource name of the quota preference. The ID component following "locations/" must be "global". Example: projects/123/locations/global/quotaPreferences/my-config-for-us-east1

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getQuotaConfig()

public QuotaConfig getQuotaConfig()

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaConfig

The quotaConfig.

getQuotaConfigBuilder()

public QuotaConfig.Builder getQuotaConfigBuilder()

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaConfig.Builder

getQuotaConfigOrBuilder()

public QuotaConfigOrBuilder getQuotaConfigOrBuilder()

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
QuotaConfigOrBuilder

getQuotaId()

public String getQuotaId()

Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. Example: CpusPerProjectPerRegion

string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The quotaId.

getQuotaIdBytes()

public ByteString getQuotaIdBytes()

Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. Example: CpusPerProjectPerRegion

string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for quotaId.

getReconciling()

public boolean getReconciling()

Output only. Is the quota preference pending Google Cloud approval and fulfillment.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The reconciling.

getService()

public String getService()

Required. The name of the service to which the quota preference is applied.

string service = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The name of the service to which the quota preference is applied.

string service = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for service.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasQuotaConfig()

public boolean hasQuotaConfig()

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the quotaConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime 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

mergeCreateTime(Timestamp value)

public QuotaPreference.Builder mergeCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
QuotaPreference.Builder

mergeFrom(QuotaPreference other)

public QuotaPreference.Builder mergeFrom(QuotaPreference other)
Parameter
NameDescription
otherQuotaPreference
Returns
TypeDescription
QuotaPreference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuotaConfig(QuotaConfig value)

public QuotaPreference.Builder mergeQuotaConfig(QuotaConfig value)

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueQuotaConfig
Returns
TypeDescription
QuotaPreference.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public QuotaPreference.Builder mergeUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
QuotaPreference.Builder

putAllDimensions(Map<String,String> values)

public QuotaPreference.Builder putAllDimensions(Map<String,String> values)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

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

putDimensions(String key, String value)

public QuotaPreference.Builder putDimensions(String key, String value)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
QuotaPreference.Builder

removeDimensions(String key)

public QuotaPreference.Builder removeDimensions(String key)

Immutable. The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value.

If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value.

NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map.

Example: {"provider", "Foo Inc"} where "provider" is a service specific dimension.

map<string, string> dimensions = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
keyString
Returns
TypeDescription
QuotaPreference.Builder

setContactEmail(String value)

public QuotaPreference.Builder setContactEmail(String value)

Input only. An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted.

The email address is optional for decrease quota preferences. In another word, QuotaConfig.preferred_value is smaller than the QuotaDetails.reset_value. It is required for increase quota preferences. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for.

string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The contactEmail to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setContactEmailBytes(ByteString value)

public QuotaPreference.Builder setContactEmailBytes(ByteString value)

Input only. An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted.

The email address is optional for decrease quota preferences. In another word, QuotaConfig.preferred_value is smaller than the QuotaDetails.reset_value. It is required for increase quota preferences. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for.

string contact_email = 12 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for contactEmail to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public QuotaPreference.Builder setCreateTime(Timestamp value)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
QuotaPreference.Builder

setCreateTime(Timestamp.Builder builderForValue)

public QuotaPreference.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time stamp

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
QuotaPreference.Builder

setEtag(String value)

public QuotaPreference.Builder setEtag(String value)

Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public QuotaPreference.Builder setEtagBytes(ByteString value)

Optional. The current etag of the quota preference. If an etag is provided on update and does not match the current server's etag of the quota preference, the request will be blocked and an ABORTED error will be returned. See https://google.aip.dev/134#etags for more details on etags.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setJustification(String value)

public QuotaPreference.Builder setJustification(String value)

The reason / justification for this quota preference.

string justification = 11;

Parameter
NameDescription
valueString

The justification to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setJustificationBytes(ByteString value)

public QuotaPreference.Builder setJustificationBytes(ByteString value)

The reason / justification for this quota preference.

string justification = 11;

Parameter
NameDescription
valueByteString

The bytes for justification to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setName(String value)

public QuotaPreference.Builder setName(String value)

Required except in the CREATE requests. The resource name of the quota preference. The ID component following "locations/" must be "global". Example: projects/123/locations/global/quotaPreferences/my-config-for-us-east1

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QuotaPreference.Builder setNameBytes(ByteString value)

Required except in the CREATE requests. The resource name of the quota preference. The ID component following "locations/" must be "global". Example: projects/123/locations/global/quotaPreferences/my-config-for-us-east1

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setQuotaConfig(QuotaConfig value)

public QuotaPreference.Builder setQuotaConfig(QuotaConfig value)

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueQuotaConfig
Returns
TypeDescription
QuotaPreference.Builder

setQuotaConfig(QuotaConfig.Builder builderForValue)

public QuotaPreference.Builder setQuotaConfig(QuotaConfig.Builder builderForValue)

Required. Preferred quota configuration.

.google.api.cloudquotas.v1.QuotaConfig quota_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueQuotaConfig.Builder
Returns
TypeDescription
QuotaPreference.Builder

setQuotaId(String value)

public QuotaPreference.Builder setQuotaId(String value)

Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. Example: CpusPerProjectPerRegion

string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The quotaId to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setQuotaIdBytes(ByteString value)

public QuotaPreference.Builder setQuotaIdBytes(ByteString value)

Required. The id of the quota to which the quota preference is applied. A quota name is unique in the service. Example: CpusPerProjectPerRegion

string quota_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for quotaId to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setReconciling(boolean value)

public QuotaPreference.Builder setReconciling(boolean value)

Output only. Is the quota preference pending Google Cloud approval and fulfillment.

bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

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

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

setService(String value)

public QuotaPreference.Builder setService(String value)

Required. The name of the service to which the quota preference is applied.

string service = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public QuotaPreference.Builder setServiceBytes(ByteString value)

Required. The name of the service to which the quota preference is applied.

string service = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
QuotaPreference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public QuotaPreference.Builder setUpdateTime(Timestamp value)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
QuotaPreference.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public QuotaPreference.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time stamp

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
QuotaPreference.Builder