Class LineItemChange (0.7.0)

public final class LineItemChange extends GeneratedMessageV3 implements LineItemChangeOrBuilder

A change made on a line item.

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

Static Fields

CHANGE_EFFECTIVE_TIME_FIELD_NUMBER

public static final int CHANGE_EFFECTIVE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CHANGE_ID_FIELD_NUMBER

public static final int CHANGE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CHANGE_STATE_FIELD_NUMBER

public static final int CHANGE_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

CHANGE_STATE_REASON_TYPE_FIELD_NUMBER

public static final int CHANGE_STATE_REASON_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

CHANGE_TYPE_FIELD_NUMBER

public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_LINE_ITEM_INFO_FIELD_NUMBER

public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

OLD_LINE_ITEM_INFO_FIELD_NUMBER

public static final int OLD_LINE_ITEM_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_REASON_FIELD_NUMBER

public static final int STATE_REASON_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LineItemChange getDefaultInstance()
Returns
TypeDescription
LineItemChange

getDescriptor()

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

newBuilder()

public static LineItemChange.Builder newBuilder()
Returns
TypeDescription
LineItemChange.Builder

newBuilder(LineItemChange prototype)

public static LineItemChange.Builder newBuilder(LineItemChange prototype)
Parameter
NameDescription
prototypeLineItemChange
Returns
TypeDescription
LineItemChange.Builder

parseDelimitedFrom(InputStream input)

public static LineItemChange parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LineItemChange parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LineItemChange parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LineItemChange parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LineItemChange parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LineItemChange parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LineItemChange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineItemChange
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LineItemChange> parser()
Returns
TypeDescription
Parser<LineItemChange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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

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.

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.

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

getParserForType()

public Parser<LineItemChange> getParserForType()
Returns
TypeDescription
Parser<LineItemChange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LineItemChange.Builder newBuilderForType()
Returns
TypeDescription
LineItemChange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LineItemChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LineItemChange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LineItemChange.Builder toBuilder()
Returns
TypeDescription
LineItemChange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException