Class Sku (2.43.0)

public final class Sku extends GeneratedMessageV3 implements SkuOrBuilder

Encapsulates a single SKU in Google Cloud Platform

Protobuf type google.cloud.billing.v1.Sku

Implements

SkuOrBuilder

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

GEO_TAXONOMY_FIELD_NUMBER

public static final int GEO_TAXONOMY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRICING_INFO_FIELD_NUMBER

public static final int PRICING_INFO_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_PROVIDER_NAME_FIELD_NUMBER

public static final int SERVICE_PROVIDER_NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_REGIONS_FIELD_NUMBER

public static final int SERVICE_REGIONS_FIELD_NUMBER
Field Value
Type Description
int

SKU_ID_FIELD_NUMBER

public static final int SKU_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sku getDefaultInstance()
Returns
Type Description
Sku

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Sku.Builder newBuilder()
Returns
Type Description
Sku.Builder

newBuilder(Sku prototype)

public static Sku.Builder newBuilder(Sku prototype)
Parameter
Name Description
prototype Sku
Returns
Type Description
Sku.Builder

parseDelimitedFrom(InputStream input)

public static Sku parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Sku parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Sku parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Sku parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Sku parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Sku parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sku
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Sku> parser()
Returns
Type Description
Parser<Sku>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCategory()

public Category getCategory()

The category hierarchy of this SKU, purely for organizational purpose.

.google.cloud.billing.v1.Category category = 4;

Returns
Type Description
Category

The category.

getCategoryOrBuilder()

public CategoryOrBuilder getCategoryOrBuilder()

The category hierarchy of this SKU, purely for organizational purpose.

.google.cloud.billing.v1.Category category = 4;

Returns
Type Description
CategoryOrBuilder

getDefaultInstanceForType()

public Sku getDefaultInstanceForType()
Returns
Type Description
Sku

getDescription()

public String getDescription()

A human readable description of the SKU, has a maximum length of 256 characters.

string description = 3;

Returns
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;

Returns
Type Description
ByteString

The bytes for description.

getGeoTaxonomy()

public GeoTaxonomy getGeoTaxonomy()

The geographic taxonomy for this sku.

.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;

Returns
Type Description
GeoTaxonomy

The geoTaxonomy.

getGeoTaxonomyOrBuilder()

public GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()

The geographic taxonomy for this sku.

.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;

Returns
Type Description
GeoTaxonomyOrBuilder

getName()

public String getName()

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"

string name = 1;

Returns
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;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Sku> getParserForType()
Returns
Type Description
Parser<Sku>
Overrides

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;

Parameter
Name Description
index int
Returns
Type Description
PricingInfo

getPricingInfoCount()

public int getPricingInfoCount()

A timeline of pricing info for this SKU in chronological order.

repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;

Returns
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;

Returns
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;

Parameter
Name Description
index int
Returns
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;

Returns
Type Description
List<? extends com.google.cloud.billing.v1.PricingInfoOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceProviderName()

public String getServiceProviderName()

Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.

string service_provider_name = 7;

Returns
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;

Returns
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;

Parameter
Name Description
index int

The index of the element to return.

Returns
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;

Parameter
Name Description
index int

The index of the value to return.

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
String

The skuId.

getSkuIdBytes()

public ByteString getSkuIdBytes()

The identifier for the SKU. Example: "AA95-CD31-42FE"

string sku_id = 2;

Returns
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;

Returns
Type Description
boolean

Whether the category field is set.

hasGeoTaxonomy()

public boolean hasGeoTaxonomy()

The geographic taxonomy for this sku.

.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;

Returns
Type Description
boolean

Whether the geoTaxonomy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Sku.Builder newBuilderForType()
Returns
Type Description
Sku.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Sku.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Sku.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Sku.Builder toBuilder()
Returns
Type Description
Sku.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException