public final class Sku extends GeneratedMessageV3 implements SkuOrBuilder
Encapsulates a single SKU in Google Cloud Platform
Protobuf type google.cloud.billing.v1.Sku
Static Fields
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
GEO_TAXONOMY_FIELD_NUMBER
public static final int GEO_TAXONOMY_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PRICING_INFO_FIELD_NUMBER
public static final int PRICING_INFO_FIELD_NUMBER
Field Value
SERVICE_PROVIDER_NAME_FIELD_NUMBER
public static final int SERVICE_PROVIDER_NAME_FIELD_NUMBER
Field Value
SERVICE_REGIONS_FIELD_NUMBER
public static final int SERVICE_REGIONS_FIELD_NUMBER
Field Value
SKU_ID_FIELD_NUMBER
public static final int SKU_ID_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Sku getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Sku.Builder newBuilder()
Returns
newBuilder(Sku prototype)
public static Sku.Builder newBuilder(Sku prototype)
Parameter
Name | Description |
prototype | Sku
|
Returns
public static Sku parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Sku parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Sku parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Sku parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Sku parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Sku parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Sku> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCategory()
public Category getCategory()
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4;
Returns
getCategoryOrBuilder()
public CategoryOrBuilder getCategoryOrBuilder()
The category hierarchy of this SKU, purely for organizational purpose.
.google.cloud.billing.v1.Category category = 4;
Returns
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
Returns
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
getGeoTaxonomyOrBuilder()
public GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
Returns
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
getParserForType()
public Parser<Sku> getParserForType()
Returns
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
Returns
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
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
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
Returns
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
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)
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)
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()
Returns
Type | Description |
int | The count of serviceRegions.
|
getServiceRegionsList()
public ProtocolStringList getServiceRegionsList()
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Sku.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Sku.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions