Class Sku.Builder

  • All Implemented Interfaces:
    SkuOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Sku

    public static final class Sku.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Sku.Builder>
    implements SkuOrBuilder
     Encapsulates a single SKU in Google Cloud Platform
     
    Protobuf type google.cloud.billing.v1.Sku
    • 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<Sku.Builder>
      • clear

        public Sku.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<Sku.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<Sku.Builder>
      • getDefaultInstanceForType

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

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

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

        public Sku.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<Sku.Builder>
      • setField

        public Sku.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<Sku.Builder>
      • clearField

        public Sku.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<Sku.Builder>
      • clearOneof

        public Sku.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<Sku.Builder>
      • setRepeatedField

        public Sku.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<Sku.Builder>
      • addRepeatedField

        public Sku.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<Sku.Builder>
      • mergeFrom

        public Sku.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<Sku.Builder>
      • isInitialized

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

        public Sku.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<Sku.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name for the SKU.
         Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
         
        string name = 1;
        Specified by:
        getName in interface SkuOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name for the SKU.
         Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
         
        string name = 1;
        Specified by:
        getNameBytes in interface SkuOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Sku.Builder setName​(String value)
         The resource name for the SKU.
         Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Sku.Builder clearName()
         The resource name for the SKU.
         Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Sku.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name for the SKU.
         Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSkuId

        public String getSkuId()
         The identifier for the SKU.
         Example: "AA95-CD31-42FE"
         
        string sku_id = 2;
        Specified by:
        getSkuId in interface SkuOrBuilder
        Returns:
        The skuId.
      • getSkuIdBytes

        public com.google.protobuf.ByteString getSkuIdBytes()
         The identifier for the SKU.
         Example: "AA95-CD31-42FE"
         
        string sku_id = 2;
        Specified by:
        getSkuIdBytes in interface SkuOrBuilder
        Returns:
        The bytes for skuId.
      • setSkuId

        public Sku.Builder setSkuId​(String value)
         The identifier for the SKU.
         Example: "AA95-CD31-42FE"
         
        string sku_id = 2;
        Parameters:
        value - The skuId to set.
        Returns:
        This builder for chaining.
      • clearSkuId

        public Sku.Builder clearSkuId()
         The identifier for the SKU.
         Example: "AA95-CD31-42FE"
         
        string sku_id = 2;
        Returns:
        This builder for chaining.
      • setSkuIdBytes

        public Sku.Builder setSkuIdBytes​(com.google.protobuf.ByteString value)
         The identifier for the SKU.
         Example: "AA95-CD31-42FE"
         
        string sku_id = 2;
        Parameters:
        value - The bytes for skuId to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         A human readable description of the SKU, has a maximum length of 256
         characters.
         
        string description = 3;
        Specified by:
        getDescription in interface SkuOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A human readable description of the SKU, has a maximum length of 256
         characters.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface SkuOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Sku.Builder setDescription​(String value)
         A human readable description of the SKU, has a maximum length of 256
         characters.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Sku.Builder clearDescription()
         A human readable description of the SKU, has a maximum length of 256
         characters.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Sku.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A human readable description of the SKU, has a maximum length of 256
         characters.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCategory

        public boolean hasCategory()
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
        Specified by:
        hasCategory in interface SkuOrBuilder
        Returns:
        Whether the category field is set.
      • getCategory

        public Category getCategory()
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
        Specified by:
        getCategory in interface SkuOrBuilder
        Returns:
        The category.
      • setCategory

        public Sku.Builder setCategory​(Category value)
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
      • setCategory

        public Sku.Builder setCategory​(Category.Builder builderForValue)
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
      • mergeCategory

        public Sku.Builder mergeCategory​(Category value)
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
      • clearCategory

        public Sku.Builder clearCategory()
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
      • getCategoryBuilder

        public Category.Builder getCategoryBuilder()
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
      • getCategoryOrBuilder

        public CategoryOrBuilder getCategoryOrBuilder()
         The category hierarchy of this SKU, purely for organizational purpose.
         
        .google.cloud.billing.v1.Category category = 4;
        Specified by:
        getCategoryOrBuilder in interface SkuOrBuilder
      • getServiceRegionsList

        public com.google.protobuf.ProtocolStringList getServiceRegionsList()
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Specified by:
        getServiceRegionsList in interface SkuOrBuilder
        Returns:
        A list containing the serviceRegions.
      • getServiceRegionsCount

        public int getServiceRegionsCount()
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Specified by:
        getServiceRegionsCount in interface SkuOrBuilder
        Returns:
        The count of serviceRegions.
      • getServiceRegions

        public String getServiceRegions​(int index)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Specified by:
        getServiceRegions in interface SkuOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The serviceRegions at the given index.
      • getServiceRegionsBytes

        public com.google.protobuf.ByteString getServiceRegionsBytes​(int index)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Specified by:
        getServiceRegionsBytes in interface SkuOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the serviceRegions at the given index.
      • setServiceRegions

        public Sku.Builder setServiceRegions​(int index,
                                             String value)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Parameters:
        index - The index to set the value at.
        value - The serviceRegions to set.
        Returns:
        This builder for chaining.
      • addServiceRegions

        public Sku.Builder addServiceRegions​(String value)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Parameters:
        value - The serviceRegions to add.
        Returns:
        This builder for chaining.
      • addAllServiceRegions

        public Sku.Builder addAllServiceRegions​(Iterable<String> values)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Parameters:
        values - The serviceRegions to add.
        Returns:
        This builder for chaining.
      • clearServiceRegions

        public Sku.Builder clearServiceRegions()
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Returns:
        This builder for chaining.
      • addServiceRegionsBytes

        public Sku.Builder addServiceRegionsBytes​(com.google.protobuf.ByteString value)
         List of service regions this SKU is offered at.
         Example: "asia-east1"
         Service regions can be found at https://cloud.google.com/about/locations/
         
        repeated string service_regions = 5;
        Parameters:
        value - The bytes of the serviceRegions to add.
        Returns:
        This builder for chaining.
      • getPricingInfoList

        public List<PricingInfo> getPricingInfoList()
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
        Specified by:
        getPricingInfoList in interface SkuOrBuilder
      • getPricingInfoCount

        public int getPricingInfoCount()
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
        Specified by:
        getPricingInfoCount in interface SkuOrBuilder
      • getPricingInfo

        public PricingInfo getPricingInfo​(int index)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
        Specified by:
        getPricingInfo in interface SkuOrBuilder
      • setPricingInfo

        public Sku.Builder setPricingInfo​(int index,
                                          PricingInfo value)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • setPricingInfo

        public Sku.Builder setPricingInfo​(int index,
                                          PricingInfo.Builder builderForValue)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addPricingInfo

        public Sku.Builder addPricingInfo​(PricingInfo value)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addPricingInfo

        public Sku.Builder addPricingInfo​(int index,
                                          PricingInfo value)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addPricingInfo

        public Sku.Builder addPricingInfo​(PricingInfo.Builder builderForValue)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addPricingInfo

        public Sku.Builder addPricingInfo​(int index,
                                          PricingInfo.Builder builderForValue)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addAllPricingInfo

        public Sku.Builder addAllPricingInfo​(Iterable<? extends PricingInfo> values)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • clearPricingInfo

        public Sku.Builder clearPricingInfo()
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • removePricingInfo

        public Sku.Builder removePricingInfo​(int index)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • getPricingInfoBuilder

        public PricingInfo.Builder getPricingInfoBuilder​(int index)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • getPricingInfoOrBuilder

        public PricingInfoOrBuilder getPricingInfoOrBuilder​(int index)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
        Specified by:
        getPricingInfoOrBuilder in interface SkuOrBuilder
      • addPricingInfoBuilder

        public PricingInfo.Builder addPricingInfoBuilder()
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • addPricingInfoBuilder

        public PricingInfo.Builder addPricingInfoBuilder​(int index)
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • getPricingInfoBuilderList

        public List<PricingInfo.Builder> getPricingInfoBuilderList()
         A timeline of pricing info for this SKU in chronological order.
         
        repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      • getServiceProviderName

        public String getServiceProviderName()
         Identifies the service provider.
         This is 'Google' for first party services in Google Cloud Platform.
         
        string service_provider_name = 7;
        Specified by:
        getServiceProviderName in interface SkuOrBuilder
        Returns:
        The serviceProviderName.
      • getServiceProviderNameBytes

        public com.google.protobuf.ByteString getServiceProviderNameBytes()
         Identifies the service provider.
         This is 'Google' for first party services in Google Cloud Platform.
         
        string service_provider_name = 7;
        Specified by:
        getServiceProviderNameBytes in interface SkuOrBuilder
        Returns:
        The bytes for serviceProviderName.
      • setServiceProviderName

        public Sku.Builder setServiceProviderName​(String value)
         Identifies the service provider.
         This is 'Google' for first party services in Google Cloud Platform.
         
        string service_provider_name = 7;
        Parameters:
        value - The serviceProviderName to set.
        Returns:
        This builder for chaining.
      • clearServiceProviderName

        public Sku.Builder clearServiceProviderName()
         Identifies the service provider.
         This is 'Google' for first party services in Google Cloud Platform.
         
        string service_provider_name = 7;
        Returns:
        This builder for chaining.
      • setServiceProviderNameBytes

        public Sku.Builder setServiceProviderNameBytes​(com.google.protobuf.ByteString value)
         Identifies the service provider.
         This is 'Google' for first party services in Google Cloud Platform.
         
        string service_provider_name = 7;
        Parameters:
        value - The bytes for serviceProviderName to set.
        Returns:
        This builder for chaining.
      • hasGeoTaxonomy

        public boolean hasGeoTaxonomy()
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
        Specified by:
        hasGeoTaxonomy in interface SkuOrBuilder
        Returns:
        Whether the geoTaxonomy field is set.
      • getGeoTaxonomy

        public GeoTaxonomy getGeoTaxonomy()
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
        Specified by:
        getGeoTaxonomy in interface SkuOrBuilder
        Returns:
        The geoTaxonomy.
      • setGeoTaxonomy

        public Sku.Builder setGeoTaxonomy​(GeoTaxonomy value)
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      • setGeoTaxonomy

        public Sku.Builder setGeoTaxonomy​(GeoTaxonomy.Builder builderForValue)
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      • mergeGeoTaxonomy

        public Sku.Builder mergeGeoTaxonomy​(GeoTaxonomy value)
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      • clearGeoTaxonomy

        public Sku.Builder clearGeoTaxonomy()
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      • getGeoTaxonomyBuilder

        public GeoTaxonomy.Builder getGeoTaxonomyBuilder()
         The geographic taxonomy for this sku.
         
        .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      • setUnknownFields

        public final Sku.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<Sku.Builder>
      • mergeUnknownFields

        public final Sku.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<Sku.Builder>