Interface ModifyOrderRequest.ModificationOrBuilder (0.52.0)

public static interface ModifyOrderRequest.ModificationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoRenewalBehavior()

public abstract AutoRenewalBehavior getAutoRenewalBehavior()

Optional. Auto renewal behavior of the subscription for the update. Applied when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default config when this field is not specified.

.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoRenewalBehavior

The autoRenewalBehavior.

getAutoRenewalBehaviorValue()

public abstract int getAutoRenewalBehaviorValue()

Optional. Auto renewal behavior of the subscription for the update. Applied when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default config when this field is not specified.

.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for autoRenewalBehavior.

getChangeType()

public abstract LineItemChangeType getChangeType()

Required. Type of change to make.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LineItemChangeType

The changeType.

getChangeTypeValue()

public abstract int getChangeTypeValue()

Required. Type of change to make.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for changeType.

getLineItemId()

public abstract String getLineItemId()

Required. ID of the existing line item to make change to. Required when change type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL].

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

Returns
Type Description
String

The lineItemId.

getLineItemIdBytes()

public abstract ByteString getLineItemIdBytes()

Required. ID of the existing line item to make change to. Required when change type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL].

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

Returns
Type Description
ByteString

The bytes for lineItemId.

getNewLineItemInfo()

public abstract LineItemInfo getNewLineItemInfo()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemInfo

The newLineItemInfo.

getNewLineItemInfoOrBuilder()

public abstract LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemInfoOrBuilder

hasNewLineItemInfo()

public abstract boolean hasNewLineItemInfo()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the newLineItemInfo field is set.