public final class LineItem extends GeneratedMessageV3 implements LineItemOrBuilder
A single item within an order.
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.LineItem
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static LineItem.Builder newBuilder()
newBuilder(LineItem prototype)
public static LineItem.Builder newBuilder(LineItem prototype)
Parameter |
---|
Name | Description |
prototype | LineItem
|
public static LineItem parseDelimitedFrom(InputStream input)
public static LineItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static LineItem parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static LineItem parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(CodedInputStream input)
public static LineItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(InputStream input)
public static LineItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static LineItem parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LineItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<LineItem> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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
|
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];
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
|
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()
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];
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];
getParserForType()
public Parser<LineItem> getParserForType()
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];
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];
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public LineItem.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LineItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public LineItem.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides