# Recommender V1 Client - Class RecommendationContent (2.2.0)

2.2.0 (latest) 2.1.3 2.0.5 1.11.5 1.10.0 1.9.1 1.8.2 1.7.8 Reference documentation and code samples for the Recommender V1 Client class RecommendationContent.

Contains what resources are changing and how they are changing.

Generated from protobuf message `google.cloud.recommender.v1.RecommendationContent`

## Namespace

Google \\ Cloud \\ Recommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operation_groups` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recommender/latest/V1.OperationGroup>` Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order. |
| `↳ overview` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Condensed overview information about the recommendation. |

### getOperationGroups

Operations to one or more Google Cloud resources grouped in such a way
that, all operations within one group are expected to be performed
atomically and in an order.

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

### setOperationGroups

Operations to one or more Google Cloud resources grouped in such a way
that, all operations within one group are expected to be performed
atomically and in an order.

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

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

### getOverview

Condensed overview information about the recommendation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasOverview

### clearOverview

### setOverview

Condensed overview information about the recommendation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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