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 |
---|
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()
newBuilder()
public static Sku.Builder newBuilder()
newBuilder(Sku prototype)
public static Sku.Builder newBuilder(Sku prototype)
Parameter |
---|
Name | Description |
prototype | Sku
|
public static Sku parseDelimitedFrom(InputStream input)
Returns |
---|
Type | Description |
Sku | |
public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
parseFrom(byte[] data)
public static Sku parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
Returns |
---|
Type | Description |
Sku | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
parseFrom(ByteString data)
public static Sku parseFrom(ByteString data)
Returns |
---|
Type | Description |
Sku | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
public static Sku parseFrom(CodedInputStream input)
Returns |
---|
Type | Description |
Sku | |
public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
public static Sku parseFrom(InputStream input)
Returns |
---|
Type | Description |
Sku | |
public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
parseFrom(ByteBuffer data)
public static Sku parseFrom(ByteBuffer data)
Returns |
---|
Type | Description |
Sku | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Sku | |
parser()
public static Parser<Sku> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
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;
getGeoTaxonomyOrBuilder()
public GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()
The geographic taxonomy for this sku.
.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;
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()
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
|
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;
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
|
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)
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()
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Sku.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Sku.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides