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.
- Identity-Aware Proxy
- Key Management Service
- Natural Language
- Cloud Spanner
- Cloud Storage
The documentation for Application Default Credentials.
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
The client library looks for credentials using the following rules:
GOOGLE_APPLICATION_CREDENTIALSenvironment variable, pointing to a service account key JSON file path.
- Cloud SDK credentials
gcloud auth application-default login
- App Engine standard environment credentials.
- Compute Engine credentials.