Class PurchasableOffer (3.5.1)

public final class PurchasableOffer extends GeneratedMessageV3 implements PurchasableOfferOrBuilder

Offer that you can purchase for a customer. This is used in the ListPurchasableOffer API response.

Protobuf type google.cloud.channel.v1.PurchasableOffer

Static Fields

OFFER_FIELD_NUMBER

public static final int OFFER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PurchasableOffer getDefaultInstance()
Returns
TypeDescription
PurchasableOffer

getDescriptor()

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

newBuilder()

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

newBuilder(PurchasableOffer prototype)

public static PurchasableOffer.Builder newBuilder(PurchasableOffer prototype)
Parameter
NameDescription
prototypePurchasableOffer
Returns
TypeDescription
PurchasableOffer.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PurchasableOffer getDefaultInstanceForType()
Returns
TypeDescription
PurchasableOffer

getOffer()

public Offer getOffer()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
TypeDescription
Offer

The offer.

getOfferOrBuilder()

public OfferOrBuilder getOfferOrBuilder()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
TypeDescription
OfferOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasOffer()

public boolean hasOffer()

Offer.

.google.cloud.channel.v1.Offer offer = 1;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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