MCPcopy
hub / github.com/gogo/protobuf / Api

Struct Api

types/api.pb.go:37–77  ·  view source on GitHub ↗

please upgrade the proto package 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 implementatio

Source from the content-addressed store, hash-verified

35// this message itself. See https://cloud.google.com/apis/design/glossary for
36// detailed terminology.
37type Api struct {
38 // The fully qualified name of this interface, including package name
39 // followed by the interface's simple name.
40 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
41 // The methods of this interface, in unspecified order.
42 Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
43 // Any metadata attached to the interface.
44 Options []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
45 // A version string for this interface. If specified, must have the form
46 // `major-version.minor-version`, as in `1.10`. If the minor version is
47 // omitted, it defaults to zero. If the entire version field is empty, the
48 // major version is derived from the package name, as outlined below. If the
49 // field is not empty, the version in the package name will be verified to be
50 // consistent with what is provided here.
51 //
52 // The versioning schema uses [semantic
53 // versioning](http://semver.org) where the major version number
54 // indicates a breaking change and the minor version an additive,
55 // non-breaking change. Both version numbers are signals to users
56 // what to expect from different versions, and should be carefully
57 // chosen based on the product plan.
58 //
59 // The major version is also reflected in the package name of the
60 // interface, which must end in `v<major-version>`, as in
61 // `google.feature.v1`. For major versions 0 and 1, the suffix can
62 // be omitted. Zero major versions must only be used for
63 // experimental, non-GA interfaces.
64 //
65 //
66 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
67 // Source context for the protocol buffer service represented by this
68 // message.
69 SourceContext *SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
70 // Included interfaces. See [Mixin][].
71 Mixins []*Mixin `protobuf:"bytes,6,rep,name=mixins,proto3" json:"mixins,omitempty"`
72 // The source syntax of the service.
73 Syntax Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
74 XXX_NoUnkeyedLiteral struct{} `json:"-"`
75 XXX_unrecognized []byte `json:"-"`
76 XXX_sizecache int32 `json:"-"`
77}
78
79func (m *Api) Reset() { *m = Api{} }
80func (*Api) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected