blob: 51c709274c29b52f73402de8ab05cdc6b4c75010 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/protobuf/api.proto
3
Scott Baker4a35a702019-11-26 08:17:33 -08004package api // import "google.golang.org/genproto/protobuf/api"
Zack Williamse940c7a2019-08-21 14:25:39 -07005
Scott Baker4a35a702019-11-26 08:17:33 -08006import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import ptype "google.golang.org/genproto/protobuf/ptype"
10import source_context "google.golang.org/genproto/protobuf/source_context"
Zack Williamse940c7a2019-08-21 14:25:39 -070011
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
Scott Baker4a35a702019-11-26 08:17:33 -080021const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
Zack Williamse940c7a2019-08-21 14:25:39 -070022
23// Api is a light-weight descriptor for an API Interface.
24//
25// Interfaces are also described as "protocol buffer services" in some contexts,
26// such as by the "service" keyword in a .proto file, but they are different
27// from API Services, which represent a concrete implementation of an interface
28// as opposed to simply a description of methods and bindings. They are also
29// sometimes simply referred to as "APIs" in other contexts, such as the name of
30// this message itself. See https://cloud.google.com/apis/design/glossary for
31// detailed terminology.
32type Api struct {
33 // The fully qualified name of this interface, including package name
34 // followed by the interface's simple name.
35 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
36 // The methods of this interface, in unspecified order.
37 Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
38 // Any metadata attached to the interface.
39 Options []*ptype.Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
40 // A version string for this interface. If specified, must have the form
41 // `major-version.minor-version`, as in `1.10`. If the minor version is
42 // omitted, it defaults to zero. If the entire version field is empty, the
43 // major version is derived from the package name, as outlined below. If the
44 // field is not empty, the version in the package name will be verified to be
45 // consistent with what is provided here.
46 //
47 // The versioning schema uses [semantic
48 // versioning](http://semver.org) where the major version number
49 // indicates a breaking change and the minor version an additive,
50 // non-breaking change. Both version numbers are signals to users
51 // what to expect from different versions, and should be carefully
52 // chosen based on the product plan.
53 //
54 // The major version is also reflected in the package name of the
55 // interface, which must end in `v<major-version>`, as in
56 // `google.feature.v1`. For major versions 0 and 1, the suffix can
57 // be omitted. Zero major versions must only be used for
58 // experimental, non-GA interfaces.
59 //
60 //
61 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
62 // Source context for the protocol buffer service represented by this
63 // message.
64 SourceContext *source_context.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
65 // Included interfaces. See [Mixin][].
66 Mixins []*Mixin `protobuf:"bytes,6,rep,name=mixins,proto3" json:"mixins,omitempty"`
67 // The source syntax of the service.
68 Syntax ptype.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
69 XXX_NoUnkeyedLiteral struct{} `json:"-"`
70 XXX_unrecognized []byte `json:"-"`
71 XXX_sizecache int32 `json:"-"`
72}
73
74func (m *Api) Reset() { *m = Api{} }
75func (m *Api) String() string { return proto.CompactTextString(m) }
76func (*Api) ProtoMessage() {}
77func (*Api) Descriptor() ([]byte, []int) {
Scott Baker4a35a702019-11-26 08:17:33 -080078 return fileDescriptor_api_3a57081c831903d2, []int{0}
Zack Williamse940c7a2019-08-21 14:25:39 -070079}
Zack Williamse940c7a2019-08-21 14:25:39 -070080func (m *Api) XXX_Unmarshal(b []byte) error {
81 return xxx_messageInfo_Api.Unmarshal(m, b)
82}
83func (m *Api) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 return xxx_messageInfo_Api.Marshal(b, m, deterministic)
85}
Scott Baker4a35a702019-11-26 08:17:33 -080086func (dst *Api) XXX_Merge(src proto.Message) {
87 xxx_messageInfo_Api.Merge(dst, src)
Zack Williamse940c7a2019-08-21 14:25:39 -070088}
89func (m *Api) XXX_Size() int {
90 return xxx_messageInfo_Api.Size(m)
91}
92func (m *Api) XXX_DiscardUnknown() {
93 xxx_messageInfo_Api.DiscardUnknown(m)
94}
95
96var xxx_messageInfo_Api proto.InternalMessageInfo
97
98func (m *Api) GetName() string {
99 if m != nil {
100 return m.Name
101 }
102 return ""
103}
104
105func (m *Api) GetMethods() []*Method {
106 if m != nil {
107 return m.Methods
108 }
109 return nil
110}
111
112func (m *Api) GetOptions() []*ptype.Option {
113 if m != nil {
114 return m.Options
115 }
116 return nil
117}
118
119func (m *Api) GetVersion() string {
120 if m != nil {
121 return m.Version
122 }
123 return ""
124}
125
126func (m *Api) GetSourceContext() *source_context.SourceContext {
127 if m != nil {
128 return m.SourceContext
129 }
130 return nil
131}
132
133func (m *Api) GetMixins() []*Mixin {
134 if m != nil {
135 return m.Mixins
136 }
137 return nil
138}
139
140func (m *Api) GetSyntax() ptype.Syntax {
141 if m != nil {
142 return m.Syntax
143 }
144 return ptype.Syntax_SYNTAX_PROTO2
145}
146
147// Method represents a method of an API interface.
148type Method struct {
149 // The simple name of this method.
150 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
151 // A URL of the input message type.
152 RequestTypeUrl string `protobuf:"bytes,2,opt,name=request_type_url,json=requestTypeUrl,proto3" json:"request_type_url,omitempty"`
153 // If true, the request is streamed.
154 RequestStreaming bool `protobuf:"varint,3,opt,name=request_streaming,json=requestStreaming,proto3" json:"request_streaming,omitempty"`
155 // The URL of the output message type.
156 ResponseTypeUrl string `protobuf:"bytes,4,opt,name=response_type_url,json=responseTypeUrl,proto3" json:"response_type_url,omitempty"`
157 // If true, the response is streamed.
158 ResponseStreaming bool `protobuf:"varint,5,opt,name=response_streaming,json=responseStreaming,proto3" json:"response_streaming,omitempty"`
159 // Any metadata attached to the method.
160 Options []*ptype.Option `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"`
161 // The source syntax of this method.
162 Syntax ptype.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
163 XXX_NoUnkeyedLiteral struct{} `json:"-"`
164 XXX_unrecognized []byte `json:"-"`
165 XXX_sizecache int32 `json:"-"`
166}
167
168func (m *Method) Reset() { *m = Method{} }
169func (m *Method) String() string { return proto.CompactTextString(m) }
170func (*Method) ProtoMessage() {}
171func (*Method) Descriptor() ([]byte, []int) {
Scott Baker4a35a702019-11-26 08:17:33 -0800172 return fileDescriptor_api_3a57081c831903d2, []int{1}
Zack Williamse940c7a2019-08-21 14:25:39 -0700173}
Zack Williamse940c7a2019-08-21 14:25:39 -0700174func (m *Method) XXX_Unmarshal(b []byte) error {
175 return xxx_messageInfo_Method.Unmarshal(m, b)
176}
177func (m *Method) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
178 return xxx_messageInfo_Method.Marshal(b, m, deterministic)
179}
Scott Baker4a35a702019-11-26 08:17:33 -0800180func (dst *Method) XXX_Merge(src proto.Message) {
181 xxx_messageInfo_Method.Merge(dst, src)
Zack Williamse940c7a2019-08-21 14:25:39 -0700182}
183func (m *Method) XXX_Size() int {
184 return xxx_messageInfo_Method.Size(m)
185}
186func (m *Method) XXX_DiscardUnknown() {
187 xxx_messageInfo_Method.DiscardUnknown(m)
188}
189
190var xxx_messageInfo_Method proto.InternalMessageInfo
191
192func (m *Method) GetName() string {
193 if m != nil {
194 return m.Name
195 }
196 return ""
197}
198
199func (m *Method) GetRequestTypeUrl() string {
200 if m != nil {
201 return m.RequestTypeUrl
202 }
203 return ""
204}
205
206func (m *Method) GetRequestStreaming() bool {
207 if m != nil {
208 return m.RequestStreaming
209 }
210 return false
211}
212
213func (m *Method) GetResponseTypeUrl() string {
214 if m != nil {
215 return m.ResponseTypeUrl
216 }
217 return ""
218}
219
220func (m *Method) GetResponseStreaming() bool {
221 if m != nil {
222 return m.ResponseStreaming
223 }
224 return false
225}
226
227func (m *Method) GetOptions() []*ptype.Option {
228 if m != nil {
229 return m.Options
230 }
231 return nil
232}
233
234func (m *Method) GetSyntax() ptype.Syntax {
235 if m != nil {
236 return m.Syntax
237 }
238 return ptype.Syntax_SYNTAX_PROTO2
239}
240
241// Declares an API Interface to be included in this interface. The including
242// interface must redeclare all the methods from the included interface, but
243// documentation and options are inherited as follows:
244//
245// - If after comment and whitespace stripping, the documentation
246// string of the redeclared method is empty, it will be inherited
247// from the original method.
248//
249// - Each annotation belonging to the service config (http,
250// visibility) which is not set in the redeclared method will be
251// inherited.
252//
253// - If an http annotation is inherited, the path pattern will be
254// modified as follows. Any version prefix will be replaced by the
255// version of the including interface plus the [root][] path if
256// specified.
257//
258// Example of a simple mixin:
259//
260// package google.acl.v1;
261// service AccessControl {
262// // Get the underlying ACL object.
263// rpc GetAcl(GetAclRequest) returns (Acl) {
264// option (google.api.http).get = "/v1/{resource=**}:getAcl";
265// }
266// }
267//
268// package google.storage.v2;
269// service Storage {
270// rpc GetAcl(GetAclRequest) returns (Acl);
271//
272// // Get a data record.
273// rpc GetData(GetDataRequest) returns (Data) {
274// option (google.api.http).get = "/v2/{resource=**}";
275// }
276// }
277//
278// Example of a mixin configuration:
279//
280// apis:
281// - name: google.storage.v2.Storage
282// mixins:
283// - name: google.acl.v1.AccessControl
284//
285// The mixin construct implies that all methods in `AccessControl` are
286// also declared with same name and request/response types in
287// `Storage`. A documentation generator or annotation processor will
288// see the effective `Storage.GetAcl` method after inherting
289// documentation and annotations as follows:
290//
291// service Storage {
292// // Get the underlying ACL object.
293// rpc GetAcl(GetAclRequest) returns (Acl) {
294// option (google.api.http).get = "/v2/{resource=**}:getAcl";
295// }
296// ...
297// }
298//
299// Note how the version in the path pattern changed from `v1` to `v2`.
300//
301// If the `root` field in the mixin is specified, it should be a
302// relative path under which inherited HTTP paths are placed. Example:
303//
304// apis:
305// - name: google.storage.v2.Storage
306// mixins:
307// - name: google.acl.v1.AccessControl
308// root: acls
309//
310// This implies the following inherited HTTP annotation:
311//
312// service Storage {
313// // Get the underlying ACL object.
314// rpc GetAcl(GetAclRequest) returns (Acl) {
315// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
316// }
317// ...
318// }
319type Mixin struct {
320 // The fully qualified name of the interface which is included.
321 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
322 // If non-empty specifies a path under which inherited HTTP paths
323 // are rooted.
324 Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
325 XXX_NoUnkeyedLiteral struct{} `json:"-"`
326 XXX_unrecognized []byte `json:"-"`
327 XXX_sizecache int32 `json:"-"`
328}
329
330func (m *Mixin) Reset() { *m = Mixin{} }
331func (m *Mixin) String() string { return proto.CompactTextString(m) }
332func (*Mixin) ProtoMessage() {}
333func (*Mixin) Descriptor() ([]byte, []int) {
Scott Baker4a35a702019-11-26 08:17:33 -0800334 return fileDescriptor_api_3a57081c831903d2, []int{2}
Zack Williamse940c7a2019-08-21 14:25:39 -0700335}
Zack Williamse940c7a2019-08-21 14:25:39 -0700336func (m *Mixin) XXX_Unmarshal(b []byte) error {
337 return xxx_messageInfo_Mixin.Unmarshal(m, b)
338}
339func (m *Mixin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
340 return xxx_messageInfo_Mixin.Marshal(b, m, deterministic)
341}
Scott Baker4a35a702019-11-26 08:17:33 -0800342func (dst *Mixin) XXX_Merge(src proto.Message) {
343 xxx_messageInfo_Mixin.Merge(dst, src)
Zack Williamse940c7a2019-08-21 14:25:39 -0700344}
345func (m *Mixin) XXX_Size() int {
346 return xxx_messageInfo_Mixin.Size(m)
347}
348func (m *Mixin) XXX_DiscardUnknown() {
349 xxx_messageInfo_Mixin.DiscardUnknown(m)
350}
351
352var xxx_messageInfo_Mixin proto.InternalMessageInfo
353
354func (m *Mixin) GetName() string {
355 if m != nil {
356 return m.Name
357 }
358 return ""
359}
360
361func (m *Mixin) GetRoot() string {
362 if m != nil {
363 return m.Root
364 }
365 return ""
366}
367
368func init() {
369 proto.RegisterType((*Api)(nil), "google.protobuf.Api")
370 proto.RegisterType((*Method)(nil), "google.protobuf.Method")
371 proto.RegisterType((*Mixin)(nil), "google.protobuf.Mixin")
372}
373
Scott Baker4a35a702019-11-26 08:17:33 -0800374func init() { proto.RegisterFile("google/protobuf/api.proto", fileDescriptor_api_3a57081c831903d2) }
Zack Williamse940c7a2019-08-21 14:25:39 -0700375
Scott Baker4a35a702019-11-26 08:17:33 -0800376var fileDescriptor_api_3a57081c831903d2 = []byte{
Zack Williamse940c7a2019-08-21 14:25:39 -0700377 // 432 bytes of a gzipped FileDescriptorProto
378 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x8e, 0xd3, 0x30,
379 0x10, 0xc6, 0x95, 0xa4, 0x4d, 0x17, 0xaf, 0xe8, 0x82, 0x91, 0xc0, 0xf4, 0xb0, 0x8a, 0x56, 0x1c,
380 0x22, 0x2a, 0x12, 0x51, 0x8e, 0x9c, 0x5a, 0x84, 0x7a, 0x40, 0x88, 0x28, 0x05, 0x21, 0x71, 0xa9,
381 0xd2, 0x62, 0x82, 0xa5, 0xc4, 0x63, 0x6c, 0x07, 0xda, 0xd7, 0xe1, 0xc8, 0x91, 0x37, 0xe0, 0xcd,
382 0x50, 0x9c, 0xb8, 0x7f, 0xd2, 0x22, 0xb1, 0x37, 0x8f, 0xbf, 0xdf, 0x7c, 0x99, 0xf9, 0xac, 0xa0,
383 0xc7, 0x39, 0x40, 0x5e, 0xd0, 0x58, 0x48, 0xd0, 0xb0, 0xaa, 0xbe, 0xc4, 0x99, 0x60, 0x91, 0x29,
384 0xf0, 0x55, 0x23, 0x45, 0x56, 0x1a, 0x3d, 0xe9, 0xb2, 0x0a, 0x2a, 0xb9, 0xa6, 0xcb, 0x35, 0x70,
385 0x4d, 0x37, 0xba, 0x01, 0x47, 0xa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0x70, 0xc2, 0x8b, 0xd4, 0x5a, 0x2c, 0xec,
397 0x3d, 0x7e, 0x5a, 0xc3, 0x4a, 0x00, 0x57, 0x74, 0xef, 0xdb, 0x24, 0x78, 0x65, 0x05, 0x6b, 0xfc,
398 0x0c, 0xe1, 0x1d, 0xbb, 0x77, 0xee, 0x1b, 0xe7, 0x9d, 0xcb, 0xde, 0xfa, 0xe0, 0x15, 0xfd, 0xff,
399 0x7c, 0xc5, 0x5b, 0x87, 0x16, 0xa3, 0xbe, 0x89, 0xfd, 0x6c, 0x64, 0x18, 0xf5, 0x24, 0x80, 0x6e,
400 0x63, 0x32, 0xe7, 0x59, 0x85, 0x1e, 0xac, 0xa1, 0xec, 0xda, 0xce, 0x2e, 0xa6, 0x82, 0x25, 0x75,
401 0x91, 0x38, 0x9f, 0xc6, 0xad, 0x98, 0x43, 0x91, 0xf1, 0x3c, 0x02, 0x99, 0xc7, 0x39, 0xe5, 0x06,
402 0x3d, 0xfa, 0x9d, 0x5e, 0x66, 0x82, 0xfd, 0x74, 0xbd, 0x79, 0x32, 0xfb, 0xe5, 0x5e, 0xcf, 0x9b,
403 0x9e, 0xc4, 0xce, 0xf9, 0x91, 0x16, 0xc5, 0x1b, 0x0e, 0x3f, 0x78, 0x1d, 0x9e, 0x5a, 0xf9, 0xa6,
404 0xf1, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x07, 0x73, 0x11, 0x97, 0x03, 0x00, 0x00,
405}