public final class LineItem extends GeneratedMessageV3 implements LineItemOrBuilder
A single item within an order.
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.LineItem
Static Fields
CHANGE_HISTORY_FIELD_NUMBER
public static final int CHANGE_HISTORY_FIELD_NUMBER
Field Value
LINE_ITEM_ID_FIELD_NUMBER
public static final int LINE_ITEM_ID_FIELD_NUMBER
Field Value
LINE_ITEM_INFO_FIELD_NUMBER
public static final int LINE_ITEM_INFO_FIELD_NUMBER
Field Value
PENDING_CHANGE_FIELD_NUMBER
public static final int PENDING_CHANGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LineItem getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LineItem.Builder newBuilder()
Returns
newBuilder(LineItem prototype)
public static LineItem.Builder newBuilder(LineItem prototype)
Parameter
Returns
public static LineItem parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LineItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LineItem parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LineItem parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LineItem parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LineItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LineItem parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LineItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LineItem parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LineItem> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Returns
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
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
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
Returns
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
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
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
getParserForType()
public Parser<LineItem> getParserForType()
Returns
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
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LineItem.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LineItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LineItem.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions