Class ListPurchasableSkusRequest.ChangeOfferPurchase (3.43.0)

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

List SKUs for upgrading or downgrading an entitlement. Make the purchase using CloudChannelService.ChangeOffer.

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

Inheritance

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

Static Fields

CHANGE_TYPE_FIELD_NUMBER

public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITLEMENT_FIELD_NUMBER

public static final int ENTITLEMENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ListPurchasableSkusRequest.ChangeOfferPurchase prototype)

public static ListPurchasableSkusRequest.ChangeOfferPurchase.Builder newBuilder(ListPurchasableSkusRequest.ChangeOfferPurchase prototype)
Parameter
NameDescription
prototypeListPurchasableSkusRequest.ChangeOfferPurchase
Returns
TypeDescription
ListPurchasableSkusRequest.ChangeOfferPurchase.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getChangeType()

public ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType getChangeType()

Required. Change Type for the entitlement.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

Required. Change Type for the entitlement.

.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for changeType.

getDefaultInstanceForType()

public ListPurchasableSkusRequest.ChangeOfferPurchase getDefaultInstanceForType()
Returns
TypeDescription
ListPurchasableSkusRequest.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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 ListPurchasableSkusRequest.ChangeOfferPurchase.Builder newBuilderForType()
Returns
TypeDescription
ListPurchasableSkusRequest.ChangeOfferPurchase.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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