plugin.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/protobuf/compiler/plugin.proto
  3. package pluginpb
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoiface "google.golang.org/protobuf/runtime/protoiface"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  16. )
  17. // The version number of protocol compiler.
  18. type Version struct {
  19. Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
  20. Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
  21. Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
  22. // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
  23. // be empty for mainline stable releases.
  24. Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. }
  28. func (x *Version) Reset() {
  29. *x = Version{}
  30. }
  31. func (x *Version) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Version) ProtoMessage() {}
  35. func (x *Version) ProtoReflect() protoreflect.Message {
  36. return file_google_protobuf_compiler_plugin_proto_msgTypes[0].MessageOf(x)
  37. }
  38. func (m *Version) XXX_Methods() *protoiface.Methods {
  39. return file_google_protobuf_compiler_plugin_proto_msgTypes[0].Methods()
  40. }
  41. // Deprecated: Use Version.ProtoReflect.Type instead.
  42. func (*Version) Descriptor() ([]byte, []int) {
  43. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{0}
  44. }
  45. func (x *Version) GetMajor() int32 {
  46. if x != nil && x.Major != nil {
  47. return *x.Major
  48. }
  49. return 0
  50. }
  51. func (x *Version) GetMinor() int32 {
  52. if x != nil && x.Minor != nil {
  53. return *x.Minor
  54. }
  55. return 0
  56. }
  57. func (x *Version) GetPatch() int32 {
  58. if x != nil && x.Patch != nil {
  59. return *x.Patch
  60. }
  61. return 0
  62. }
  63. func (x *Version) GetSuffix() string {
  64. if x != nil && x.Suffix != nil {
  65. return *x.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 []*descriptorpb.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. sizeCache protoimpl.SizeCache
  95. unknownFields protoimpl.UnknownFields
  96. }
  97. func (x *CodeGeneratorRequest) Reset() {
  98. *x = CodeGeneratorRequest{}
  99. }
  100. func (x *CodeGeneratorRequest) String() string {
  101. return protoimpl.X.MessageStringOf(x)
  102. }
  103. func (*CodeGeneratorRequest) ProtoMessage() {}
  104. func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message {
  105. return file_google_protobuf_compiler_plugin_proto_msgTypes[1].MessageOf(x)
  106. }
  107. func (m *CodeGeneratorRequest) XXX_Methods() *protoiface.Methods {
  108. return file_google_protobuf_compiler_plugin_proto_msgTypes[1].Methods()
  109. }
  110. // Deprecated: Use CodeGeneratorRequest.ProtoReflect.Type instead.
  111. func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
  112. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{1}
  113. }
  114. func (x *CodeGeneratorRequest) GetFileToGenerate() []string {
  115. if x != nil {
  116. return x.FileToGenerate
  117. }
  118. return nil
  119. }
  120. func (x *CodeGeneratorRequest) GetParameter() string {
  121. if x != nil && x.Parameter != nil {
  122. return *x.Parameter
  123. }
  124. return ""
  125. }
  126. func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto {
  127. if x != nil {
  128. return x.ProtoFile
  129. }
  130. return nil
  131. }
  132. func (x *CodeGeneratorRequest) GetCompilerVersion() *Version {
  133. if x != nil {
  134. return x.CompilerVersion
  135. }
  136. return nil
  137. }
  138. // The plugin writes an encoded CodeGeneratorResponse to stdout.
  139. type CodeGeneratorResponse struct {
  140. // Error message. If non-empty, code generation failed. The plugin process
  141. // should exit with status code zero even if it reports an error in this way.
  142. //
  143. // This should be used to indicate errors in .proto files which prevent the
  144. // code generator from generating correct code. Errors which indicate a
  145. // problem in protoc itself -- such as the input CodeGeneratorRequest being
  146. // unparseable -- should be reported by writing a message to stderr and
  147. // exiting with a non-zero status code.
  148. Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  149. File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
  150. sizeCache protoimpl.SizeCache
  151. unknownFields protoimpl.UnknownFields
  152. }
  153. func (x *CodeGeneratorResponse) Reset() {
  154. *x = CodeGeneratorResponse{}
  155. }
  156. func (x *CodeGeneratorResponse) String() string {
  157. return protoimpl.X.MessageStringOf(x)
  158. }
  159. func (*CodeGeneratorResponse) ProtoMessage() {}
  160. func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
  161. return file_google_protobuf_compiler_plugin_proto_msgTypes[2].MessageOf(x)
  162. }
  163. func (m *CodeGeneratorResponse) XXX_Methods() *protoiface.Methods {
  164. return file_google_protobuf_compiler_plugin_proto_msgTypes[2].Methods()
  165. }
  166. // Deprecated: Use CodeGeneratorResponse.ProtoReflect.Type instead.
  167. func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
  168. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2}
  169. }
  170. func (x *CodeGeneratorResponse) GetError() string {
  171. if x != nil && x.Error != nil {
  172. return *x.Error
  173. }
  174. return ""
  175. }
  176. func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
  177. if x != nil {
  178. return x.File
  179. }
  180. return nil
  181. }
  182. // Represents a single generated file.
  183. type CodeGeneratorResponse_File struct {
  184. // The file name, relative to the output directory. The name must not
  185. // contain "." or ".." components and must be relative, not be absolute (so,
  186. // the file cannot lie outside the output directory). "/" must be used as
  187. // the path separator, not "\".
  188. //
  189. // If the name is omitted, the content will be appended to the previous
  190. // file. This allows the generator to break large files into small chunks,
  191. // and allows the generated text to be streamed back to protoc so that large
  192. // files need not reside completely in memory at one time. Note that as of
  193. // this writing protoc does not optimize for this -- it will read the entire
  194. // CodeGeneratorResponse before writing files to disk.
  195. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  196. // If non-empty, indicates that the named file should already exist, and the
  197. // content here is to be inserted into that file at a defined insertion
  198. // point. This feature allows a code generator to extend the output
  199. // produced by another code generator. The original generator may provide
  200. // insertion points by placing special annotations in the file that look
  201. // like:
  202. // @@protoc_insertion_point(NAME)
  203. // The annotation can have arbitrary text before and after it on the line,
  204. // which allows it to be placed in a comment. NAME should be replaced with
  205. // an identifier naming the point -- this is what other generators will use
  206. // as the insertion_point. Code inserted at this point will be placed
  207. // immediately above the line containing the insertion point (thus multiple
  208. // insertions to the same point will come out in the order they were added).
  209. // The double-@ is intended to make it unlikely that the generated code
  210. // could contain things that look like insertion points by accident.
  211. //
  212. // For example, the C++ code generator places the following line in the
  213. // .pb.h files that it generates:
  214. // // @@protoc_insertion_point(namespace_scope)
  215. // This line appears within the scope of the file's package namespace, but
  216. // outside of any particular class. Another plugin can then specify the
  217. // insertion_point "namespace_scope" to generate additional classes or
  218. // other declarations that should be placed in this scope.
  219. //
  220. // Note that if the line containing the insertion point begins with
  221. // whitespace, the same whitespace will be added to every line of the
  222. // inserted text. This is useful for languages like Python, where
  223. // indentation matters. In these languages, the insertion point comment
  224. // should be indented the same amount as any inserted code will need to be
  225. // in order to work correctly in that context.
  226. //
  227. // The code generator that generates the initial file and the one which
  228. // inserts into it must both run as part of a single invocation of protoc.
  229. // Code generators are executed in the order in which they appear on the
  230. // command line.
  231. //
  232. // If |insertion_point| is present, |name| must also be present.
  233. InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
  234. // The file contents.
  235. Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
  236. sizeCache protoimpl.SizeCache
  237. unknownFields protoimpl.UnknownFields
  238. }
  239. func (x *CodeGeneratorResponse_File) Reset() {
  240. *x = CodeGeneratorResponse_File{}
  241. }
  242. func (x *CodeGeneratorResponse_File) String() string {
  243. return protoimpl.X.MessageStringOf(x)
  244. }
  245. func (*CodeGeneratorResponse_File) ProtoMessage() {}
  246. func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
  247. return file_google_protobuf_compiler_plugin_proto_msgTypes[3].MessageOf(x)
  248. }
  249. func (m *CodeGeneratorResponse_File) XXX_Methods() *protoiface.Methods {
  250. return file_google_protobuf_compiler_plugin_proto_msgTypes[3].Methods()
  251. }
  252. // Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Type instead.
  253. func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
  254. return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0}
  255. }
  256. func (x *CodeGeneratorResponse_File) GetName() string {
  257. if x != nil && x.Name != nil {
  258. return *x.Name
  259. }
  260. return ""
  261. }
  262. func (x *CodeGeneratorResponse_File) GetInsertionPoint() string {
  263. if x != nil && x.InsertionPoint != nil {
  264. return *x.InsertionPoint
  265. }
  266. return ""
  267. }
  268. func (x *CodeGeneratorResponse_File) GetContent() string {
  269. if x != nil && x.Content != nil {
  270. return *x.Content
  271. }
  272. return ""
  273. }
  274. var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor
  275. var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{
  276. 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  277. 0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
  278. 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  279. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
  280. 0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  281. 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
  282. 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14,
  283. 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
  284. 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20,
  285. 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61,
  286. 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68,
  287. 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  288. 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x64,
  289. 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  290. 0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e,
  291. 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c,
  292. 0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70,
  293. 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  294. 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
  295. 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
  296. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  297. 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72,
  298. 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x4c,
  299. 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
  300. 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  301. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69,
  302. 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d,
  303. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd6, 0x01, 0x0a,
  304. 0x15, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65,
  305. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
  306. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x04,
  307. 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f,
  308. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d,
  309. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61,
  310. 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65,
  311. 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x5d, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12,
  312. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  313. 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  314. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73,
  315. 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
  316. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
  317. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x57, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
  318. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d,
  319. 0x70, 0x69, 0x6c, 0x65, 0x72, 0x42, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f,
  320. 0x74, 0x6f, 0x73, 0x5a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
  321. 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  322. 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x62,
  323. }
  324. var (
  325. file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once
  326. file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc
  327. )
  328. func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte {
  329. file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() {
  330. file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData)
  331. })
  332. return file_google_protobuf_compiler_plugin_proto_rawDescData
  333. }
  334. var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  335. var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{
  336. (*Version)(nil), // 0: google.protobuf.compiler.Version
  337. (*CodeGeneratorRequest)(nil), // 1: google.protobuf.compiler.CodeGeneratorRequest
  338. (*CodeGeneratorResponse)(nil), // 2: google.protobuf.compiler.CodeGeneratorResponse
  339. (*CodeGeneratorResponse_File)(nil), // 3: google.protobuf.compiler.CodeGeneratorResponse.File
  340. (*descriptorpb.FileDescriptorProto)(nil), // 4: google.protobuf.FileDescriptorProto
  341. }
  342. var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{
  343. 4, // google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto
  344. 0, // google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version
  345. 3, // google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File
  346. 3, // starting offset of method output_type sub-list
  347. 3, // starting offset of method input_type sub-list
  348. 3, // starting offset of extension type_name sub-list
  349. 3, // starting offset of extension extendee sub-list
  350. 0, // starting offset of field type_name sub-list
  351. }
  352. func init() { file_google_protobuf_compiler_plugin_proto_init() }
  353. func file_google_protobuf_compiler_plugin_proto_init() {
  354. if File_google_protobuf_compiler_plugin_proto != nil {
  355. return
  356. }
  357. if !protoimpl.UnsafeEnabled {
  358. file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  359. switch v := v.(*Version); i {
  360. case 4:
  361. return &v.sizeCache
  362. case 5:
  363. return &v.unknownFields
  364. default:
  365. return nil
  366. }
  367. }
  368. file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  369. switch v := v.(*CodeGeneratorRequest); i {
  370. case 4:
  371. return &v.sizeCache
  372. case 5:
  373. return &v.unknownFields
  374. default:
  375. return nil
  376. }
  377. }
  378. file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  379. switch v := v.(*CodeGeneratorResponse); i {
  380. case 2:
  381. return &v.sizeCache
  382. case 3:
  383. return &v.unknownFields
  384. default:
  385. return nil
  386. }
  387. }
  388. file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  389. switch v := v.(*CodeGeneratorResponse_File); i {
  390. case 3:
  391. return &v.sizeCache
  392. case 4:
  393. return &v.unknownFields
  394. default:
  395. return nil
  396. }
  397. }
  398. }
  399. out := protoimpl.TypeBuilder{
  400. File: protoimpl.DescBuilder{
  401. RawDescriptor: file_google_protobuf_compiler_plugin_proto_rawDesc,
  402. NumEnums: 0,
  403. NumMessages: 4,
  404. NumExtensions: 0,
  405. NumServices: 0,
  406. },
  407. GoTypes: file_google_protobuf_compiler_plugin_proto_goTypes,
  408. DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs,
  409. MessageInfos: file_google_protobuf_compiler_plugin_proto_msgTypes,
  410. }.Build()
  411. File_google_protobuf_compiler_plugin_proto = out.File
  412. file_google_protobuf_compiler_plugin_proto_rawDesc = nil
  413. file_google_protobuf_compiler_plugin_proto_goTypes = nil
  414. file_google_protobuf_compiler_plugin_proto_depIdxs = nil
  415. }