Package com.google.api.cloudquotas.v1
Class DimensionsInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
com.google.api.cloudquotas.v1.DimensionsInfo.Builder
- All Implemented Interfaces:
DimensionsInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DimensionsInfo
public static final class DimensionsInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
implements DimensionsInfoOrBuilder
The detailed quota information such as effective quota value for a combination of dimensions.Protobuf type
google.api.cloudquotas.v1.DimensionsInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllApplicableLocations(Iterable<String> values) The applicable regions or zones of this dimensions info.addApplicableLocations(String value) The applicable regions or zones of this dimensions info.addApplicableLocationsBytes(com.google.protobuf.ByteString value) The applicable regions or zones of this dimensions info.build()clear()The applicable regions or zones of this dimensions info.Quota details for the specified dimensions.booleancontainsDimensions(String key) The map of dimensions for this dimensions info.getApplicableLocations(int index) The applicable regions or zones of this dimensions info.com.google.protobuf.ByteStringgetApplicableLocationsBytes(int index) The applicable regions or zones of this dimensions info.intThe applicable regions or zones of this dimensions info.com.google.protobuf.ProtocolStringListThe applicable regions or zones of this dimensions info.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorQuota details for the specified dimensions.Quota details for the specified dimensions.Quota details for the specified dimensions.Deprecated.intThe map of dimensions for this dimensions info.The map of dimensions for this dimensions info.getDimensionsOrDefault(String key, String defaultValue) The map of dimensions for this dimensions info.The map of dimensions for this dimensions info.Deprecated.booleanQuota details for the specified dimensions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeDetails(QuotaDetails value) Quota details for the specified dimensions.mergeFrom(DimensionsInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllDimensions(Map<String, String> values) The map of dimensions for this dimensions info.putDimensions(String key, String value) The map of dimensions for this dimensions info.removeDimensions(String key) The map of dimensions for this dimensions info.setApplicableLocations(int index, String value) The applicable regions or zones of this dimensions info.setDetails(QuotaDetails value) Quota details for the specified dimensions.setDetails(QuotaDetails.Builder builderForValue) Quota details for the specified dimensions.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DimensionsInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DimensionsInfo.Builder>
-
mergeFrom
public DimensionsInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DimensionsInfo.Builder>- Throws:
IOException
-
getDimensionsCount
public int getDimensionsCount()Description copied from interface:DimensionsInfoOrBuilderThe map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1;- Specified by:
getDimensionsCountin interfaceDimensionsInfoOrBuilder
-
containsDimensions
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1;- Specified by:
containsDimensionsin interfaceDimensionsInfoOrBuilder
-
getDimensions
Deprecated.UsegetDimensionsMap()instead.- Specified by:
getDimensionsin interfaceDimensionsInfoOrBuilder
-
getDimensionsMap
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1;- Specified by:
getDimensionsMapin interfaceDimensionsInfoOrBuilder
-
getDimensionsOrDefault
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1;- Specified by:
getDimensionsOrDefaultin interfaceDimensionsInfoOrBuilder
-
getDimensionsOrThrow
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1;- Specified by:
getDimensionsOrThrowin interfaceDimensionsInfoOrBuilder
-
clearDimensions
-
removeDimensions
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1; -
getMutableDimensions
Deprecated.Use alternate mutation accessors instead. -
putDimensions
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1; -
putAllDimensions
The map of dimensions for this dimensions info. 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 DimenisonInfo instance configured for the specific value. Example: {"provider" : "Foo Inc"} where "provider" is a service specific dimension of a quota.map<string, string> dimensions = 1; -
hasDetails
public boolean hasDetails()Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2;- Specified by:
hasDetailsin interfaceDimensionsInfoOrBuilder- Returns:
- Whether the details field is set.
-
getDetails
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2;- Specified by:
getDetailsin interfaceDimensionsInfoOrBuilder- Returns:
- The details.
-
setDetails
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2; -
setDetails
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2; -
mergeDetails
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2; -
clearDetails
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2; -
getDetailsBuilder
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2; -
getDetailsOrBuilder
Quota details for the specified dimensions.
.google.api.cloudquotas.v1.QuotaDetails details = 2;- Specified by:
getDetailsOrBuilderin interfaceDimensionsInfoOrBuilder
-
getApplicableLocationsList
public com.google.protobuf.ProtocolStringList getApplicableLocationsList()The applicable regions or zones of this dimensions info. The field will be 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;- Specified by:
getApplicableLocationsListin interfaceDimensionsInfoOrBuilder- Returns:
- A list containing the applicableLocations.
-
getApplicableLocationsCount
public int getApplicableLocationsCount()The applicable regions or zones of this dimensions info. The field will be 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;- Specified by:
getApplicableLocationsCountin interfaceDimensionsInfoOrBuilder- Returns:
- The count of applicableLocations.
-
getApplicableLocations
The applicable regions or zones of this dimensions info. The field will be 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;- Specified by:
getApplicableLocationsin interfaceDimensionsInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The applicableLocations at the given index.
-
getApplicableLocationsBytes
public com.google.protobuf.ByteString getApplicableLocationsBytes(int index) The applicable regions or zones of this dimensions info. The field will be 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;- Specified by:
getApplicableLocationsBytesin interfaceDimensionsInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the applicableLocations at the given index.
-
setApplicableLocations
The applicable regions or zones of this dimensions info. The field will be 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:
index- The index to set the value at.value- The applicableLocations to set.- Returns:
- This builder for chaining.
-
addApplicableLocations
The applicable regions or zones of this dimensions info. The field will be 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:
value- The applicableLocations to add.- Returns:
- This builder for chaining.
-
addAllApplicableLocations
The applicable regions or zones of this dimensions info. The field will be 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:
values- The applicableLocations to add.- Returns:
- This builder for chaining.
-
clearApplicableLocations
The applicable regions or zones of this dimensions info. The field will be 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:
- This builder for chaining.
-
addApplicableLocationsBytes
The applicable regions or zones of this dimensions info. The field will be 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:
value- The bytes of the applicableLocations to add.- Returns:
- This builder for chaining.
-