{"id":15222293,"url":"https://github.com/googlecloudplatform/java-docs-samples","last_synced_at":"2025-05-13T17:07:43.137Z","repository":{"id":29360945,"uuid":"32895424","full_name":"GoogleCloudPlatform/java-docs-samples","owner":"GoogleCloudPlatform","description":"Java and Kotlin Code samples used on cloud.google.com","archived":false,"fork":false,"pushed_at":"2025-05-06T17:46:26.000Z","size":108539,"stargazers_count":1815,"open_issues_count":50,"forks_count":2860,"subscribers_count":294,"default_branch":"main","last_synced_at":"2025-05-06T18:46:35.215Z","etag":null,"topics":["appengine","auth","automl","cdn","java","kotlin","samples","translate","video","vision"],"latest_commit_sha":null,"homepage":"https://cloud.google.com/java","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleCloudPlatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-03-25T22:48:38.000Z","updated_at":"2025-05-06T17:46:33.000Z","dependencies_parsed_at":"2025-04-24T02:03:20.015Z","dependency_job_id":null,"html_url":"https://github.com/GoogleCloudPlatform/java-docs-samples","commit_stats":{"total_commits":9574,"total_committers":380,"mean_commits":"25.194736842105264","dds":"0.38750783371631503","last_synced_commit":"8bb2ecd8d36f0f4a49bb40e26cf8381222957bc3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fjava-docs-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fjava-docs-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fjava-docs-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fjava-docs-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleCloudPlatform","download_url":"https://codeload.github.com/GoogleCloudPlatform/java-docs-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990466,"owners_count":21995774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appengine","auth","automl","cdn","java","kotlin","samples","translate","video","vision"],"created_at":"2024-09-28T15:11:28.445Z","updated_at":"2025-05-13T17:07:38.116Z","avatar_url":"https://github.com/GoogleCloudPlatform.png","language":"Java","readme":"# Google Cloud Platform Java Samples\n\n[![Build Status][java-11-badge]][java-11-link] [![Build\nStatus][java-17-badge]][java-17-link] [![Build Status][java-21-badge]][java-21-link]\n\n\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026page=editor\u0026open_in_editor=README.md\"\u003e\n\u003cimg alt=\"Open in Cloud Shell\" src =\"http://gstatic.com/cloudssh/images/open-btn.png\"\u003e\u003c/a\u003e\n\nThis repository holds sample code written in Java that demonstrates the\n[Google Cloud Platform](https://cloud.google.com/docs/).\n\nSome samples have accompanying guides on \u003ccloud.google.com\u003e. See respective\nREADME files for details.\n\n## Google Cloud Samples\n\nTo browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples?l=java).\n\n## Set Up\n\n1. [Set up your Java Development Environment](https://cloud.google.com/java/docs/setup)\n\n1. Clone this repository:\n\n        git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git\n\n1. Obtain authentication credentials.\n\n    Create local credentials by running the following command and following the\n    oauth2 flow (read more about the command [here][auth_command]):\n\n        gcloud auth application-default login\n\n    Or manually set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable\n    to point to a service account key JSON file path.\n\n    Learn more at [Setting Up Authentication for Server to Server Production Applications][ADC].\n\n    *Note:* Application Default Credentials is able to implicitly find the credentials as long as the application is running on Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions.\n\n## Contributing\n\n* See the [Contributing Guide](CONTRIBUTING.md)\n\n## Licensing\n\n* See [LICENSE](LICENSE)\n\n## Supported Java runtimes\n\nEvery submitted change has to pass all checks that run on the testing environments with Java 11 and Java 17 runtimes before merging the change to the main branch.\nWe run periodic checks on the environments with Java 8 and Java 21 runtimes but we don't enforce passing these tests at the moment.\nBecause Java 8 is a [supported Java runtime][supported_runtimes] in Google Cloud, please configure to build your code sample with Java 8.\nIn exceptional cases, configure to build your code sample using Java 11.\n\n[supported_runtimes]: https://cloud.google.com/java/docs/supported-java-versions\n\n## Source Code Headers\n\nEvery file containing source code must include copyright and license\ninformation. This includes any JS/CSS files that you might be serving out to\nbrowsers. (This is to help well-intentioned people avoid accidental copying that\ndoesn't comply with the license.)\n\nApache header:\n\n    Copyright 2022 Google LLC\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        https://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[ADC]: https://developers.google.com/identity/protocols/application-default-credentials\n[auth_command]: https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login\n[java-11-badge]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-11.svg\n[java-11-link]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-11.html\n[java-17-badge]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-17.svg\n[java-17-link]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-17.html\n[java-21-badge]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-21.svg\n[java-21-link]:\nhttps://storage.googleapis.com/cloud-devrel-kokoro-resources/java/badges/java-docs-samples-21.html\n\nJava is a registered trademark of Oracle and/or its affiliates.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglecloudplatform%2Fjava-docs-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglecloudplatform%2Fjava-docs-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglecloudplatform%2Fjava-docs-samples/lists"}