proto/google/api
huangsimin@fusen.cn c0cbff775f 最新版本
2023-11-27 17:36:02 +08:00
..
apikeys 最新版本 2023-11-27 17:36:02 +08:00
expr 最新版本 2023-11-27 17:36:02 +08:00
servicecontrol 最新版本 2023-11-27 17:36:02 +08:00
servicemanagement 最新版本 2023-11-27 17:36:02 +08:00
serviceusage 最新版本 2023-11-27 17:36:02 +08:00
annotations.proto 最新版本 2023-11-27 17:36:02 +08:00
auth.proto 最新版本 2023-11-27 17:36:02 +08:00
backend.proto 最新版本 2023-11-27 17:36:02 +08:00
billing.proto 最新版本 2023-11-27 17:36:02 +08:00
BUILD.bazel 最新版本 2023-11-27 17:36:02 +08:00
client.proto 最新版本 2023-11-27 17:36:02 +08:00
config_change.proto 最新版本 2023-11-27 17:36:02 +08:00
consumer.proto 最新版本 2023-11-27 17:36:02 +08:00
context.proto 最新版本 2023-11-27 17:36:02 +08:00
control.proto 最新版本 2023-11-27 17:36:02 +08:00
distribution.proto 最新版本 2023-11-27 17:36:02 +08:00
documentation.proto 最新版本 2023-11-27 17:36:02 +08:00
endpoint.proto 最新版本 2023-11-27 17:36:02 +08:00
error_reason.proto 最新版本 2023-11-27 17:36:02 +08:00
field_behavior.proto 最新版本 2023-11-27 17:36:02 +08:00
field_info.proto 最新版本 2023-11-27 17:36:02 +08:00
http.proto 最新版本 2023-11-27 17:36:02 +08:00
httpbody.proto 最新版本 2023-11-27 17:36:02 +08:00
label.proto 最新版本 2023-11-27 17:36:02 +08:00
launch_stage.proto 最新版本 2023-11-27 17:36:02 +08:00
log.proto 最新版本 2023-11-27 17:36:02 +08:00
logging.proto 最新版本 2023-11-27 17:36:02 +08:00
metric.proto 最新版本 2023-11-27 17:36:02 +08:00
monitored_resource.proto 最新版本 2023-11-27 17:36:02 +08:00
monitoring.proto 最新版本 2023-11-27 17:36:02 +08:00
policy.proto 最新版本 2023-11-27 17:36:02 +08:00
quota.proto 最新版本 2023-11-27 17:36:02 +08:00
README.md 最新版本 2023-11-27 17:36:02 +08:00
resource.proto 最新版本 2023-11-27 17:36:02 +08:00
routing.proto 最新版本 2023-11-27 17:36:02 +08:00
service.proto 最新版本 2023-11-27 17:36:02 +08:00
serviceconfig.yaml 最新版本 2023-11-27 17:36:02 +08:00
source_info.proto 最新版本 2023-11-27 17:36:02 +08:00
system_parameter.proto 最新版本 2023-11-27 17:36:02 +08:00
usage.proto 最新版本 2023-11-27 17:36:02 +08:00
visibility.proto 最新版本 2023-11-27 17:36:02 +08:00

API Protos

This folder contains the schema of the configuration model for Google's internal API serving platform, which handles routing, quotas, monitoring, logging, and the like.

Google refers to this configuration colloquially as the "service config", and the service.proto file in this directory is the entry point for understanding these.

Using these protos

To be honest, we probably open sourced way too much of this (basically by accident). There are a couple files in here you are most likely to be interested in: http.proto, documentation.proto, auth.proto, and annotations.proto.

HTTP and REST

The http.proto file contains the Http message (which then is wrapped in an annotation in annotations.proto), which provides a specification for REST endpoints and verbs (GET, POST, etc.) on RPC methods. We recommend use of this annotation for describing the relationship between RPCs and REST endpoints.

Documentation

The documentation.proto file contains a Documentation message which provides a mechanism to fully describe an API, allowing a tool to build structured documentation artifacts.

Authentication

The auth.proto file contains descriptions of both authentication rules and authentication providers, allowing you to describe what your services expect and accept from clients.