Class 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.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
    implements GeoTaxonomyOrBuilder
     Encapsulates the geographic taxonomy data for a sku.
     
    Protobuf type google.cloud.billing.v1.GeoTaxonomy
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • clear

        public GeoTaxonomy.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • getDefaultInstanceForType

        public GeoTaxonomy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GeoTaxonomy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GeoTaxonomy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GeoTaxonomy.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • setField

        public GeoTaxonomy.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • clearField

        public GeoTaxonomy.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • clearOneof

        public GeoTaxonomy.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • setRepeatedField

        public GeoTaxonomy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • addRepeatedField

        public GeoTaxonomy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • mergeFrom

        public GeoTaxonomy.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeoTaxonomy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • mergeFrom

        public GeoTaxonomy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getTypeValue in interface GeoTaxonomyOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public GeoTaxonomy.Builder setTypeValue​(int value)
         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

        public GeoTaxonomy.Type getType()
         The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
         
        .google.cloud.billing.v1.GeoTaxonomy.Type type = 1;
        Specified by:
        getType in interface GeoTaxonomyOrBuilder
        Returns:
        The type.
      • setType

        public GeoTaxonomy.Builder setType​(GeoTaxonomy.Type value)
         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

        public GeoTaxonomy.Builder 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:
        getRegionsList in interface GeoTaxonomyOrBuilder
        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:
        getRegionsCount in interface GeoTaxonomyOrBuilder
        Returns:
        The count of regions.
      • getRegions

        public String getRegions​(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:
        getRegions in interface GeoTaxonomyOrBuilder
        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:
        getRegionsBytes in interface GeoTaxonomyOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the regions at the given index.
      • setRegions

        public GeoTaxonomy.Builder setRegions​(int index,
                                              String value)
         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

        public GeoTaxonomy.Builder addRegions​(String value)
         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

        public GeoTaxonomy.Builder addAllRegions​(Iterable<String> values)
         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

        public GeoTaxonomy.Builder 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

        public GeoTaxonomy.Builder addRegionsBytes​(com.google.protobuf.ByteString value)
         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.
      • setUnknownFields

        public final GeoTaxonomy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>
      • mergeUnknownFields

        public final GeoTaxonomy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GeoTaxonomy.Builder>