Message in google.protobuf
Api
google.protobuf.Api
Api is a light-weight descriptor for an API Interface.
Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as "APIs" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.
New usages of this message as an alternative to ServiceDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.
Fields
| Field | Type | Number | Description |
|---|---|---|---|
| name | string | 1 | The fully qualified name of this interface, including package name followed by the interface's simple name. |
| methods | repeatedMethod | 2 | The methods of this interface, in unspecified order. |
| options | repeatedOption | 3 | Any metadata attached to the interface. |
| version | string | 4 | A version string for this interface. If specified, must have the form
The versioning schema uses semantic versioning where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the
interface, which must end in |
| source_context | SourceContext | 5 | Source context for the protocol buffer service represented by this message. |
| mixins | repeatedMixin | 6 | Included interfaces. See [Mixin][]. |
| syntax | Syntax | 7 | The source syntax of the service. |
| edition | string | 8 | The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
Defined in google/protobuf/api.proto