public final class LineItem extends com.google.protobuf.GeneratedMessageV3 implements LineItemOrBuilder
A single item within an order.Protobuf type
google.cloud.commerce.consumer.procurement.v1.LineItem| Modifier and Type | Class and Description |
|---|---|
static class |
LineItem.Builder
A single item within an order.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHANGE_HISTORY_FIELD_NUMBER |
static int |
LINE_ITEM_ID_FIELD_NUMBER |
static int |
LINE_ITEM_INFO_FIELD_NUMBER |
static int |
PENDING_CHANGE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LineItemChange |
getChangeHistory(int index)
Output only.
|
int |
getChangeHistoryCount()
Output only.
|
List<LineItemChange> |
getChangeHistoryList()
Output only.
|
LineItemChangeOrBuilder |
getChangeHistoryOrBuilder(int index)
Output only.
|
List<? extends LineItemChangeOrBuilder> |
getChangeHistoryOrBuilderList()
Output only.
|
static LineItem |
getDefaultInstance() |
LineItem |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getLineItemId()
Output only.
|
com.google.protobuf.ByteString |
getLineItemIdBytes()
Output only.
|
LineItemInfo |
getLineItemInfo()
Output only.
|
LineItemInfoOrBuilder |
getLineItemInfoOrBuilder()
Output only.
|
com.google.protobuf.Parser<LineItem> |
getParserForType() |
LineItemChange |
getPendingChange()
Output only.
|
LineItemChangeOrBuilder |
getPendingChangeOrBuilder()
Output only.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasLineItemInfo()
Output only.
|
boolean |
hasPendingChange()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LineItem.Builder |
newBuilder() |
static LineItem.Builder |
newBuilder(LineItem prototype) |
LineItem.Builder |
newBuilderForType() |
protected LineItem.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LineItem |
parseDelimitedFrom(InputStream input) |
static LineItem |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LineItem |
parseFrom(byte[] data) |
static LineItem |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LineItem |
parseFrom(ByteBuffer data) |
static LineItem |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LineItem |
parseFrom(com.google.protobuf.ByteString data) |
static LineItem |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LineItem |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LineItem |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LineItem |
parseFrom(InputStream input) |
static LineItem |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LineItem> |
parser() |
LineItem.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LINE_ITEM_ID_FIELD_NUMBER
public static final int LINE_ITEM_INFO_FIELD_NUMBER
public static final int PENDING_CHANGE_FIELD_NUMBER
public static final int CHANGE_HISTORY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getLineItemId()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getLineItemId in interface LineItemOrBuilderpublic com.google.protobuf.ByteString getLineItemIdBytes()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getLineItemIdBytes in interface LineItemOrBuilderpublic 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.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasLineItemInfo in interface LineItemOrBuilderpublic 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.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLineItemInfo in interface LineItemOrBuilderpublic 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.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLineItemInfoOrBuilder in interface LineItemOrBuilderpublic 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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasPendingChange in interface LineItemOrBuilderpublic 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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPendingChange in interface LineItemOrBuilderpublic 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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPendingChangeOrBuilder in interface LineItemOrBuilderpublic 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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChangeHistoryList in interface LineItemOrBuilderpublic 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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChangeHistoryOrBuilderList in interface LineItemOrBuilderpublic 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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChangeHistoryCount in interface LineItemOrBuilderpublic 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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChangeHistory in interface LineItemOrBuilderpublic 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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChangeHistoryOrBuilder in interface LineItemOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LineItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LineItem parseFrom(InputStream input) throws IOException
IOExceptionpublic static LineItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LineItem parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LineItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LineItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LineItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LineItem.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LineItem.Builder newBuilder()
public static LineItem.Builder newBuilder(LineItem prototype)
public LineItem.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LineItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LineItem getDefaultInstance()
public static com.google.protobuf.Parser<LineItem> parser()
public com.google.protobuf.Parser<LineItem> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LineItem getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.