- 0.53.0 (latest)
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.5
public static final class LineItem.Builder extends GeneratedMessageV3.Builder<LineItem.Builder> implements LineItemOrBuilder
A single item within an order.
Protobuf type google.cloud.commerce.consumer.procurement.v1.LineItem
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LineItem.BuilderImplements
LineItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllChangeHistory(Iterable<? extends LineItemChange> values)
public LineItem.Builder addAllChangeHistory(Iterable<? extends LineItemChange> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChange> |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
addChangeHistory(LineItemChange value)
public LineItem.Builder addChangeHistory(LineItemChange value)
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];
Parameter | |
---|---|
Name | Description |
value | LineItemChange |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
addChangeHistory(LineItemChange.Builder builderForValue)
public LineItem.Builder addChangeHistory(LineItemChange.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue | LineItemChange.Builder |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
addChangeHistory(int index, LineItemChange value)
public LineItem.Builder addChangeHistory(int index, LineItemChange value)
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];
Parameters | |
---|---|
Name | Description |
index | int |
value | LineItemChange |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
addChangeHistory(int index, LineItemChange.Builder builderForValue)
public LineItem.Builder addChangeHistory(int index, LineItemChange.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | LineItemChange.Builder |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
addChangeHistoryBuilder()
public LineItemChange.Builder addChangeHistoryBuilder()
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];
Returns | |
---|---|
Type | Description |
LineItemChange.Builder |
addChangeHistoryBuilder(int index)
public LineItemChange.Builder addChangeHistoryBuilder(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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
LineItemChange.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LineItem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
build()
public LineItem build()
Returns | |
---|---|
Type | Description |
LineItem |
buildPartial()
public LineItem buildPartial()
Returns | |
---|---|
Type | Description |
LineItem |
clear()
public LineItem.Builder clear()
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clearChangeHistory()
public LineItem.Builder clearChangeHistory()
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];
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clearField(Descriptors.FieldDescriptor field)
public LineItem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clearLineItemId()
public LineItem.Builder clearLineItemId()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineItem.Builder | This builder for chaining. |
clearLineItemInfo()
public LineItem.Builder clearLineItemInfo()
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];
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public LineItem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clearPendingChange()
public LineItem.Builder clearPendingChange()
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];
Returns | |
---|---|
Type | Description |
LineItem.Builder |
clone()
public LineItem.Builder clone()
Returns | |
---|---|
Type | Description |
LineItem.Builder |
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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
LineItemChange |
getChangeHistoryBuilder(int index)
public LineItemChange.Builder getChangeHistoryBuilder(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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
LineItemChange.Builder |
getChangeHistoryBuilderList()
public List<LineItemChange.Builder> getChangeHistoryBuilderList()
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];
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1.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.v1.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.v1.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.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> |
getDefaultInstanceForType()
public LineItem getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
LineItem |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineItemInfo | The lineItemInfo. |
getLineItemInfoBuilder()
public LineItemInfo.Builder getLineItemInfoBuilder()
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];
Returns | |
---|---|
Type | Description |
LineItemInfo.Builder |
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.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineItemInfoOrBuilder |
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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineItemChange | The pendingChange. |
getPendingChangeBuilder()
public LineItemChange.Builder getPendingChangeBuilder()
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];
Returns | |
---|---|
Type | Description |
LineItemChange.Builder |
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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineItemChangeOrBuilder |
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.v1.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.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the pendingChange field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(LineItem other)
public LineItem.Builder mergeFrom(LineItem other)
Parameter | |
---|---|
Name | Description |
other | LineItem |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LineItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public LineItem.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
mergeLineItemInfo(LineItemInfo value)
public LineItem.Builder mergeLineItemInfo(LineItemInfo value)
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];
Parameter | |
---|---|
Name | Description |
value | LineItemInfo |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
mergePendingChange(LineItemChange value)
public LineItem.Builder mergePendingChange(LineItemChange value)
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];
Parameter | |
---|---|
Name | Description |
value | LineItemChange |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LineItem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
removeChangeHistory(int index)
public LineItem.Builder removeChangeHistory(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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setChangeHistory(int index, LineItemChange value)
public LineItem.Builder setChangeHistory(int index, LineItemChange value)
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];
Parameters | |
---|---|
Name | Description |
index | int |
value | LineItemChange |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setChangeHistory(int index, LineItemChange.Builder builderForValue)
public LineItem.Builder setChangeHistory(int index, LineItemChange.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | LineItemChange.Builder |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LineItem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setLineItemId(String value)
public LineItem.Builder setLineItemId(String value)
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The lineItemId to set. |
Returns | |
---|---|
Type | Description |
LineItem.Builder | This builder for chaining. |
setLineItemIdBytes(ByteString value)
public LineItem.Builder setLineItemIdBytes(ByteString value)
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for lineItemId to set. |
Returns | |
---|---|
Type | Description |
LineItem.Builder | This builder for chaining. |
setLineItemInfo(LineItemInfo value)
public LineItem.Builder setLineItemInfo(LineItemInfo value)
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];
Parameter | |
---|---|
Name | Description |
value | LineItemInfo |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setLineItemInfo(LineItemInfo.Builder builderForValue)
public LineItem.Builder setLineItemInfo(LineItemInfo.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue | LineItemInfo.Builder |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setPendingChange(LineItemChange value)
public LineItem.Builder setPendingChange(LineItemChange value)
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];
Parameter | |
---|---|
Name | Description |
value | LineItemChange |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setPendingChange(LineItemChange.Builder builderForValue)
public LineItem.Builder setPendingChange(LineItemChange.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue | LineItemChange.Builder |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LineItem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
LineItem.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LineItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LineItem.Builder |