codegen.pb.go 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.19.1
  5. // source: plugin/codegen.proto
  6. package plugin
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type File struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
  25. }
  26. func (x *File) Reset() {
  27. *x = File{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_plugin_codegen_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *File) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*File) ProtoMessage() {}
  38. func (x *File) ProtoReflect() protoreflect.Message {
  39. mi := &file_plugin_codegen_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use File.ProtoReflect.Descriptor instead.
  50. func (*File) Descriptor() ([]byte, []int) {
  51. return file_plugin_codegen_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *File) GetName() string {
  54. if x != nil {
  55. return x.Name
  56. }
  57. return ""
  58. }
  59. func (x *File) GetContents() []byte {
  60. if x != nil {
  61. return x.Contents
  62. }
  63. return nil
  64. }
  65. type Override struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. // name of the type to use, e.g. `github.com/segmentio/ksuid.KSUID` or `mymodule.Type`
  70. CodeType string `protobuf:"bytes,1,opt,name=code_type,proto3" json:"code_type,omitempty"`
  71. // name of the type to use, e.g. `text`
  72. DbType string `protobuf:"bytes,3,opt,name=db_type,proto3" json:"db_type,omitempty"`
  73. // True if the override should apply to a nullable database type
  74. Nullable bool `protobuf:"varint,5,opt,name=nullable,proto3" json:"nullable,omitempty"`
  75. // fully qualified name of the column, e.g. `accounts.id`
  76. Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"`
  77. }
  78. func (x *Override) Reset() {
  79. *x = Override{}
  80. if protoimpl.UnsafeEnabled {
  81. mi := &file_plugin_codegen_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. }
  86. func (x *Override) String() string {
  87. return protoimpl.X.MessageStringOf(x)
  88. }
  89. func (*Override) ProtoMessage() {}
  90. func (x *Override) ProtoReflect() protoreflect.Message {
  91. mi := &file_plugin_codegen_proto_msgTypes[1]
  92. if protoimpl.UnsafeEnabled && x != nil {
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. if ms.LoadMessageInfo() == nil {
  95. ms.StoreMessageInfo(mi)
  96. }
  97. return ms
  98. }
  99. return mi.MessageOf(x)
  100. }
  101. // Deprecated: Use Override.ProtoReflect.Descriptor instead.
  102. func (*Override) Descriptor() ([]byte, []int) {
  103. return file_plugin_codegen_proto_rawDescGZIP(), []int{1}
  104. }
  105. func (x *Override) GetCodeType() string {
  106. if x != nil {
  107. return x.CodeType
  108. }
  109. return ""
  110. }
  111. func (x *Override) GetDbType() string {
  112. if x != nil {
  113. return x.DbType
  114. }
  115. return ""
  116. }
  117. func (x *Override) GetNullable() bool {
  118. if x != nil {
  119. return x.Nullable
  120. }
  121. return false
  122. }
  123. func (x *Override) GetColumn() string {
  124. if x != nil {
  125. return x.Column
  126. }
  127. return ""
  128. }
  129. type Settings struct {
  130. state protoimpl.MessageState
  131. sizeCache protoimpl.SizeCache
  132. unknownFields protoimpl.UnknownFields
  133. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  134. Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"`
  135. Schema []string `protobuf:"bytes,3,rep,name=schema,proto3" json:"schema,omitempty"`
  136. Paths []string `protobuf:"bytes,4,rep,name=paths,json=queries,proto3" json:"paths,omitempty"`
  137. Rename map[string]string `protobuf:"bytes,5,rep,name=rename,proto3" json:"rename,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  138. Overrides []*Override `protobuf:"bytes,6,rep,name=overrides,proto3" json:"overrides,omitempty"`
  139. }
  140. func (x *Settings) Reset() {
  141. *x = Settings{}
  142. if protoimpl.UnsafeEnabled {
  143. mi := &file_plugin_codegen_proto_msgTypes[2]
  144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  145. ms.StoreMessageInfo(mi)
  146. }
  147. }
  148. func (x *Settings) String() string {
  149. return protoimpl.X.MessageStringOf(x)
  150. }
  151. func (*Settings) ProtoMessage() {}
  152. func (x *Settings) ProtoReflect() protoreflect.Message {
  153. mi := &file_plugin_codegen_proto_msgTypes[2]
  154. if protoimpl.UnsafeEnabled && x != nil {
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. if ms.LoadMessageInfo() == nil {
  157. ms.StoreMessageInfo(mi)
  158. }
  159. return ms
  160. }
  161. return mi.MessageOf(x)
  162. }
  163. // Deprecated: Use Settings.ProtoReflect.Descriptor instead.
  164. func (*Settings) Descriptor() ([]byte, []int) {
  165. return file_plugin_codegen_proto_rawDescGZIP(), []int{2}
  166. }
  167. func (x *Settings) GetVersion() string {
  168. if x != nil {
  169. return x.Version
  170. }
  171. return ""
  172. }
  173. func (x *Settings) GetEngine() string {
  174. if x != nil {
  175. return x.Engine
  176. }
  177. return ""
  178. }
  179. func (x *Settings) GetSchema() []string {
  180. if x != nil {
  181. return x.Schema
  182. }
  183. return nil
  184. }
  185. func (x *Settings) GetPaths() []string {
  186. if x != nil {
  187. return x.Paths
  188. }
  189. return nil
  190. }
  191. func (x *Settings) GetRename() map[string]string {
  192. if x != nil {
  193. return x.Rename
  194. }
  195. return nil
  196. }
  197. func (x *Settings) GetOverrides() []*Override {
  198. if x != nil {
  199. return x.Overrides
  200. }
  201. return nil
  202. }
  203. type Catalog struct {
  204. state protoimpl.MessageState
  205. sizeCache protoimpl.SizeCache
  206. unknownFields protoimpl.UnknownFields
  207. Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
  208. DefaultSchema string `protobuf:"bytes,2,opt,name=default_schema,json=defaultSchema,proto3" json:"default_schema,omitempty"`
  209. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  210. Schemas []*Schema `protobuf:"bytes,4,rep,name=schemas,proto3" json:"schemas,omitempty"`
  211. }
  212. func (x *Catalog) Reset() {
  213. *x = Catalog{}
  214. if protoimpl.UnsafeEnabled {
  215. mi := &file_plugin_codegen_proto_msgTypes[3]
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. ms.StoreMessageInfo(mi)
  218. }
  219. }
  220. func (x *Catalog) String() string {
  221. return protoimpl.X.MessageStringOf(x)
  222. }
  223. func (*Catalog) ProtoMessage() {}
  224. func (x *Catalog) ProtoReflect() protoreflect.Message {
  225. mi := &file_plugin_codegen_proto_msgTypes[3]
  226. if protoimpl.UnsafeEnabled && x != nil {
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. if ms.LoadMessageInfo() == nil {
  229. ms.StoreMessageInfo(mi)
  230. }
  231. return ms
  232. }
  233. return mi.MessageOf(x)
  234. }
  235. // Deprecated: Use Catalog.ProtoReflect.Descriptor instead.
  236. func (*Catalog) Descriptor() ([]byte, []int) {
  237. return file_plugin_codegen_proto_rawDescGZIP(), []int{3}
  238. }
  239. func (x *Catalog) GetComment() string {
  240. if x != nil {
  241. return x.Comment
  242. }
  243. return ""
  244. }
  245. func (x *Catalog) GetDefaultSchema() string {
  246. if x != nil {
  247. return x.DefaultSchema
  248. }
  249. return ""
  250. }
  251. func (x *Catalog) GetName() string {
  252. if x != nil {
  253. return x.Name
  254. }
  255. return ""
  256. }
  257. func (x *Catalog) GetSchemas() []*Schema {
  258. if x != nil {
  259. return x.Schemas
  260. }
  261. return nil
  262. }
  263. type Schema struct {
  264. state protoimpl.MessageState
  265. sizeCache protoimpl.SizeCache
  266. unknownFields protoimpl.UnknownFields
  267. Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
  268. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  269. Tables []*Table `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"`
  270. Enums []*Enum `protobuf:"bytes,4,rep,name=enums,proto3" json:"enums,omitempty"`
  271. }
  272. func (x *Schema) Reset() {
  273. *x = Schema{}
  274. if protoimpl.UnsafeEnabled {
  275. mi := &file_plugin_codegen_proto_msgTypes[4]
  276. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  277. ms.StoreMessageInfo(mi)
  278. }
  279. }
  280. func (x *Schema) String() string {
  281. return protoimpl.X.MessageStringOf(x)
  282. }
  283. func (*Schema) ProtoMessage() {}
  284. func (x *Schema) ProtoReflect() protoreflect.Message {
  285. mi := &file_plugin_codegen_proto_msgTypes[4]
  286. if protoimpl.UnsafeEnabled && x != nil {
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. if ms.LoadMessageInfo() == nil {
  289. ms.StoreMessageInfo(mi)
  290. }
  291. return ms
  292. }
  293. return mi.MessageOf(x)
  294. }
  295. // Deprecated: Use Schema.ProtoReflect.Descriptor instead.
  296. func (*Schema) Descriptor() ([]byte, []int) {
  297. return file_plugin_codegen_proto_rawDescGZIP(), []int{4}
  298. }
  299. func (x *Schema) GetComment() string {
  300. if x != nil {
  301. return x.Comment
  302. }
  303. return ""
  304. }
  305. func (x *Schema) GetName() string {
  306. if x != nil {
  307. return x.Name
  308. }
  309. return ""
  310. }
  311. func (x *Schema) GetTables() []*Table {
  312. if x != nil {
  313. return x.Tables
  314. }
  315. return nil
  316. }
  317. func (x *Schema) GetEnums() []*Enum {
  318. if x != nil {
  319. return x.Enums
  320. }
  321. return nil
  322. }
  323. type Enum struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  328. Vals []string `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
  329. Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
  330. }
  331. func (x *Enum) Reset() {
  332. *x = Enum{}
  333. if protoimpl.UnsafeEnabled {
  334. mi := &file_plugin_codegen_proto_msgTypes[5]
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. ms.StoreMessageInfo(mi)
  337. }
  338. }
  339. func (x *Enum) String() string {
  340. return protoimpl.X.MessageStringOf(x)
  341. }
  342. func (*Enum) ProtoMessage() {}
  343. func (x *Enum) ProtoReflect() protoreflect.Message {
  344. mi := &file_plugin_codegen_proto_msgTypes[5]
  345. if protoimpl.UnsafeEnabled && x != nil {
  346. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  347. if ms.LoadMessageInfo() == nil {
  348. ms.StoreMessageInfo(mi)
  349. }
  350. return ms
  351. }
  352. return mi.MessageOf(x)
  353. }
  354. // Deprecated: Use Enum.ProtoReflect.Descriptor instead.
  355. func (*Enum) Descriptor() ([]byte, []int) {
  356. return file_plugin_codegen_proto_rawDescGZIP(), []int{5}
  357. }
  358. func (x *Enum) GetName() string {
  359. if x != nil {
  360. return x.Name
  361. }
  362. return ""
  363. }
  364. func (x *Enum) GetVals() []string {
  365. if x != nil {
  366. return x.Vals
  367. }
  368. return nil
  369. }
  370. func (x *Enum) GetComment() string {
  371. if x != nil {
  372. return x.Comment
  373. }
  374. return ""
  375. }
  376. type Table struct {
  377. state protoimpl.MessageState
  378. sizeCache protoimpl.SizeCache
  379. unknownFields protoimpl.UnknownFields
  380. Rel *Identifier `protobuf:"bytes,1,opt,name=rel,proto3" json:"rel,omitempty"`
  381. Columns []*Column `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
  382. Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
  383. }
  384. func (x *Table) Reset() {
  385. *x = Table{}
  386. if protoimpl.UnsafeEnabled {
  387. mi := &file_plugin_codegen_proto_msgTypes[6]
  388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  389. ms.StoreMessageInfo(mi)
  390. }
  391. }
  392. func (x *Table) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*Table) ProtoMessage() {}
  396. func (x *Table) ProtoReflect() protoreflect.Message {
  397. mi := &file_plugin_codegen_proto_msgTypes[6]
  398. if protoimpl.UnsafeEnabled && x != nil {
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. if ms.LoadMessageInfo() == nil {
  401. ms.StoreMessageInfo(mi)
  402. }
  403. return ms
  404. }
  405. return mi.MessageOf(x)
  406. }
  407. // Deprecated: Use Table.ProtoReflect.Descriptor instead.
  408. func (*Table) Descriptor() ([]byte, []int) {
  409. return file_plugin_codegen_proto_rawDescGZIP(), []int{6}
  410. }
  411. func (x *Table) GetRel() *Identifier {
  412. if x != nil {
  413. return x.Rel
  414. }
  415. return nil
  416. }
  417. func (x *Table) GetColumns() []*Column {
  418. if x != nil {
  419. return x.Columns
  420. }
  421. return nil
  422. }
  423. func (x *Table) GetComment() string {
  424. if x != nil {
  425. return x.Comment
  426. }
  427. return ""
  428. }
  429. type Identifier struct {
  430. state protoimpl.MessageState
  431. sizeCache protoimpl.SizeCache
  432. unknownFields protoimpl.UnknownFields
  433. Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
  434. Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
  435. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  436. }
  437. func (x *Identifier) Reset() {
  438. *x = Identifier{}
  439. if protoimpl.UnsafeEnabled {
  440. mi := &file_plugin_codegen_proto_msgTypes[7]
  441. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  442. ms.StoreMessageInfo(mi)
  443. }
  444. }
  445. func (x *Identifier) String() string {
  446. return protoimpl.X.MessageStringOf(x)
  447. }
  448. func (*Identifier) ProtoMessage() {}
  449. func (x *Identifier) ProtoReflect() protoreflect.Message {
  450. mi := &file_plugin_codegen_proto_msgTypes[7]
  451. if protoimpl.UnsafeEnabled && x != nil {
  452. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  453. if ms.LoadMessageInfo() == nil {
  454. ms.StoreMessageInfo(mi)
  455. }
  456. return ms
  457. }
  458. return mi.MessageOf(x)
  459. }
  460. // Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
  461. func (*Identifier) Descriptor() ([]byte, []int) {
  462. return file_plugin_codegen_proto_rawDescGZIP(), []int{7}
  463. }
  464. func (x *Identifier) GetCatalog() string {
  465. if x != nil {
  466. return x.Catalog
  467. }
  468. return ""
  469. }
  470. func (x *Identifier) GetSchema() string {
  471. if x != nil {
  472. return x.Schema
  473. }
  474. return ""
  475. }
  476. func (x *Identifier) GetName() string {
  477. if x != nil {
  478. return x.Name
  479. }
  480. return ""
  481. }
  482. type Column struct {
  483. state protoimpl.MessageState
  484. sizeCache protoimpl.SizeCache
  485. unknownFields protoimpl.UnknownFields
  486. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  487. DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
  488. NotNull bool `protobuf:"varint,3,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"`
  489. IsArray bool `protobuf:"varint,4,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"`
  490. Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
  491. Length int32 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"`
  492. IsNamedParam bool `protobuf:"varint,7,opt,name=is_named_param,json=isNamedParam,proto3" json:"is_named_param,omitempty"`
  493. IsFuncCall bool `protobuf:"varint,8,opt,name=is_func_call,json=isFuncCall,proto3" json:"is_func_call,omitempty"`
  494. // XXX: Figure out what PostgreSQL calls `foo.id`
  495. Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"`
  496. Table *Identifier `protobuf:"bytes,10,opt,name=table,proto3" json:"table,omitempty"`
  497. TableAlias string `protobuf:"bytes,11,opt,name=table_alias,json=tableAlias,proto3" json:"table_alias,omitempty"`
  498. Type *Identifier `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"`
  499. }
  500. func (x *Column) Reset() {
  501. *x = Column{}
  502. if protoimpl.UnsafeEnabled {
  503. mi := &file_plugin_codegen_proto_msgTypes[8]
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. ms.StoreMessageInfo(mi)
  506. }
  507. }
  508. func (x *Column) String() string {
  509. return protoimpl.X.MessageStringOf(x)
  510. }
  511. func (*Column) ProtoMessage() {}
  512. func (x *Column) ProtoReflect() protoreflect.Message {
  513. mi := &file_plugin_codegen_proto_msgTypes[8]
  514. if protoimpl.UnsafeEnabled && x != nil {
  515. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  516. if ms.LoadMessageInfo() == nil {
  517. ms.StoreMessageInfo(mi)
  518. }
  519. return ms
  520. }
  521. return mi.MessageOf(x)
  522. }
  523. // Deprecated: Use Column.ProtoReflect.Descriptor instead.
  524. func (*Column) Descriptor() ([]byte, []int) {
  525. return file_plugin_codegen_proto_rawDescGZIP(), []int{8}
  526. }
  527. func (x *Column) GetName() string {
  528. if x != nil {
  529. return x.Name
  530. }
  531. return ""
  532. }
  533. func (x *Column) GetDataType() string {
  534. if x != nil {
  535. return x.DataType
  536. }
  537. return ""
  538. }
  539. func (x *Column) GetNotNull() bool {
  540. if x != nil {
  541. return x.NotNull
  542. }
  543. return false
  544. }
  545. func (x *Column) GetIsArray() bool {
  546. if x != nil {
  547. return x.IsArray
  548. }
  549. return false
  550. }
  551. func (x *Column) GetComment() string {
  552. if x != nil {
  553. return x.Comment
  554. }
  555. return ""
  556. }
  557. func (x *Column) GetLength() int32 {
  558. if x != nil {
  559. return x.Length
  560. }
  561. return 0
  562. }
  563. func (x *Column) GetIsNamedParam() bool {
  564. if x != nil {
  565. return x.IsNamedParam
  566. }
  567. return false
  568. }
  569. func (x *Column) GetIsFuncCall() bool {
  570. if x != nil {
  571. return x.IsFuncCall
  572. }
  573. return false
  574. }
  575. func (x *Column) GetScope() string {
  576. if x != nil {
  577. return x.Scope
  578. }
  579. return ""
  580. }
  581. func (x *Column) GetTable() *Identifier {
  582. if x != nil {
  583. return x.Table
  584. }
  585. return nil
  586. }
  587. func (x *Column) GetTableAlias() string {
  588. if x != nil {
  589. return x.TableAlias
  590. }
  591. return ""
  592. }
  593. func (x *Column) GetType() *Identifier {
  594. if x != nil {
  595. return x.Type
  596. }
  597. return nil
  598. }
  599. type Query struct {
  600. state protoimpl.MessageState
  601. sizeCache protoimpl.SizeCache
  602. unknownFields protoimpl.UnknownFields
  603. Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
  604. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  605. Cmd string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"`
  606. Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
  607. Params []*Parameter `protobuf:"bytes,5,rep,name=params,json=parameters,proto3" json:"params,omitempty"`
  608. Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"`
  609. }
  610. func (x *Query) Reset() {
  611. *x = Query{}
  612. if protoimpl.UnsafeEnabled {
  613. mi := &file_plugin_codegen_proto_msgTypes[9]
  614. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  615. ms.StoreMessageInfo(mi)
  616. }
  617. }
  618. func (x *Query) String() string {
  619. return protoimpl.X.MessageStringOf(x)
  620. }
  621. func (*Query) ProtoMessage() {}
  622. func (x *Query) ProtoReflect() protoreflect.Message {
  623. mi := &file_plugin_codegen_proto_msgTypes[9]
  624. if protoimpl.UnsafeEnabled && x != nil {
  625. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  626. if ms.LoadMessageInfo() == nil {
  627. ms.StoreMessageInfo(mi)
  628. }
  629. return ms
  630. }
  631. return mi.MessageOf(x)
  632. }
  633. // Deprecated: Use Query.ProtoReflect.Descriptor instead.
  634. func (*Query) Descriptor() ([]byte, []int) {
  635. return file_plugin_codegen_proto_rawDescGZIP(), []int{9}
  636. }
  637. func (x *Query) GetSql() string {
  638. if x != nil {
  639. return x.Sql
  640. }
  641. return ""
  642. }
  643. func (x *Query) GetName() string {
  644. if x != nil {
  645. return x.Name
  646. }
  647. return ""
  648. }
  649. func (x *Query) GetCmd() string {
  650. if x != nil {
  651. return x.Cmd
  652. }
  653. return ""
  654. }
  655. func (x *Query) GetColumns() []*Column {
  656. if x != nil {
  657. return x.Columns
  658. }
  659. return nil
  660. }
  661. func (x *Query) GetParams() []*Parameter {
  662. if x != nil {
  663. return x.Params
  664. }
  665. return nil
  666. }
  667. func (x *Query) GetComments() []string {
  668. if x != nil {
  669. return x.Comments
  670. }
  671. return nil
  672. }
  673. type Parameter struct {
  674. state protoimpl.MessageState
  675. sizeCache protoimpl.SizeCache
  676. unknownFields protoimpl.UnknownFields
  677. Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
  678. Column *Column `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
  679. }
  680. func (x *Parameter) Reset() {
  681. *x = Parameter{}
  682. if protoimpl.UnsafeEnabled {
  683. mi := &file_plugin_codegen_proto_msgTypes[10]
  684. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  685. ms.StoreMessageInfo(mi)
  686. }
  687. }
  688. func (x *Parameter) String() string {
  689. return protoimpl.X.MessageStringOf(x)
  690. }
  691. func (*Parameter) ProtoMessage() {}
  692. func (x *Parameter) ProtoReflect() protoreflect.Message {
  693. mi := &file_plugin_codegen_proto_msgTypes[10]
  694. if protoimpl.UnsafeEnabled && x != nil {
  695. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  696. if ms.LoadMessageInfo() == nil {
  697. ms.StoreMessageInfo(mi)
  698. }
  699. return ms
  700. }
  701. return mi.MessageOf(x)
  702. }
  703. // Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
  704. func (*Parameter) Descriptor() ([]byte, []int) {
  705. return file_plugin_codegen_proto_rawDescGZIP(), []int{10}
  706. }
  707. func (x *Parameter) GetNumber() int32 {
  708. if x != nil {
  709. return x.Number
  710. }
  711. return 0
  712. }
  713. func (x *Parameter) GetColumn() *Column {
  714. if x != nil {
  715. return x.Column
  716. }
  717. return nil
  718. }
  719. type CodeGenRequest struct {
  720. state protoimpl.MessageState
  721. sizeCache protoimpl.SizeCache
  722. unknownFields protoimpl.UnknownFields
  723. Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
  724. Catalog *Catalog `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
  725. Queries []*Query `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"`
  726. }
  727. func (x *CodeGenRequest) Reset() {
  728. *x = CodeGenRequest{}
  729. if protoimpl.UnsafeEnabled {
  730. mi := &file_plugin_codegen_proto_msgTypes[11]
  731. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  732. ms.StoreMessageInfo(mi)
  733. }
  734. }
  735. func (x *CodeGenRequest) String() string {
  736. return protoimpl.X.MessageStringOf(x)
  737. }
  738. func (*CodeGenRequest) ProtoMessage() {}
  739. func (x *CodeGenRequest) ProtoReflect() protoreflect.Message {
  740. mi := &file_plugin_codegen_proto_msgTypes[11]
  741. if protoimpl.UnsafeEnabled && x != nil {
  742. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  743. if ms.LoadMessageInfo() == nil {
  744. ms.StoreMessageInfo(mi)
  745. }
  746. return ms
  747. }
  748. return mi.MessageOf(x)
  749. }
  750. // Deprecated: Use CodeGenRequest.ProtoReflect.Descriptor instead.
  751. func (*CodeGenRequest) Descriptor() ([]byte, []int) {
  752. return file_plugin_codegen_proto_rawDescGZIP(), []int{11}
  753. }
  754. func (x *CodeGenRequest) GetSettings() *Settings {
  755. if x != nil {
  756. return x.Settings
  757. }
  758. return nil
  759. }
  760. func (x *CodeGenRequest) GetCatalog() *Catalog {
  761. if x != nil {
  762. return x.Catalog
  763. }
  764. return nil
  765. }
  766. func (x *CodeGenRequest) GetQueries() []*Query {
  767. if x != nil {
  768. return x.Queries
  769. }
  770. return nil
  771. }
  772. type CodeGenResponse struct {
  773. state protoimpl.MessageState
  774. sizeCache protoimpl.SizeCache
  775. unknownFields protoimpl.UnknownFields
  776. Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
  777. }
  778. func (x *CodeGenResponse) Reset() {
  779. *x = CodeGenResponse{}
  780. if protoimpl.UnsafeEnabled {
  781. mi := &file_plugin_codegen_proto_msgTypes[12]
  782. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  783. ms.StoreMessageInfo(mi)
  784. }
  785. }
  786. func (x *CodeGenResponse) String() string {
  787. return protoimpl.X.MessageStringOf(x)
  788. }
  789. func (*CodeGenResponse) ProtoMessage() {}
  790. func (x *CodeGenResponse) ProtoReflect() protoreflect.Message {
  791. mi := &file_plugin_codegen_proto_msgTypes[12]
  792. if protoimpl.UnsafeEnabled && x != nil {
  793. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  794. if ms.LoadMessageInfo() == nil {
  795. ms.StoreMessageInfo(mi)
  796. }
  797. return ms
  798. }
  799. return mi.MessageOf(x)
  800. }
  801. // Deprecated: Use CodeGenResponse.ProtoReflect.Descriptor instead.
  802. func (*CodeGenResponse) Descriptor() ([]byte, []int) {
  803. return file_plugin_codegen_proto_rawDescGZIP(), []int{12}
  804. }
  805. func (x *CodeGenResponse) GetFiles() []*File {
  806. if x != nil {
  807. return x.Files
  808. }
  809. return nil
  810. }
  811. var File_plugin_codegen_proto protoreflect.FileDescriptor
  812. var file_plugin_codegen_proto_rawDesc = []byte{
  813. 0x0a, 0x14, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x67, 0x65, 0x6e,
  814. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0x36,
  815. 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  816. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f,
  817. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6f,
  818. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x76, 0x0a, 0x08, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69,
  819. 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  820. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
  821. 0x12, 0x18, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  822. 0x09, 0x52, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75,
  823. 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x75,
  824. 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
  825. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x8d,
  826. 0x02, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76,
  827. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65,
  828. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18,
  829. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a,
  830. 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73,
  831. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x04,
  832. 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x34, 0x0a,
  833. 0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
  834. 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,
  835. 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x6e,
  836. 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73,
  837. 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
  838. 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69,
  839. 0x64, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74,
  840. 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  841. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  842. 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88,
  843. 0x01, 0x0a, 0x07, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
  844. 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
  845. 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  846. 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65,
  847. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  848. 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  849. 0x28, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
  850. 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
  851. 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x06, 0x53, 0x63,
  852. 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
  853. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12,
  854. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  855. 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
  856. 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c,
  857. 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 0x75,
  858. 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69,
  859. 0x6e, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x22, 0x48, 0x0a,
  860. 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  861. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x61, 0x6c,
  862. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x76, 0x61, 0x6c, 0x73, 0x12, 0x18, 0x0a,
  863. 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  864. 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65,
  865. 0x12, 0x24, 0x0a, 0x03, 0x72, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
  866. 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65,
  867. 0x72, 0x52, 0x03, 0x72, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
  868. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
  869. 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
  870. 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
  871. 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x52, 0x0a, 0x0a, 0x49, 0x64,
  872. 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61,
  873. 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c,
  874. 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01,
  875. 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
  876. 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf2,
  877. 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
  878. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a,
  879. 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  880. 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x6f,
  881. 0x74, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f,
  882. 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x72, 0x61,
  883. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79,
  884. 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
  885. 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65,
  886. 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67,
  887. 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x70,
  888. 0x61, 0x72, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x4e, 0x61,
  889. 0x6d, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x66,
  890. 0x75, 0x6e, 0x63, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a,
  891. 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63,
  892. 0x6f, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65,
  893. 0x12, 0x28, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,
  894. 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
  895. 0x69, 0x65, 0x72, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61,
  896. 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
  897. 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x26, 0x0a, 0x04, 0x74,
  898. 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67,
  899. 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x04, 0x74,
  900. 0x79, 0x70, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x10, 0x0a,
  901. 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12,
  902. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  903. 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  904. 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
  905. 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
  906. 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
  907. 0x2d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
  908. 0x11, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
  909. 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1a,
  910. 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09,
  911. 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61,
  912. 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  913. 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
  914. 0x26, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  915. 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52,
  916. 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x64, 0x65,
  917. 0x47, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65,
  918. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70,
  919. 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08,
  920. 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61,
  921. 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x6c, 0x75, 0x67,
  922. 0x69, 0x6e, 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61,
  923. 0x6c, 0x6f, 0x67, 0x12, 0x27, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03,
  924. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x51, 0x75,
  925. 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x0f,
  926. 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  927. 0x22, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c,
  928. 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69,
  929. 0x6c, 0x65, 0x73, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  930. 0x6d, 0x2f, 0x6b, 0x79, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x72, 0x6f, 0x79, 0x2f, 0x73, 0x71, 0x6c,
  931. 0x63, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
  932. 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  933. }
  934. var (
  935. file_plugin_codegen_proto_rawDescOnce sync.Once
  936. file_plugin_codegen_proto_rawDescData = file_plugin_codegen_proto_rawDesc
  937. )
  938. func file_plugin_codegen_proto_rawDescGZIP() []byte {
  939. file_plugin_codegen_proto_rawDescOnce.Do(func() {
  940. file_plugin_codegen_proto_rawDescData = protoimpl.X.CompressGZIP(file_plugin_codegen_proto_rawDescData)
  941. })
  942. return file_plugin_codegen_proto_rawDescData
  943. }
  944. var file_plugin_codegen_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
  945. var file_plugin_codegen_proto_goTypes = []interface{}{
  946. (*File)(nil), // 0: plugin.File
  947. (*Override)(nil), // 1: plugin.Override
  948. (*Settings)(nil), // 2: plugin.Settings
  949. (*Catalog)(nil), // 3: plugin.Catalog
  950. (*Schema)(nil), // 4: plugin.Schema
  951. (*Enum)(nil), // 5: plugin.Enum
  952. (*Table)(nil), // 6: plugin.Table
  953. (*Identifier)(nil), // 7: plugin.Identifier
  954. (*Column)(nil), // 8: plugin.Column
  955. (*Query)(nil), // 9: plugin.Query
  956. (*Parameter)(nil), // 10: plugin.Parameter
  957. (*CodeGenRequest)(nil), // 11: plugin.CodeGenRequest
  958. (*CodeGenResponse)(nil), // 12: plugin.CodeGenResponse
  959. nil, // 13: plugin.Settings.RenameEntry
  960. }
  961. var file_plugin_codegen_proto_depIdxs = []int32{
  962. 13, // 0: plugin.Settings.rename:type_name -> plugin.Settings.RenameEntry
  963. 1, // 1: plugin.Settings.overrides:type_name -> plugin.Override
  964. 4, // 2: plugin.Catalog.schemas:type_name -> plugin.Schema
  965. 6, // 3: plugin.Schema.tables:type_name -> plugin.Table
  966. 5, // 4: plugin.Schema.enums:type_name -> plugin.Enum
  967. 7, // 5: plugin.Table.rel:type_name -> plugin.Identifier
  968. 8, // 6: plugin.Table.columns:type_name -> plugin.Column
  969. 7, // 7: plugin.Column.table:type_name -> plugin.Identifier
  970. 7, // 8: plugin.Column.type:type_name -> plugin.Identifier
  971. 8, // 9: plugin.Query.columns:type_name -> plugin.Column
  972. 10, // 10: plugin.Query.params:type_name -> plugin.Parameter
  973. 8, // 11: plugin.Parameter.column:type_name -> plugin.Column
  974. 2, // 12: plugin.CodeGenRequest.settings:type_name -> plugin.Settings
  975. 3, // 13: plugin.CodeGenRequest.catalog:type_name -> plugin.Catalog
  976. 9, // 14: plugin.CodeGenRequest.queries:type_name -> plugin.Query
  977. 0, // 15: plugin.CodeGenResponse.files:type_name -> plugin.File
  978. 16, // [16:16] is the sub-list for method output_type
  979. 16, // [16:16] is the sub-list for method input_type
  980. 16, // [16:16] is the sub-list for extension type_name
  981. 16, // [16:16] is the sub-list for extension extendee
  982. 0, // [0:16] is the sub-list for field type_name
  983. }
  984. func init() { file_plugin_codegen_proto_init() }
  985. func file_plugin_codegen_proto_init() {
  986. if File_plugin_codegen_proto != nil {
  987. return
  988. }
  989. if !protoimpl.UnsafeEnabled {
  990. file_plugin_codegen_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  991. switch v := v.(*File); i {
  992. case 0:
  993. return &v.state
  994. case 1:
  995. return &v.sizeCache
  996. case 2:
  997. return &v.unknownFields
  998. default:
  999. return nil
  1000. }
  1001. }
  1002. file_plugin_codegen_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1003. switch v := v.(*Override); i {
  1004. case 0:
  1005. return &v.state
  1006. case 1:
  1007. return &v.sizeCache
  1008. case 2:
  1009. return &v.unknownFields
  1010. default:
  1011. return nil
  1012. }
  1013. }
  1014. file_plugin_codegen_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1015. switch v := v.(*Settings); i {
  1016. case 0:
  1017. return &v.state
  1018. case 1:
  1019. return &v.sizeCache
  1020. case 2:
  1021. return &v.unknownFields
  1022. default:
  1023. return nil
  1024. }
  1025. }
  1026. file_plugin_codegen_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1027. switch v := v.(*Catalog); i {
  1028. case 0:
  1029. return &v.state
  1030. case 1:
  1031. return &v.sizeCache
  1032. case 2:
  1033. return &v.unknownFields
  1034. default:
  1035. return nil
  1036. }
  1037. }
  1038. file_plugin_codegen_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1039. switch v := v.(*Schema); i {
  1040. case 0:
  1041. return &v.state
  1042. case 1:
  1043. return &v.sizeCache
  1044. case 2:
  1045. return &v.unknownFields
  1046. default:
  1047. return nil
  1048. }
  1049. }
  1050. file_plugin_codegen_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1051. switch v := v.(*Enum); i {
  1052. case 0:
  1053. return &v.state
  1054. case 1:
  1055. return &v.sizeCache
  1056. case 2:
  1057. return &v.unknownFields
  1058. default:
  1059. return nil
  1060. }
  1061. }
  1062. file_plugin_codegen_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1063. switch v := v.(*Table); i {
  1064. case 0:
  1065. return &v.state
  1066. case 1:
  1067. return &v.sizeCache
  1068. case 2:
  1069. return &v.unknownFields
  1070. default:
  1071. return nil
  1072. }
  1073. }
  1074. file_plugin_codegen_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1075. switch v := v.(*Identifier); i {
  1076. case 0:
  1077. return &v.state
  1078. case 1:
  1079. return &v.sizeCache
  1080. case 2:
  1081. return &v.unknownFields
  1082. default:
  1083. return nil
  1084. }
  1085. }
  1086. file_plugin_codegen_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1087. switch v := v.(*Column); i {
  1088. case 0:
  1089. return &v.state
  1090. case 1:
  1091. return &v.sizeCache
  1092. case 2:
  1093. return &v.unknownFields
  1094. default:
  1095. return nil
  1096. }
  1097. }
  1098. file_plugin_codegen_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1099. switch v := v.(*Query); i {
  1100. case 0:
  1101. return &v.state
  1102. case 1:
  1103. return &v.sizeCache
  1104. case 2:
  1105. return &v.unknownFields
  1106. default:
  1107. return nil
  1108. }
  1109. }
  1110. file_plugin_codegen_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1111. switch v := v.(*Parameter); i {
  1112. case 0:
  1113. return &v.state
  1114. case 1:
  1115. return &v.sizeCache
  1116. case 2:
  1117. return &v.unknownFields
  1118. default:
  1119. return nil
  1120. }
  1121. }
  1122. file_plugin_codegen_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1123. switch v := v.(*CodeGenRequest); i {
  1124. case 0:
  1125. return &v.state
  1126. case 1:
  1127. return &v.sizeCache
  1128. case 2:
  1129. return &v.unknownFields
  1130. default:
  1131. return nil
  1132. }
  1133. }
  1134. file_plugin_codegen_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1135. switch v := v.(*CodeGenResponse); i {
  1136. case 0:
  1137. return &v.state
  1138. case 1:
  1139. return &v.sizeCache
  1140. case 2:
  1141. return &v.unknownFields
  1142. default:
  1143. return nil
  1144. }
  1145. }
  1146. }
  1147. type x struct{}
  1148. out := protoimpl.TypeBuilder{
  1149. File: protoimpl.DescBuilder{
  1150. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1151. RawDescriptor: file_plugin_codegen_proto_rawDesc,
  1152. NumEnums: 0,
  1153. NumMessages: 14,
  1154. NumExtensions: 0,
  1155. NumServices: 0,
  1156. },
  1157. GoTypes: file_plugin_codegen_proto_goTypes,
  1158. DependencyIndexes: file_plugin_codegen_proto_depIdxs,
  1159. MessageInfos: file_plugin_codegen_proto_msgTypes,
  1160. }.Build()
  1161. File_plugin_codegen_proto = out.File
  1162. file_plugin_codegen_proto_rawDesc = nil
  1163. file_plugin_codegen_proto_goTypes = nil
  1164. file_plugin_codegen_proto_depIdxs = nil
  1165. }