# Recommender V1 Client - Class OperationGroup (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 OperationGroup.

Group of operations that need to be performed atomically.

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

## Namespace

Google \\ Cloud \\ Recommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operations` | `array<Operation>` List of operations across one or more resources that belong to this group. Loosely based on RFC6902 and should be performed in the order they appear. |

### getOperations

List of operations across one or more resources that belong to this group.

Loosely based on RFC6902 and should be performed in the order they appear.

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

### setOperations

List of operations across one or more resources that belong to this group.

Loosely based on RFC6902 and should be performed in the order they appear.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Operation>` |

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