public static final class DimensionsInfo.Builder extends GeneratedMessage.Builder<DimensionsInfo.Builder> implements DimensionsInfoOrBuilderThe detailed quota information such as effective quota value for a combination of dimensions.
Protobuf type google.api.cloudquotas.v1beta.DimensionsInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DimensionsInfo.BuilderImplements
DimensionsInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllApplicableLocations(Iterable<String> values)
public DimensionsInfo.Builder addAllApplicableLocations(Iterable<String> values)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The applicableLocations to add. |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
This builder for chaining. |
addApplicableLocations(String value)
public DimensionsInfo.Builder addApplicableLocations(String value)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe applicableLocations to add. |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
This builder for chaining. |
addApplicableLocationsBytes(ByteString value)
public DimensionsInfo.Builder addApplicableLocationsBytes(ByteString value)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the applicableLocations to add. |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
This builder for chaining. |
build()
public DimensionsInfo build()| Returns | |
|---|---|
| Type | Description |
DimensionsInfo |
|
buildPartial()
public DimensionsInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
DimensionsInfo |
|
clear()
public DimensionsInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
clearApplicableLocations()
public DimensionsInfo.Builder clearApplicableLocations()The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
This builder for chaining. |
clearDetails()
public DimensionsInfo.Builder clearDetails()Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
clearDimensions()
public DimensionsInfo.Builder clearDimensions()| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
containsDimensions(String key)
public boolean containsDimensions(String key) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getApplicableLocations(int index)
public String getApplicableLocations(int index)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The applicableLocations at the given index. |
getApplicableLocationsBytes(int index)
public ByteString getApplicableLocationsBytes(int index)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the applicableLocations at the given index. |
getApplicableLocationsCount()
public int getApplicableLocationsCount()The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of applicableLocations. |
getApplicableLocationsList()
public ProtocolStringList getApplicableLocationsList()The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the applicableLocations. |
getDefaultInstanceForType()
public DimensionsInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DimensionsInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDetails()
public QuotaDetails getDetails()Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Returns | |
|---|---|
| Type | Description |
QuotaDetails |
The details. |
getDetailsBuilder()
public QuotaDetails.Builder getDetailsBuilder()Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Returns | |
|---|---|
| Type | Description |
QuotaDetails.Builder |
|
getDetailsOrBuilder()
public QuotaDetailsOrBuilder getDetailsOrBuilder()Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Returns | |
|---|---|
| Type | Description |
QuotaDetailsOrBuilder |
|
getDimensions() (deprecated)
public Map<String,String> getDimensions()Use #getDimensionsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getDimensionsCount()
public int getDimensionsCount() The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDimensionsMap()
public Map<String,String> getDimensionsMap() The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getDimensionsOrDefault(String key, String defaultValue)
public String getDimensionsOrDefault(String key, String defaultValue) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getDimensionsOrThrow(String key)
public String getDimensionsOrThrow(String key) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableDimensions() (deprecated)
public Map<String,String> getMutableDimensions()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
hasDetails()
public boolean hasDetails()Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the details field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDetails(QuotaDetails value)
public DimensionsInfo.Builder mergeDetails(QuotaDetails value)Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
QuotaDetails |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
mergeFrom(DimensionsInfo other)
public DimensionsInfo.Builder mergeFrom(DimensionsInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
DimensionsInfo |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DimensionsInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DimensionsInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
putAllDimensions(Map<String,String> values)
public DimensionsInfo.Builder putAllDimensions(Map<String,String> values) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
putDimensions(String key, String value)
public DimensionsInfo.Builder putDimensions(String key, String value) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
removeDimensions(String key)
public DimensionsInfo.Builder removeDimensions(String key) The map of dimensions in key-value pairs. The key of a map entry
is "region", "zone", or the name of a service-specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimensionInfo
instance configured for the specific value.
For example: {"provider" : "Example Organization"} where provider is a
service-specific quota dimension and Example Organization is the provider
name.
map<string, string> dimensions = 1;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
setApplicableLocations(int index, String value)
public DimensionsInfo.Builder setApplicableLocations(int index, String value)The applicable regions or zones of this dimension. The field is set to ['global'] for quotas that are not per region or per zone. Otherwise, it will be set to the list of locations this dimension info is applicable to.
repeated string applicable_locations = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe applicableLocations to set. |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
This builder for chaining. |
setDetails(QuotaDetails value)
public DimensionsInfo.Builder setDetails(QuotaDetails value)Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
QuotaDetails |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|
setDetails(QuotaDetails.Builder builderForValue)
public DimensionsInfo.Builder setDetails(QuotaDetails.Builder builderForValue)Quota details for the specified dimensions.
.google.api.cloudquotas.v1beta.QuotaDetails details = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
QuotaDetails.Builder |
| Returns | |
|---|---|
| Type | Description |
DimensionsInfo.Builder |
|