# Workload Manager v1 API - Class GceInstanceFilter (1.0.0-beta01)

    public sealed class GceInstanceFilter : IMessage<GceInstanceFilter>, IEquatable<GceInstanceFilter>, IDeepCloneable<GceInstanceFilter>, IBufferMessage, IMessage

Reference documentation and code samples for the Workload Manager v1 API class GceInstanceFilter.

A filter for matching Compute Engine instances.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GceInstanceFilter

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GceInstanceFilter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.GceInstanceFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GceInstanceFilter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.GceInstanceFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GceInstanceFilter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.GceInstanceFilter), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.WorkloadManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1)

## Assembly

Google.Cloud.WorkloadManager.V1.dll

## Constructors

### GceInstanceFilter()

    public GceInstanceFilter()

### GceInstanceFilter(GceInstanceFilter)

    public GceInstanceFilter(GceInstanceFilter other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadManager.V1/latest/Google.Cloud.WorkloadManager.V1.GceInstanceFilter` |

## Properties

### ServiceAccounts

    public RepeatedField<string> ServiceAccounts { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |