8000 java-docs-samples/functions at cr-wait-sample · Retvizan/java-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"functions","repo":{"id":412066353,"defaultBranch":"master","name":"java-docs-samples","ownerLogin":"Retvizan","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2021-09-30T13:01:30.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/11706633?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"cr-wait-sample","listCacheKey":"v0:1633944664.916673","canEdit":false,"refType":"branch","currentOid":"b36b13eef206057e836787554010085449f0aa70"},"tree":{"items":[{"name":"ci_cd","path":"functions/ci_cd","contentType":"directory"},{"name":"concepts","path":"functions/concepts","contentType":"directory"},{"name":"firebase","path":"functions/firebase","contentType":"directory"},{"name":"helloworld","path":"functions/helloworld","contentType":"directory"},{"name":"http","path":"functions/http","contentType":"directory"},{"name":"imagemagick","path":"functions/imagemagick","contentType":"directory"},{"name":"logging","path":"functions/logging","contentType":"directory"},{"name":"ocr","path":"functions/ocr","contentType":"directory"},{"name":"pubsub","path":"functions/pubsub","contentType":"directory"},{"name":"slack","path":"functions/slack","contentType":"directory"},{"name":"spanner","path":"functions/spanner","contentType":"directory"},{"name":"v2/pubsub/subscribe-to-topic","path":"functions/v2/pubsub/subscribe-to-topic","contentType":"directory","hasSimplifiedPath":true},{"name":"README.md","path":"functions/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://avatars2.githubusercontent.com/u/2810941?v=3\u0026amp;s=96\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/2810941?v=3\u0026amp;s=96\" alt=\"Google Cloud Platform logo\" title=\"Google Cloud Platform\" align=\"right\" height=\"96\" width=\"96\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud Functions Java Samples\u003c/h1\u003e\u003ca id=\"user-content-google-cloud-functions-java-samples\" class=\"anchor\" aria-label=\"Permalink: Google Cloud Functions Java Samples\" href=\"#google-cloud-functions-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://cloud.google.com/functions/docs/\" rel=\"nofollow\"\u003eCloud Functions\u003c/a\u003e is a lightweight, event-based, asynchronous\ncompute solution that allows you to create small, single-purpose functions that\nrespond to Cloud events without the need to manage a server or a runtime\nenvironment.\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\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/helloworld\"\u003eHello World\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/concepts\"\u003eConcepts\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/firebase\"\u003eFirebase\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/pubsub\"\u003eCloud Pub/Sub\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/http\"\u003eHTTP\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/logging\"\u003eLogging \u0026amp; Monitoring\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/slack\"\u003eSlack\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/ocr\"\u003eOCR tutorial\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/imagemagick\"\u003eImageMagick\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/Retvizan/java-docs-samples/blob/cr-wait-sample/functions/ci_cd\"\u003eCI/CD setup\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRunning Functions Locally\u003c/h2\u003e\u003ca id=\"user-content-running-functions-locally\" class=\"anchor\" aria-label=\"Permalink: Running Functions Locally\" href=\"#running-functions-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\u003cp dir=\"auto\"\u003eThe \u003ca href=\"https://github.com/GoogleCloudPlatform/functions-framework-java\"\u003eJava Functions Framework\u003c/a\u003e\nMaven plugin (\u003ccode\u003ecom.google.cloud.functions:function-maven-plugin\u003c/code\u003e) allows you to run Java Cloud\nFunctions code on your local machine for local development and testing purposes. Use the following\nMaven command to run a function locally:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn function:run -Drun.functionTarget=your.package.yourFunction\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn function:run -Drun.functionTarget=your.package.yourFunction\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Google Cloud Functions Java Samples","anchor":"google-cloud-functions-java-samples","htmlText":"Google Cloud Functions Java Samples"},{"level":2,"text":"Samples","anchor":"samples","htmlText":"Samples"},{"level":2,"text":"Running Functions Locally","anchor":"running-functions-locally","htmlText":"Running Functions Locally"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FRetvizan%2Fjava-docs-samples%2Ftree%2Fcr-wait-sample%2Ffunctions"}},"totalCount":13,"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":"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":"pubsublite","path":"pubsublite","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":"workflows","path":"workflows","contentType":"directory"},{"name":".gitallowed","path":".gitallowed","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","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":"SECURITY.md","path":"SECURITY.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":57}},"fileTreeProcessingTime":9.438891,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/Retvizan/java-docs-samples/branches":{"post":"l6DWt3ACTivjw3e2JBrBJvTiXc2z2MH4AhwccotnyyRy9-TUaKS8OAhSjqbkUaC9Dx6L_R8s6rS-_AMYjApenQ"},"/Retvizan/java-docs-samples/branches/fetch_and_merge/cr-wait-sample":{"post":"3co2KULHGgly1Bj1zrfyMpJzSHI-7c38P5VVH-5mu8g2n5afQtVmS6zhpq3OVUa9ANTL857SoQoy2ClY21FqlQ"},"/Retvizan/java-docs-samples/branches/fetch_and_merge/cr-wait-sample?discard_changes=true":{"post":"lkBxFJXfplLetf2sAAvtj4OPmp6JiDRyqs1itTelOrt9FdGilc3aEACAQ_QA6VkAESgZHym3WISngB7yApLr5g"}}},"title":"java-docs-samples/functions at cr-wait-sample · Retvizan/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}}}
0