- 2.78.0 (latest)
 - 2.76.0
 - 2.75.0
 - 2.74.0
 - 2.73.0
 - 2.72.0
 - 2.70.0
 - 2.68.0
 - 2.67.0
 - 2.64.0
 - 2.63.0
 - 2.62.0
 - 2.60.0
 - 2.59.0
 - 2.58.0
 - 2.57.0
 - 2.56.0
 - 2.55.0
 - 2.54.0
 - 2.53.0
 - 2.52.0
 - 2.51.0
 - 2.49.0
 - 2.48.0
 - 2.47.0
 - 2.46.0
 - 2.45.0
 - 2.44.0
 - 2.43.0
 - 2.42.0
 - 2.41.0
 - 2.40.0
 - 2.39.0
 - 2.37.0
 - 2.36.0
 - 2.35.0
 - 2.34.0
 - 2.33.0
 - 2.32.0
 - 2.31.0
 - 2.30.0
 - 2.29.0
 - 2.28.0
 - 2.27.0
 - 2.24.0
 - 2.23.0
 - 2.22.0
 - 2.21.0
 - 2.20.0
 - 2.19.0
 - 2.18.0
 - 2.17.0
 - 2.16.0
 - 2.15.0
 - 2.14.0
 - 2.13.0
 - 2.12.0
 - 2.11.0
 - 2.10.0
 - 2.9.0
 - 2.8.0
 - 2.7.0
 - 2.6.0
 - 2.5.0
 - 2.4.0
 - 2.3.5
 - 2.2.1
 - 2.1.12
 
public static final class Sku.Builder extends GeneratedMessageV3.Builder<Sku.Builder> implements SkuOrBuilderEncapsulates a single SKU in Google Cloud Platform
 Protobuf type google.cloud.billing.v1.Sku
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Sku.BuilderImplements
SkuOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description | 
| Descriptor | 
Methods
addAllPricingInfo(Iterable<? extends PricingInfo> values)
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;
| Name | Description | 
| values | Iterable<? extends com.google.cloud.billing.v1.PricingInfo> | 
      
| Type | Description | 
| Sku.Builder | 
addAllServiceRegions(Iterable<String> values)
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;
| Name | Description | 
| values | Iterable<String>The serviceRegions to add.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
addPricingInfo(PricingInfo value)
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;
| Name | Description | 
| value | PricingInfo | 
      
| Type | Description | 
| Sku.Builder | 
addPricingInfo(PricingInfo.Builder builderForValue)
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;
| Name | Description | 
| builderForValue | PricingInfo.Builder | 
      
| Type | Description | 
| Sku.Builder | 
addPricingInfo(int index, PricingInfo value)
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;
| Name | Description | 
| index | int | 
      
| value | PricingInfo | 
      
| Type | Description | 
| Sku.Builder | 
addPricingInfo(int index, PricingInfo.Builder builderForValue)
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;
| Name | Description | 
| index | int | 
      
| builderForValue | PricingInfo.Builder | 
      
| Type | Description | 
| Sku.Builder | 
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;
| Type | Description | 
| PricingInfo.Builder | 
addPricingInfoBuilder(int index)
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;
| Name | Description | 
| index | int | 
      
| Type | Description | 
| PricingInfo.Builder | 
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
| field | FieldDescriptor | 
      
| value | Object | 
      
| Type | Description | 
| Sku.Builder | 
addServiceRegions(String value)
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;
| Name | Description | 
| value | StringThe serviceRegions to add.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
addServiceRegionsBytes(ByteString value)
public Sku.Builder addServiceRegionsBytes(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;
| Name | Description | 
| value | ByteStringThe bytes of the serviceRegions to add.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
build()
public Sku build()| Type | Description | 
| Sku | 
buildPartial()
public Sku buildPartial()| Type | Description | 
| Sku | 
clear()
public Sku.Builder clear()| Type | Description | 
| Sku.Builder | 
clearCategory()
public Sku.Builder clearCategory()The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Type | Description | 
| Sku.Builder | 
clearDescription()
public Sku.Builder clearDescription()A human readable description of the SKU, has a maximum length of 256 characters.
 string description = 3;
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public Sku.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description | 
| field | FieldDescriptor | 
      
| Type | Description | 
| Sku.Builder | 
clearName()
public Sku.Builder clearName()The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
 string name = 1;
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public Sku.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description | 
| oneof | OneofDescriptor | 
      
| Type | Description | 
| Sku.Builder | 
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;
| Type | Description | 
| Sku.Builder | 
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;
| Type | Description | 
| Sku.Builder | 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;
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
clearSkuId()
public Sku.Builder clearSkuId()The identifier for the SKU. Example: "AA95-CD31-42FE"
 string sku_id = 2;
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
clone()
public Sku.Builder clone()| Type | Description | 
| Sku.Builder | 
getCategory()
public Category getCategory()The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Type | Description | 
| Category | The category.  | 
      
getCategoryBuilder()
public Category.Builder getCategoryBuilder()The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Type | Description | 
| Category.Builder | 
getCategoryOrBuilder()
public CategoryOrBuilder getCategoryOrBuilder()The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Type | Description | 
| CategoryOrBuilder | 
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()| Type | Description | 
| Sku | 
getDescription()
public String getDescription()A human readable description of the SKU, has a maximum length of 256 characters.
 string description = 3;
| Type | Description | 
| String | The description.  | 
      
getDescriptionBytes()
public ByteString getDescriptionBytes()A human readable description of the SKU, has a maximum length of 256 characters.
 string description = 3;
| Type | Description | 
| ByteString | The bytes for description.  | 
      
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description | 
| Descriptor | 
getName()
public String getName()The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
 string name = 1;
| Type | Description | 
| String | The name.  | 
      
getNameBytes()
public ByteString getNameBytes()The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
 string name = 1;
| Type | Description | 
| ByteString | The bytes for name.  | 
      
getPricingInfo(int index)
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;
| Name | Description | 
| index | int | 
      
| Type | Description | 
| PricingInfo | 
getPricingInfoBuilder(int index)
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;
| Name | Description | 
| index | int | 
      
| Type | Description | 
| PricingInfo.Builder | 
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;
| Type | Description | 
| List<Builder> | 
getPricingInfoCount()
public int getPricingInfoCount()A timeline of pricing info for this SKU in chronological order.
 repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;
| Type | Description | 
| int | 
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;
| Type | Description | 
| List<PricingInfo> | 
getPricingInfoOrBuilder(int index)
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;
| Name | Description | 
| index | int | 
      
| Type | Description | 
| PricingInfoOrBuilder | 
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;
| Type | Description | 
| List<? extends com.google.cloud.billing.v1.PricingInfoOrBuilder> | 
getServiceProviderName()
public String getServiceProviderName()Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
 string service_provider_name = 7;
| Type | Description | 
| String | The serviceProviderName.  | 
      
getServiceProviderNameBytes()
public ByteString getServiceProviderNameBytes()Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
 string service_provider_name = 7;
| Type | Description | 
| ByteString | The bytes for serviceProviderName.  | 
      
getServiceRegions(int index)
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;
| Name | Description | 
| index | intThe index of the element to return.  | 
      
| Type | Description | 
| String | The serviceRegions at the given index.  | 
      
getServiceRegionsBytes(int index)
public 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;
| Name | Description | 
| index | intThe index of the value to return.  | 
      
| Type | Description | 
| ByteString | The bytes of the serviceRegions at the given index.  | 
      
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;
| Type | Description | 
| int | The count of serviceRegions.  | 
      
getServiceRegionsList()
public 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;
| Type | Description | 
| ProtocolStringList | A list containing the serviceRegions.  | 
      
getSkuId()
public String getSkuId()The identifier for the SKU. Example: "AA95-CD31-42FE"
 string sku_id = 2;
| Type | Description | 
| String | The skuId.  | 
      
getSkuIdBytes()
public ByteString getSkuIdBytes()The identifier for the SKU. Example: "AA95-CD31-42FE"
 string sku_id = 2;
| Type | Description | 
| ByteString | The bytes for skuId.  | 
      
hasCategory()
public boolean hasCategory()The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Type | Description | 
| boolean | Whether the category field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description | 
| FieldAccessorTable | 
isInitialized()
public final boolean isInitialized()| Type | Description | 
| boolean | 
mergeCategory(Category value)
public Sku.Builder mergeCategory(Category value)The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Name | Description | 
| value | Category | 
      
| Type | Description | 
| Sku.Builder | 
mergeFrom(Sku other)
public Sku.Builder mergeFrom(Sku other)| Name | Description | 
| other | Sku | 
      
| Type | Description | 
| Sku.Builder | 
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Sku.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description | 
| input | CodedInputStream | 
      
| extensionRegistry | ExtensionRegistryLite | 
      
| Type | Description | 
| Sku.Builder | 
| Type | Description | 
| IOException | 
mergeFrom(Message other)
public Sku.Builder mergeFrom(Message other)| Name | Description | 
| other | Message | 
      
| Type | Description | 
| Sku.Builder | 
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
| unknownFields | UnknownFieldSet | 
      
| Type | Description | 
| Sku.Builder | 
removePricingInfo(int index)
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;
| Name | Description | 
| index | int | 
      
| Type | Description | 
| Sku.Builder | 
setCategory(Category value)
public Sku.Builder setCategory(Category value)The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Name | Description | 
| value | Category | 
      
| Type | Description | 
| Sku.Builder | 
setCategory(Category.Builder builderForValue)
public Sku.Builder setCategory(Category.Builder builderForValue)The category hierarchy of this SKU, purely for organizational purpose.
 .google.cloud.billing.v1.Category category = 4;
| Name | Description | 
| builderForValue | Category.Builder | 
      
| Type | Description | 
| Sku.Builder | 
setDescription(String value)
public Sku.Builder setDescription(String value)A human readable description of the SKU, has a maximum length of 256 characters.
 string description = 3;
| Name | Description | 
| value | StringThe description to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setDescriptionBytes(ByteString value)
public Sku.Builder setDescriptionBytes(ByteString value)A human readable description of the SKU, has a maximum length of 256 characters.
 string description = 3;
| Name | Description | 
| value | ByteStringThe bytes for description to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
| field | FieldDescriptor | 
      
| value | Object | 
      
| Type | Description | 
| Sku.Builder | 
setName(String value)
public Sku.Builder setName(String value)The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
 string name = 1;
| Name | Description | 
| value | StringThe name to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setNameBytes(ByteString value)
public Sku.Builder setNameBytes(ByteString value)The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
 string name = 1;
| Name | Description | 
| value | ByteStringThe bytes for name to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setPricingInfo(int index, PricingInfo value)
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;
| Name | Description | 
| index | int | 
      
| value | PricingInfo | 
      
| Type | Description | 
| Sku.Builder | 
setPricingInfo(int index, PricingInfo.Builder builderForValue)
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;
| Name | Description | 
| index | int | 
      
| builderForValue | PricingInfo.Builder | 
      
| Type | Description | 
| Sku.Builder | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Sku.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description | 
| field | FieldDescriptor | 
      
| index | int | 
      
| value | Object | 
      
| Type | Description | 
| Sku.Builder | 
setServiceProviderName(String value)
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;
| Name | Description | 
| value | StringThe serviceProviderName to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setServiceProviderNameBytes(ByteString value)
public Sku.Builder setServiceProviderNameBytes(ByteString value)Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
 string service_provider_name = 7;
| Name | Description | 
| value | ByteStringThe bytes for serviceProviderName to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setServiceRegions(int index, String value)
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;
| Name | Description | 
| index | intThe index to set the value at.  | 
      
| value | StringThe serviceRegions to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setSkuId(String value)
public Sku.Builder setSkuId(String value)The identifier for the SKU. Example: "AA95-CD31-42FE"
 string sku_id = 2;
| Name | Description | 
| value | StringThe skuId to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setSkuIdBytes(ByteString value)
public Sku.Builder setSkuIdBytes(ByteString value)The identifier for the SKU. Example: "AA95-CD31-42FE"
 string sku_id = 2;
| Name | Description | 
| value | ByteStringThe bytes for skuId to set.  | 
      
| Type | Description | 
| Sku.Builder | This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
| unknownFields | UnknownFieldSet | 
      
| Type | Description | 
| Sku.Builder |