Class LineItemChange.Builder (0.25.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.v1alpha1.LineItemChange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LineItemChange build()
Returns
TypeDescription
LineItemChange

buildPartial()

public LineItemChange buildPartial()
Returns
TypeDescription
LineItemChange

clear()

public LineItemChange.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LineItemChange.Builder

This builder for chaining.

clearChangeState()

public LineItemChange.Builder clearChangeState()

Output only. State of the change.

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

Returns
TypeDescription
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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LineItemChange.Builder

This builder for chaining.

clearChangeType()

public LineItemChange.Builder clearChangeType()

Required. Type of the change to make.

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearNewLineItemInfo()

public LineItemChange.Builder clearNewLineItemInfo()

Line item info after the change.

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

Returns
TypeDescription
LineItemChange.Builder

clearOldLineItemInfo()

public LineItemChange.Builder clearOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
TypeDescription
LineItemChange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LineItemChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LineItemChange.Builder

clone()

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

The bytes for changeId.

getChangeState()

public LineItemChangeState getChangeState()

Output only. State of the change.

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

Returns
TypeDescription
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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LineItemChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

Required. Type of the change to make.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public LineItemChange getDefaultInstanceForType()
Returns
TypeDescription
LineItemChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNewLineItemInfo()

public LineItemInfo getNewLineItemInfo()

Line item info after the change.

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

Returns
TypeDescription
LineItemInfo

The newLineItemInfo.

getNewLineItemInfoBuilder()

public LineItemInfo.Builder getNewLineItemInfoBuilder()

Line item info after the change.

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

Returns
TypeDescription
LineItemInfo.Builder

getNewLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()

Line item info after the change.

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

Returns
TypeDescription
LineItemInfoOrBuilder

getOldLineItemInfo()

public LineItemInfo getOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
TypeDescription
LineItemInfo

The oldLineItemInfo.

getOldLineItemInfoBuilder()

public LineItemInfo.Builder getOldLineItemInfoBuilder()

Output only. Line item info before the change.

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

Returns
TypeDescription
LineItemInfo.Builder

getOldLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getOldLineItemInfoOrBuilder()

Output only. Line item info before the change.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

hasNewLineItemInfo()

public boolean hasNewLineItemInfo()

Line item info after the change.

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

Returns
TypeDescription
boolean

Whether the newLineItemInfo field is set.

hasOldLineItemInfo()

public boolean hasOldLineItemInfo()

Output only. Line item info before the change.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
LineItemChange.Builder

mergeFrom(LineItemChange other)

public LineItemChange.Builder mergeFrom(LineItemChange other)
Parameter
NameDescription
otherLineItemChange
Returns
TypeDescription
LineItemChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNewLineItemInfo(LineItemInfo value)

public LineItemChange.Builder mergeNewLineItemInfo(LineItemInfo value)

Line item info after the change.

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

Parameter
NameDescription
valueLineItemInfo
Returns
TypeDescription
LineItemChange.Builder

mergeOldLineItemInfo(LineItemInfo value)

public LineItemChange.Builder mergeOldLineItemInfo(LineItemInfo value)

Output only. Line item info before the change.

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

Parameter
NameDescription
valueLineItemInfo
Returns
TypeDescription
LineItemChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LineItemChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The changeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for changeId to set.

Returns
TypeDescription
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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueLineItemChangeState

The changeState to set.

Returns
TypeDescription
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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueLineItemChangeStateReasonType

The changeStateReasonType to set.

Returns
TypeDescription
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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLineItemChangeType

The changeType to set.

Returns
TypeDescription
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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
LineItemChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNewLineItemInfo(LineItemInfo value)

public LineItemChange.Builder setNewLineItemInfo(LineItemInfo value)

Line item info after the change.

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

Parameter
NameDescription
valueLineItemInfo
Returns
TypeDescription
LineItemChange.Builder

setNewLineItemInfo(LineItemInfo.Builder builderForValue)

public LineItemChange.Builder setNewLineItemInfo(LineItemInfo.Builder builderForValue)

Line item info after the change.

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

Parameter
NameDescription
builderForValueLineItemInfo.Builder
Returns
TypeDescription
LineItemChange.Builder

setOldLineItemInfo(LineItemInfo value)

public LineItemChange.Builder setOldLineItemInfo(LineItemInfo value)

Output only. Line item info before the change.

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

Parameter
NameDescription
valueLineItemInfo
Returns
TypeDescription
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.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueLineItemInfo.Builder
Returns
TypeDescription
LineItemChange.Builder

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

public LineItemChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The stateReason to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stateReason to set.

Returns
TypeDescription
LineItemChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LineItemChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
LineItemChange.Builder