Class ListPurchasableOffersRequest.ChangeOfferPurchase (3.8.0)

public static final class ListPurchasableOffersRequest.ChangeOfferPurchase extends GeneratedMessageV3 implements ListPurchasableOffersRequest.ChangeOfferPurchaseOrBuilder

List Offers for ChangeOffer purchase.

Protobuf type google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ListPurchasableOffersRequest.ChangeOfferPurchase

Static Fields

ENTITLEMENT_FIELD_NUMBER

public static final int ENTITLEMENT_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_SKU_FIELD_NUMBER

public static final int NEW_SKU_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstance()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase

getDescriptor()

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

newBuilder()

public static ListPurchasableOffersRequest.ChangeOfferPurchase.Builder newBuilder()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

newBuilder(ListPurchasableOffersRequest.ChangeOfferPurchase prototype)

public static ListPurchasableOffersRequest.ChangeOfferPurchase.Builder newBuilder(ListPurchasableOffersRequest.ChangeOfferPurchase prototype)
Parameter
NameDescription
prototypeListPurchasableOffersRequest.ChangeOfferPurchase
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

parseDelimitedFrom(InputStream input)

public static ListPurchasableOffersRequest.ChangeOfferPurchase parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ListPurchasableOffersRequest.ChangeOfferPurchase parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ListPurchasableOffersRequest.ChangeOfferPurchase parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ListPurchasableOffersRequest.ChangeOfferPurchase parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ListPurchasableOffersRequest.ChangeOfferPurchase parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ListPurchasableOffersRequest.ChangeOfferPurchase> parser()
Returns
TypeDescription
Parser<ChangeOfferPurchase>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ListPurchasableOffersRequest.ChangeOfferPurchase getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase

getEntitlement()

public String getEntitlement()

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for entitlement.

getNewSku()

public String getNewSku()

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The newSku.

getNewSkuBytes()

public ByteString getNewSkuBytes()

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for newSku.

getParserForType()

public Parser<ListPurchasableOffersRequest.ChangeOfferPurchase> getParserForType()
Returns
TypeDescription
Parser<ChangeOfferPurchase>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 ListPurchasableOffersRequest.ChangeOfferPurchase.Builder newBuilderForType()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ListPurchasableOffersRequest.ChangeOfferPurchase.Builder toBuilder()
Returns
TypeDescription
ListPurchasableOffersRequest.ChangeOfferPurchase.Builder

writeTo(CodedOutputStream output)

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