plugin.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. // https://developers.google.com/protocol-buffers/
  4. //
  5. // Redistribution and use in source and binary forms, with or without
  6. // modification, are permitted provided that the following conditions are
  7. // met:
  8. //
  9. // * Redistributions of source code must retain the above copyright
  10. // notice, this list of conditions and the following disclaimer.
  11. // * Redistributions in binary form must reproduce the above
  12. // copyright notice, this list of conditions and the following disclaimer
  13. // in the documentation and/or other materials provided with the
  14. // distribution.
  15. // * Neither the name of Google Inc. nor the names of its
  16. // contributors may be used to endorse or promote products derived from
  17. // this software without specific prior written permission.
  18. //
  19. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  23. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  24. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  25. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  29. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. // Author: kenton@google.com (Kenton Varda)
  31. //
  32. // WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
  33. // change.
  34. //
  35. // protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
  36. // just a program that reads a CodeGeneratorRequest from stdin and writes a
  37. // CodeGeneratorResponse to stdout.
  38. //
  39. // Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
  40. // of dealing with the raw protocol defined here.
  41. //
  42. // A plugin executable needs only to be placed somewhere in the path. The
  43. // plugin should be named "protoc-gen-$NAME", and will then be used when the
  44. // flag "--${NAME}_out" is passed to protoc.
  45. // Code generated by protoc-gen-go. DO NOT EDIT.
  46. // source: google/protobuf/compiler/plugin.proto
  47. package pluginpb
  48. import (
  49. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  50. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  51. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  52. reflect "reflect"
  53. sync "sync"
  54. )
  55. // The version number of protocol compiler.
  56. type Version struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
  61. Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
  62. Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
  63. // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
  64. // be empty for mainline stable releases.
  65. Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
  66. }
  67. func (x *Version) Reset() {
  68. *x = Version{}
  69. }
  70. func (x *Version) String() string {
  71. return protoimpl.X.MessageStringOf(x)
  72. }
  73. func (*Version) ProtoMessage() {}
  74. func (x *Version) ProtoReflect() protoreflect.Message {
  75. mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0]
  76. if protoimpl.UnsafeEnabled && x != nil {
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. if ms.LoadMessageInfo() == nil {
  79. ms.StoreMessageInfo(mi)
  80. }
  81. return ms
  82. }
  83. return mi.MessageOf(x)
  84. }
  85. // Deprecated: Use Version.ProtoReflect.Descriptor instead.
  86. func (*Version) Descriptor() ([]byte, []int) {
  87. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{0}
  88. }
  89. func (x *Version) GetMajor() int32 {
  90. if x != nil && x.Major != nil {
  91. return *x.Major
  92. }
  93. return 0
  94. }
  95. func (x *Version) GetMinor() int32 {
  96. if x != nil && x.Minor != nil {
  97. return *x.Minor
  98. }
  99. return 0
  100. }
  101. func (x *Version) GetPatch() int32 {
  102. if x != nil && x.Patch != nil {
  103. return *x.Patch
  104. }
  105. return 0
  106. }
  107. func (x *Version) GetSuffix() string {
  108. if x != nil && x.Suffix != nil {
  109. return *x.Suffix
  110. }
  111. return ""
  112. }
  113. // An encoded CodeGeneratorRequest is written to the plugin's stdin.
  114. type CodeGeneratorRequest struct {
  115. state protoimpl.MessageState
  116. sizeCache protoimpl.SizeCache
  117. unknownFields protoimpl.UnknownFields
  118. // The .proto files that were explicitly listed on the command-line. The
  119. // code generator should generate code only for these files. Each file's
  120. // descriptor will be included in proto_file, below.
  121. FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
  122. // The generator parameter passed on the command-line.
  123. Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
  124. // FileDescriptorProtos for all files in files_to_generate and everything
  125. // they import. The files will appear in topological order, so each file
  126. // appears before any file that imports it.
  127. //
  128. // protoc guarantees that all proto_files will be written after
  129. // the fields above, even though this is not technically guaranteed by the
  130. // protobuf wire format. This theoretically could allow a plugin to stream
  131. // in the FileDescriptorProtos and handle them one by one rather than read
  132. // the entire set into memory at once. However, as of this writing, this
  133. // is not similarly optimized on protoc's end -- it will store all fields in
  134. // memory at once before sending them to the plugin.
  135. //
  136. // Type names of fields and extensions in the FileDescriptorProto are always
  137. // fully qualified.
  138. ProtoFile []*descriptorpb.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
  139. // The version number of protocol compiler.
  140. CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
  141. }
  142. func (x *CodeGeneratorRequest) Reset() {
  143. *x = CodeGeneratorRequest{}
  144. }
  145. func (x *CodeGeneratorRequest) String() string {
  146. return protoimpl.X.MessageStringOf(x)
  147. }
  148. func (*CodeGeneratorRequest) ProtoMessage() {}
  149. func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message {
  150. mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1]
  151. if protoimpl.UnsafeEnabled && x != nil {
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. if ms.LoadMessageInfo() == nil {
  154. ms.StoreMessageInfo(mi)
  155. }
  156. return ms
  157. }
  158. return mi.MessageOf(x)
  159. }
  160. // Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead.
  161. func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
  162. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{1}
  163. }
  164. func (x *CodeGeneratorRequest) GetFileToGenerate() []string {
  165. if x != nil {
  166. return x.FileToGenerate
  167. }
  168. return nil
  169. }
  170. func (x *CodeGeneratorRequest) GetParameter() string {
  171. if x != nil && x.Parameter != nil {
  172. return *x.Parameter
  173. }
  174. return ""
  175. }
  176. func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto {
  177. if x != nil {
  178. return x.ProtoFile
  179. }
  180. return nil
  181. }
  182. func (x *CodeGeneratorRequest) GetCompilerVersion() *Version {
  183. if x != nil {
  184. return x.CompilerVersion
  185. }
  186. return nil
  187. }
  188. // The plugin writes an encoded CodeGeneratorResponse to stdout.
  189. type CodeGeneratorResponse struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. // Error message. If non-empty, code generation failed. The plugin process
  194. // should exit with status code zero even if it reports an error in this way.
  195. //
  196. // This should be used to indicate errors in .proto files which prevent the
  197. // code generator from generating correct code. Errors which indicate a
  198. // problem in protoc itself -- such as the input CodeGeneratorRequest being
  199. // unparseable -- should be reported by writing a message to stderr and
  200. // exiting with a non-zero status code.
  201. Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  202. File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
  203. }
  204. func (x *CodeGeneratorResponse) Reset() {
  205. *x = CodeGeneratorResponse{}
  206. }
  207. func (x *CodeGeneratorResponse) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*CodeGeneratorResponse) ProtoMessage() {}
  211. func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
  212. mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2]
  213. if protoimpl.UnsafeEnabled && x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead.
  223. func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
  224. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2}
  225. }
  226. func (x *CodeGeneratorResponse) GetError() string {
  227. if x != nil && x.Error != nil {
  228. return *x.Error
  229. }
  230. return ""
  231. }
  232. func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
  233. if x != nil {
  234. return x.File
  235. }
  236. return nil
  237. }
  238. // Represents a single generated file.
  239. type CodeGeneratorResponse_File struct {
  240. state protoimpl.MessageState
  241. sizeCache protoimpl.SizeCache
  242. unknownFields protoimpl.UnknownFields
  243. // The file name, relative to the output directory. The name must not
  244. // contain "." or ".." components and must be relative, not be absolute (so,
  245. // the file cannot lie outside the output directory). "/" must be used as
  246. // the path separator, not "\".
  247. //
  248. // If the name is omitted, the content will be appended to the previous
  249. // file. This allows the generator to break large files into small chunks,
  250. // and allows the generated text to be streamed back to protoc so that large
  251. // files need not reside completely in memory at one time. Note that as of
  252. // this writing protoc does not optimize for this -- it will read the entire
  253. // CodeGeneratorResponse before writing files to disk.
  254. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  255. // If non-empty, indicates that the named file should already exist, and the
  256. // content here is to be inserted into that file at a defined insertion
  257. // point. This feature allows a code generator to extend the output
  258. // produced by another code generator. The original generator may provide
  259. // insertion points by placing special annotations in the file that look
  260. // like:
  261. // @@protoc_insertion_point(NAME)
  262. // The annotation can have arbitrary text before and after it on the line,
  263. // which allows it to be placed in a comment. NAME should be replaced with
  264. // an identifier naming the point -- this is what other generators will use
  265. // as the insertion_point. Code inserted at this point will be placed
  266. // immediately above the line containing the insertion point (thus multiple
  267. // insertions to the same point will come out in the order they were added).
  268. // The double-@ is intended to make it unlikely that the generated code
  269. // could contain things that look like insertion points by accident.
  270. //
  271. // For example, the C++ code generator places the following line in the
  272. // .pb.h files that it generates:
  273. // // @@protoc_insertion_point(namespace_scope)
  274. // This line appears within the scope of the file's package namespace, but
  275. // outside of any particular class. Another plugin can then specify the
  276. // insertion_point "namespace_scope" to generate additional classes or
  277. // other declarations that should be placed in this scope.
  278. //
  279. // Note that if the line containing the insertion point begins with
  280. // whitespace, the same whitespace will be added to every line of the
  281. // inserted text. This is useful for languages like Python, where
  282. // indentation matters. In these languages, the insertion point comment
  283. // should be indented the same amount as any inserted code will need to be
  284. // in order to work correctly in that context.
  285. //
  286. // The code generator that generates the initial file and the one which
  287. // inserts into it must both run as part of a single invocation of protoc.
  288. // Code generators are executed in the order in which they appear on the
  289. // command line.
  290. //
  291. // If |insertion_point| is present, |name| must also be present.
  292. InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
  293. // The file contents.
  294. Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
  295. }
  296. func (x *CodeGeneratorResponse_File) Reset() {
  297. *x = CodeGeneratorResponse_File{}
  298. }
  299. func (x *CodeGeneratorResponse_File) String() string {
  300. return protoimpl.X.MessageStringOf(x)
  301. }
  302. func (*CodeGeneratorResponse_File) ProtoMessage() {}
  303. func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
  304. mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3]
  305. if protoimpl.UnsafeEnabled && x != nil {
  306. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  307. if ms.LoadMessageInfo() == nil {
  308. ms.StoreMessageInfo(mi)
  309. }
  310. return ms
  311. }
  312. return mi.MessageOf(x)
  313. }
  314. // Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead.
  315. func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
  316. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0}
  317. }
  318. func (x *CodeGeneratorResponse_File) GetName() string {
  319. if x != nil && x.Name != nil {
  320. return *x.Name
  321. }
  322. return ""
  323. }
  324. func (x *CodeGeneratorResponse_File) GetInsertionPoint() string {
  325. if x != nil && x.InsertionPoint != nil {
  326. return *x.InsertionPoint
  327. }
  328. return ""
  329. }
  330. func (x *CodeGeneratorResponse_File) GetContent() string {
  331. if x != nil && x.Content != nil {
  332. return *x.Content
  333. }
  334. return ""
  335. }
  336. var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor
  337. var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{
  338. 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  339. 0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
  340. 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  341. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
  342. 0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  343. 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
  344. 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14,
  345. 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
  346. 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20,
  347. 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61,
  348. 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68,
  349. 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  350. 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x64,
  351. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  352. 0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e,
  353. 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c,
  354. 0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70,
  355. 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  356. 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
  357. 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
  358. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  359. 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72,
  360. 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x4c,
  361. 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
  362. 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  363. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69,
  364. 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d,
  365. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd6, 0x01, 0x0a,
  366. 0x15, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65,
  367. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
  368. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x04,
  369. 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f,
  370. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d,
  371. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
  372. 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65,
  373. 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x5d, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12,
  374. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  375. 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  376. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73,
  377. 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
  378. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
  379. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x57, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
  380. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d,
  381. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x42, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f,
  382. 0x74, 0x6f, 0x73, 0x5a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
  383. 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  384. 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x62,
  385. }
  386. var (
  387. file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once
  388. file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc
  389. )
  390. func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte {
  391. file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() {
  392. file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData)
  393. })
  394. return file_google_protobuf_compiler_plugin_proto_rawDescData
  395. }
  396. var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  397. var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{
  398. (*Version)(nil), // 0: google.protobuf.compiler.Version
  399. (*CodeGeneratorRequest)(nil), // 1: google.protobuf.compiler.CodeGeneratorRequest
  400. (*CodeGeneratorResponse)(nil), // 2: google.protobuf.compiler.CodeGeneratorResponse
  401. (*CodeGeneratorResponse_File)(nil), // 3: google.protobuf.compiler.CodeGeneratorResponse.File
  402. (*descriptorpb.FileDescriptorProto)(nil), // 4: google.protobuf.FileDescriptorProto
  403. }
  404. var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{
  405. 4, // 0: google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto
  406. 0, // 1: google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version
  407. 3, // 2: google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File
  408. 3, // [3:3] is the sub-list for method output_type
  409. 3, // [3:3] is the sub-list for method input_type
  410. 3, // [3:3] is the sub-list for extension type_name
  411. 3, // [3:3] is the sub-list for extension extendee
  412. 0, // [0:3] is the sub-list for field type_name
  413. }
  414. func init() { file_google_protobuf_compiler_plugin_proto_init() }
  415. func file_google_protobuf_compiler_plugin_proto_init() {
  416. if File_google_protobuf_compiler_plugin_proto != nil {
  417. return
  418. }
  419. if !protoimpl.UnsafeEnabled {
  420. file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  421. switch v := v.(*Version); i {
  422. case 0:
  423. return &v.state
  424. case 1:
  425. return &v.sizeCache
  426. case 2:
  427. return &v.unknownFields
  428. default:
  429. return nil
  430. }
  431. }
  432. file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  433. switch v := v.(*CodeGeneratorRequest); i {
  434. case 0:
  435. return &v.state
  436. case 1:
  437. return &v.sizeCache
  438. case 2:
  439. return &v.unknownFields
  440. default:
  441. return nil
  442. }
  443. }
  444. file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  445. switch v := v.(*CodeGeneratorResponse); i {
  446. case 0:
  447. return &v.state
  448. case 1:
  449. return &v.sizeCache
  450. case 2:
  451. return &v.unknownFields
  452. default:
  453. return nil
  454. }
  455. }
  456. file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  457. switch v := v.(*CodeGeneratorResponse_File); i {
  458. case 0:
  459. return &v.state
  460. case 1:
  461. return &v.sizeCache
  462. case 2:
  463. return &v.unknownFields
  464. default:
  465. return nil
  466. }
  467. }
  468. }
  469. type x struct{}
  470. out := protoimpl.TypeBuilder{
  471. File: protoimpl.DescBuilder{
  472. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  473. RawDescriptor: file_google_protobuf_compiler_plugin_proto_rawDesc,
  474. NumEnums: 0,
  475. NumMessages: 4,
  476. NumExtensions: 0,
  477. NumServices: 0,
  478. },
  479. GoTypes: file_google_protobuf_compiler_plugin_proto_goTypes,
  480. DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs,
  481. MessageInfos: file_google_protobuf_compiler_plugin_proto_msgTypes,
  482. }.Build()
  483. File_google_protobuf_compiler_plugin_proto = out.File
  484. file_google_protobuf_compiler_plugin_proto_rawDesc = nil
  485. file_google_protobuf_compiler_plugin_proto_goTypes = nil
  486. file_google_protobuf_compiler_plugin_proto_depIdxs = nil
  487. }