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.
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.
getLineItemId
Output only. Line item ID.
Returns
Type
Description
string
setLineItemId
Output only. Line item ID.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLineItemInfo
Output only. Current state and information of this item. It tells what,
e.g. which offer, is currently effective.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Commerce Consumer Procurement V1 Client - Class LineItem (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.LineItem)\n- [1.2.1](/php/docs/reference/cloud-commerce-consumer-procurement/1.2.1/V1.LineItem)\n- [1.1.3](/php/docs/reference/cloud-commerce-consumer-procurement/1.1.3/V1.LineItem)\n- [1.0.0](/php/docs/reference/cloud-commerce-consumer-procurement/1.0.0/V1.LineItem)\n- [0.2.5](/php/docs/reference/cloud-commerce-consumer-procurement/0.2.5/V1.LineItem)\n- [0.1.1](/php/docs/reference/cloud-commerce-consumer-procurement/0.1.1/V1.LineItem) \nReference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class LineItem.\n\nA single item within an order.\n\nGenerated from protobuf message `google.cloud.commerce.consumer.procurement.v1.LineItem`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Commerce \\\\ Consumer \\\\ Procurement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLineItemId\n\nOutput only. Line item ID.\n\n### setLineItemId\n\nOutput only. Line item ID.\n\n### getLineItemInfo\n\nOutput only. Current state and information of this item. It tells what,\ne.g. which offer, is currently effective.\n\n### hasLineItemInfo\n\n### clearLineItemInfo\n\n### setLineItemInfo\n\nOutput only. Current state and information of this item. It tells what,\ne.g. which offer, is currently effective.\n\n### getPendingChange\n\nOutput only. A change made on the item which is pending and not yet\neffective. Absence of this field indicates the line item is not undergoing\na change.\n\n### hasPendingChange\n\n### clearPendingChange\n\n### setPendingChange\n\nOutput only. A change made on the item which is pending and not yet\neffective. Absence of this field indicates the line item is not undergoing\na change.\n\n### getChangeHistory\n\nOutput only. Changes made on the item that are not pending anymore which\nmight be because they already took effect, were reverted by the customer,\nor were rejected by the partner. No more operations are allowed on these\nchanges.\n\n### setChangeHistory\n\nOutput only. Changes made on the item that are not pending anymore which\nmight be because they already took effect, were reverted by the customer,\nor were rejected by the partner. No more operations are allowed on these\nchanges."]]