Class LineItem.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
- com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder
-
- All Implemented Interfaces:
LineItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LineItem
public static final class LineItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder> implements LineItemOrBuilder
A single item within an order.
Protobuf typegoogle.cloud.commerce.consumer.procurement.v1alpha1.LineItem
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
clear
public LineItem.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
getDefaultInstanceForType
public LineItem getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LineItem build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LineItem buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LineItem.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
setField
public LineItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
clearField
public LineItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
clearOneof
public LineItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
setRepeatedField
public LineItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
addRepeatedField
public LineItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
mergeFrom
public LineItem.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LineItem.Builder>
-
mergeFrom
public LineItem.Builder mergeFrom(LineItem other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
mergeFrom
public LineItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LineItem.Builder>- Throws:
IOException
-
getLineItemId
public String getLineItemId()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLineItemIdin interfaceLineItemOrBuilder- Returns:
- The lineItemId.
-
getLineItemIdBytes
public com.google.protobuf.ByteString getLineItemIdBytes()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLineItemIdBytesin interfaceLineItemOrBuilder- Returns:
- The bytes for lineItemId.
-
setLineItemId
public LineItem.Builder setLineItemId(String value)
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The lineItemId to set.- Returns:
- This builder for chaining.
-
clearLineItemId
public LineItem.Builder clearLineItemId()
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLineItemIdBytes
public LineItem.Builder setLineItemIdBytes(com.google.protobuf.ByteString value)
Output only. Line item ID.
string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for lineItemId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasLineItemInfoin interfaceLineItemOrBuilder- Returns:
- Whether the lineItemInfo field is set.
-
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];- Specified by:
getLineItemInfoin interfaceLineItemOrBuilder- Returns:
- The lineItemInfo.
-
setLineItemInfo
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];
-
setLineItemInfo
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];
-
mergeLineItemInfo
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];
-
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];
-
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];
-
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];- Specified by:
getLineItemInfoOrBuilderin interfaceLineItemOrBuilder
-
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];- Specified by:
hasPendingChangein interfaceLineItemOrBuilder- Returns:
- Whether the pendingChange field is set.
-
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];- Specified by:
getPendingChangein interfaceLineItemOrBuilder- Returns:
- The pendingChange.
-
setPendingChange
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];
-
setPendingChange
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];
-
mergePendingChange
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];
-
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];
-
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];
-
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];- Specified by:
getPendingChangeOrBuilderin interfaceLineItemOrBuilder
-
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];- Specified by:
getChangeHistoryListin interfaceLineItemOrBuilder
-
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];- Specified by:
getChangeHistoryCountin interfaceLineItemOrBuilder
-
getChangeHistory
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];- Specified by:
getChangeHistoryin interfaceLineItemOrBuilder
-
setChangeHistory
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];
-
setChangeHistory
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];
-
addChangeHistory
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];
-
addChangeHistory
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];
-
addChangeHistory
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];
-
addChangeHistory
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];
-
addAllChangeHistory
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];
-
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];
-
removeChangeHistory
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];
-
getChangeHistoryBuilder
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];
-
getChangeHistoryOrBuilder
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];- Specified by:
getChangeHistoryOrBuilderin interfaceLineItemOrBuilder
-
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];- Specified by:
getChangeHistoryOrBuilderListin interfaceLineItemOrBuilder
-
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];
-
addChangeHistoryBuilder
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];
-
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];
-
setUnknownFields
public final LineItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
mergeUnknownFields
public final LineItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LineItem.Builder>
-
-