Name: java-docs-samples
Owner: Google Cloud Platform
Description: null
Created: 2015-03-25 22:48:38.0
Updated: 2018-01-18 14:32:15.0
Pushed: 2018-01-18 18:07:09.0
Homepage: null
Size: 13002
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
The documentation for Application Default Credentials.
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
The client library looks for credentials using the following rules:
GOOGLE_APPLICATION_CREDENTIALS
environment variable, pointing to a service account key JSON file path.gcloud auth application-default login
You can override this behavior using setCredentials in BigQueryOptions.newBuilder()
by adding setCredentials(Credentials credentials)
from ServiceOptions.builder and Credentials.