Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
No description, website, or topics provided.
Java HTML Shell JavaScript CSS Dockerfile Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update CONTRIBUTING, ISSUE_TEMPLATE, and parent README (#1503) Jul 8, 2019
.kokoro Add tests for Cloud Tasks app engine targets (#1493) Jun 25, 2019
appengine-java11 Add Cloud Run directory and ReadMes (#1525) Jul 30, 2019
appengine-java8 Remove references to java7 (#1540) Aug 12, 2019
appengine Remove references to java7 (#1540) Aug 12, 2019
asset/cloud-client Auto-update dependencies. (#1489) Jul 26, 2019
auth Auto-update dependencies. (#1489) Jul 26, 2019
bigquery Auto-update dependencies. (#1489) Jul 26, 2019
bigtable Auto-update dependencies. (#1489) Jul 26, 2019
cdn/signed-urls Auto-update dependencies. (#1467) Jun 14, 2019
cloud-sql Auto-update dependencies. (#1470) Jun 24, 2019
compute Remove references to java7 (#1540) Aug 12, 2019
container-registry/container-analysis Fixed exception type in container analysis sample (#1542) Aug 10, 2019
datacatalog/cloud-client Auto-update dependencies. (#1489) Jul 26, 2019
dataflow Auto-update dependencies. (#1489) Jul 26, 2019
datalabeling/beta/cloud-client Auto-update dependencies. (#1470) Jun 24, 2019
datastore Remove references to java7 (#1540) Aug 12, 2019
dialogflow/cloud-client Recreate Test Knowledge Base after it was deleted and update other te… Aug 5, 2019
dlp Misc testing fixes. (#1388) Apr 19, 2019
endpoints Auto-update dependencies. (#1489) Jul 26, 2019
errorreporting Auto-update dependencies. (#1489) Jul 26, 2019
firestore Add `fs_update_document_increment` snippet (#1547) Aug 14, 2019
flexible Remove references to java7 (#1540) Aug 12, 2019
functions/snippets Feat: Adds functions_helloworld_background (#1549) Aug 15, 2019
gameservices/v1alpha Creating game servers samples. (#1516) Jul 23, 2019
healthcare/v1beta1 Fix delete FHIR store region tag. (#1545) Aug 14, 2019
iam/api-client Auto-update dependencies. (#1489) Jul 26, 2019
iap Auto-update dependencies. (#1489) Jul 26, 2019
iot/api-client Adds closing includecode block on MQTT snippet (#1546) Aug 14, 2019
jobs Auto-update dependencies. (#1470) Jun 24, 2019
kms Misc testing fixes. (#1388) Apr 19, 2019
language Auto-update dependencies. (#1489) Jul 26, 2019
logging Auto-update dependencies. (#1489) Jul 26, 2019
memorystore/redis Auto-update dependencies. (#1489) Jul 26, 2019
mlengine/online-prediction Auto-update dependencies. (#1489) Jul 26, 2019
monitoring Auto-update dependencies. (#1489) Jul 26, 2019
opencensus Auto-update dependencies. (#1467) Jun 14, 2019
pubsub Pub/Sub: new Pub/Sub DataFlow doc sample (#1541) Aug 15, 2019
run Add Cloud Run directory and ReadMes (#1525) Jul 30, 2019
spanner Auto-update dependencies. (#1489) Jul 26, 2019
speech Auto-update dependencies. (#1489) Jul 26, 2019
storage Auto-update dependencies. (#1489) Jul 26, 2019
tasks Add Cloud Tasks snippets (#1537) Aug 6, 2019
texttospeech Auto-update dependencies. (#1489) Jul 26, 2019
trace Misc testing fixes. (#1388) Apr 19, 2019
translate Auto-update dependencies. (#1489) Jul 26, 2019
unittests Auto-update dependencies. (#1489) Jul 26, 2019
video Auto-update dependencies. (#1489) Jul 26, 2019
vision Add Cloud Vision Sample with Spring Framework (#1530) Aug 15, 2019
.gitignore Update projects to shared-configuration 1.0.9. (#1092) Apr 26, 2018
.kvgbot.yml Add config for auto-assigning issues and PRs. Jul 2, 2019
CONTRIBUTING.md Update CONTRIBUTING, ISSUE_TEMPLATE, and parent README (#1503) Jul 8, 2019
LICENSE Use java-repo-tools checkstyle plugins. Mar 22, 2016
README.md Fixing typo in readme (#1508) Jul 11, 2019
SAMPLE_FORMAT.md Add new Sample Format guidelines. (#1406) May 7, 2019
codecov.yml Codecov should comment on PRs to master. Apr 27, 2016

README.md

Google Cloud Platform Java Samples

Kokoro Build Status Coverage Status

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.

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

Licensing

You can’t perform that action at this time.