Class QuotaExceededInfo.Builder (1.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotaExceededInfo build()
Returns
TypeDescription
QuotaExceededInfo

buildPartial()

public QuotaExceededInfo buildPartial()
Returns
TypeDescription
QuotaExceededInfo

clear()

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

clearDimensions()

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

clearField(Descriptors.FieldDescriptor field)

public QuotaExceededInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QuotaExceededInfo.Builder

This builder for chaining.

clearLimitName()

public QuotaExceededInfo.Builder clearLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
TypeDescription
QuotaExceededInfo.Builder

This builder for chaining.

clearMetricName()

public QuotaExceededInfo.Builder clearMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
TypeDescription
QuotaExceededInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotaExceededInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
QuotaExceededInfo.Builder

This builder for chaining.

clone()

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

containsDimensions(String key)

public boolean containsDimensions(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public QuotaExceededInfo getDefaultInstanceForType()
Returns
TypeDescription
QuotaExceededInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensions()

public Map<String,String> getDimensions()

Use #getDimensionsMap() instead.

Returns
TypeDescription
Map<String,String>

getDimensionsCount()

public int getDimensionsCount()

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Returns
TypeDescription
int

getDimensionsMap()

public Map<String,String> getDimensionsMap()

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDimensionsOrThrow(String key)

public String getDimensionsOrThrow(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
double

The limit.

getLimitName()

public String getLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
TypeDescription
String

The limitName.

getLimitNameBytes()

public ByteString getLimitNameBytes()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
TypeDescription
ByteString

The bytes for limitName.

getMetricName()

public String getMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
TypeDescription
ByteString

The bytes for metricName.

getMutableDimensions()

public Map<String,String> getMutableDimensions()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the limit field is set.

hasLimitName()

public boolean hasLimitName()

The name of the quota limit.

optional string limit_name = 398197903;

Returns
TypeDescription
boolean

Whether the limitName field is set.

hasMetricName()

public boolean hasMetricName()

The Compute Engine quota metric name.

optional string metric_name = 409881530;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the rolloutStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QuotaExceededInfo other)

public QuotaExceededInfo.Builder mergeFrom(QuotaExceededInfo other)
Parameter
NameDescription
otherQuotaExceededInfo
Returns
TypeDescription
QuotaExceededInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotaExceededInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
QuotaExceededInfo.Builder

removeDimensions(String key)

public QuotaExceededInfo.Builder removeDimensions(String key)

The map holding related quota dimensions.

map<string, string> dimensions = 414334925;

Parameter
NameDescription
keyString
Returns
TypeDescription
QuotaExceededInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QuotaExceededInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuedouble

The futureLimit to set.

Returns
TypeDescription
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
NameDescription
valuedouble

The limit to set.

Returns
TypeDescription
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
NameDescription
valueString

The limitName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for limitName to set.

Returns
TypeDescription
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
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The rolloutStatus to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for rolloutStatus to set.

Returns
TypeDescription
QuotaExceededInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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