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 CloudRun : IMessage<CloudRun>, IEquatable<CloudRun>, IDeepCloneable<CloudRun>, IBufferMessage, IMessage

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

Represents a Cloud Run destination.

## Inheritance

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

## Implements

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

### CloudRun()

    public CloudRun()

### CloudRun(CloudRun)

    public CloudRun(CloudRun other)

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

## Properties

### Path

    public string Path { get; set; }

Optional. The relative path on the Cloud Run service the events should be
sent to.

The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".

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

### Region

    public string Region { get; set; }

Required. The region the Cloud Run service is deployed in.

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

### Service

    public string Service { get; set; }

Required. The name of the Cloud Run service being addressed. See
<https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services>.

Only services located in the same project as the trigger object
can be addressed.

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

### ServiceAsResourceName

    public IResourceName ServiceAsResourceName { get; set; }

[IResourceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.md.txt)-typed view over the [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.CloudRun.md.txt#Google_Cloud_Eventarc_V1_CloudRun_Service) resource name property.

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