Skip to content

nirupa-kumar/java-docs-samples

This branch is 1 commit ahead of, 8498 commits behind GoogleCloudPlatform/java-docs-samples:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fa875c6 · Feb 19, 2019
Jan 28, 2019
Apr 18, 2018
Feb 12, 2019
Feb 8, 2019
Nov 29, 2018
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Nov 15, 2018
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Jan 15, 2019
Feb 8, 2019
Nov 5, 2018
Nov 15, 2018
Feb 14, 2019
Sep 5, 2018
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 19, 2019
Feb 8, 2019
Feb 8, 2019
Dec 11, 2018
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Feb 8, 2019
Apr 26, 2018
Aug 31, 2018
Feb 13, 2017
Mar 25, 2015
Dec 5, 2017
Apr 27, 2016
Feb 8, 2019

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.9%
  • HTML 1.0%
  • Shell 0.9%
  • JavaScript 0.7%
  • CSS 0.2%
  • Dockerfile 0.1%
  • Other 0.2%