# Google Cloud Commerce Consumer Procurement V1 Client - Class LineItemInfo (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class LineItemInfo.

Line item information.

Generated from protobuf message `google.cloud.commerce.consumer.procurement.v1.LineItemInfo`

## Namespace

Google \\ Cloud \\ Commerce \\ Consumer \\ Procurement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ offer` | `string` Optional. The name of the offer can have either of these formats: 'billingAccounts/{billing_account}/offers/{offer}', or 'services/{service}/standardOffers/{offer}'. |
| `↳ parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Parameter>` Optional. User-provided parameters. |
| `↳ subscription` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Subscription` Output only. Information about the subscription created, if applicable. |

### getOffer

Optional. The name of the offer can have either of these formats:
'billingAccounts/{billing_account}/offers/{offer}',
or 'services/{service}/standardOffers/{offer}'.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setOffer

Optional. The name of the offer can have either of these formats:
'billingAccounts/{billing_account}/offers/{offer}',
or 'services/{service}/standardOffers/{offer}'.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParameters

Optional. User-provided parameters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Parameter>` |   |

### setParameters

Optional. User-provided parameters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Parameter>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSubscription

Output only. Information about the subscription created, if applicable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Subscription|null` |   |

### hasSubscription

### clearSubscription

### setSubscription

Output only. Information about the subscription created, if applicable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Subscription` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |