Class LineItem.Builder (0.52.0)

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.v1alpha1.LineItem

Implements

LineItemOrBuilder

Static 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.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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
Overrides

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
Overrides

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.v1alpha1.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
Overrides

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.v1alpha1.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
Overrides

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.v1alpha1.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
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

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.v1alpha1.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.v1alpha1.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.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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LineItem.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LineItem.Builder
Overrides

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.v1alpha1.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.v1alpha1.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
Overrides

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.v1alpha1.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.v1alpha1.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.v1alpha1.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
Overrides

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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LineItem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LineItem.Builder
Overrides