public final class Sku extends GeneratedMessage implements SkuOrBuilder
Encapsulates a single SKU in Google Cloud
Protobuf type google.cloud.billing.v1.Sku
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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/6F81-5844-456A/skus/D041-B8A1-6E0B"
string name = 1;
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name for the SKU.
Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
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: "D041-B8A1-6E0B"
string sku_id = 2;
| Returns |
| Type |
Description |
String |
The skuId.
|
getSkuIdBytes()
public ByteString getSkuIdBytes()
The identifier for the SKU.
Example: "D041-B8A1-6E0B"
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides