Class Sku.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sku.Builder>
com.google.cloud.billing.v1.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.GeneratedMessage.Builder<Sku.Builder> implements SkuOrBuilder
 Encapsulates a single SKU in Google Cloud
 
Protobuf type google.cloud.billing.v1.Sku
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Sku.Builder mergeFrom(Sku other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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/6F81-5844-456A/skus/D041-B8A1-6E0B"
       
      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/6F81-5844-456A/skus/D041-B8A1-6E0B"
       
      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/6F81-5844-456A/skus/D041-B8A1-6E0B"
       
      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/6F81-5844-456A/skus/D041-B8A1-6E0B"
       
      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/6F81-5844-456A/skus/D041-B8A1-6E0B"
       
      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: "D041-B8A1-6E0B"
       
      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: "D041-B8A1-6E0B"
       
      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: "D041-B8A1-6E0B"
       
      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: "D041-B8A1-6E0B"
       
      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: "D041-B8A1-6E0B"
       
      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
    • getPricingInfoOrBuilderList

      public List<? extends PricingInfoOrBuilder> getPricingInfoOrBuilderList()
       A timeline of pricing info for this SKU in chronological order.
       
      repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
      Specified by:
      getPricingInfoOrBuilderList 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;
    • getGeoTaxonomyOrBuilder

      public GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()
       The geographic taxonomy for this sku.
       
      .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
      Specified by:
      getGeoTaxonomyOrBuilder in interface SkuOrBuilder