Class Sku (2.31.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
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

GEO_TAXONOMY_FIELD_NUMBER

public static final int GEO_TAXONOMY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PRICING_INFO_FIELD_NUMBER

public static final int PRICING_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_PROVIDER_NAME_FIELD_NUMBER

public static final int SERVICE_PROVIDER_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_REGIONS_FIELD_NUMBER

public static final int SERVICE_REGIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SKU_ID_FIELD_NUMBER

public static final int SKU_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Sku getDefaultInstance()
Returns
TypeDescription
Sku

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Sku.Builder newBuilder()
Returns
TypeDescription
Sku.Builder

newBuilder(Sku prototype)

public static Sku.Builder newBuilder(Sku prototype)
Parameter
NameDescription
prototypeSku
Returns
TypeDescription
Sku.Builder

parseDelimitedFrom(InputStream input)

public static Sku parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Sku parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Sku parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Sku parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Sku parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Sku parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Sku
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Sku> parser()
Returns
TypeDescription
Parser<Sku>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCategory()

public Category getCategory()

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

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

Returns
TypeDescription
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
TypeDescription
CategoryOrBuilder

getDefaultInstanceForType()

public Sku getDefaultInstanceForType()
Returns
TypeDescription
Sku

getDescription()

public String getDescription()

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

string description = 3;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getGeoTaxonomy()

public GeoTaxonomy getGeoTaxonomy()

The geographic taxonomy for this sku.

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

Returns
TypeDescription
GeoTaxonomy

The geoTaxonomy.

getGeoTaxonomyOrBuilder()

public GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()

The geographic taxonomy for this sku.

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

Returns
TypeDescription
GeoTaxonomyOrBuilder

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Sku> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.billing.v1.PricingInfoOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the serviceRegions.

getSkuId()

public String getSkuId()

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

string sku_id = 2;

Returns
TypeDescription
String

The skuId.

getSkuIdBytes()

public ByteString getSkuIdBytes()

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

string sku_id = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the geoTaxonomy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Sku.Builder newBuilderForType()
Returns
TypeDescription
Sku.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Sku.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Sku.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Sku.Builder toBuilder()
Returns
TypeDescription
Sku.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException