2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

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

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

A GoogleApiSource represents a subscription of 1P events from a MessageBus.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GoogleApiSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.md.txt), [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.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GoogleApiSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.md.txt)

## Assembly

Google.Cloud.Eventarc.V1.dll

## Constructors

### GoogleApiSource()

    public GoogleApiSource()

### GoogleApiSource(GoogleApiSource)

    public GoogleApiSource(GoogleApiSource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GoogleApiSource` |

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Resource annotations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The creation time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### CryptoKeyName

    public string CryptoKeyName { get; set; }

Optional. Resource name of a KMS crypto key (managed by the user) used to
encrypt/decrypt their event data.

It must match the pattern
`projects/*/locations/*/keyRings/*/cryptoKeys/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CryptoKeyNameAsCryptoKeyName

    public CryptoKeyName CryptoKeyNameAsCryptoKeyName { get; set; }

[CryptoKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.CryptoKeyName.md.txt)-typed view over the [CryptoKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.md.txt#Google_Cloud_Eventarc_V1_GoogleApiSource_CryptoKeyName) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CryptoKeyName` |   |

### Destination

    public string Destination { get; set; }

Required. Destination is the message bus that the GoogleApiSource is
delivering to. It must be point to the full resource name of a MessageBus.
Format:
"projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DestinationAsMessageBusName

    public MessageBusName DestinationAsMessageBusName { get; set; }

[MessageBusName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.MessageBusName.md.txt)-typed view over the [Destination](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.md.txt#Google_Cloud_Eventarc_V1_GoogleApiSource_Destination) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageBusName` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. Resource display name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Etag

    public string Etag { get; set; }

Output only. This checksum is computed by the server based on the value of
other fields, and might be sent only on update and delete requests to
ensure that the client has an up-to-date value before proceeding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GoogleApiSourceName

    public GoogleApiSourceName GoogleApiSourceName { get; set; }

[GoogleApiSourceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSourceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.GoogleApiSource.md.txt#Google_Cloud_Eventarc_V1_GoogleApiSource_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GoogleApiSourceName` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Resource labels.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### LoggingConfig

    public LoggingConfig LoggingConfig { get; set; }

Optional. Config to control Platform logging for the GoogleApiSource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LoggingConfig` |   |

### Name

    public string Name { get; set; }

Identifier. Resource name of the form
projects/{project}/locations/{location}/googleApiSources/{google_api_source}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### OrganizationSubscription

    public GoogleApiSource.Types.OrganizationSubscription OrganizationSubscription { get; set; }

Optional. Config to enable subscribing to events from all projects in the
GoogleApiSource's org.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GoogleApiSourceTypesOrganizationSubscription` |   |

### ProjectSubscriptions

    public GoogleApiSource.Types.ProjectSubscriptions ProjectSubscriptions { get; set; }

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

All the projects must be in the same org as the GoogleApiSource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GoogleApiSourceTypesProjectSubscriptions` |   |

### Uid

    public string Uid { get; set; }

Output only. Server assigned unique identifier for the channel. The value
is a UUID4 string and guaranteed to remain unchanged until the resource is
deleted.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last-modified time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### WideScopeSubscriptionCase

    public GoogleApiSource.WideScopeSubscriptionOneofCase WideScopeSubscriptionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GoogleApiSourceWideScopeSubscriptionOneofCase` |   |