Giter Site home page Giter Site logo

Google APIs

This repository contains the original interface definitions of public Google APIs that support both REST and gRPC protocols. Reading the original interface definitions can provide a better understanding of Google APIs and help you to utilize them more efficiently. You can also use these definitions with open source tools to generate client libraries, documentation, and other artifacts.

Building

Bazel

The recommended way to build the API client libraries is through Bazel >= 4.2.2.

First, install bazel.

To build all libraries:

bazel build //...

To test all libraries:

bazel test //...

To build one library in all languages:

bazel build //google/example/library/v1/...

To build the Java package for one library:

bazel build //google/example/library/v1:google-cloud-example-library-v1-java

Bazel packages exist in all the libraries for Java, Go, Python, Ruby, Node.js, PHP and C#.

Overview

Google APIs are typically deployed as API services that are hosted under different DNS names. One API service may implement multiple APIs and multiple versions of the same API.

Google APIs use Protocol Buffers version 3 (proto3) as their Interface Definition Language (IDL) to define the API interface and the structure of the payload messages. The same interface definition is used for both REST and RPC versions of the API, which can be accessed over different wire protocols.

There are several ways of accessing Google APIs:

  1. JSON over HTTP: You can access all Google APIs directly using JSON over HTTP, using Google API client library or third-party API client libraries.

  2. Protocol Buffers over gRPC: You can access Google APIs published in this repository through GRPC, which is a high-performance binary RPC protocol over HTTP/2. It offers many useful features, including request/response multiplex and full-duplex streaming.

  3. Google Cloud Client Libraries: You can use these libraries to access Google Cloud APIs. They are based on gRPC for better performance and provide idiomatic client surface for better developer experience.

Discussions

This repo contains copies of Google API definitions and related files. For discussions or to raise issues about Google API client libraries, GRPC or Google Cloud Client Libraries please refer to the repos associated with each area.

Repository Structure

This repository uses a directory hierarchy that reflects the Google API product structure. In general, every API has its own root directory, and each major version of the API has its own subdirectory. The proto package names exactly match the directory: this makes it easy to locate the proto definitions and ensures that the generated client libraries have idiomatic namespaces in most programming languages. Alongside the API directories live the configuration files for the GAPIC toolkit.

NOTE: The major version of an API is used to indicate breaking change to the API.

Generate gRPC Source Code

To generate gRPC source code for Google APIs in this repository, you first need to install both Protocol Buffers and gRPC on your local machine, then you can run make LANGUAGE=xxx all to generate the source code. You need to integrate the generated source code into your application build system.

NOTE: The Makefile is only intended to generate source code for the entire repository. It is not for generating linkable client library for a specific API. Please see other repositories under https://github.com/googleapis for generating linkable client libraries.

Go gRPC Source Code

It is difficult to generate Go gRPC source code from this repository, since Go has different directory structure. Please use this repository instead.

Google APIs's Projects

python-datastream icon python-datastream

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-datastream

python-deploy icon python-deploy

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-deploy

python-dialogflow icon python-dialogflow

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dialogflow

python-dialogflow-cx icon python-dialogflow-cx

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dialogflow-cx

python-dlp icon python-dlp

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dlp

python-dms icon python-dms

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-dms

python-documentai icon python-documentai

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-documentai

python-documentai-toolbox icon python-documentai-toolbox

Document AI Toolbox is an SDK for Python that provides utility functions for managing, manipulating, and extracting information from the document response. It creates a "wrapped" document object from JSON files in Cloud Storage, local JSON files, or output directly from the Document AI API.

python-domains icon python-domains

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-domains

python-edgecontainer icon python-edgecontainer

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-edgecontainer

python-essential-contacts icon python-essential-contacts

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-essential-contacts

python-eventarc icon python-eventarc

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-eventarc

python-eventarc-publishing icon python-eventarc-publishing

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-eventarc-publishing

python-filestore icon python-filestore

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-filestore

python-functions icon python-functions

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-functions

python-gke-backup icon python-gke-backup

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-gke-backup

python-gke-connect-gateway icon python-gke-connect-gateway

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-gke-connect-gateway

python-gke-hub icon python-gke-hub

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-gke-hub

python-gke-multicloud icon python-gke-multicloud

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-gke-multicloud

python-grafeas icon python-grafeas

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/grafeas

python-gsuiteaddons icon python-gsuiteaddons

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-gsuiteaddons

python-iam icon python-iam

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-iam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.