在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:googleapis/api-common-protos开源软件地址:https://github.com/googleapis/api-common-protos开源编程语言:Starlark 92.7%开源软件介绍:Common ProtosThis repository is a home for the protocol buffer types which are common dependencies throughout the Google API ecosystem, and which are made available for use as dependencies elsewhere. About protocol buffersProtocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. One popular use for protocol buffers, both within Google and elsewhere, is for specifying API design. They serve as a useful representation for API serivices, methods, and fields. You can read more about API design philosophy with protocol buffers by consulting our API Design Guide. Why a common protos repository?When writing protocol buffers, it is common to need to reuse common patterns. For example, common types show up in many different APIs, but have a consistent implementation. The same is true elsewhere. This repository seeks to be a home for such types; protocol buffer authors may check out this repository and import them into their own work to save effort. The protos in the various subdirectories in this repository have different purposes, and are documented in their respective README files. Using these protosThese protos are made available under an Apache license (see In order to depend on these protos, use proto import statements that reference the base of this repository, for example: syntax = "proto3";
import "google/type/color.proto";
// A message representing a paint can.
message PaintCan {
// The size of the paint can, in gallons.
float size_gallons = 1;
// The color of the paint.
google.type.Color color = 2;
} If you are using PackagesAdditionally, if using these common protos, it is not necessary to ship the compiled types yourself in many common languages. Google provides a common protos package in several languages, which can be added as a dependency, and which makes these types available.
Note that if using these packages, you will still need a local copy of
these protos when using google.protobuf types (separate from this repo)There are a small number of types that are so common that they are
included in the actual protocol buffers runtime itself.
These are anything with an import path beginning with These are not defined in this directory, and you do not need to follow
any of the instructions for including this (as discussed in the root DisclaimerThese protos are made available by Google, but are not considered to be an official Google product. LicenseThese protos are licensed using the Apache 2.0 software license, a permissive, copyfree license. You are free to use them in your applications provided the license terms are honored. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论