plugin.pb.go 22 KB

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