GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - renovate-bot/java-docs-samples: Java and Kotlin Code samples used on cloud.google.com

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

10,593 Commits
10,593 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.kokoro
.kokoro
 
 
accessapproval/snippets
accessapproval/snippets
 
 
aiplatform
aiplatform
 
 
appengine-java11-bundled-services
appengine-java11-bundled-services
 
 
appengine-java11
appengine-java11
 
 
appengine-java17-bundled-services
appengine-java17-bundled-services
 
 
appengine-java21
appengine-java21
 
 
appengine-java25
appengine-java25
 
 
appengine-java8
appengine-java8
 
 
asset
asset
 
 
auth
auth
 
 
batch/snippets
batch/snippets
 
 
bigquery
bigquery
 
 
bigtable
bigtable
 
 
cdn/signed-urls
cdn/signed-urls
 
 
cloud-sql
cloud-sql
 
 
compute
compute
 
 
contact-center-insights
contact-center-insights
 
 
container-registry
container-registry
 
 
content-warehouse
content-warehouse
 
 
datacatalog
datacatalog
 
 
dataflow
dataflow
 
 
datalabeling/snippets
datalabeling/snippets
 
 
dataplex
dataplex
 
 
dataproc
dataproc
 
 
developer-knowledge
developer-knowledge
 
 
dialogflow-cx
dialogflow-cx
 
 
dialogflow
dialogflow
 
 
discoveryengine
discoveryengine
 
 
dlp/snippets
dlp/snippets
 
 
document-ai
document-ai
 
 
endpoints
endpoints
 
 
errorreporting
errorreporting
 
 
eventarc
eventarc
 
 
firestore/samples
firestore/samples
 
 
flexible
flexible
 
 
functions
functions
 
 
genai/snippets
genai/snippets
 
 
healthcare/v1
healthcare/v1
 
 
iam
iam
 
 
iap
iap
 
 
iot
iot
 
 
jobs
jobs
 
 
kms
kms
 
 
language
language
 
 
managedkafka/examples
managedkafka/examples
 
 
media
media
 
 
media_cdn
media_cdn
 
 
mediatranslation
mediatranslation
 
 
memorystore/redis
memorystore/redis
 
 
mlengine/online-prediction
mlengine/online-prediction
 
 
modelarmor
modelarmor
 
 
monitoring
monitoring
 
 
parametermanager
parametermanager
 
 
privateca/snippets
privateca/snippets
 
 
pubsub
pubsub
 
 
pubsublite/streaming-analytics
pubsublite/streaming-analytics
 
 
recaptcha_enterprise
recaptcha_enterprise
 
 
retail
retail
 
 
routeoptimization/snippets
routeoptimization/snippets
 
 
run
run
 
 
secretmanager
secretmanager
 
 
security-command-center/snippets
security-command-center/snippets
 
 
servicedirectory
servicedirectory
 
 
session-handling
session-handling
 
 
spanner
spanner
 
 
speech
speech
 
 
storage-transfer
storage-transfer
 
 
storage
storage
 
 
storageinsights
storageinsights
 
 
talent/snippets
talent/snippets
 
 
tasks/snippets
tasks/snippets
 
 
texttospeech
texttospeech
 
 
tpu
tpu
 
 
translate
translate
 
 
unittests
unittests
 
 
video
video
 
 
vision
vision
 
 
webrisk
webrisk
 
 
workflows/cloud-client
workflows/cloud-client
 
 
.gitallowed
.gitallowed
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SAMPLE_FORMAT.md
SAMPLE_FORMAT.md
 
 
SECURITY.md
SECURITY.md
 
 
build.gradle
build.gradle
 
 

Repository files navigation

Google Cloud Platform Java Samples

Open in Cloud Shell

This repository holds sample code written in Java that demonstrates the Google Cloud Platform.

Some samples have accompanying guides on <cloud.google.com>. See respective README files for details.

Google Cloud Samples

To browse ready to use code samples check Google Cloud Samples.

Set Up

  1. Set up your Java Development Environment

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Or manually set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to a service account key JSON file path.

    Learn more at Setting Up Authentication for Server to Server Production Applications.

    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.

Contributing

  • See the Contributing Guide

Licensing

  • See LICENSE

Supported Java runtimes

Every 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. We run periodic checks on the environments with Java 8 and Java 21 runtimes but we don't enforce passing these tests at the moment. Because Java 8 is a supported Java runtime in Google Cloud, please configure to build your code sample with Java 8. In exceptional cases, configure to build your code sample using Java 11.

Source Code Headers

Every file containing source code must include copyright and license information. This includes any JS/CSS files that you might be serving out to browsers. (This is to help well-intentioned people avoid accidental copying that doesn't comply with the license.)

Apache header:

Copyright 2022 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Java is a registered trademark of Oracle and/or its affiliates.

About

Java and Kotlin Code samples used on cloud.google.com

cloud.google.com/java

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

2 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.