Class ModifyOrderRequest.Modification.Builder (0.53.0)

public static final class ModifyOrderRequest.Modification.Builder extends GeneratedMessageV3.Builder<ModifyOrderRequest.Modification.Builder> implements ModifyOrderRequest.ModificationOrBuilder

Modifications to make on the order.

Protobuf type google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModifyOrderRequest.Modification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

build()

public ModifyOrderRequest.Modification build()
Returns
Type Description
ModifyOrderRequest.Modification

buildPartial()

public ModifyOrderRequest.Modification buildPartial()
Returns
Type Description
ModifyOrderRequest.Modification

clear()

public ModifyOrderRequest.Modification.Builder clear()
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

clearAutoRenewalBehavior()

public ModifyOrderRequest.Modification.Builder clearAutoRenewalBehavior()

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
ModifyOrderRequest.Modification.Builder

This builder for chaining.

clearChangeType()

public ModifyOrderRequest.Modification.Builder clearChangeType()

Required. Type of change to make.

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

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModifyOrderRequest.Modification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

clearLineItemId()

public ModifyOrderRequest.Modification.Builder clearLineItemId()

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
ModifyOrderRequest.Modification.Builder

This builder for chaining.

clearNewLineItemInfo()

public ModifyOrderRequest.Modification.Builder clearNewLineItemInfo()

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
ModifyOrderRequest.Modification.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ModifyOrderRequest.Modification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

clone()

public ModifyOrderRequest.Modification.Builder clone()
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

getAutoRenewalBehavior()

public 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 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 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 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.

getDefaultInstanceForType()

public ModifyOrderRequest.Modification getDefaultInstanceForType()
Returns
Type Description
ModifyOrderRequest.Modification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLineItemId()

public 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 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 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.

getNewLineItemInfoBuilder()

public LineItemInfo.Builder getNewLineItemInfoBuilder()

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

getNewLineItemInfoOrBuilder()

public 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModifyOrderRequest.Modification other)

public ModifyOrderRequest.Modification.Builder mergeFrom(ModifyOrderRequest.Modification other)
Parameter
Name Description
other ModifyOrderRequest.Modification
Returns
Type Description
ModifyOrderRequest.Modification.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModifyOrderRequest.Modification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModifyOrderRequest.Modification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

mergeNewLineItemInfo(LineItemInfo value)

public ModifyOrderRequest.Modification.Builder mergeNewLineItemInfo(LineItemInfo value)

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];

Parameter
Name Description
value LineItemInfo
Returns
Type Description
ModifyOrderRequest.Modification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModifyOrderRequest.Modification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

setAutoRenewalBehavior(AutoRenewalBehavior value)

public ModifyOrderRequest.Modification.Builder setAutoRenewalBehavior(AutoRenewalBehavior value)

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];

Parameter
Name Description
value AutoRenewalBehavior

The autoRenewalBehavior to set.

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setAutoRenewalBehaviorValue(int value)

public ModifyOrderRequest.Modification.Builder setAutoRenewalBehaviorValue(int value)

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];

Parameter
Name Description
value int

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

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setChangeType(LineItemChangeType value)

public ModifyOrderRequest.Modification.Builder setChangeType(LineItemChangeType value)

Required. Type of change to make.

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

Parameter
Name Description
value LineItemChangeType

The changeType to set.

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setChangeTypeValue(int value)

public ModifyOrderRequest.Modification.Builder setChangeTypeValue(int value)

Required. Type of change to make.

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

Parameter
Name Description
value int

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

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModifyOrderRequest.Modification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

setLineItemId(String value)

public ModifyOrderRequest.Modification.Builder setLineItemId(String value)

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];

Parameter
Name Description
value String

The lineItemId to set.

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setLineItemIdBytes(ByteString value)

public ModifyOrderRequest.Modification.Builder setLineItemIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for lineItemId to set.

Returns
Type Description
ModifyOrderRequest.Modification.Builder

This builder for chaining.

setNewLineItemInfo(LineItemInfo value)

public ModifyOrderRequest.Modification.Builder setNewLineItemInfo(LineItemInfo value)

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];

Parameter
Name Description
value LineItemInfo
Returns
Type Description
ModifyOrderRequest.Modification.Builder

setNewLineItemInfo(LineItemInfo.Builder builderForValue)

public ModifyOrderRequest.Modification.Builder setNewLineItemInfo(LineItemInfo.Builder builderForValue)

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];

Parameter
Name Description
builderForValue LineItemInfo.Builder
Returns
Type Description
ModifyOrderRequest.Modification.Builder

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

public ModifyOrderRequest.Modification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModifyOrderRequest.Modification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides