Class PurchasableSku (3.7.2)

public final class PurchasableSku extends GeneratedMessageV3 implements PurchasableSkuOrBuilder

SKU that you can purchase. This is used in ListPurchasableSku API response.

Protobuf type google.cloud.channel.v1.PurchasableSku

Static Fields

SKU_FIELD_NUMBER

public static final int SKU_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PurchasableSku getDefaultInstance()
Returns
TypeDescription
PurchasableSku

getDescriptor()

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

newBuilder()

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

newBuilder(PurchasableSku prototype)

public static PurchasableSku.Builder newBuilder(PurchasableSku prototype)
Parameter
NameDescription
prototypePurchasableSku
Returns
TypeDescription
PurchasableSku.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PurchasableSku getDefaultInstanceForType()
Returns
TypeDescription
PurchasableSku

getParserForType()

public Parser<PurchasableSku> getParserForType()
Returns
TypeDescription
Parser<PurchasableSku>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSku()

public Sku getSku()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
Sku

The sku.

getSkuOrBuilder()

public SkuOrBuilder getSkuOrBuilder()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
SkuOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSku()

public boolean hasSku()

SKU

.google.cloud.channel.v1.Sku sku = 1;

Returns
TypeDescription
boolean

Whether the sku 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 PurchasableSku.Builder newBuilderForType()
Returns
TypeDescription
PurchasableSku.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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