Class EntitlementChange.Builder (3.26.0)

public static final class EntitlementChange.Builder extends GeneratedMessageV3.Builder<EntitlementChange.Builder> implements EntitlementChangeOrBuilder

Change event entry for Entitlement order history

Protobuf type google.cloud.channel.v1.EntitlementChange

Static Methods

getDescriptor()

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

Methods

addAllParameters(Iterable<? extends Parameter> values)

public EntitlementChange.Builder addAllParameters(Iterable<? extends Parameter> values)

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
valuesIterable<? extends com.google.cloud.channel.v1.Parameter>
Returns
TypeDescription
EntitlementChange.Builder

addParameters(Parameter value)

public EntitlementChange.Builder addParameters(Parameter value)

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
valueParameter
Returns
TypeDescription
EntitlementChange.Builder

addParameters(Parameter.Builder builderForValue)

public EntitlementChange.Builder addParameters(Parameter.Builder builderForValue)

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
builderForValueParameter.Builder
Returns
TypeDescription
EntitlementChange.Builder

addParameters(int index, Parameter value)

public EntitlementChange.Builder addParameters(int index, Parameter value)

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;

Parameters
NameDescription
indexint
valueParameter
Returns
TypeDescription
EntitlementChange.Builder

addParameters(int index, Parameter.Builder builderForValue)

public EntitlementChange.Builder addParameters(int index, Parameter.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
EntitlementChange.Builder

addParametersBuilder()

public Parameter.Builder addParametersBuilder()

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
Parameter.Builder

addParametersBuilder(int index)

public Parameter.Builder addParametersBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EntitlementChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EntitlementChange.Builder
Overrides

build()

public EntitlementChange build()
Returns
TypeDescription
EntitlementChange

buildPartial()

public EntitlementChange buildPartial()
Returns
TypeDescription
EntitlementChange

clear()

public EntitlementChange.Builder clear()
Returns
TypeDescription
EntitlementChange.Builder
Overrides

clearActivationReason()

public EntitlementChange.Builder clearActivationReason()

The Entitlement's activation reason

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

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clearCancellationReason()

public EntitlementChange.Builder clearCancellationReason()

Cancellation reason for the Entitlement.

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

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clearChangeReason()

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

clearChangeType()

public EntitlementChange.Builder clearChangeType()

The change action type.

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

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clearCreateTime()

public EntitlementChange.Builder clearCreateTime()

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
EntitlementChange.Builder

clearEntitlement()

public EntitlementChange.Builder clearEntitlement()

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
EntitlementChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EntitlementChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EntitlementChange.Builder
Overrides

clearOffer()

public EntitlementChange.Builder clearOffer()

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
EntitlementChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EntitlementChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EntitlementChange.Builder
Overrides

clearOperator()

public EntitlementChange.Builder clearOperator()

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
EntitlementChange.Builder

This builder for chaining.

clearOperatorType()

public EntitlementChange.Builder clearOperatorType()

Operator type responsible for the change.

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

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clearOtherChangeReason()

public EntitlementChange.Builder clearOtherChangeReason()

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

string other_change_reason = 100;

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clearParameters()

public EntitlementChange.Builder clearParameters()

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
EntitlementChange.Builder

clearProvisionedService()

public EntitlementChange.Builder clearProvisionedService()

Service provisioned for an Entitlement.

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

Returns
TypeDescription
EntitlementChange.Builder

clearSuspensionReason()

public EntitlementChange.Builder clearSuspensionReason()

Suspension reason for the Entitlement.

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

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

clone()

public EntitlementChange.Builder clone()
Returns
TypeDescription
EntitlementChange.Builder
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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getParametersBuilder(int index)

public Parameter.Builder getParametersBuilder(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.Builder

getParametersBuilderList()

public List<Parameter.Builder> getParametersBuilderList()

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<Builder>

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>

getProvisionedService()

public ProvisionedService getProvisionedService()

Service provisioned for an Entitlement.

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

Returns
TypeDescription
ProvisionedService

The provisionedService.

getProvisionedServiceBuilder()

public ProvisionedService.Builder getProvisionedServiceBuilder()

Service provisioned for an Entitlement.

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

Returns
TypeDescription
ProvisionedService.Builder

getProvisionedServiceOrBuilder()

public ProvisionedServiceOrBuilder getProvisionedServiceOrBuilder()

Service provisioned for an Entitlement.

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

Returns
TypeDescription
ProvisionedServiceOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public EntitlementChange.Builder mergeCreateTime(Timestamp value)

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
EntitlementChange.Builder

mergeFrom(EntitlementChange other)

public EntitlementChange.Builder mergeFrom(EntitlementChange other)
Parameter
NameDescription
otherEntitlementChange
Returns
TypeDescription
EntitlementChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EntitlementChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EntitlementChange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EntitlementChange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EntitlementChange.Builder
Overrides

mergeProvisionedService(ProvisionedService value)

public EntitlementChange.Builder mergeProvisionedService(ProvisionedService value)

Service provisioned for an Entitlement.

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

Parameter
NameDescription
valueProvisionedService
Returns
TypeDescription
EntitlementChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EntitlementChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EntitlementChange.Builder
Overrides

removeParameters(int index)

public EntitlementChange.Builder removeParameters(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
EntitlementChange.Builder

setActivationReason(EntitlementChange.ActivationReason value)

public EntitlementChange.Builder setActivationReason(EntitlementChange.ActivationReason value)

The Entitlement's activation reason

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

Parameter
NameDescription
valueEntitlementChange.ActivationReason

The activationReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setActivationReasonValue(int value)

public EntitlementChange.Builder setActivationReasonValue(int value)

The Entitlement's activation reason

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for activationReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setCancellationReason(EntitlementChange.CancellationReason value)

public EntitlementChange.Builder setCancellationReason(EntitlementChange.CancellationReason value)

Cancellation reason for the Entitlement.

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

Parameter
NameDescription
valueEntitlementChange.CancellationReason

The cancellationReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setCancellationReasonValue(int value)

public EntitlementChange.Builder setCancellationReasonValue(int value)

Cancellation reason for the Entitlement.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for cancellationReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setChangeType(EntitlementChange.ChangeType value)

public EntitlementChange.Builder setChangeType(EntitlementChange.ChangeType value)

The change action type.

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

Parameter
NameDescription
valueEntitlementChange.ChangeType

The changeType to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setChangeTypeValue(int value)

public EntitlementChange.Builder setChangeTypeValue(int value)

The change action type.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for changeType to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public EntitlementChange.Builder setCreateTime(Timestamp value)

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
EntitlementChange.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EntitlementChange.Builder setCreateTime(Timestamp.Builder builderForValue)

The submitted time of the change.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
EntitlementChange.Builder

setEntitlement(String value)

public EntitlementChange.Builder setEntitlement(String value)

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) = { ... }

Parameter
NameDescription
valueString

The entitlement to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setEntitlementBytes(ByteString value)

public EntitlementChange.Builder setEntitlementBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for entitlement to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EntitlementChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EntitlementChange.Builder
Overrides

setOffer(String value)

public EntitlementChange.Builder setOffer(String value)

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) = { ... }

Parameter
NameDescription
valueString

The offer to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOfferBytes(ByteString value)

public EntitlementChange.Builder setOfferBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for offer to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOperator(String value)

public EntitlementChange.Builder setOperator(String value)

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;

Parameter
NameDescription
valueString

The operator to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOperatorBytes(ByteString value)

public EntitlementChange.Builder setOperatorBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for operator to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOperatorType(EntitlementChange.OperatorType value)

public EntitlementChange.Builder setOperatorType(EntitlementChange.OperatorType value)

Operator type responsible for the change.

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

Parameter
NameDescription
valueEntitlementChange.OperatorType

The operatorType to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOperatorTypeValue(int value)

public EntitlementChange.Builder setOperatorTypeValue(int value)

Operator type responsible for the change.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for operatorType to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOtherChangeReason(String value)

public EntitlementChange.Builder setOtherChangeReason(String value)

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

string other_change_reason = 100;

Parameter
NameDescription
valueString

The otherChangeReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setOtherChangeReasonBytes(ByteString value)

public EntitlementChange.Builder setOtherChangeReasonBytes(ByteString value)

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

string other_change_reason = 100;

Parameter
NameDescription
valueByteString

The bytes for otherChangeReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setParameters(int index, Parameter value)

public EntitlementChange.Builder setParameters(int index, Parameter value)

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;

Parameters
NameDescription
indexint
valueParameter
Returns
TypeDescription
EntitlementChange.Builder

setParameters(int index, Parameter.Builder builderForValue)

public EntitlementChange.Builder setParameters(int index, Parameter.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueParameter.Builder
Returns
TypeDescription
EntitlementChange.Builder

setProvisionedService(ProvisionedService value)

public EntitlementChange.Builder setProvisionedService(ProvisionedService value)

Service provisioned for an Entitlement.

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

Parameter
NameDescription
valueProvisionedService
Returns
TypeDescription
EntitlementChange.Builder

setProvisionedService(ProvisionedService.Builder builderForValue)

public EntitlementChange.Builder setProvisionedService(ProvisionedService.Builder builderForValue)

Service provisioned for an Entitlement.

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

Parameter
NameDescription
builderForValueProvisionedService.Builder
Returns
TypeDescription
EntitlementChange.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EntitlementChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EntitlementChange.Builder
Overrides

setSuspensionReason(Entitlement.SuspensionReason value)

public EntitlementChange.Builder setSuspensionReason(Entitlement.SuspensionReason value)

Suspension reason for the Entitlement.

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

Parameter
NameDescription
valueEntitlement.SuspensionReason

The suspensionReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setSuspensionReasonValue(int value)

public EntitlementChange.Builder setSuspensionReasonValue(int value)

Suspension reason for the Entitlement.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for suspensionReason to set.

Returns
TypeDescription
EntitlementChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EntitlementChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EntitlementChange.Builder
Overrides