Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.
↳ cloud_function
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.
A GKE service capable of receiving events. The service should be running in the same project as the trigger.
↳ workflow
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}
Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.
getCloudRun
Cloud Run fully-managed resource that receives the events. The resource
should be in the same project as the trigger.
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.
Returns
Type
Description
string
hasCloudFunction
setCloudFunction
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGke
A GKE service capable of receiving events. The service should be running
in the same project as the trigger.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Eventarc V1 Client - Class Destination (2.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.5 (latest)](/php/docs/reference/cloud-eventarc/latest/V1.Destination)\n- [2.1.4](/php/docs/reference/cloud-eventarc/2.1.4/V1.Destination)\n- [2.0.1](/php/docs/reference/cloud-eventarc/2.0.1/V1.Destination)\n- [1.3.5](/php/docs/reference/cloud-eventarc/1.3.5/V1.Destination)\n- [1.2.2](/php/docs/reference/cloud-eventarc/1.2.2/V1.Destination)\n- [1.1.1](/php/docs/reference/cloud-eventarc/1.1.1/V1.Destination)\n- [1.0.5](/php/docs/reference/cloud-eventarc/1.0.5/V1.Destination) \nReference documentation and code samples for the Google Cloud Eventarc V1 Client class Destination.\n\nRepresents a target of an invocation over HTTP.\n\nGenerated from protobuf message `google.cloud.eventarc.v1.Destination`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Eventarc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCloudRun\n\nCloud Run fully-managed resource that receives the events. The resource\nshould be in the same project as the trigger.\n\n### hasCloudRun\n\n### setCloudRun\n\nCloud Run fully-managed resource that receives the events. The resource\nshould be in the same project as the trigger.\n\n### getCloudFunction\n\nThe Cloud Function resource name. Cloud Functions V1 and V2 are\nsupported.\n\nFormat: `projects/{project}/locations/{location}/functions/{function}`\nThis is a read-only field. Creating Cloud Functions V1/V2 triggers is\nonly supported via the Cloud Functions product. An error will be returned\nif the user sets this value.\n\n### hasCloudFunction\n\n### setCloudFunction\n\nThe Cloud Function resource name. Cloud Functions V1 and V2 are\nsupported.\n\nFormat: `projects/{project}/locations/{location}/functions/{function}`\nThis is a read-only field. Creating Cloud Functions V1/V2 triggers is\nonly supported via the Cloud Functions product. An error will be returned\nif the user sets this value.\n\n### getGke\n\nA GKE service capable of receiving events. The service should be running\nin the same project as the trigger.\n\n### hasGke\n\n### setGke\n\nA GKE service capable of receiving events. The service should be running\nin the same project as the trigger.\n\n### getWorkflow\n\nThe resource name of the Workflow whose Executions are triggered by\nthe events. The Workflow resource should be deployed in the same project\nas the trigger.\n\nFormat: `projects/{project}/locations/{location}/workflows/{workflow}`\n\n### hasWorkflow\n\n### setWorkflow\n\nThe resource name of the Workflow whose Executions are triggered by\nthe events. The Workflow resource should be deployed in the same project\nas the trigger.\n\nFormat: `projects/{project}/locations/{location}/workflows/{workflow}`\n\n### getHttpEndpoint\n\nAn HTTP endpoint destination described by an URI.\n\n### hasHttpEndpoint\n\n### setHttpEndpoint\n\nAn HTTP endpoint destination described by an URI.\n\n### getNetworkConfig\n\nOptional. Network config is used to configure how Eventarc resolves and\nconnect to a destination.\n\nThis should only be used with HttpEndpoint destination type.\n\n### hasNetworkConfig\n\n### clearNetworkConfig\n\n### setNetworkConfig\n\nOptional. Network config is used to configure how Eventarc resolves and\nconnect to a destination.\n\nThis should only be used with HttpEndpoint destination type.\n\n### getDescriptor"]]