Class LineItemChange.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
- com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder
-
- All Implemented Interfaces:
LineItemChangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LineItemChange
public static final class LineItemChange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder> implements LineItemChangeOrBuilder
A change made on a line item.
Protobuf typegoogle.cloud.commerce.consumer.procurement.v1.LineItemChange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LineItemChange.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LineItemChange
build()
LineItemChange
buildPartial()
LineItemChange.Builder
clear()
LineItemChange.Builder
clearChangeEffectiveTime()
Output only.LineItemChange.Builder
clearChangeId()
Output only.LineItemChange.Builder
clearChangeState()
Output only.LineItemChange.Builder
clearChangeStateReasonType()
Output only.LineItemChange.Builder
clearChangeType()
Required.LineItemChange.Builder
clearCreateTime()
Output only.LineItemChange.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LineItemChange.Builder
clearNewLineItemInfo()
Line item info after the change.LineItemChange.Builder
clearOldLineItemInfo()
Output only.LineItemChange.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LineItemChange.Builder
clearStateReason()
Output only.LineItemChange.Builder
clearUpdateTime()
Output only.LineItemChange.Builder
clone()
com.google.protobuf.Timestamp
getChangeEffectiveTime()
Output only.com.google.protobuf.Timestamp.Builder
getChangeEffectiveTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getChangeEffectiveTimeOrBuilder()
Output only.String
getChangeId()
Output only.com.google.protobuf.ByteString
getChangeIdBytes()
Output only.LineItemChangeState
getChangeState()
Output only.LineItemChangeStateReasonType
getChangeStateReasonType()
Output only.int
getChangeStateReasonTypeValue()
Output only.int
getChangeStateValue()
Output only.LineItemChangeType
getChangeType()
Required.int
getChangeTypeValue()
Required.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.LineItemChange
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
LineItemInfo
getNewLineItemInfo()
Line item info after the change.LineItemInfo.Builder
getNewLineItemInfoBuilder()
Line item info after the change.LineItemInfoOrBuilder
getNewLineItemInfoOrBuilder()
Line item info after the change.LineItemInfo
getOldLineItemInfo()
Output only.LineItemInfo.Builder
getOldLineItemInfoBuilder()
Output only.LineItemInfoOrBuilder
getOldLineItemInfoOrBuilder()
Output only.String
getStateReason()
Output only.com.google.protobuf.ByteString
getStateReasonBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasChangeEffectiveTime()
Output only.boolean
hasCreateTime()
Output only.boolean
hasNewLineItemInfo()
Line item info after the change.boolean
hasOldLineItemInfo()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LineItemChange.Builder
mergeChangeEffectiveTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
mergeFrom(LineItemChange other)
LineItemChange.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LineItemChange.Builder
mergeFrom(com.google.protobuf.Message other)
LineItemChange.Builder
mergeNewLineItemInfo(LineItemInfo value)
Line item info after the change.LineItemChange.Builder
mergeOldLineItemInfo(LineItemInfo value)
Output only.LineItemChange.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LineItemChange.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
setChangeEffectiveTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
setChangeEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.LineItemChange.Builder
setChangeId(String value)
Output only.LineItemChange.Builder
setChangeIdBytes(com.google.protobuf.ByteString value)
Output only.LineItemChange.Builder
setChangeState(LineItemChangeState value)
Output only.LineItemChange.Builder
setChangeStateReasonType(LineItemChangeStateReasonType value)
Output only.LineItemChange.Builder
setChangeStateReasonTypeValue(int value)
Output only.LineItemChange.Builder
setChangeStateValue(int value)
Output only.LineItemChange.Builder
setChangeType(LineItemChangeType value)
Required.LineItemChange.Builder
setChangeTypeValue(int value)
Required.LineItemChange.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.LineItemChange.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LineItemChange.Builder
setNewLineItemInfo(LineItemInfo value)
Line item info after the change.LineItemChange.Builder
setNewLineItemInfo(LineItemInfo.Builder builderForValue)
Line item info after the change.LineItemChange.Builder
setOldLineItemInfo(LineItemInfo value)
Output only.LineItemChange.Builder
setOldLineItemInfo(LineItemInfo.Builder builderForValue)
Output only.LineItemChange.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LineItemChange.Builder
setStateReason(String value)
Output only.LineItemChange.Builder
setStateReasonBytes(com.google.protobuf.ByteString value)
Output only.LineItemChange.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LineItemChange.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.LineItemChange.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
clear
public LineItemChange.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
getDefaultInstanceForType
public LineItemChange getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LineItemChange build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LineItemChange buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LineItemChange.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
setField
public LineItemChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
clearField
public LineItemChange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
clearOneof
public LineItemChange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
setRepeatedField
public LineItemChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
addRepeatedField
public LineItemChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
mergeFrom
public LineItemChange.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LineItemChange.Builder>
-
mergeFrom
public LineItemChange.Builder mergeFrom(LineItemChange other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
mergeFrom
public LineItemChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LineItemChange.Builder>
- Throws:
IOException
-
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];
- Specified by:
getChangeId
in interfaceLineItemChangeOrBuilder
- Returns:
- The changeId.
-
getChangeIdBytes
public com.google.protobuf.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];
- Specified by:
getChangeIdBytes
in interfaceLineItemChangeOrBuilder
- Returns:
- The bytes for changeId.
-
setChangeId
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];
- Parameters:
value
- The changeId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setChangeIdBytes
public LineItemChange.Builder setChangeIdBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for changeId to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getChangeTypeValue
in interfaceLineItemChangeOrBuilder
- Returns:
- The enum numeric value on the wire for changeType.
-
setChangeTypeValue
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];
- Parameters:
value
- The enum numeric value on the wire for changeType to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getChangeType
in interfaceLineItemChangeOrBuilder
- Returns:
- The changeType.
-
setChangeType
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];
- Parameters:
value
- The changeType to set.- Returns:
- 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:
- This builder for chaining.
-
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];
- Specified by:
hasOldLineItemInfo
in interfaceLineItemChangeOrBuilder
- Returns:
- Whether the oldLineItemInfo field is set.
-
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];
- Specified by:
getOldLineItemInfo
in interfaceLineItemChangeOrBuilder
- Returns:
- The oldLineItemInfo.
-
setOldLineItemInfo
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];
-
setOldLineItemInfo
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];
-
mergeOldLineItemInfo
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];
-
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];
-
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];
-
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];
- Specified by:
getOldLineItemInfoOrBuilder
in interfaceLineItemChangeOrBuilder
-
hasNewLineItemInfo
public boolean hasNewLineItemInfo()
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
- Specified by:
hasNewLineItemInfo
in interfaceLineItemChangeOrBuilder
- Returns:
- Whether the newLineItemInfo field is set.
-
getNewLineItemInfo
public LineItemInfo getNewLineItemInfo()
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
- Specified by:
getNewLineItemInfo
in interfaceLineItemChangeOrBuilder
- Returns:
- The newLineItemInfo.
-
setNewLineItemInfo
public LineItemChange.Builder setNewLineItemInfo(LineItemInfo value)
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
-
setNewLineItemInfo
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;
-
mergeNewLineItemInfo
public LineItemChange.Builder mergeNewLineItemInfo(LineItemInfo value)
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
-
clearNewLineItemInfo
public LineItemChange.Builder clearNewLineItemInfo()
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
-
getNewLineItemInfoBuilder
public LineItemInfo.Builder getNewLineItemInfoBuilder()
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
-
getNewLineItemInfoOrBuilder
public LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
- Specified by:
getNewLineItemInfoOrBuilder
in interfaceLineItemChangeOrBuilder
-
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];
- Specified by:
getChangeStateValue
in interfaceLineItemChangeOrBuilder
- Returns:
- The enum numeric value on the wire for changeState.
-
setChangeStateValue
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];
- Parameters:
value
- The enum numeric value on the wire for changeState to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getChangeState
in interfaceLineItemChangeOrBuilder
- Returns:
- The changeState.
-
setChangeState
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];
- Parameters:
value
- The changeState to set.- Returns:
- 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:
- This builder for chaining.
-
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];
- Specified by:
getStateReason
in interfaceLineItemChangeOrBuilder
- Returns:
- The stateReason.
-
getStateReasonBytes
public com.google.protobuf.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];
- Specified by:
getStateReasonBytes
in interfaceLineItemChangeOrBuilder
- Returns:
- The bytes for stateReason.
-
setStateReason
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];
- Parameters:
value
- The stateReason to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setStateReasonBytes
public LineItemChange.Builder setStateReasonBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for stateReason to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getChangeStateReasonTypeValue
in interfaceLineItemChangeOrBuilder
- Returns:
- The enum numeric value on the wire for changeStateReasonType.
-
setChangeStateReasonTypeValue
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];
- Parameters:
value
- The enum numeric value on the wire for changeStateReasonType to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getChangeStateReasonType
in interfaceLineItemChangeOrBuilder
- Returns:
- The changeStateReasonType.
-
setChangeStateReasonType
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];
- Parameters:
value
- The changeStateReasonType to set.- Returns:
- 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:
- This builder for chaining.
-
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];
- Specified by:
hasChangeEffectiveTime
in interfaceLineItemChangeOrBuilder
- Returns:
- Whether the changeEffectiveTime field is set.
-
getChangeEffectiveTime
public com.google.protobuf.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];
- Specified by:
getChangeEffectiveTime
in interfaceLineItemChangeOrBuilder
- Returns:
- The changeEffectiveTime.
-
setChangeEffectiveTime
public LineItemChange.Builder setChangeEffectiveTime(com.google.protobuf.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];
-
setChangeEffectiveTime
public LineItemChange.Builder setChangeEffectiveTime(com.google.protobuf.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];
-
mergeChangeEffectiveTime
public LineItemChange.Builder mergeChangeEffectiveTime(com.google.protobuf.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];
-
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];
-
getChangeEffectiveTimeBuilder
public com.google.protobuf.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];
-
getChangeEffectiveTimeOrBuilder
public com.google.protobuf.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];
- Specified by:
getChangeEffectiveTimeOrBuilder
in interfaceLineItemChangeOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceLineItemChangeOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceLineItemChangeOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public LineItemChange.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public LineItemChange.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public LineItemChange.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when change was initiated.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceLineItemChangeOrBuilder
-
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];
- Specified by:
hasUpdateTime
in interfaceLineItemChangeOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];
- Specified by:
getUpdateTime
in interfaceLineItemChangeOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public LineItemChange.Builder setUpdateTime(com.google.protobuf.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];
-
setUpdateTime
public LineItemChange.Builder setUpdateTime(com.google.protobuf.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];
-
mergeUpdateTime
public LineItemChange.Builder mergeUpdateTime(com.google.protobuf.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];
-
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];
-
getUpdateTimeBuilder
public com.google.protobuf.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];
-
getUpdateTimeOrBuilder
public com.google.protobuf.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];
- Specified by:
getUpdateTimeOrBuilder
in interfaceLineItemChangeOrBuilder
-
setUnknownFields
public final LineItemChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
mergeUnknownFields
public final LineItemChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LineItemChange.Builder>
-
-