public final class Sku extends GeneratedMessageV3 implements SkuOrBuilder
Represents a product's purchasable Stock Keeping Unit (SKU).
SKUs represent the different variations of the product. For example, Google
Workspace Business Standard and Google Workspace Business Plus are Google
Workspace product SKUs.
Protobuf type google.cloud.channel.v1.Sku
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
MARKETING_INFO_FIELD_NUMBER
public static final int MARKETING_INFO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PRODUCT_FIELD_NUMBER
public static final int PRODUCT_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
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
Returns |
---|
Type | Description |
Sku | |
getMarketingInfo()
public MarketingInfo getMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
getMarketingInfoOrBuilder()
public MarketingInfoOrBuilder getMarketingInfoOrBuilder()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
getName()
Resource Name of the SKU.
Format: products/{product_id}/skus/{sku_id}
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource Name of the SKU.
Format: products/{product_id}/skus/{sku_id}
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Sku> getParserForType()
Overrides
getProduct()
public Product getProduct()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns |
---|
Type | Description |
Product | The product.
|
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasMarketingInfo()
public boolean hasMarketingInfo()
Marketing information for the SKU.
.google.cloud.channel.v1.MarketingInfo marketing_info = 2;
Returns |
---|
Type | Description |
boolean | Whether the marketingInfo field is set.
|
hasProduct()
public boolean hasProduct()
Product the SKU is associated with.
.google.cloud.channel.v1.Product product = 3;
Returns |
---|
Type | Description |
boolean | Whether the product 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