Class EntitlementChange (3.41.0)

public final class EntitlementChange extends GeneratedMessageV3 implements EntitlementChangeOrBuilder

Change event entry for Entitlement order history

Protobuf type google.cloud.channel.v1.EntitlementChange

Static Fields

ACTIVATION_REASON_FIELD_NUMBER

public static final int ACTIVATION_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

CANCELLATION_REASON_FIELD_NUMBER

public static final int CANCELLATION_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

CHANGE_TYPE_FIELD_NUMBER

public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITLEMENT_FIELD_NUMBER

public static final int ENTITLEMENT_FIELD_NUMBER
Field Value
TypeDescription
int

OFFER_FIELD_NUMBER

public static final int OFFER_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATOR_FIELD_NUMBER

public static final int OPERATOR_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATOR_TYPE_FIELD_NUMBER

public static final int OPERATOR_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

OTHER_CHANGE_REASON_FIELD_NUMBER

public static final int OTHER_CHANGE_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

PROVISIONED_SERVICE_FIELD_NUMBER

public static final int PROVISIONED_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

SUSPENSION_REASON_FIELD_NUMBER

public static final int SUSPENSION_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EntitlementChange getDefaultInstance()
Returns
TypeDescription
EntitlementChange

getDescriptor()

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

newBuilder()

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

newBuilder(EntitlementChange prototype)

public static EntitlementChange.Builder newBuilder(EntitlementChange prototype)
Parameter
NameDescription
prototypeEntitlementChange
Returns
TypeDescription
EntitlementChange.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActivationReason()

public EntitlementChange.ActivationReason getActivationReason()

The Entitlement's activation reason

.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;

Returns
TypeDescription
EntitlementChange.ActivationReason

The activationReason.

getActivationReasonValue()

public int getActivationReasonValue()

The Entitlement's activation reason

.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for activationReason.

getCancellationReason()

public EntitlementChange.CancellationReason getCancellationReason()

Cancellation reason for the Entitlement.

.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;

Returns
TypeDescription
EntitlementChange.CancellationReason

The cancellationReason.

getCancellationReasonValue()

public int getCancellationReasonValue()

Cancellation reason for the Entitlement.

.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for cancellationReason.

getChangeReasonCase()

public EntitlementChange.ChangeReasonCase getChangeReasonCase()
Returns
TypeDescription
EntitlementChange.ChangeReasonCase

getChangeType()

public EntitlementChange.ChangeType getChangeType()

The change action type.

.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;

Returns
TypeDescription
EntitlementChange.ChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

The change action type.

.google.cloud.channel.v1.EntitlementChange.ChangeType change_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for changeType.

getCreateTime()

public Timestamp getCreateTime()

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public EntitlementChange getDefaultInstanceForType()
Returns
TypeDescription
EntitlementChange

getEntitlement()

public String getEntitlement()

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

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The entitlement.

getEntitlementBytes()

public ByteString getEntitlementBytes()

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

string entitlement = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for entitlement.

getOffer()

public String getOffer()

Required. Resource name of the Offer at the time of change. Takes the form: accounts/{account_id}/offers/{offer_id}.

string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The offer.

getOfferBytes()

public ByteString getOfferBytes()

Required. Resource name of the Offer at the time of change. Takes the form: accounts/{account_id}/offers/{offer_id}.

string offer = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for offer.

getOperator()

public String getOperator()

Human-readable identifier that shows what operator made a change. When the operator_type is RESELLER, this is the user's email address. For all other operator types, this is empty.

string operator = 12;

Returns
TypeDescription
String

The operator.

getOperatorBytes()

public ByteString getOperatorBytes()

Human-readable identifier that shows what operator made a change. When the operator_type is RESELLER, this is the user's email address. For all other operator types, this is empty.

string operator = 12;

Returns
TypeDescription
ByteString

The bytes for operator.

getOperatorType()

public EntitlementChange.OperatorType getOperatorType()

Operator type responsible for the change.

.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;

Returns
TypeDescription
EntitlementChange.OperatorType

The operatorType.

getOperatorTypeValue()

public int getOperatorTypeValue()

Operator type responsible for the change.

.google.cloud.channel.v1.EntitlementChange.OperatorType operator_type = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for operatorType.

getOtherChangeReason()

public String getOtherChangeReason()

e.g. purchase_number change reason, entered by CRS.

string other_change_reason = 100;

Returns
TypeDescription
String

The otherChangeReason.

getOtherChangeReasonBytes()

public ByteString getOtherChangeReasonBytes()

e.g. purchase_number change reason, entered by CRS.

string other_change_reason = 100;

Returns
TypeDescription
ByteString

The bytes for otherChangeReason.

getParameters(int index)

public Parameter getParameters(int index)

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.

repeated .google.cloud.channel.v1.Parameter parameters = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Parameter

getParametersCount()

public int getParametersCount()

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.

repeated .google.cloud.channel.v1.Parameter parameters = 8;

Returns
TypeDescription
int

getParametersList()

public List<Parameter> getParametersList()

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.

repeated .google.cloud.channel.v1.Parameter parameters = 8;

Returns
TypeDescription
List<Parameter>

getParametersOrBuilder(int index)

public ParameterOrBuilder getParametersOrBuilder(int index)

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.

repeated .google.cloud.channel.v1.Parameter parameters = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterOrBuilder

getParametersOrBuilderList()

public List<? extends ParameterOrBuilder> getParametersOrBuilderList()

Extended parameters, such as: purchase_order_number, gcp_details; internal_correlation_id, long_running_operation_id, order_id; etc.

repeated .google.cloud.channel.v1.Parameter parameters = 8;

Returns
TypeDescription
List<? extends com.google.cloud.channel.v1.ParameterOrBuilder>

getParserForType()

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

getProvisionedService()

public ProvisionedService getProvisionedService()

Service provisioned for an Entitlement.

.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;

Returns
TypeDescription
ProvisionedService

The provisionedService.

getProvisionedServiceOrBuilder()

public ProvisionedServiceOrBuilder getProvisionedServiceOrBuilder()

Service provisioned for an Entitlement.

.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;

Returns
TypeDescription
ProvisionedServiceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSuspensionReason()

public Entitlement.SuspensionReason getSuspensionReason()

Suspension reason for the Entitlement.

.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;

Returns
TypeDescription
Entitlement.SuspensionReason

The suspensionReason.

getSuspensionReasonValue()

public int getSuspensionReasonValue()

Suspension reason for the Entitlement.

.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for suspensionReason.

hasActivationReason()

public boolean hasActivationReason()

The Entitlement's activation reason

.google.cloud.channel.v1.EntitlementChange.ActivationReason activation_reason = 11;

Returns
TypeDescription
boolean

Whether the activationReason field is set.

hasCancellationReason()

public boolean hasCancellationReason()

Cancellation reason for the Entitlement.

.google.cloud.channel.v1.EntitlementChange.CancellationReason cancellation_reason = 10;

Returns
TypeDescription
boolean

Whether the cancellationReason field is set.

hasCreateTime()

public boolean hasCreateTime()

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasOtherChangeReason()

public boolean hasOtherChangeReason()

e.g. purchase_number change reason, entered by CRS.

string other_change_reason = 100;

Returns
TypeDescription
boolean

Whether the otherChangeReason field is set.

hasProvisionedService()

public boolean hasProvisionedService()

Service provisioned for an Entitlement.

.google.cloud.channel.v1.ProvisionedService provisioned_service = 3;

Returns
TypeDescription
boolean

Whether the provisionedService field is set.

hasSuspensionReason()

public boolean hasSuspensionReason()

Suspension reason for the Entitlement.

.google.cloud.channel.v1.Entitlement.SuspensionReason suspension_reason = 9;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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