plugin.pb.go 20 KB

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