Class LineItem (0.44.0)

public final class LineItem extends GeneratedMessageV3 implements LineItemOrBuilder

A single item within an order.

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

Implements

LineItemOrBuilder

Static Fields

CHANGE_HISTORY_FIELD_NUMBER

public static final int CHANGE_HISTORY_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEM_ID_FIELD_NUMBER

public static final int LINE_ITEM_ID_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEM_INFO_FIELD_NUMBER

public static final int LINE_ITEM_INFO_FIELD_NUMBER
Field Value
Type Description
int

PENDING_CHANGE_FIELD_NUMBER

public static final int PENDING_CHANGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LineItem getDefaultInstance()
Returns
Type Description
LineItem

getDescriptor()

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

newBuilder()

public static LineItem.Builder newBuilder()
Returns
Type Description
LineItem.Builder

newBuilder(LineItem prototype)

public static LineItem.Builder newBuilder(LineItem prototype)
Parameter
Name Description
prototype LineItem
Returns
Type Description
LineItem.Builder

parseDelimitedFrom(InputStream input)

public static LineItem parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LineItem parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LineItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LineItem parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LineItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LineItem parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LineItem parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LineItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LineItem parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LineItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItem
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LineItem> parser()
Returns
Type Description
Parser<LineItem>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChangeHistory(int index)

public LineItemChange getChangeHistory(int index)

Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItemChange

getChangeHistoryCount()

public int getChangeHistoryCount()

Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getChangeHistoryList()

public List<LineItemChange> getChangeHistoryList()

Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<LineItemChange>

getChangeHistoryOrBuilder(int index)

public LineItemChangeOrBuilder getChangeHistoryOrBuilder(int index)

Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
LineItemChangeOrBuilder

getChangeHistoryOrBuilderList()

public List<? extends LineItemChangeOrBuilder> getChangeHistoryOrBuilderList()

Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder>

getDefaultInstanceForType()

public LineItem getDefaultInstanceForType()
Returns
Type Description
LineItem

getLineItemId()

public String getLineItemId()

Output only. Line item ID.

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

Returns
Type Description
String

The lineItemId.

getLineItemIdBytes()

public ByteString getLineItemIdBytes()

Output only. Line item ID.

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

Returns
Type Description
ByteString

The bytes for lineItemId.

getLineItemInfo()

public LineItemInfo getLineItemInfo()

Output only. Current state and information of this item. It tells what, e.g. which offer, is currently effective.

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

Returns
Type Description
LineItemInfo

The lineItemInfo.

getLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getLineItemInfoOrBuilder()

Output only. Current state and information of this item. It tells what, e.g. which offer, is currently effective.

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

Returns
Type Description
LineItemInfoOrBuilder

getParserForType()

public Parser<LineItem> getParserForType()
Returns
Type Description
Parser<LineItem>
Overrides

getPendingChange()

public LineItemChange getPendingChange()

Output only. A change made on the item which is pending and not yet effective. Absence of this field indicates the line item is not undergoing a change.

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

Returns
Type Description
LineItemChange

The pendingChange.

getPendingChangeOrBuilder()

public LineItemChangeOrBuilder getPendingChangeOrBuilder()

Output only. A change made on the item which is pending and not yet effective. Absence of this field indicates the line item is not undergoing a change.

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

Returns
Type Description
LineItemChangeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLineItemInfo()

public boolean hasLineItemInfo()

Output only. Current state and information of this item. It tells what, e.g. which offer, is currently effective.

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

Returns
Type Description
boolean

Whether the lineItemInfo field is set.

hasPendingChange()

public boolean hasPendingChange()

Output only. A change made on the item which is pending and not yet effective. Absence of this field indicates the line item is not undergoing a change.

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

Returns
Type Description
boolean

Whether the pendingChange field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LineItem.Builder newBuilderForType()
Returns
Type Description
LineItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LineItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LineItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LineItem.Builder toBuilder()
Returns
Type Description
LineItem.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException