plugin.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/protobuf/compiler/plugin.proto
  3. package plugin_go
  4. import (
  5. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  6. prototype "github.com/golang/protobuf/v2/reflect/prototype"
  7. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  8. descriptor "github.com/golang/protobuf/v2/types/descriptor"
  9. )
  10. // The version number of protocol compiler.
  11. type Version struct {
  12. Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
  13. Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
  14. Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
  15. // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
  16. // be empty for mainline stable releases.
  17. Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
  18. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  19. XXX_unrecognized []byte `json:"-"`
  20. XXX_sizecache int32 `json:"-"`
  21. }
  22. type xxx_Version struct{ m *Version }
  23. func (m *Version) ProtoReflect() protoreflect.Message {
  24. return xxx_Version{m}
  25. }
  26. func (m xxx_Version) Type() protoreflect.MessageType {
  27. return xxx_Plugin_ProtoFile_MessageTypes[0].Type
  28. }
  29. func (m xxx_Version) KnownFields() protoreflect.KnownFields {
  30. return xxx_Plugin_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
  31. }
  32. func (m xxx_Version) UnknownFields() protoreflect.UnknownFields {
  33. return xxx_Plugin_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
  34. }
  35. func (m xxx_Version) Interface() protoreflect.ProtoMessage {
  36. return m.m
  37. }
  38. func (m xxx_Version) ProtoMutable() {}
  39. func (m *Version) Reset() { *m = Version{} }
  40. func (m *Version) String() string { return "not implemented" }
  41. func (*Version) ProtoMessage() {}
  42. func (*Version) Descriptor() ([]byte, []int) {
  43. return fileDescriptor_3562add825dafed5, []int{0}
  44. }
  45. func (m *Version) GetMajor() int32 {
  46. if m != nil && m.Major != nil {
  47. return *m.Major
  48. }
  49. return 0
  50. }
  51. func (m *Version) GetMinor() int32 {
  52. if m != nil && m.Minor != nil {
  53. return *m.Minor
  54. }
  55. return 0
  56. }
  57. func (m *Version) GetPatch() int32 {
  58. if m != nil && m.Patch != nil {
  59. return *m.Patch
  60. }
  61. return 0
  62. }
  63. func (m *Version) GetSuffix() string {
  64. if m != nil && m.Suffix != nil {
  65. return *m.Suffix
  66. }
  67. return ""
  68. }
  69. // An encoded CodeGeneratorRequest is written to the plugin's stdin.
  70. type CodeGeneratorRequest struct {
  71. // The .proto files that were explicitly listed on the command-line. The
  72. // code generator should generate code only for these files. Each file's
  73. // descriptor will be included in proto_file, below.
  74. FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
  75. // The generator parameter passed on the command-line.
  76. Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
  77. // FileDescriptorProtos for all files in files_to_generate and everything
  78. // they import. The files will appear in topological order, so each file
  79. // appears before any file that imports it.
  80. //
  81. // protoc guarantees that all proto_files will be written after
  82. // the fields above, even though this is not technically guaranteed by the
  83. // protobuf wire format. This theoretically could allow a plugin to stream
  84. // in the FileDescriptorProtos and handle them one by one rather than read
  85. // the entire set into memory at once. However, as of this writing, this
  86. // is not similarly optimized on protoc's end -- it will store all fields in
  87. // memory at once before sending them to the plugin.
  88. //
  89. // Type names of fields and extensions in the FileDescriptorProto are always
  90. // fully qualified.
  91. ProtoFile []*descriptor.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
  92. // The version number of protocol compiler.
  93. CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
  94. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  95. XXX_unrecognized []byte `json:"-"`
  96. XXX_sizecache int32 `json:"-"`
  97. }
  98. type xxx_CodeGeneratorRequest struct{ m *CodeGeneratorRequest }
  99. func (m *CodeGeneratorRequest) ProtoReflect() protoreflect.Message {
  100. return xxx_CodeGeneratorRequest{m}
  101. }
  102. func (m xxx_CodeGeneratorRequest) Type() protoreflect.MessageType {
  103. return xxx_Plugin_ProtoFile_MessageTypes[1].Type
  104. }
  105. func (m xxx_CodeGeneratorRequest) KnownFields() protoreflect.KnownFields {
  106. return xxx_Plugin_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
  107. }
  108. func (m xxx_CodeGeneratorRequest) UnknownFields() protoreflect.UnknownFields {
  109. return xxx_Plugin_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
  110. }
  111. func (m xxx_CodeGeneratorRequest) Interface() protoreflect.ProtoMessage {
  112. return m.m
  113. }
  114. func (m xxx_CodeGeneratorRequest) ProtoMutable() {}
  115. func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} }
  116. func (m *CodeGeneratorRequest) String() string { return "not implemented" }
  117. func (*CodeGeneratorRequest) ProtoMessage() {}
  118. func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
  119. return fileDescriptor_3562add825dafed5, []int{1}
  120. }
  121. func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
  122. if m != nil {
  123. return m.FileToGenerate
  124. }
  125. return nil
  126. }
  127. func (m *CodeGeneratorRequest) GetParameter() string {
  128. if m != nil && m.Parameter != nil {
  129. return *m.Parameter
  130. }
  131. return ""
  132. }
  133. func (m *CodeGeneratorRequest) GetProtoFile() []*descriptor.FileDescriptorProto {
  134. if m != nil {
  135. return m.ProtoFile
  136. }
  137. return nil
  138. }
  139. func (m *CodeGeneratorRequest) GetCompilerVersion() *Version {
  140. if m != nil {
  141. return m.CompilerVersion
  142. }
  143. return nil
  144. }
  145. // The plugin writes an encoded CodeGeneratorResponse to stdout.
  146. type CodeGeneratorResponse struct {
  147. // Error message. If non-empty, code generation failed. The plugin process
  148. // should exit with status code zero even if it reports an error in this way.
  149. //
  150. // This should be used to indicate errors in .proto files which prevent the
  151. // code generator from generating correct code. Errors which indicate a
  152. // problem in protoc itself -- such as the input CodeGeneratorRequest being
  153. // unparseable -- should be reported by writing a message to stderr and
  154. // exiting with a non-zero status code.
  155. Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  156. File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
  157. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  158. XXX_unrecognized []byte `json:"-"`
  159. XXX_sizecache int32 `json:"-"`
  160. }
  161. type xxx_CodeGeneratorResponse struct{ m *CodeGeneratorResponse }
  162. func (m *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
  163. return xxx_CodeGeneratorResponse{m}
  164. }
  165. func (m xxx_CodeGeneratorResponse) Type() protoreflect.MessageType {
  166. return xxx_Plugin_ProtoFile_MessageTypes[2].Type
  167. }
  168. func (m xxx_CodeGeneratorResponse) KnownFields() protoreflect.KnownFields {
  169. return xxx_Plugin_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
  170. }
  171. func (m xxx_CodeGeneratorResponse) UnknownFields() protoreflect.UnknownFields {
  172. return xxx_Plugin_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
  173. }
  174. func (m xxx_CodeGeneratorResponse) Interface() protoreflect.ProtoMessage {
  175. return m.m
  176. }
  177. func (m xxx_CodeGeneratorResponse) ProtoMutable() {}
  178. func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} }
  179. func (m *CodeGeneratorResponse) String() string { return "not implemented" }
  180. func (*CodeGeneratorResponse) ProtoMessage() {}
  181. func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
  182. return fileDescriptor_3562add825dafed5, []int{2}
  183. }
  184. func (m *CodeGeneratorResponse) GetError() string {
  185. if m != nil && m.Error != nil {
  186. return *m.Error
  187. }
  188. return ""
  189. }
  190. func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
  191. if m != nil {
  192. return m.File
  193. }
  194. return nil
  195. }
  196. // Represents a single generated file.
  197. type CodeGeneratorResponse_File struct {
  198. // The file name, relative to the output directory. The name must not
  199. // contain "." or ".." components and must be relative, not be absolute (so,
  200. // the file cannot lie outside the output directory). "/" must be used as
  201. // the path separator, not "\".
  202. //
  203. // If the name is omitted, the content will be appended to the previous
  204. // file. This allows the generator to break large files into small chunks,
  205. // and allows the generated text to be streamed back to protoc so that large
  206. // files need not reside completely in memory at one time. Note that as of
  207. // this writing protoc does not optimize for this -- it will read the entire
  208. // CodeGeneratorResponse before writing files to disk.
  209. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  210. // If non-empty, indicates that the named file should already exist, and the
  211. // content here is to be inserted into that file at a defined insertion
  212. // point. This feature allows a code generator to extend the output
  213. // produced by another code generator. The original generator may provide
  214. // insertion points by placing special annotations in the file that look
  215. // like:
  216. // @@protoc_insertion_point(NAME)
  217. // The annotation can have arbitrary text before and after it on the line,
  218. // which allows it to be placed in a comment. NAME should be replaced with
  219. // an identifier naming the point -- this is what other generators will use
  220. // as the insertion_point. Code inserted at this point will be placed
  221. // immediately above the line containing the insertion point (thus multiple
  222. // insertions to the same point will come out in the order they were added).
  223. // The double-@ is intended to make it unlikely that the generated code
  224. // could contain things that look like insertion points by accident.
  225. //
  226. // For example, the C++ code generator places the following line in the
  227. // .pb.h files that it generates:
  228. // // @@protoc_insertion_point(namespace_scope)
  229. // This line appears within the scope of the file's package namespace, but
  230. // outside of any particular class. Another plugin can then specify the
  231. // insertion_point "namespace_scope" to generate additional classes or
  232. // other declarations that should be placed in this scope.
  233. //
  234. // Note that if the line containing the insertion point begins with
  235. // whitespace, the same whitespace will be added to every line of the
  236. // inserted text. This is useful for languages like Python, where
  237. // indentation matters. In these languages, the insertion point comment
  238. // should be indented the same amount as any inserted code will need to be
  239. // in order to work correctly in that context.
  240. //
  241. // The code generator that generates the initial file and the one which
  242. // inserts into it must both run as part of a single invocation of protoc.
  243. // Code generators are executed in the order in which they appear on the
  244. // command line.
  245. //
  246. // If |insertion_point| is present, |name| must also be present.
  247. InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
  248. // The file contents.
  249. Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
  250. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  251. XXX_unrecognized []byte `json:"-"`
  252. XXX_sizecache int32 `json:"-"`
  253. }
  254. type xxx_CodeGeneratorResponse_File struct{ m *CodeGeneratorResponse_File }
  255. func (m *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
  256. return xxx_CodeGeneratorResponse_File{m}
  257. }
  258. func (m xxx_CodeGeneratorResponse_File) Type() protoreflect.MessageType {
  259. return xxx_Plugin_ProtoFile_MessageTypes[3].Type
  260. }
  261. func (m xxx_CodeGeneratorResponse_File) KnownFields() protoreflect.KnownFields {
  262. return xxx_Plugin_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
  263. }
  264. func (m xxx_CodeGeneratorResponse_File) UnknownFields() protoreflect.UnknownFields {
  265. return xxx_Plugin_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
  266. }
  267. func (m xxx_CodeGeneratorResponse_File) Interface() protoreflect.ProtoMessage {
  268. return m.m
  269. }
  270. func (m xxx_CodeGeneratorResponse_File) ProtoMutable() {}
  271. func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} }
  272. func (m *CodeGeneratorResponse_File) String() string { return "not implemented" }
  273. func (*CodeGeneratorResponse_File) ProtoMessage() {}
  274. func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
  275. return fileDescriptor_3562add825dafed5, []int{2, 0}
  276. }
  277. func (m *CodeGeneratorResponse_File) GetName() string {
  278. if m != nil && m.Name != nil {
  279. return *m.Name
  280. }
  281. return ""
  282. }
  283. func (m *CodeGeneratorResponse_File) GetInsertionPoint() string {
  284. if m != nil && m.InsertionPoint != nil {
  285. return *m.InsertionPoint
  286. }
  287. return ""
  288. }
  289. func (m *CodeGeneratorResponse_File) GetContent() string {
  290. if m != nil && m.Content != nil {
  291. return *m.Content
  292. }
  293. return ""
  294. }
  295. var fileDescriptor_3562add825dafed5 = []byte{
  296. // 417 bytes of a gzipped FileDescriptorProto
  297. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6a, 0x14, 0x41,
  298. 0x10, 0xc6, 0x19, 0x77, 0x63, 0x98, 0x8a, 0x64, 0x43, 0x13, 0xa5, 0x09, 0x39, 0x8c, 0x8b, 0xe2,
  299. 0x5c, 0x32, 0x0b, 0xc1, 0x8b, 0x78, 0x4b, 0x44, 0x3d, 0x78, 0x58, 0x1a, 0xf1, 0x20, 0xc8, 0x30,
  300. 0x99, 0xd4, 0x74, 0x5a, 0x66, 0xba, 0xc6, 0xee, 0x1e, 0xf1, 0x49, 0x7d, 0x0f, 0xdf, 0x40, 0xfa,
  301. 0xcf, 0x24, 0xb2, 0xb8, 0xa7, 0xee, 0xef, 0x57, 0xd5, 0xd5, 0x55, 0x1f, 0x05, 0x2f, 0x25, 0x91,
  302. 0xec, 0x71, 0x33, 0x1a, 0x72, 0x74, 0x33, 0x75, 0x9b, 0x96, 0x86, 0x51, 0xf5, 0x68, 0x36, 0x63,
  303. 0x3f, 0x49, 0xa5, 0xab, 0x10, 0x60, 0x3c, 0xa6, 0x55, 0x73, 0x5a, 0x35, 0xa7, 0x9d, 0x15, 0xbb,
  304. 0x05, 0x6e, 0xd1, 0xb6, 0x46, 0x8d, 0x8e, 0x4c, 0xcc, 0x5e, 0xb7, 0x70, 0xf8, 0x05, 0x8d, 0x55,
  305. 0xa4, 0xd9, 0x29, 0x1c, 0x0c, 0xcd, 0x77, 0x32, 0x3c, 0x2b, 0xb2, 0xf2, 0x40, 0x44, 0x11, 0xa8,
  306. 0xd2, 0x64, 0xf8, 0xa3, 0x44, 0xbd, 0xf0, 0x74, 0x6c, 0x5c, 0x7b, 0xc7, 0x17, 0x91, 0x06, 0xc1,
  307. 0x9e, 0xc1, 0x63, 0x3b, 0x75, 0x9d, 0xfa, 0xc5, 0x97, 0x45, 0x56, 0xe6, 0x22, 0xa9, 0xf5, 0x9f,
  308. 0x0c, 0x4e, 0xaf, 0xe9, 0x16, 0x3f, 0xa0, 0x46, 0xd3, 0x38, 0x32, 0x02, 0x7f, 0x4c, 0x68, 0x1d,
  309. 0x2b, 0xe1, 0xa4, 0x53, 0x3d, 0xd6, 0x8e, 0x6a, 0x19, 0x63, 0xc8, 0xb3, 0x62, 0x51, 0xe6, 0xe2,
  310. 0xd8, 0xf3, 0xcf, 0x94, 0x5e, 0x20, 0x3b, 0x87, 0x7c, 0x6c, 0x4c, 0x33, 0xa0, 0xc3, 0xd8, 0x4a,
  311. 0x2e, 0x1e, 0x00, 0xbb, 0x06, 0x08, 0xe3, 0xd4, 0xfe, 0x15, 0x5f, 0x15, 0x8b, 0xf2, 0xe8, 0xf2,
  312. 0x45, 0xb5, 0x6b, 0xcb, 0x7b, 0xd5, 0xe3, 0xbb, 0x7b, 0x03, 0xb6, 0x1e, 0x8b, 0x3c, 0x44, 0x7d,
  313. 0x84, 0x7d, 0x82, 0x93, 0xd9, 0xb8, 0xfa, 0x67, 0xf4, 0x24, 0x8c, 0x77, 0x74, 0xf9, 0xbc, 0xda,
  314. 0xe7, 0x70, 0x95, 0xcc, 0x13, 0xab, 0x99, 0x24, 0xb0, 0xfe, 0x9d, 0xc1, 0xd3, 0x9d, 0x99, 0xed,
  315. 0x48, 0xda, 0xa2, 0xf7, 0x0e, 0x8d, 0x49, 0x3e, 0xe7, 0x22, 0x0a, 0xf6, 0x11, 0x96, 0xff, 0x34,
  316. 0xff, 0x7a, 0xff, 0x8f, 0xff, 0x2d, 0x1a, 0x66, 0x13, 0xa1, 0xc2, 0xd9, 0x37, 0x58, 0x86, 0x79,
  317. 0x18, 0x2c, 0x75, 0x33, 0x60, 0xfa, 0x26, 0xdc, 0xd9, 0x2b, 0x58, 0x29, 0x6d, 0xd1, 0x38, 0x45,
  318. 0xba, 0x1e, 0x49, 0x69, 0x97, 0xcc, 0x3c, 0xbe, 0xc7, 0x5b, 0x4f, 0x19, 0x87, 0xc3, 0x96, 0xb4,
  319. 0x43, 0xed, 0xf8, 0x2a, 0x24, 0xcc, 0xf2, 0x4a, 0xc2, 0x79, 0x4b, 0xc3, 0xde, 0xfe, 0xae, 0x9e,
  320. 0x6c, 0xc3, 0x6e, 0x06, 0x7b, 0xed, 0xd7, 0x37, 0x52, 0xb9, 0xbb, 0xe9, 0xc6, 0x87, 0x37, 0x92,
  321. 0xfa, 0x46, 0xcb, 0x87, 0x65, 0x0c, 0x97, 0xf6, 0x42, 0xa2, 0xbe, 0x90, 0x94, 0x56, 0xfa, 0x6d,
  322. 0x3c, 0x6a, 0x49, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x15, 0x40, 0xc5, 0xfe, 0x02, 0x00,
  323. 0x00,
  324. }
  325. func init() {
  326. xxx_Plugin_ProtoFile_FileDesc.Messages = xxx_Plugin_ProtoFile_MessageDescs[0:3]
  327. xxx_Plugin_ProtoFile_MessageDescs[2].Messages = xxx_Plugin_ProtoFile_MessageDescs[3:4]
  328. xxx_Plugin_ProtoFile_MessageDescs[1].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*descriptor.FileDescriptorProto)(nil))
  329. xxx_Plugin_ProtoFile_MessageDescs[1].Fields[3].MessageType = xxx_Plugin_ProtoFile_MessageTypes[0].Type
  330. xxx_Plugin_ProtoFile_MessageDescs[2].Fields[1].MessageType = xxx_Plugin_ProtoFile_MessageTypes[3].Type
  331. var err error
  332. Plugin_ProtoFile, err = prototype.NewFile(&xxx_Plugin_ProtoFile_FileDesc)
  333. if err != nil {
  334. panic(err)
  335. }
  336. }
  337. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  338. var Plugin_ProtoFile protoreflect.FileDescriptor
  339. var xxx_Plugin_ProtoFile_FileDesc = prototype.File{
  340. Syntax: protoreflect.Proto2,
  341. Path: "google/protobuf/compiler/plugin.proto",
  342. Package: "google.protobuf.compiler",
  343. Imports: []protoreflect.FileImport{
  344. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/descriptor.proto", "google.protobuf")},
  345. },
  346. }
  347. var xxx_Plugin_ProtoFile_MessageTypes = [4]protoimpl.MessageType{
  348. {Type: prototype.GoMessage(
  349. xxx_Plugin_ProtoFile_MessageDescs[0].Reference(),
  350. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  351. return new(Version)
  352. },
  353. )},
  354. {Type: prototype.GoMessage(
  355. xxx_Plugin_ProtoFile_MessageDescs[1].Reference(),
  356. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  357. return new(CodeGeneratorRequest)
  358. },
  359. )},
  360. {Type: prototype.GoMessage(
  361. xxx_Plugin_ProtoFile_MessageDescs[2].Reference(),
  362. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  363. return new(CodeGeneratorResponse)
  364. },
  365. )},
  366. {Type: prototype.GoMessage(
  367. xxx_Plugin_ProtoFile_MessageDescs[3].Reference(),
  368. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  369. return new(CodeGeneratorResponse_File)
  370. },
  371. )},
  372. }
  373. var xxx_Plugin_ProtoFile_MessageDescs = [4]prototype.Message{
  374. {
  375. Name: "Version",
  376. Fields: []prototype.Field{
  377. {
  378. Name: "major",
  379. Number: 1,
  380. Cardinality: protoreflect.Optional,
  381. Kind: protoreflect.Int32Kind,
  382. JSONName: "major",
  383. },
  384. {
  385. Name: "minor",
  386. Number: 2,
  387. Cardinality: protoreflect.Optional,
  388. Kind: protoreflect.Int32Kind,
  389. JSONName: "minor",
  390. },
  391. {
  392. Name: "patch",
  393. Number: 3,
  394. Cardinality: protoreflect.Optional,
  395. Kind: protoreflect.Int32Kind,
  396. JSONName: "patch",
  397. },
  398. {
  399. Name: "suffix",
  400. Number: 4,
  401. Cardinality: protoreflect.Optional,
  402. Kind: protoreflect.StringKind,
  403. JSONName: "suffix",
  404. },
  405. },
  406. },
  407. {
  408. Name: "CodeGeneratorRequest",
  409. Fields: []prototype.Field{
  410. {
  411. Name: "file_to_generate",
  412. Number: 1,
  413. Cardinality: protoreflect.Repeated,
  414. Kind: protoreflect.StringKind,
  415. JSONName: "fileToGenerate",
  416. },
  417. {
  418. Name: "parameter",
  419. Number: 2,
  420. Cardinality: protoreflect.Optional,
  421. Kind: protoreflect.StringKind,
  422. JSONName: "parameter",
  423. },
  424. {
  425. Name: "proto_file",
  426. Number: 15,
  427. Cardinality: protoreflect.Repeated,
  428. Kind: protoreflect.MessageKind,
  429. JSONName: "protoFile",
  430. },
  431. {
  432. Name: "compiler_version",
  433. Number: 3,
  434. Cardinality: protoreflect.Optional,
  435. Kind: protoreflect.MessageKind,
  436. JSONName: "compilerVersion",
  437. },
  438. },
  439. },
  440. {
  441. Name: "CodeGeneratorResponse",
  442. Fields: []prototype.Field{
  443. {
  444. Name: "error",
  445. Number: 1,
  446. Cardinality: protoreflect.Optional,
  447. Kind: protoreflect.StringKind,
  448. JSONName: "error",
  449. },
  450. {
  451. Name: "file",
  452. Number: 15,
  453. Cardinality: protoreflect.Repeated,
  454. Kind: protoreflect.MessageKind,
  455. JSONName: "file",
  456. },
  457. },
  458. },
  459. {
  460. Name: "File",
  461. Fields: []prototype.Field{
  462. {
  463. Name: "name",
  464. Number: 1,
  465. Cardinality: protoreflect.Optional,
  466. Kind: protoreflect.StringKind,
  467. JSONName: "name",
  468. },
  469. {
  470. Name: "insertion_point",
  471. Number: 2,
  472. Cardinality: protoreflect.Optional,
  473. Kind: protoreflect.StringKind,
  474. JSONName: "insertionPoint",
  475. },
  476. {
  477. Name: "content",
  478. Number: 15,
  479. Cardinality: protoreflect.Optional,
  480. Kind: protoreflect.StringKind,
  481. JSONName: "content",
  482. },
  483. },
  484. },
  485. }