The Cloud Function resource name. Only Cloud Functions V2 is supported.
Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V2 triggers is only
supported via the Cloud Functions product. An error will be returned if
the user sets this value.
The Cloud Function resource name. Only Cloud Functions V2 is supported.
Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V2 triggers is only
supported via the Cloud Functions product. An error will be returned if
the user sets this value.
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}
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}
The Cloud Function resource name. Only Cloud Functions V2 is supported.
Format: projects/{project}/locations/{location}/functions/{function}
This is a read-only field. Creating Cloud Functions V2 triggers is only
supported via the Cloud Functions product. An error will be returned if
the user sets this value.
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}
[[["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-08-07 UTC."],[],[],null,["# Interface DestinationOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.eventarc.v1.DestinationOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.eventarc.v1.DestinationOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.eventarc.v1.DestinationOrBuilder) \n\n public interface DestinationOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCloudFunction()\n\n public abstract String getCloudFunction()\n\nThe Cloud Function resource name. Only Cloud Functions V2 is supported.\nFormat: `projects/{project}/locations/{location}/functions/{function}`\nThis is a read-only field. Creating Cloud Functions V2 triggers is only\nsupported via the Cloud Functions product. An error will be returned if\nthe user sets this value.\n\n`string cloud_function = 2;`\n\n### getCloudFunctionBytes()\n\n public abstract ByteString getCloudFunctionBytes()\n\nThe Cloud Function resource name. Only Cloud Functions V2 is supported.\nFormat: `projects/{project}/locations/{location}/functions/{function}`\nThis is a read-only field. Creating Cloud Functions V2 triggers is only\nsupported via the Cloud Functions product. An error will be returned if\nthe user sets this value.\n\n`string cloud_function = 2;`\n\n### getCloudRun()\n\n public abstract CloudRun getCloudRun()\n\nCloud Run fully-managed resource that receives the events. The resource\nshould be in the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.CloudRun cloud_run = 1;`\n\n### getCloudRunOrBuilder()\n\n public abstract CloudRunOrBuilder getCloudRunOrBuilder()\n\nCloud Run fully-managed resource that receives the events. The resource\nshould be in the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.CloudRun cloud_run = 1;`\n\n### getDescriptorCase()\n\n public abstract Destination.DescriptorCase getDescriptorCase()\n\n### getGke()\n\n public abstract GKE getGke()\n\nA GKE service capable of receiving events. The service should be running\nin the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.GKE gke = 3;`\n\n### getGkeOrBuilder()\n\n public abstract GKEOrBuilder getGkeOrBuilder()\n\nA GKE service capable of receiving events. The service should be running\nin the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.GKE gke = 3;`\n\n### getWorkflow()\n\n public abstract String 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.\nFormat: `projects/{project}/locations/{location}/workflows/{workflow}`\n\n`string workflow = 4;`\n\n### getWorkflowBytes()\n\n public abstract ByteString getWorkflowBytes()\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.\nFormat: `projects/{project}/locations/{location}/workflows/{workflow}`\n\n`string workflow = 4;`\n\n### hasCloudFunction()\n\n public abstract boolean hasCloudFunction()\n\nThe Cloud Function resource name. Only Cloud Functions V2 is supported.\nFormat: `projects/{project}/locations/{location}/functions/{function}`\nThis is a read-only field. Creating Cloud Functions V2 triggers is only\nsupported via the Cloud Functions product. An error will be returned if\nthe user sets this value.\n\n`string cloud_function = 2;`\n\n### hasCloudRun()\n\n public abstract boolean hasCloudRun()\n\nCloud Run fully-managed resource that receives the events. The resource\nshould be in the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.CloudRun cloud_run = 1;`\n\n### hasGke()\n\n public abstract boolean hasGke()\n\nA GKE service capable of receiving events. The service should be running\nin the same project as the trigger.\n\n`.google.events.cloud.eventarc.v1.GKE gke = 3;`\n\n### hasWorkflow()\n\n public abstract boolean hasWorkflow()\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.\nFormat: `projects/{project}/locations/{location}/workflows/{workflow}`\n\n`string workflow = 4;`"]]