Class QuotaInfo.Builder (0.7.0)

public static final class QuotaInfo.Builder extends GeneratedMessageV3.Builder<QuotaInfo.Builder> implements QuotaInfoOrBuilder

QuotaInfo represents information about a particular quota for a given project, folder or organization.

Protobuf type google.api.cloudquotas.v1.QuotaInfo

Implements

QuotaInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDimensions(Iterable<String> values)

public QuotaInfo.Builder addAllDimensions(Iterable<String> values)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameter
NameDescription
valuesIterable<String>

The dimensions to add.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

addAllDimensionsInfos(Iterable<? extends DimensionsInfo> values)

public QuotaInfo.Builder addAllDimensionsInfos(Iterable<? extends DimensionsInfo> values)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
valuesIterable<? extends com.google.api.cloudquotas.v1.DimensionsInfo>
Returns
TypeDescription
QuotaInfo.Builder

addDimensions(String value)

public QuotaInfo.Builder addDimensions(String value)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameter
NameDescription
valueString

The dimensions to add.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

addDimensionsBytes(ByteString value)

public QuotaInfo.Builder addDimensionsBytes(ByteString value)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameter
NameDescription
valueByteString

The bytes of the dimensions to add.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

addDimensionsInfos(DimensionsInfo value)

public QuotaInfo.Builder addDimensionsInfos(DimensionsInfo value)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
valueDimensionsInfo
Returns
TypeDescription
QuotaInfo.Builder

addDimensionsInfos(DimensionsInfo.Builder builderForValue)

public QuotaInfo.Builder addDimensionsInfos(DimensionsInfo.Builder builderForValue)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
builderForValueDimensionsInfo.Builder
Returns
TypeDescription
QuotaInfo.Builder

addDimensionsInfos(int index, DimensionsInfo value)

public QuotaInfo.Builder addDimensionsInfos(int index, DimensionsInfo value)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameters
NameDescription
indexint
valueDimensionsInfo
Returns
TypeDescription
QuotaInfo.Builder

addDimensionsInfos(int index, DimensionsInfo.Builder builderForValue)

public QuotaInfo.Builder addDimensionsInfos(int index, DimensionsInfo.Builder builderForValue)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameters
NameDescription
indexint
builderForValueDimensionsInfo.Builder
Returns
TypeDescription
QuotaInfo.Builder

addDimensionsInfosBuilder()

public DimensionsInfo.Builder addDimensionsInfosBuilder()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
DimensionsInfo.Builder

addDimensionsInfosBuilder(int index)

public DimensionsInfo.Builder addDimensionsInfosBuilder(int index)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionsInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotaInfo build()
Returns
TypeDescription
QuotaInfo

buildPartial()

public QuotaInfo buildPartial()
Returns
TypeDescription
QuotaInfo

clear()

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

clearContainerType()

public QuotaInfo.Builder clearContainerType()

The container type of the QuotaInfo.

.google.api.cloudquotas.v1.QuotaInfo.ContainerType container_type = 7;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearDimensions()

public QuotaInfo.Builder clearDimensions()

The dimensions the quota is defined on.

repeated string dimensions = 8;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearDimensionsInfos()

public QuotaInfo.Builder clearDimensionsInfos()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
QuotaInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIsConcurrent()

public QuotaInfo.Builder clearIsConcurrent()

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

bool is_concurrent = 15;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearIsFixed()

public QuotaInfo.Builder clearIsFixed()

Whether the quota value is fixed or adjustable

bool is_fixed = 13;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearIsPrecise()

public QuotaInfo.Builder clearIsPrecise()

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

bool is_precise = 5;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearMetric()

public QuotaInfo.Builder clearMetric()

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

string metric = 3;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearMetricDisplayName()

public QuotaInfo.Builder clearMetricDisplayName()

The display name of the quota metric

string metric_display_name = 9;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearMetricUnit()

public QuotaInfo.Builder clearMetricUnit()

The unit in which the metric value is reported, e.g., "MByte".

string metric_unit = 11;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearName()

public QuotaInfo.Builder clearName()

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

string name = 1;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaDisplayName()

public QuotaInfo.Builder clearQuotaDisplayName()

The display name of the quota.

string quota_display_name = 10;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearQuotaId()

public QuotaInfo.Builder clearQuotaId()

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

string quota_id = 2;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearQuotaIncreaseEligibility()

public QuotaInfo.Builder clearQuotaIncreaseEligibility()

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Returns
TypeDescription
QuotaInfo.Builder

clearRefreshInterval()

public QuotaInfo.Builder clearRefreshInterval()

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

string refresh_interval = 6;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearService()

public QuotaInfo.Builder clearService()

The name of the service in which the quota is defined. Example: compute.googleapis.com

string service = 4;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clearServiceRequestQuotaUri()

public QuotaInfo.Builder clearServiceRequestQuotaUri()

URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.

string service_request_quota_uri = 17;

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

clone()

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

getContainerType()

public QuotaInfo.ContainerType getContainerType()

The container type of the QuotaInfo.

.google.api.cloudquotas.v1.QuotaInfo.ContainerType container_type = 7;

Returns
TypeDescription
QuotaInfo.ContainerType

The containerType.

getContainerTypeValue()

public int getContainerTypeValue()

The container type of the QuotaInfo.

.google.api.cloudquotas.v1.QuotaInfo.ContainerType container_type = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for containerType.

getDefaultInstanceForType()

public QuotaInfo getDefaultInstanceForType()
Returns
TypeDescription
QuotaInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimensions(int index)

public String getDimensions(int index)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The dimensions at the given index.

getDimensionsBytes(int index)

public ByteString getDimensionsBytes(int index)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the dimensions at the given index.

getDimensionsCount()

public int getDimensionsCount()

The dimensions the quota is defined on.

repeated string dimensions = 8;

Returns
TypeDescription
int

The count of dimensions.

getDimensionsInfos(int index)

public DimensionsInfo getDimensionsInfos(int index)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionsInfo

getDimensionsInfosBuilder(int index)

public DimensionsInfo.Builder getDimensionsInfosBuilder(int index)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionsInfo.Builder

getDimensionsInfosBuilderList()

public List<DimensionsInfo.Builder> getDimensionsInfosBuilderList()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
List<Builder>

getDimensionsInfosCount()

public int getDimensionsInfosCount()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
int

getDimensionsInfosList()

public List<DimensionsInfo> getDimensionsInfosList()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
List<DimensionsInfo>

getDimensionsInfosOrBuilder(int index)

public DimensionsInfoOrBuilder getDimensionsInfosOrBuilder(int index)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
DimensionsInfoOrBuilder

getDimensionsInfosOrBuilderList()

public List<? extends DimensionsInfoOrBuilder> getDimensionsInfosOrBuilderList()

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Returns
TypeDescription
List<? extends com.google.api.cloudquotas.v1.DimensionsInfoOrBuilder>

getDimensionsList()

public ProtocolStringList getDimensionsList()

The dimensions the quota is defined on.

repeated string dimensions = 8;

Returns
TypeDescription
ProtocolStringList

A list containing the dimensions.

getIsConcurrent()

public boolean getIsConcurrent()

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

bool is_concurrent = 15;

Returns
TypeDescription
boolean

The isConcurrent.

getIsFixed()

public boolean getIsFixed()

Whether the quota value is fixed or adjustable

bool is_fixed = 13;

Returns
TypeDescription
boolean

The isFixed.

getIsPrecise()

public boolean getIsPrecise()

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

bool is_precise = 5;

Returns
TypeDescription
boolean

The isPrecise.

getMetric()

public String getMetric()

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

string metric = 3;

Returns
TypeDescription
String

The metric.

getMetricBytes()

public ByteString getMetricBytes()

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

string metric = 3;

Returns
TypeDescription
ByteString

The bytes for metric.

getMetricDisplayName()

public String getMetricDisplayName()

The display name of the quota metric

string metric_display_name = 9;

Returns
TypeDescription
String

The metricDisplayName.

getMetricDisplayNameBytes()

public ByteString getMetricDisplayNameBytes()

The display name of the quota metric

string metric_display_name = 9;

Returns
TypeDescription
ByteString

The bytes for metricDisplayName.

getMetricUnit()

public String getMetricUnit()

The unit in which the metric value is reported, e.g., "MByte".

string metric_unit = 11;

Returns
TypeDescription
String

The metricUnit.

getMetricUnitBytes()

public ByteString getMetricUnitBytes()

The unit in which the metric value is reported, e.g., "MByte".

string metric_unit = 11;

Returns
TypeDescription
ByteString

The bytes for metricUnit.

getName()

public String getName()

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getQuotaDisplayName()

public String getQuotaDisplayName()

The display name of the quota.

string quota_display_name = 10;

Returns
TypeDescription
String

The quotaDisplayName.

getQuotaDisplayNameBytes()

public ByteString getQuotaDisplayNameBytes()

The display name of the quota.

string quota_display_name = 10;

Returns
TypeDescription
ByteString

The bytes for quotaDisplayName.

getQuotaId()

public String getQuotaId()

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

string quota_id = 2;

Returns
TypeDescription
String

The quotaId.

getQuotaIdBytes()

public ByteString getQuotaIdBytes()

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

string quota_id = 2;

Returns
TypeDescription
ByteString

The bytes for quotaId.

getQuotaIncreaseEligibility()

public QuotaIncreaseEligibility getQuotaIncreaseEligibility()

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Returns
TypeDescription
QuotaIncreaseEligibility

The quotaIncreaseEligibility.

getQuotaIncreaseEligibilityBuilder()

public QuotaIncreaseEligibility.Builder getQuotaIncreaseEligibilityBuilder()

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Returns
TypeDescription
QuotaIncreaseEligibility.Builder

getQuotaIncreaseEligibilityOrBuilder()

public QuotaIncreaseEligibilityOrBuilder getQuotaIncreaseEligibilityOrBuilder()

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Returns
TypeDescription
QuotaIncreaseEligibilityOrBuilder

getRefreshInterval()

public String getRefreshInterval()

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

string refresh_interval = 6;

Returns
TypeDescription
String

The refreshInterval.

getRefreshIntervalBytes()

public ByteString getRefreshIntervalBytes()

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

string refresh_interval = 6;

Returns
TypeDescription
ByteString

The bytes for refreshInterval.

getService()

public String getService()

The name of the service in which the quota is defined. Example: compute.googleapis.com

string service = 4;

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

The name of the service in which the quota is defined. Example: compute.googleapis.com

string service = 4;

Returns
TypeDescription
ByteString

The bytes for service.

getServiceRequestQuotaUri()

public String getServiceRequestQuotaUri()

URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.

string service_request_quota_uri = 17;

Returns
TypeDescription
String

The serviceRequestQuotaUri.

getServiceRequestQuotaUriBytes()

public ByteString getServiceRequestQuotaUriBytes()

URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.

string service_request_quota_uri = 17;

Returns
TypeDescription
ByteString

The bytes for serviceRequestQuotaUri.

hasQuotaIncreaseEligibility()

public boolean hasQuotaIncreaseEligibility()

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Returns
TypeDescription
boolean

Whether the quotaIncreaseEligibility field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QuotaInfo other)

public QuotaInfo.Builder mergeFrom(QuotaInfo other)
Parameter
NameDescription
otherQuotaInfo
Returns
TypeDescription
QuotaInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuotaIncreaseEligibility(QuotaIncreaseEligibility value)

public QuotaInfo.Builder mergeQuotaIncreaseEligibility(QuotaIncreaseEligibility value)

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Parameter
NameDescription
valueQuotaIncreaseEligibility
Returns
TypeDescription
QuotaInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDimensionsInfos(int index)

public QuotaInfo.Builder removeDimensionsInfos(int index)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaInfo.Builder

setContainerType(QuotaInfo.ContainerType value)

public QuotaInfo.Builder setContainerType(QuotaInfo.ContainerType value)

The container type of the QuotaInfo.

.google.api.cloudquotas.v1.QuotaInfo.ContainerType container_type = 7;

Parameter
NameDescription
valueQuotaInfo.ContainerType

The containerType to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setContainerTypeValue(int value)

public QuotaInfo.Builder setContainerTypeValue(int value)

The container type of the QuotaInfo.

.google.api.cloudquotas.v1.QuotaInfo.ContainerType container_type = 7;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setDimensions(int index, String value)

public QuotaInfo.Builder setDimensions(int index, String value)

The dimensions the quota is defined on.

repeated string dimensions = 8;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The dimensions to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setDimensionsInfos(int index, DimensionsInfo value)

public QuotaInfo.Builder setDimensionsInfos(int index, DimensionsInfo value)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameters
NameDescription
indexint
valueDimensionsInfo
Returns
TypeDescription
QuotaInfo.Builder

setDimensionsInfos(int index, DimensionsInfo.Builder builderForValue)

public QuotaInfo.Builder setDimensionsInfos(int index, DimensionsInfo.Builder builderForValue)

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

repeated .google.api.cloudquotas.v1.DimensionsInfo dimensions_infos = 14;

Parameters
NameDescription
indexint
builderForValueDimensionsInfo.Builder
Returns
TypeDescription
QuotaInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsConcurrent(boolean value)

public QuotaInfo.Builder setIsConcurrent(boolean value)

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

bool is_concurrent = 15;

Parameter
NameDescription
valueboolean

The isConcurrent to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setIsFixed(boolean value)

public QuotaInfo.Builder setIsFixed(boolean value)

Whether the quota value is fixed or adjustable

bool is_fixed = 13;

Parameter
NameDescription
valueboolean

The isFixed to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setIsPrecise(boolean value)

public QuotaInfo.Builder setIsPrecise(boolean value)

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

bool is_precise = 5;

Parameter
NameDescription
valueboolean

The isPrecise to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetric(String value)

public QuotaInfo.Builder setMetric(String value)

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

string metric = 3;

Parameter
NameDescription
valueString

The metric to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetricBytes(ByteString value)

public QuotaInfo.Builder setMetricBytes(ByteString value)

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

string metric = 3;

Parameter
NameDescription
valueByteString

The bytes for metric to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetricDisplayName(String value)

public QuotaInfo.Builder setMetricDisplayName(String value)

The display name of the quota metric

string metric_display_name = 9;

Parameter
NameDescription
valueString

The metricDisplayName to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetricDisplayNameBytes(ByteString value)

public QuotaInfo.Builder setMetricDisplayNameBytes(ByteString value)

The display name of the quota metric

string metric_display_name = 9;

Parameter
NameDescription
valueByteString

The bytes for metricDisplayName to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetricUnit(String value)

public QuotaInfo.Builder setMetricUnit(String value)

The unit in which the metric value is reported, e.g., "MByte".

string metric_unit = 11;

Parameter
NameDescription
valueString

The metricUnit to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setMetricUnitBytes(ByteString value)

public QuotaInfo.Builder setMetricUnitBytes(ByteString value)

The unit in which the metric value is reported, e.g., "MByte".

string metric_unit = 11;

Parameter
NameDescription
valueByteString

The bytes for metricUnit to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setName(String value)

public QuotaInfo.Builder setName(String value)

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QuotaInfo.Builder setNameBytes(ByteString value)

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setQuotaDisplayName(String value)

public QuotaInfo.Builder setQuotaDisplayName(String value)

The display name of the quota.

string quota_display_name = 10;

Parameter
NameDescription
valueString

The quotaDisplayName to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setQuotaDisplayNameBytes(ByteString value)

public QuotaInfo.Builder setQuotaDisplayNameBytes(ByteString value)

The display name of the quota.

string quota_display_name = 10;

Parameter
NameDescription
valueByteString

The bytes for quotaDisplayName to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setQuotaId(String value)

public QuotaInfo.Builder setQuotaId(String value)

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

string quota_id = 2;

Parameter
NameDescription
valueString

The quotaId to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setQuotaIdBytes(ByteString value)

public QuotaInfo.Builder setQuotaIdBytes(ByteString value)

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

string quota_id = 2;

Parameter
NameDescription
valueByteString

The bytes for quotaId to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setQuotaIncreaseEligibility(QuotaIncreaseEligibility value)

public QuotaInfo.Builder setQuotaIncreaseEligibility(QuotaIncreaseEligibility value)

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Parameter
NameDescription
valueQuotaIncreaseEligibility
Returns
TypeDescription
QuotaInfo.Builder

setQuotaIncreaseEligibility(QuotaIncreaseEligibility.Builder builderForValue)

public QuotaInfo.Builder setQuotaIncreaseEligibility(QuotaIncreaseEligibility.Builder builderForValue)

Whether it is eligible to request a higher quota value for this quota.

.google.api.cloudquotas.v1.QuotaIncreaseEligibility quota_increase_eligibility = 12;

Parameter
NameDescription
builderForValueQuotaIncreaseEligibility.Builder
Returns
TypeDescription
QuotaInfo.Builder

setRefreshInterval(String value)

public QuotaInfo.Builder setRefreshInterval(String value)

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

string refresh_interval = 6;

Parameter
NameDescription
valueString

The refreshInterval to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setRefreshIntervalBytes(ByteString value)

public QuotaInfo.Builder setRefreshIntervalBytes(ByteString value)

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

string refresh_interval = 6;

Parameter
NameDescription
valueByteString

The bytes for refreshInterval to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

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

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

setService(String value)

public QuotaInfo.Builder setService(String value)

The name of the service in which the quota is defined. Example: compute.googleapis.com

string service = 4;

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public QuotaInfo.Builder setServiceBytes(ByteString value)

The name of the service in which the quota is defined. Example: compute.googleapis.com

string service = 4;

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setServiceRequestQuotaUri(String value)

public QuotaInfo.Builder setServiceRequestQuotaUri(String value)

URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.

string service_request_quota_uri = 17;

Parameter
NameDescription
valueString

The serviceRequestQuotaUri to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setServiceRequestQuotaUriBytes(ByteString value)

public QuotaInfo.Builder setServiceRequestQuotaUriBytes(ByteString value)

URI to the page where users can request more quota for the cloud service—for example, https://console.cloud.google.com/iam-admin/quotas.

string service_request_quota_uri = 17;

Parameter
NameDescription
valueByteString

The bytes for serviceRequestQuotaUri to set.

Returns
TypeDescription
QuotaInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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