Class LineItemChange.Builder (0.42.0)

public static final class LineItemChange.Builder extends GeneratedMessageV3.Builder<LineItemChange.Builder> implements LineItemChangeOrBuilder

A change made on a line item.

Protobuf type google.cloud.commerce.consumer.procurement.v1.LineItemChange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LineItemChange build()
Returns
Type Description
LineItemChange

buildPartial()

public LineItemChange buildPartial()
Returns
Type Description
LineItemChange

clear()

public LineItemChange.Builder clear()
Returns
Type Description
LineItemChange.Builder
Overrides

clearChangeEffectiveTime()

public LineItemChange.Builder clearChangeEffectiveTime()

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

clearChangeId()

public LineItemChange.Builder clearChangeId()

Output only. Change ID. All changes made within one order update operation have the same change_id.

string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

clearChangeState()

public LineItemChange.Builder clearChangeState()

Output only. State of the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

clearChangeStateReasonType()

public LineItemChange.Builder clearChangeStateReasonType()

Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be LINE_ITEM_CHANGE_STATE_COMPLETED because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

clearChangeType()

public LineItemChange.Builder clearChangeType()

Required. Type of the change to make.

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

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

clearCreateTime()

public LineItemChange.Builder clearCreateTime()

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNewLineItemInfo()

public LineItemChange.Builder clearNewLineItemInfo()

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Returns
Type Description
LineItemChange.Builder

clearOldLineItemInfo()

public LineItemChange.Builder clearOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
Type Description
LineItemChange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStateReason()

public LineItemChange.Builder clearStateReason()

Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of PENDING_APPROVAL, and to explain why the change request was denied or canceled in the case of REJECTED and CANCELED states.

string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

clearUpdateTime()

public LineItemChange.Builder clearUpdateTime()

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChange.Builder

clone()

public LineItemChange.Builder clone()
Returns
Type Description
LineItemChange.Builder
Overrides

getChangeEffectiveTime()

public Timestamp getChangeEffectiveTime()

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The changeEffectiveTime.

getChangeEffectiveTimeBuilder()

public Timestamp.Builder getChangeEffectiveTimeBuilder()

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getChangeEffectiveTimeOrBuilder()

public TimestampOrBuilder getChangeEffectiveTimeOrBuilder()

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getChangeId()

public String getChangeId()

Output only. Change ID. All changes made within one order update operation have the same change_id.

string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The changeId.

getChangeIdBytes()

public ByteString getChangeIdBytes()

Output only. Change ID. All changes made within one order update operation have the same change_id.

string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for changeId.

getChangeState()

public LineItemChangeState getChangeState()

Output only. State of the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChangeState

The changeState.

getChangeStateReasonType()

public LineItemChangeStateReasonType getChangeStateReasonType()

Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be LINE_ITEM_CHANGE_STATE_COMPLETED because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemChangeStateReasonType

The changeStateReasonType.

getChangeStateReasonTypeValue()

public int getChangeStateReasonTypeValue()

Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be LINE_ITEM_CHANGE_STATE_COMPLETED because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for changeStateReasonType.

getChangeStateValue()

public int getChangeStateValue()

Output only. State of the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for changeState.

getChangeType()

public LineItemChangeType getChangeType()

Required. Type of the 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 the 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.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public LineItemChange getDefaultInstanceForType()
Returns
Type Description
LineItemChange

getDescriptorForType()

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

getNewLineItemInfo()

public LineItemInfo getNewLineItemInfo()

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Returns
Type Description
LineItemInfo

The newLineItemInfo.

getNewLineItemInfoBuilder()

public LineItemInfo.Builder getNewLineItemInfoBuilder()

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Returns
Type Description
LineItemInfo.Builder

getNewLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Returns
Type Description
LineItemInfoOrBuilder

getOldLineItemInfo()

public LineItemInfo getOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
Type Description
LineItemInfo

The oldLineItemInfo.

getOldLineItemInfoBuilder()

public LineItemInfo.Builder getOldLineItemInfoBuilder()

Output only. Line item info before the change.

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

Returns
Type Description
LineItemInfo.Builder

getOldLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getOldLineItemInfoOrBuilder()

Output only. Line item info before the change.

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

Returns
Type Description
LineItemInfoOrBuilder

getStateReason()

public String getStateReason()

Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of PENDING_APPROVAL, and to explain why the change request was denied or canceled in the case of REJECTED and CANCELED states.

string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateReason.

getStateReasonBytes()

public ByteString getStateReasonBytes()

Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of PENDING_APPROVAL, and to explain why the change request was denied or canceled in the case of REJECTED and CANCELED states.

string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateReason.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasChangeEffectiveTime()

public boolean hasChangeEffectiveTime()

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the changeEffectiveTime field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasNewLineItemInfo()

public boolean hasNewLineItemInfo()

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Returns
Type Description
boolean

Whether the newLineItemInfo field is set.

hasOldLineItemInfo()

public boolean hasOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
Type Description
boolean

Whether the oldLineItemInfo field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChangeEffectiveTime(Timestamp value)

public LineItemChange.Builder mergeChangeEffectiveTime(Timestamp value)

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

mergeCreateTime(Timestamp value)

public LineItemChange.Builder mergeCreateTime(Timestamp value)

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

mergeFrom(LineItemChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNewLineItemInfo(LineItemInfo value)

public LineItemChange.Builder mergeNewLineItemInfo(LineItemInfo value)

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Parameter
Name Description
value LineItemInfo
Returns
Type Description
LineItemChange.Builder

mergeOldLineItemInfo(LineItemInfo value)

public LineItemChange.Builder mergeOldLineItemInfo(LineItemInfo value)

Output only. Line item info before the change.

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

Parameter
Name Description
value LineItemInfo
Returns
Type Description
LineItemChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public LineItemChange.Builder mergeUpdateTime(Timestamp value)

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

setChangeEffectiveTime(Timestamp value)

public LineItemChange.Builder setChangeEffectiveTime(Timestamp value)

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

setChangeEffectiveTime(Timestamp.Builder builderForValue)

public LineItemChange.Builder setChangeEffectiveTime(Timestamp.Builder builderForValue)

Output only. A time at which the change became or will become (in case of pending change) effective.

.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemChange.Builder

setChangeId(String value)

public LineItemChange.Builder setChangeId(String value)

Output only. Change ID. All changes made within one order update operation have the same change_id.

string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The changeId to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeIdBytes(ByteString value)

public LineItemChange.Builder setChangeIdBytes(ByteString value)

Output only. Change ID. All changes made within one order update operation have the same change_id.

string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for changeId to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeState(LineItemChangeState value)

public LineItemChange.Builder setChangeState(LineItemChangeState value)

Output only. State of the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LineItemChangeState

The changeState to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeStateReasonType(LineItemChangeStateReasonType value)

public LineItemChange.Builder setChangeStateReasonType(LineItemChangeStateReasonType value)

Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be LINE_ITEM_CHANGE_STATE_COMPLETED because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LineItemChangeStateReasonType

The changeStateReasonType to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeStateReasonTypeValue(int value)

public LineItemChange.Builder setChangeStateReasonTypeValue(int value)

Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be LINE_ITEM_CHANGE_STATE_COMPLETED because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeStateValue(int value)

public LineItemChange.Builder setChangeStateValue(int value)

Output only. State of the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setChangeType(LineItemChangeType value)

public LineItemChange.Builder setChangeType(LineItemChangeType value)

Required. Type of the 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
LineItemChange.Builder

This builder for chaining.

setChangeTypeValue(int value)

public LineItemChange.Builder setChangeTypeValue(int value)

Required. Type of the 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
LineItemChange.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public LineItemChange.Builder setCreateTime(Timestamp value)

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

setCreateTime(Timestamp.Builder builderForValue)

public LineItemChange.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when change was initiated.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNewLineItemInfo(LineItemInfo value)

public LineItemChange.Builder setNewLineItemInfo(LineItemInfo value)

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Parameter
Name Description
value LineItemInfo
Returns
Type Description
LineItemChange.Builder

setNewLineItemInfo(LineItemInfo.Builder builderForValue)

public LineItemChange.Builder setNewLineItemInfo(LineItemInfo.Builder builderForValue)

Line item info after the change.

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;

Parameter
Name Description
builderForValue LineItemInfo.Builder
Returns
Type Description
LineItemChange.Builder

setOldLineItemInfo(LineItemInfo value)

public LineItemChange.Builder setOldLineItemInfo(LineItemInfo value)

Output only. Line item info before the change.

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

Parameter
Name Description
value LineItemInfo
Returns
Type Description
LineItemChange.Builder

setOldLineItemInfo(LineItemInfo.Builder builderForValue)

public LineItemChange.Builder setOldLineItemInfo(LineItemInfo.Builder builderForValue)

Output only. Line item info before the change.

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

Parameter
Name Description
builderForValue LineItemInfo.Builder
Returns
Type Description
LineItemChange.Builder

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

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

setStateReason(String value)

public LineItemChange.Builder setStateReason(String value)

Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of PENDING_APPROVAL, and to explain why the change request was denied or canceled in the case of REJECTED and CANCELED states.

string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateReason to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setStateReasonBytes(ByteString value)

public LineItemChange.Builder setStateReasonBytes(ByteString value)

Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of PENDING_APPROVAL, and to explain why the change request was denied or canceled in the case of REJECTED and CANCELED states.

string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateReason to set.

Returns
Type Description
LineItemChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public LineItemChange.Builder setUpdateTime(Timestamp value)

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemChange.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public LineItemChange.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when change was updated, e.g. approved/rejected by partners or cancelled by the user.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemChange.Builder