Class QuotaExceededInfo.Builder (1.64.0)

public static final class QuotaExceededInfo.Builder extends GeneratedMessageV3.Builder<QuotaExceededInfo.Builder> implements QuotaExceededInfoOrBuilder

Additional details for quota exceeded error for resource quota.

Protobuf type google.cloud.compute.v1.QuotaExceededInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotaExceededInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

build()

public QuotaExceededInfo build()
Returns
Type Description
QuotaExceededInfo

buildPartial()

public QuotaExceededInfo buildPartial()
Returns
Type Description
QuotaExceededInfo

clear()

public QuotaExceededInfo.Builder clear()
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

clearDimensions()

public QuotaExceededInfo.Builder clearDimensions()
Returns
Type Description
QuotaExceededInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public QuotaExceededInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

clearFutureLimit()

public QuotaExceededInfo.Builder clearFutureLimit()

Future quota limit being rolled out. The limit's unit depends on the quota type or metric.

optional double future_limit = 456564287;

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

clearLimit()

public QuotaExceededInfo.Builder clearLimit()

Current effective quota limit. The limit's unit depends on the quota type or metric.

optional double limit = 102976443;

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

clearLimitName()

public QuotaExceededInfo.Builder clearLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

clearMetricName()

public QuotaExceededInfo.Builder clearMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaExceededInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

clearRolloutStatus()

public QuotaExceededInfo.Builder clearRolloutStatus()

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

clone()

public QuotaExceededInfo.Builder clone()
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

containsDimensions(String key)

public boolean containsDimensions(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public QuotaExceededInfo getDefaultInstanceForType()
Returns
Type Description
QuotaExceededInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDimensions() (deprecated)

public Map<String,String> getDimensions()

Use #getDimensionsMap() instead.

Returns
Type Description
Map<String,String>

getDimensionsCount()

public int getDimensionsCount()

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Returns
Type Description
int

getDimensionsMap()

public Map<String,String> getDimensionsMap()

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Returns
Type Description
Map<String,String>

getDimensionsOrDefault(String key, String defaultValue)

public String getDimensionsOrDefault(String key, String defaultValue)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDimensionsOrThrow(String key)

public String getDimensionsOrThrow(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
Name Description
key String
Returns
Type Description
String

getFutureLimit()

public double getFutureLimit()

Future quota limit being rolled out. The limit's unit depends on the quota type or metric.

optional double future_limit = 456564287;

Returns
Type Description
double

The futureLimit.

getLimit()

public double getLimit()

Current effective quota limit. The limit's unit depends on the quota type or metric.

optional double limit = 102976443;

Returns
Type Description
double

The limit.

getLimitName()

public String getLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
Type Description
String

The limitName.

getLimitNameBytes()

public ByteString getLimitNameBytes()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
Type Description
ByteString

The bytes for limitName.

getMetricName()

public String getMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
Type Description
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
Type Description
ByteString

The bytes for metricName.

getMutableDimensions() (deprecated)

public Map<String,String> getMutableDimensions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getRolloutStatus()

public String getRolloutStatus()

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Returns
Type Description
String

The rolloutStatus.

getRolloutStatusBytes()

public ByteString getRolloutStatusBytes()

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Returns
Type Description
ByteString

The bytes for rolloutStatus.

hasFutureLimit()

public boolean hasFutureLimit()

Future quota limit being rolled out. The limit's unit depends on the quota type or metric.

optional double future_limit = 456564287;

Returns
Type Description
boolean

Whether the futureLimit field is set.

hasLimit()

public boolean hasLimit()

Current effective quota limit. The limit's unit depends on the quota type or metric.

optional double limit = 102976443;

Returns
Type Description
boolean

Whether the limit field is set.

hasLimitName()

public boolean hasLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
Type Description
boolean

Whether the limitName field is set.

hasMetricName()

public boolean hasMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
Type Description
boolean

Whether the metricName field is set.

hasRolloutStatus()

public boolean hasRolloutStatus()

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Returns
Type Description
boolean

Whether the rolloutStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuotaExceededInfo other)

public QuotaExceededInfo.Builder mergeFrom(QuotaExceededInfo other)
Parameter
Name Description
other QuotaExceededInfo
Returns
Type Description
QuotaExceededInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotaExceededInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotaExceededInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QuotaExceededInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaExceededInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

putAllDimensions(Map<String,String> values)

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

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
QuotaExceededInfo.Builder

putDimensions(String key, String value)

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

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameters
Name Description
key String
value String
Returns
Type Description
QuotaExceededInfo.Builder

removeDimensions(String key)

public QuotaExceededInfo.Builder removeDimensions(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
Name Description
key String
Returns
Type Description
QuotaExceededInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaExceededInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

setFutureLimit(double value)

public QuotaExceededInfo.Builder setFutureLimit(double value)

Future quota limit being rolled out. The limit's unit depends on the quota type or metric.

optional double future_limit = 456564287;

Parameter
Name Description
value double

The futureLimit to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setLimit(double value)

public QuotaExceededInfo.Builder setLimit(double value)

Current effective quota limit. The limit's unit depends on the quota type or metric.

optional double limit = 102976443;

Parameter
Name Description
value double

The limit to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setLimitName(String value)

public QuotaExceededInfo.Builder setLimitName(String value)

The name of the quota limit.

optional string limit_name = 398197903;

Parameter
Name Description
value String

The limitName to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setLimitNameBytes(ByteString value)

public QuotaExceededInfo.Builder setLimitNameBytes(ByteString value)

The name of the quota limit.

optional string limit_name = 398197903;

Parameter
Name Description
value ByteString

The bytes for limitName to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setMetricName(String value)

public QuotaExceededInfo.Builder setMetricName(String value)

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Parameter
Name Description
value String

The metricName to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public QuotaExceededInfo.Builder setMetricNameBytes(ByteString value)

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Parameter
Name Description
value ByteString

The bytes for metricName to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

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

public QuotaExceededInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QuotaExceededInfo.Builder
Overrides

setRolloutStatus(String value)

public QuotaExceededInfo.Builder setRolloutStatus(String value)

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Parameter
Name Description
value String

The rolloutStatus to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setRolloutStatusBytes(ByteString value)

public QuotaExceededInfo.Builder setRolloutStatusBytes(ByteString value)

Rollout status of the future quota limit. Check the RolloutStatus enum for the list of possible values.

optional string rollout_status = 476426816;

Parameter
Name Description
value ByteString

The bytes for rolloutStatus to set.

Returns
Type Description
QuotaExceededInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotaExceededInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QuotaExceededInfo.Builder
Overrides