Package com.google.cloud.billing.v1
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 CloudProtobuf type
google.cloud.billing.v1.Sku-
Method Summary
Modifier and TypeMethodDescriptionaddAllPricingInfo(Iterable<? extends PricingInfo> values) A timeline of pricing info for this SKU in chronological order.addAllServiceRegions(Iterable<String> values) List of service regions this SKU is offered at.addPricingInfo(int index, PricingInfo value) A timeline of pricing info for this SKU in chronological order.addPricingInfo(int index, PricingInfo.Builder builderForValue) A timeline of pricing info for this SKU in chronological order.addPricingInfo(PricingInfo value) A timeline of pricing info for this SKU in chronological order.addPricingInfo(PricingInfo.Builder builderForValue) A timeline of pricing info for this SKU in chronological order.A timeline of pricing info for this SKU in chronological order.addPricingInfoBuilder(int index) A timeline of pricing info for this SKU in chronological order.addServiceRegions(String value) List of service regions this SKU is offered at.addServiceRegionsBytes(com.google.protobuf.ByteString value) List of service regions this SKU is offered at.build()clear()The category hierarchy of this SKU, purely for organizational purpose.A human readable description of the SKU, has a maximum length of 256 characters.The geographic taxonomy for this sku.The resource name for the SKU.A timeline of pricing info for this SKU in chronological order.Identifies the service provider.List of service regions this SKU is offered at.The identifier for the SKU.The category hierarchy of this SKU, purely for organizational purpose.The category hierarchy of this SKU, purely for organizational purpose.The category hierarchy of this SKU, purely for organizational purpose.A human readable description of the SKU, has a maximum length of 256 characters.com.google.protobuf.ByteStringA human readable description of the SKU, has a maximum length of 256 characters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe geographic taxonomy for this sku.The geographic taxonomy for this sku.The geographic taxonomy for this sku.getName()The resource name for the SKU.com.google.protobuf.ByteStringThe resource name for the SKU.getPricingInfo(int index) A timeline of pricing info for this SKU in chronological order.getPricingInfoBuilder(int index) A timeline of pricing info for this SKU in chronological order.A timeline of pricing info for this SKU in chronological order.intA timeline of pricing info for this SKU in chronological order.A timeline of pricing info for this SKU in chronological order.getPricingInfoOrBuilder(int index) A timeline of pricing info for this SKU in chronological order.List<? extends PricingInfoOrBuilder>A timeline of pricing info for this SKU in chronological order.Identifies the service provider.com.google.protobuf.ByteStringIdentifies the service provider.getServiceRegions(int index) List of service regions this SKU is offered at.com.google.protobuf.ByteStringgetServiceRegionsBytes(int index) List of service regions this SKU is offered at.intList of service regions this SKU is offered at.com.google.protobuf.ProtocolStringListList of service regions this SKU is offered at.getSkuId()The identifier for the SKU.com.google.protobuf.ByteStringThe identifier for the SKU.booleanThe category hierarchy of this SKU, purely for organizational purpose.booleanThe geographic taxonomy for this sku.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCategory(Category value) The category hierarchy of this SKU, purely for organizational purpose.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGeoTaxonomy(GeoTaxonomy value) The geographic taxonomy for this sku.removePricingInfo(int index) A timeline of pricing info for this SKU in chronological order.setCategory(Category value) The category hierarchy of this SKU, purely for organizational purpose.setCategory(Category.Builder builderForValue) The category hierarchy of this SKU, purely for organizational purpose.setDescription(String value) A human readable description of the SKU, has a maximum length of 256 characters.setDescriptionBytes(com.google.protobuf.ByteString value) A human readable description of the SKU, has a maximum length of 256 characters.setGeoTaxonomy(GeoTaxonomy value) The geographic taxonomy for this sku.setGeoTaxonomy(GeoTaxonomy.Builder builderForValue) The geographic taxonomy for this sku.The resource name for the SKU.setNameBytes(com.google.protobuf.ByteString value) The resource name for the SKU.setPricingInfo(int index, PricingInfo value) A timeline of pricing info for this SKU in chronological order.setPricingInfo(int index, PricingInfo.Builder builderForValue) A timeline of pricing info for this SKU in chronological order.setServiceProviderName(String value) Identifies the service provider.setServiceProviderNameBytes(com.google.protobuf.ByteString value) Identifies the service provider.setServiceRegions(int index, String value) List of service regions this SKU is offered at.The identifier for the SKU.setSkuIdBytes(com.google.protobuf.ByteString value) The identifier for the SKU.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<Sku.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<Sku.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<Sku.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<Sku.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sku.Builder>- Throws:
IOException
-
getName
The resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
string name = 1;- Specified by:
getNamein interfaceSkuOrBuilder- 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:
getNameBytesin interfaceSkuOrBuilder- Returns:
- The bytes for name.
-
setName
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
The resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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
The identifier for the SKU. Example: "D041-B8A1-6E0B"
string sku_id = 2;- Specified by:
getSkuIdin interfaceSkuOrBuilder- 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:
getSkuIdBytesin interfaceSkuOrBuilder- Returns:
- The bytes for skuId.
-
setSkuId
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
The identifier for the SKU. Example: "D041-B8A1-6E0B"
string sku_id = 2;- Returns:
- This builder for chaining.
-
setSkuIdBytes
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
A human readable description of the SKU, has a maximum length of 256 characters.
string description = 3;- Specified by:
getDescriptionin interfaceSkuOrBuilder- 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:
getDescriptionBytesin interfaceSkuOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
A human readable description of the SKU, has a maximum length of 256 characters.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasCategoryin interfaceSkuOrBuilder- Returns:
- Whether the category field is set.
-
getCategory
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4;- Specified by:
getCategoryin interfaceSkuOrBuilder- Returns:
- The category.
-
setCategory
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4; -
setCategory
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4; -
mergeCategory
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4; -
clearCategory
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4; -
getCategoryBuilder
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4; -
getCategoryOrBuilder
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4;- Specified by:
getCategoryOrBuilderin interfaceSkuOrBuilder
-
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:
getServiceRegionsListin interfaceSkuOrBuilder- 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:
getServiceRegionsCountin interfaceSkuOrBuilder- Returns:
- The count of serviceRegions.
-
getServiceRegions
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:
getServiceRegionsin interfaceSkuOrBuilder- 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:
getServiceRegionsBytesin interfaceSkuOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serviceRegions at the given index.
-
setServiceRegions
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
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
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
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
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
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;- Specified by:
getPricingInfoListin interfaceSkuOrBuilder
-
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:
getPricingInfoCountin interfaceSkuOrBuilder
-
getPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;- Specified by:
getPricingInfoin interfaceSkuOrBuilder
-
setPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
setPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addAllPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
clearPricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
removePricingInfo
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
getPricingInfoBuilder
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
getPricingInfoOrBuilder
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;- Specified by:
getPricingInfoOrBuilderin interfaceSkuOrBuilder
-
getPricingInfoOrBuilderList
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;- Specified by:
getPricingInfoOrBuilderListin interfaceSkuOrBuilder
-
addPricingInfoBuilder
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
addPricingInfoBuilder
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
getPricingInfoBuilderList
A timeline of pricing info for this SKU in chronological order.
repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; -
getServiceProviderName
Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
string service_provider_name = 7;- Specified by:
getServiceProviderNamein interfaceSkuOrBuilder- 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:
getServiceProviderNameBytesin interfaceSkuOrBuilder- Returns:
- The bytes for serviceProviderName.
-
setServiceProviderName
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
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
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:
hasGeoTaxonomyin interfaceSkuOrBuilder- Returns:
- Whether the geoTaxonomy field is set.
-
getGeoTaxonomy
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;- Specified by:
getGeoTaxonomyin interfaceSkuOrBuilder- Returns:
- The geoTaxonomy.
-
setGeoTaxonomy
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; -
setGeoTaxonomy
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; -
mergeGeoTaxonomy
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; -
clearGeoTaxonomy
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; -
getGeoTaxonomyBuilder
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; -
getGeoTaxonomyOrBuilder
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;- Specified by:
getGeoTaxonomyOrBuilderin interfaceSkuOrBuilder
-