Package com.google.cloud.billing.v1
Class GeoTaxonomy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GeoTaxonomy.Builder>
com.google.cloud.billing.v1.GeoTaxonomy.Builder
- All Implemented Interfaces:
GeoTaxonomyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GeoTaxonomy
public static final class GeoTaxonomy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GeoTaxonomy.Builder>
implements GeoTaxonomyOrBuilder
Encapsulates the geographic taxonomy data for a sku.Protobuf type
google.cloud.billing.v1.GeoTaxonomy-
Method Summary
Modifier and TypeMethodDescriptionaddAllRegions(Iterable<String> values) The list of regions associated with a sku.addRegions(String value) The list of regions associated with a sku.addRegionsBytes(com.google.protobuf.ByteString value) The list of regions associated with a sku.build()clear()The list of regions associated with a sku.The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRegions(int index) The list of regions associated with a sku.com.google.protobuf.ByteStringgetRegionsBytes(int index) The list of regions associated with a sku.intThe list of regions associated with a sku.com.google.protobuf.ProtocolStringListThe list of regions associated with a sku.getType()The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.intThe type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GeoTaxonomy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setRegions(int index, String value) The list of regions associated with a sku.setType(GeoTaxonomy.Type value) The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.setTypeValue(int value) The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GeoTaxonomy.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<GeoTaxonomy.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<GeoTaxonomy.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<GeoTaxonomy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GeoTaxonomy.Builder>
-
mergeFrom
public GeoTaxonomy.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<GeoTaxonomy.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;- Specified by:
getTypeValuein interfaceGeoTaxonomyOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;- Specified by:
getTypein interfaceGeoTaxonomyOrBuilder- Returns:
- The type.
-
setType
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;- Returns:
- This builder for chaining.
-
getRegionsList
public com.google.protobuf.ProtocolStringList getRegionsList()The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Specified by:
getRegionsListin interfaceGeoTaxonomyOrBuilder- Returns:
- A list containing the regions.
-
getRegionsCount
public int getRegionsCount()The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Specified by:
getRegionsCountin interfaceGeoTaxonomyOrBuilder- Returns:
- The count of regions.
-
getRegions
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Specified by:
getRegionsin interfaceGeoTaxonomyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The regions at the given index.
-
getRegionsBytes
public com.google.protobuf.ByteString getRegionsBytes(int index) The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Specified by:
getRegionsBytesin interfaceGeoTaxonomyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the regions at the given index.
-
setRegions
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Parameters:
index- The index to set the value at.value- The regions to set.- Returns:
- This builder for chaining.
-
addRegions
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Parameters:
value- The regions to add.- Returns:
- This builder for chaining.
-
addAllRegions
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Parameters:
values- The regions to add.- Returns:
- This builder for chaining.
-
clearRegions
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Returns:
- This builder for chaining.
-
addRegionsBytes
The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.
repeated string regions = 2;- Parameters:
value- The bytes of the regions to add.- Returns:
- This builder for chaining.
-