No description, website, or topics provided.
Java HTML Shell JavaScript CSS Dockerfile Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github/templates Moved templates back to root folder for better visability. Oct 31, 2017
.kokoro Report individual test statuses to kokoro. (#1089) Apr 18, 2018
appengine-java8 Auto-update dependencies. (#1147) Aug 7, 2018
appengine Auto-update dependencies. (#1147) Aug 7, 2018
auth Auto-update dependencies. (#1147) Aug 7, 2018
bigquery Auto-update dependencies. (#1147) Aug 7, 2018
cdn/signed-urls Update projects to shared-configuration 1.0.9. (#1092) Apr 26, 2018
cloud-tasks Auto-update dependencies. (#1147) Aug 7, 2018
compute Auto-update dependencies. (#1147) Aug 7, 2018
container-registry/container-analysis Auto-update dependencies. (#1147) Aug 7, 2018
dataflow Auto-update dependencies. (#1175) Aug 9, 2018
datastore Auto-update dependencies. (#1147) Aug 7, 2018
dlp Auto-update dependencies. (#1147) Aug 7, 2018
endpoints Updates for the Developer Portal (#1084) Apr 19, 2018
errorreporting Auto-update dependencies. (#1147) Aug 7, 2018
firestore Auto-update dependencies. (#1147) Aug 7, 2018
flexible Auto-update dependencies. (#1147) Aug 7, 2018
iap Auto-update dependencies. (#1175) Aug 9, 2018
iot/api-client Update projects to shared-configuration 1.0.9. (#1092) Apr 26, 2018
jobs/cjd_sample Modify the code samples for CJD (#1150) Jul 16, 2018
kms Auto-update dependencies. (#1175) Aug 9, 2018
language Auto-update dependencies. (#1147) Aug 7, 2018
logging Auto-update dependencies. (#1147) Aug 7, 2018
memorystore/redis Patch memorystore samples (#1115) May 30, 2018
mlengine/online-prediction Auto-update dependencies. (#1147) Aug 7, 2018
monitoring Add final Monitoring Uptime Check sample (update). (#1180) Aug 14, 2018
pubsub/cloud-client Modified publish message command line arg (#1177) Aug 10, 2018
spanner/cloud-client Auto-update dependencies. (#1147) Aug 7, 2018
speech [DO_NOT_MERGE] Microphone streaming with a 1 minute duration. (#1185) Aug 17, 2018
storage Auto-update dependencies. (#1175) Aug 9, 2018
tasks Add Cloud Tasks Readmes (#1156) Jul 17, 2018
texttospeech Auto-update dependencies. (#1147) Aug 7, 2018
translate Auto-update dependencies. (#1147) Aug 7, 2018
unittests Auto-update dependencies. (#1147) Aug 7, 2018
video Video Intelligence region tag update (#1183) Aug 16, 2018
vision Udpate Beta Vision samples to use beta tags (#1184) Aug 16, 2018
.gitignore Update projects to shared-configuration 1.0.9. (#1092) Apr 26, 2018
CONTRIBUTING.md Fixes typo in CONTRIBUTING.md (#1090) Apr 19, 2018
ISSUE_TEMPLATE.md Moved templates back to root folder for better visability. Oct 31, 2017
LICENSE Use java-repo-tools checkstyle plugins. Mar 22, 2016
README.md Added `Open in Cloud Shell` button. (#942) Dec 5, 2017
READONLY Modify the code samples for CJD (#1150) Jul 16, 2018
codecov.yml Codecov should comment on PRs to master. Apr 27, 2016
pom.xml [Dataflow] Add transformation sample (#1131) Jun 15, 2018

README.md

java-docs-samples

Kokoro Build Status Coverage Status

Open in Cloud Shell

While this library is still supported, we suggest trying the newer Cloud Client Library for Google Cloud Vision, especially for new projects. For more information, please see the notice on the API Client Library Page.

This is a repository that contains java code snippets on Cloud Platform Documentation.

Technology Samples:

Credentials Example

The documentation for Application Default Credentials.

BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();

The client library looks for credentials using the following rules:

  1. GOOGLE_APPLICATION_CREDENTIALS environment variable, pointing to a service account key JSON file path.
  2. Cloud SDK credentials gcloud auth application-default login
  3. App Engine standard environment credentials.
  4. Compute Engine credentials.

You can override this behavior using setCredentials in BigQueryOptions.newBuilder() by adding setCredentials(Credentials credentials) from ServiceOptions.builder and Credentials.