# Google Shopping Merchant Products V1beta Client - Class ItemLevelIssue (1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class ItemLevelIssue.

The ItemLevelIssue of the product status.

Generated from protobuf message `google.shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue`

## Namespace

Google \\ Shopping \\ Merchant \\ Products \\ V1beta \\ ProductStatus

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` The error code of the issue. |
| `↳ severity` | `int` How this issue affects serving of the offer. |
| `↳ resolution` | `string` Whether the issue can be resolved by the business. |
| `↳ attribute` | `string` The attribute's name, if the issue is caused by a single attribute. |
| `↳ reporting_context` | `int` The reporting context the issue applies to. |
| `↳ description` | `string` A short issue description in English. |
| `↳ detail` | `string` A detailed issue description in English. |
| `↳ documentation` | `string` The URL of a web page to help with resolving this issue. |
| `↳ applicable_countries` | `string[]` List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer. |

### getCode

The error code of the issue.

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

### setCode

The error code of the issue.

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

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

### getSeverity

How this issue affects serving of the offer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-products/latest/V1beta.ProductStatus.ItemLevelIssue.Severity). |

### setSeverity

How this issue affects serving of the offer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-products/latest/V1beta.ProductStatus.ItemLevelIssue.Severity). |

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

### getResolution

Whether the issue can be resolved by the business.

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

### setResolution

Whether the issue can be resolved by the business.

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

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

### getAttribute

The attribute's name, if the issue is caused by a single attribute.

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

### setAttribute

The attribute's name, if the issue is caused by a single attribute.

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

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

### getReportingContext

The reporting context the issue applies to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ReportingContextEnum](https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.ReportingContext.ReportingContextEnum.html). |

### setReportingContext

The reporting context the issue applies to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ReportingContextEnum](https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.ReportingContext.ReportingContextEnum.html). |

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

### getDescription

A short issue description in English.

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

### setDescription

A short issue description in English.

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

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

### getDetail

A detailed issue description in English.

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

### setDetail

A detailed issue description in English.

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

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

### getDocumentation

The URL of a web page to help with resolving this issue.

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

### setDocumentation

The URL of a web page to help with resolving this issue.

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

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

### getApplicableCountries

List of country codes (ISO 3166-1 alpha-2) where issue applies to the
offer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApplicableCountries

List of country codes (ISO 3166-1 alpha-2) where issue applies to the
offer.

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

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