# Google Cloud Workload Manager V1 Client - Class GceInstanceFilter (0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class GceInstanceFilter.

A filter for matching Compute Engine instances.

Generated from protobuf message `google.cloud.workloadmanager.v1.GceInstanceFilter`

## Namespace

Google \\ Cloud \\ WorkloadManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_accounts` | `string[]` If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation. |

### getServiceAccounts

If non-empty, only Compute Engine instances associated with at least one of
the provided service accounts will be included in the evaluation.

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

### setServiceAccounts

If non-empty, only Compute Engine instances associated with at least one of
the provided service accounts will be included in the evaluation.

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

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