java-docs-samples

Github stars Tracking Chart

Google Cloud Platform Java Samples

Kokoro Build Status
Coverage Status

This repository holds sample code written in Java that demonstrates the
Google Cloud Platform.

Some samples have accompanying guides on <cloud.google.com>. See respective
README files for details.

Set Up

  1. Set up your Java Development Environment

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the
    oauth2 flow (read more about the command here):

     gcloud auth application-default login
    

    Or manually set the GOOGLE_APPLICATION_CREDENTIALS environment variable
    to point to a service account key JSON file path.

    Learn more at Setting Up Authentication for Server to Server Production Applications.

    Note: Application Default Credentials is able to implicitly find the credentials as long as the application is running on Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions.

Contributing

Licensing

Main metrics

Overview
Name With OwnerGoogleCloudPlatform/java-docs-samples
Primary LanguageJava
Program languageJava (Language Count: 12)
Platform
License:Apache License 2.0
所有者活动
Created At2015-03-25 22:48:38
Pushed At2025-04-24 02:45:12
Last Commit At
Release Count1
Last Release Namemonitoring-apiary (Posted on )
First Release Namemonitoring-apiary (Posted on )
用户参与
Stargazers Count1.8k
Watchers Count291
Fork Count2.9k
Commits Count10.4k
Has Issues Enabled
Issues Count2151
Issue Open Count26
Pull Requests Count7112
Pull Requests Open Count22
Pull Requests Close Count737
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private