Class TransferEligibility (3.21.0)

public final class TransferEligibility extends GeneratedMessageV3 implements TransferEligibilityOrBuilder

Specifies transfer eligibility of a SKU.

Protobuf type google.cloud.channel.v1.TransferEligibility

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

INELIGIBILITY_REASON_FIELD_NUMBER

public static final int INELIGIBILITY_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

IS_ELIGIBLE_FIELD_NUMBER

public static final int IS_ELIGIBLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TransferEligibility getDefaultInstance()
Returns
TypeDescription
TransferEligibility

getDescriptor()

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

newBuilder()

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

newBuilder(TransferEligibility prototype)

public static TransferEligibility.Builder newBuilder(TransferEligibility prototype)
Parameter
NameDescription
prototypeTransferEligibility
Returns
TypeDescription
TransferEligibility.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TransferEligibility getDefaultInstanceForType()
Returns
TypeDescription
TransferEligibility

getDescription()

public String getDescription()

Localized description if reseller is not eligible to transfer the SKU.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Localized description if reseller is not eligible to transfer the SKU.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getIneligibilityReason()

public TransferEligibility.Reason getIneligibilityReason()

Specified the reason for ineligibility.

.google.cloud.channel.v1.TransferEligibility.Reason ineligibility_reason = 3;

Returns
TypeDescription
TransferEligibility.Reason

The ineligibilityReason.

getIneligibilityReasonValue()

public int getIneligibilityReasonValue()

Specified the reason for ineligibility.

.google.cloud.channel.v1.TransferEligibility.Reason ineligibility_reason = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for ineligibilityReason.

getIsEligible()

public boolean getIsEligible()

Whether reseller is eligible to transfer the SKU.

bool is_eligible = 1;

Returns
TypeDescription
boolean

The isEligible.

getParserForType()

public Parser<TransferEligibility> getParserForType()
Returns
TypeDescription
Parser<TransferEligibility>
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 TransferEligibility.Builder newBuilderForType()
Returns
TypeDescription
TransferEligibility.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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