GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/README.md at master · SyCode7/java-docs-samples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (34 loc) · 2.23 KB
/

README.md

Copy path

File metadata and controls

46 lines (34 loc) · 2.23 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

java-docs-samples

Circle-CI Build Status ghit.me Coverage Status

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

The repo is organized as follows:

  • App Engine Standard
    • TaskQueue
    • Unit Tests
  • App Engine Flexible
  • Compute Engine

Technology Samples:

  • Bigquery
  • Datastore
  • Endpoints
  • Key Management Service
  • Logging
  • Monitoring
  • Natural Language
  • PubSub
  • Cloud Spanner
  • Speech
  • Cloud Storage
  • Translate
  • Vision

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.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.