# Google Shopping Merchant Accounts V1beta Client - Class Requirement (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!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 Accounts V1beta Client class Requirement.

Defines a requirement specified for participation in the program.

Generated from protobuf message `google.shopping.merchant.accounts.v1beta.Program.Requirement`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta \\ Program

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ title` | `string` Output only. Name of the requirement. |
| `↳ documentation_uri` | `string` Output only. The URL of a help page describing the requirement. |
| `↳ affected_region_codes` | `string[]` Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally. |

### getTitle

Output only. Name of the requirement.

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

### setTitle

Output only. Name of the requirement.

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

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

### getDocumentationUri

Output only. The URL of a help page describing the requirement.

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

### setDocumentationUri

Output only. The URL of a help page describing the requirement.

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

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

### getAffectedRegionCodes

Output only. The regions that are currently affected by this requirement
not being met.

Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
either a country where the program applies specifically to that country
or `001` when the program applies globally.

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

### setAffectedRegionCodes

Output only. The regions that are currently affected by this requirement
not being met.

Region codes are defined by [CLDR](https://cldr.unicode.org/). This is
either a country where the program applies specifically to that country
or `001` when the program applies globally.

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

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