<
819A
script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"path":"eventarc","repo":{"id":525499214,"defaultBranch":"main","name":"java-docs-samples","ownerLogin":"MattyDroidX","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2022-08-16T18:30:56.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/8286719?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"update_pom","listCacheKey":"v0:1660799545.266405","canEdit":false,"refType":"branch","currentOid":"df2451c5dd37b78932be4fb17ae8e450bbda8207"},"tree":{"items":[{"name":"audit-storage","path":"eventarc/audit-storage","contentType":"directory"},{"name":"generic","path":"eventarc/generic","contentType":"directory"},{"name":"pubsub","path":"eventarc/pubsub","contentType":"directory"},{"name":"README.md","path":"eventarc/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCloud Eventarc Java Samples\u003c/h1\u003e\u003ca id=\"user-content-cloud-eventarc-java-samples\" class=\"anchor\" aria-label=\"Permalink: Cloud Eventarc Java Samples\" href=\"#cloud-eventarc-java-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026amp;page=editor\u0026amp;open_in_editor=blog/README.md\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/cf29981159f3fb8f7d5c5ce0a4a4ab3d2a8e500b782d2016717c3e4aa6124bc5/687474703a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e706e67\" alt=\"Open in Cloud Shell\" data-canonical-src=\"http://gstatic.com/cloudssh/images/open-btn.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThis directory contains samples for Cloud Eventarc.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSamples\u003c/h2\u003e\u003ca id=\"user-content-samples\" class=\"anchor\" aria-label=\"Permalink: Samples\" href=\"#samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eSample\u003c/th\u003e\n\u003cth\u003eDescription\u003c/th\u003e\n\u003cth\u003eDeploy\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/MattyDroidX/java-docs-samples/blob/update_pom/eventarc/events-pubsub\"\u003eEventarc - Pub/Sub\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003eEvents for Cloud Run with Pub/Sub\u003c/td\u003e\n\u003ctd\u003e\u003ca href=\"https://deploy.cloud.run/?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026amp;dir=eventarc/pubsub\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/7cb664cef0ae8420268518e77b1e908f877bdff78becee0e0b5c1e71fced0f49/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f756472756e2f627574746f6e2e737667\" alt=\"Run on Google Cloud\" height=\"30\" data-canonical-src=\"https://storage.googleapis.com/cloudrun/button.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/MattyDroidX/java-docs-samples/blob/update_pom/eventarc/events-pubsub/anthos.md\"\u003eAnthos Events - Pub/Sub\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003eEvents for Cloud Run on Anthos with Pub/Sub\u003c/td\u003e\n\u003ctd\u003e-\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/MattyDroidX/java-docs-samples/blob/update_pom/eventarc/events-audit-storage\"\u003eEventarc - Storage\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003eEvents for Cloud Run with GCS\u003c/td\u003e\n\u003ctd\u003e\u003ca href=\"https://deploy.cloud.run/?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026amp;dir=eventarc/audit-storage\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/7cb664cef0ae8420268518e77b1e908f877bdff78becee0e0b5c1e71fced0f49/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f756472756e2f627574746f6e2e737667\" alt=\"Run on Google Cloud\" height=\"30\" data-canonical-src=\"https://storage.googleapis.com/cloudrun/button.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"/MattyDroidX/java-docs-samples/blob/update_pom/eventarc/events-audit-storage/anthos.md\"\u003eAnthos Events - Storage\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003eEvents for Cloud Run on Anthos with GCS\u003c/td\u003e\n\u003ctd\u003e-\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetup\u003c/h2\u003e\u003ca id=\"user-content-setup\" class=\"anchor\" aria-label=\"Permalink: Setup\" href=\"#setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://cloud.google.com/run/docs/setup\" rel=\"nofollow\"\u003eSet up for Cloud Run development\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eClone this repository:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003egit clone https://github.com/GoogleCloudPlatform/java-docs-samples.git\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eIn the samples's \u003ccode\u003epom.xml\u003c/code\u003e, update the image field for the \u003ccode\u003ejib-maven-plugin\u003c/code\u003e\nwith your Google Cloud Project Id:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-text-xml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"\u0026lt;plugin\u0026gt;\n \u0026lt;groupId\u0026gt;com.google.cloud.tools\u0026lt;/groupId\u0026gt;\n \u0026lt;artifactId\u0026gt;jib-maven-plugin\u0026lt;/artifactId\u0026gt;\n \u0026lt;version\u0026gt;2.0.0\u0026lt;/version\u0026gt;\n \u0026lt;configuration\u0026gt;\n \u0026lt;to\u0026gt;\n \u0026lt;image\u0026gt;gcr.io/PROJECT_ID/SAMPLE_NAME\u0026lt;/image\u0026gt;\n \u0026lt;/to\u0026gt;\n \u0026lt;/configuration\u0026gt;\n\u0026lt;/plugin\u0026gt;\"\u003e\u003cpre\u003e\u0026lt;\u003cspan class=\"pl-ent\"\u003eplugin\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003egroupId\u003c/span\u003e\u0026gt;com.google.cloud.tools\u0026lt;/\u003cspan class=\"pl-ent\"\u003egroupId\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003eartifactId\u003c/span\u003e\u0026gt;jib-maven-plugin\u0026lt;/\u003cspan class=\"pl-ent\"\u003eartifactId\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003eversion\u003c/span\u003e\u0026gt;2.0.0\u0026lt;/\u003cspan class=\"pl-ent\"\u003eversion\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003econfiguration\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003eto\u003c/span\u003e\u0026gt;\n \u0026lt;\u003cspan class=\"pl-ent\"\u003eimage\u003c/span\u003e\u0026gt;gcr.io/PROJECT_ID/SAMPLE_NAME\u0026lt;/\u003cspan class=\"pl-ent\"\u003eimage\u003c/span\u003e\u0026gt;\n \u0026lt;/\u003cspan class=\"pl-ent\"\u003eto\u003c/span\u003e\u0026gt;\n \u0026lt;/\u003cspan class=\"pl-ent\"\u003econfiguration\u003c/span\u003e\u0026gt;\n\u0026lt;/\u003cspan class=\"pl-ent\"\u003eplugin\u003c/span\u003e\u0026gt;\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eHow to run a sample locally\u003c/h2\u003e\u003ca id=\"user-content-how-to-run-a-sample-locally\" class=\"anchor\" aria-label=\"Permalink: How to run a sample locally\" href=\"#how-to-run-a-sample-locally\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/GoogleContainerTools/jib\"\u003eBuild the sample container using Jib\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"mvn compile jib:dockerBuild\"\u003e\u003cpre\u003emvn compile jib:dockerBuild\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://cloud.google.com/run/docs/testing/local\" rel=\"nofollow\"\u003eRun containers locally\u003c/a\u003e by\nreplacing \u003ccode\u003ePROJECT_ID\u003c/code\u003e and \u003ccode\u003eSAMPLE_NAME\u003c/code\u003e with your values.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWith the built container:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"PORT=8080 \u0026amp;\u0026amp; docker run --rm -p 9090:${PORT} -e PORT=${PORT} gcr.io/PROJECT_ID/SAMPLE_NAME\"\u003e\u003cpre\u003ePORT=8080 \u003cspan class=\"pl-k\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e docker run --rm -p 9090:\u003cspan class=\"pl-smi\"\u003e${PORT}\u003c/span\u003e -e PORT=\u003cspan class=\"pl-smi\"\u003e${PORT}\u003c/span\u003e gcr.io/PROJECT_ID/SAMPLE_NAME\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eInjecting your service account key for access to GCP services:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"PORT=8080 \u0026amp;\u0026amp; docker run \\\n -p 9090:${PORT} \\\n -e PORT=${PORT} \\\n -e K_SERVICE=dev \\\n -e K_CONFIGURATION=dev \\\n -e K_REVISION=dev-00001 \\\n -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/[FILE_NAME].json \\\n -v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/[FILE_NAME].json:ro \\\n gcr.io/PROJECT_ID/SAMPLE_NAME\"\u003e\u003cpre\u003ePORT=8080 \u003cspan class=\"pl-k\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e docker run \\\n -p 9090:\u003cspan class=\"pl-smi\"\u003e${PORT}\u003c/span\u003e \\\n -e PORT=\u003cspan class=\"pl-smi\"\u003e${PORT}\u003c/span\u003e \\\n -e K_SERVICE=dev \\\n -e K_CONFIGURATION=dev \\\n -e K_REVISION=dev-00001 \\\n -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/[FILE_NAME].json \\\n -v \u003cspan class=\"pl-smi\"\u003e$GOOGLE_APPLICATION_CREDENTIALS\u003c/span\u003e:/tmp/keys/[FILE_NAME].json:ro \\\n gcr.io/PROJECT_ID/SAMPLE_NAME\u003c/pre\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUse the --volume (-v) flag to inject the credential file into the container\n(assumes you have already set your \u003ccode\u003eGOOGLE_APPLICATION_CREDENTIALS\u003c/code\u003e\nenvironment variable on your machine)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUse the --environment (-e) flag to set the \u003ccode\u003eGOOGLE_APPLICATION_CREDENTIALS\u003c/code\u003e\nvariable inside the container\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eOpen \u003ca href=\"http://localhost:9090\" rel=\"nofollow\"\u003ehttp://localhost:9090\u003c/a\u003e in your browser.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003eLearn more about [testing your container image locally.][testing]\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDeploying\u003c/h2\u003e\u003ca id=\"user-content-deploying\" class=\"anchor\" aria-label=\"Permalink: Deploying\" href=\"#deploying\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/GoogleContainerTools/jib\"\u003eBuild the sample container using Jib\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn compile jib:build\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn compile jib:build\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Using the image tag \u003ccode\u003egcr.io/PROJECT_ID/SAMPLE_NAME\u003c/code\u003e automatically\npushes the image to \u003ca href=\"https://cloud.google.com/container-registry/\" rel=\"nofollow\"\u003eGoogle Container Registry\u003c/a\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eDeploy to Cloud Run by replacing \u003ccode\u003ePROJECT_ID\u003c/code\u003e and \u003ccode\u003eSAMPLE_NAME\u003c/code\u003e with your values:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"gcloud run deploy --image gcr.io/PROJECT_ID/SAMPLE_NAME\"\u003e\u003cpre\u003egcloud run deploy --image gcr.io/PROJECT_ID/SAMPLE_NAME\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Cloud Eventarc Java Samples","anchor":"cloud-eventarc-java-samples","htmlText":"Cloud Eventarc Java Samples"},{"level":2,"text":"Samples","anchor":"samples","htmlText":"Samples"},{"level":2,"text":"Setup","anchor":"setup","htmlText":"Setup"},{"level":2,"text":"How to run a sample locally","anchor":"how-to-run-a-sample-locally","htmlText":"How to run a sample locally"},{"level":2,"text":"Deploying","anchor":"deploying","htmlText":"Deploying"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FMattyDroidX%2Fjava-docs-samples%2Ftree%2Fupdate_pom%2Feventarc"}},"totalCount":4,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"appengine-java11","path":"appengine-java11","contentType":"directory"},{"name":"appengine-java8","path":"appengine-java8","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigtable","path":"bigtable","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"container-registry","path":"container-registry","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"eventarc","path":"eventarc","contentType":"directory"},{"name":"flexible","path":"flexible","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"healthcare","path":"healthcare","contentType":"directory"},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"media","path":"media","contentType":"directory"},{"name":"memorystore","path":"memorystore","contentType":"directory"},{"name":"mlengine","path":"mlengine","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"opencensus","path":"opencensus","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"run","path":"run","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"session-handling","path":"session-handling","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"tasks","path":"tasks","contentType":"directory"},{"name":"texttospeech","path":"texttospeech","contentType":"directory"},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"unittests","path":"unittests","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":".gitallowed","path":".gitallowed","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SAMPLE_FORMAT.md","path":"SAMPLE_FORMAT.md","contentType":"file"},{"name":"build.gradle","path":"build.gradle","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"totalCount":54}},"fileTreeProcessingTime":11.79523,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/MattyDroidX/java-docs-samples/branches":{"post":"p48iWsD4fdme42rxDD4LF5prkt7nGIvQYTbgeMqeNZFpJbun1eTZ293Fl6YaMybQZN4H2GukeH3SC-8vUwy3wg"},"/MattyDroidX/java-docs-samples/branches/fetch_and_merge/update_pom":{"post":"050gqJiSFVw8RY-h8JR6p8xLbaiAqzqERZ3csdHgzZQCfzDvdgdrHX3O4LVt-42c0Ho4LmLSyFsF3_2y7F-Avw"},"/MattyDroidX/java-docs-samples/branches/fetch_and_merge/update_pom?discard_changes=true":{"post":"ZPjFEgvjOJh2QQoUqOOD5uxQd6mdi60eN2lOQXqeMgS1GtVV5XZG2TfKZQA1jHTd8GEiL3_yX8F3K29CRyF_Lw"}}},"title":"java-docs-samples/eventarc at update_pom · MattyDroidX/java-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
You can’t perform that action at this time.