# Eventarc v1 API - Class GoogleApiSource.Types.ProjectSubscriptions (2.9.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.9.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.8.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.7.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.6.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.5.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.4.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.3.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.2.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.1.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.0.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.3.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.2.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.1.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.0.0/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions)

    public sealed class GoogleApiSource.Types.ProjectSubscriptions : IMessage<GoogleApiSource.Types.ProjectSubscriptions>, IEquatable<GoogleApiSource.Types.ProjectSubscriptions>, IDeepCloneable<GoogleApiSource.Types.ProjectSubscriptions>, IBufferMessage, IMessage

Reference documentation and code samples for the Eventarc v1 API class GoogleApiSource.Types.ProjectSubscriptions.

Config to enable subscribing to all events from a list of projects.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GoogleApiSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types)[ProjectSubscriptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GoogleApiSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types)[ProjectSubscriptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GoogleApiSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types)[ProjectSubscriptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions), [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.Eventarc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1)

## Assembly

Google.Cloud.Eventarc.V1.dll

## Constructors

### ProjectSubscriptions()

    public ProjectSubscriptions()

### ProjectSubscriptions(ProjectSubscriptions)

    public ProjectSubscriptions(GoogleApiSource.Types.ProjectSubscriptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSourcehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.Types.ProjectSubscriptions` |

## Properties

### List

    public RepeatedField<string> List { get; }

Required. A list of projects to receive events from.

All the projects must be in the same org. The listed projects should have
the format project/{identifier} where identifier can be either the
project id for project number. A single list may contain both formats. At
most 100 projects can be listed.

| **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` |   |