# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Destination (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Destination.

Represents a target of an invocation over HTTP.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_function

    def cloud_function() -> ::String

**Returns**

- (::String) --- The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: `projects/{project}/locations/{location}/functions/{function}`


  This is a read-only field. Creating Cloud Functions V1/V2 triggers is
  only supported via the Cloud Functions product. An error will be returned
  if the user sets this value.

  Note: The following fields are mutually exclusive: `cloud_function`, `cloud_run`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_function=

    def cloud_function=(value) -> ::String

**Parameter**

- **value** (::String) --- The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: `projects/{project}/locations/{location}/functions/{function}`


  This is a read-only field. Creating Cloud Functions V1/V2 triggers is
  only supported via the Cloud Functions product. An error will be returned
  if the user sets this value.

  Note: The following fields are mutually exclusive: `cloud_function`, `cloud_run`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: `projects/{project}/locations/{location}/functions/{function}`


  This is a read-only field. Creating Cloud Functions V1/V2 triggers is
  only supported via the Cloud Functions product. An error will be returned
  if the user sets this value.

  Note: The following fields are mutually exclusive: `cloud_function`, `cloud_run`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_run

    def cloud_run() -> ::Google::Cloud::Eventarc::V1::CloudRun

**Returns**

- ([::Google::Cloud::Eventarc::V1::CloudRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-CloudRun)) --- Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.


  Note: The following fields are mutually exclusive: `cloud_run`, `cloud_function`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_run=

    def cloud_run=(value) -> ::Google::Cloud::Eventarc::V1::CloudRun

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::CloudRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-CloudRun)) --- Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.


  Note: The following fields are mutually exclusive: `cloud_run`, `cloud_function`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::CloudRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-CloudRun)) --- Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.


  Note: The following fields are mutually exclusive: `cloud_run`, `cloud_function`, `gke`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gke

    def gke() -> ::Google::Cloud::Eventarc::V1::GKE

**Returns**

- ([::Google::Cloud::Eventarc::V1::GKE](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-GKE)) --- A GKE service capable of receiving events. The service should be running in the same project as the trigger.


  Note: The following fields are mutually exclusive: `gke`, `cloud_run`, `cloud_function`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gke=

    def gke=(value) -> ::Google::Cloud::Eventarc::V1::GKE

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::GKE](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-GKE)) --- A GKE service capable of receiving events. The service should be running in the same project as the trigger.


  Note: The following fields are mutually exclusive: `gke`, `cloud_run`, `cloud_function`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::GKE](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-GKE)) --- A GKE service capable of receiving events. The service should be running in the same project as the trigger.


  Note: The following fields are mutually exclusive: `gke`, `cloud_run`, `cloud_function`, `workflow`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #http_endpoint

    def http_endpoint() -> ::Google::Cloud::Eventarc::V1::HttpEndpoint

**Returns**

- ([::Google::Cloud::Eventarc::V1::HttpEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-HttpEndpoint)) --- An HTTP endpoint destination described by an URI.


  Note: The following fields are mutually exclusive: `http_endpoint`, `cloud_run`, `cloud_function`, `gke`, `workflow`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #http_endpoint=

    def http_endpoint=(value) -> ::Google::Cloud::Eventarc::V1::HttpEndpoint

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::HttpEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-HttpEndpoint)) --- An HTTP endpoint destination described by an URI.


  Note: The following fields are mutually exclusive: `http_endpoint`, `cloud_run`, `cloud_function`, `gke`, `workflow`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::HttpEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-HttpEndpoint)) --- An HTTP endpoint destination described by an URI.


  Note: The following fields are mutually exclusive: `http_endpoint`, `cloud_run`, `cloud_function`, `gke`, `workflow`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #network_config

    def network_config() -> ::Google::Cloud::Eventarc::V1::NetworkConfig

**Returns**

- ([::Google::Cloud::Eventarc::V1::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-NetworkConfig)) --- Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

### #network_config=

    def network_config=(value) -> ::Google::Cloud::Eventarc::V1::NetworkConfig

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-NetworkConfig)) --- Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.
**Returns**

- ([::Google::Cloud::Eventarc::V1::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-NetworkConfig)) --- Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.

### #workflow

    def workflow() -> ::String

**Returns**

- (::String) --- The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`


  Note: The following fields are mutually exclusive: `workflow`, `cloud_run`, `cloud_function`, `gke`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #workflow=

    def workflow=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`


  Note: The following fields are mutually exclusive: `workflow`, `cloud_run`, `cloud_function`, `gke`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`


  Note: The following fields are mutually exclusive: `workflow`, `cloud_run`, `cloud_function`, `gke`, `http_endpoint`. If a field in that set is populated, all other fields in the set will automatically be cleared.