codegen.pb.go 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646
  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. Table *Identifier `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"`
  78. ColumnName string `protobuf:"bytes,8,opt,name=column_name,proto3" json:"column_name,omitempty"`
  79. PythonType *PythonType `protobuf:"bytes,9,opt,name=python_type,json=pythonType,proto3" json:"python_type,omitempty"`
  80. }
  81. func (x *Override) Reset() {
  82. *x = Override{}
  83. if protoimpl.UnsafeEnabled {
  84. mi := &file_plugin_codegen_proto_msgTypes[1]
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. ms.StoreMessageInfo(mi)
  87. }
  88. }
  89. func (x *Override) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*Override) ProtoMessage() {}
  93. func (x *Override) ProtoReflect() protoreflect.Message {
  94. mi := &file_plugin_codegen_proto_msgTypes[1]
  95. if protoimpl.UnsafeEnabled && x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use Override.ProtoReflect.Descriptor instead.
  105. func (*Override) Descriptor() ([]byte, []int) {
  106. return file_plugin_codegen_proto_rawDescGZIP(), []int{1}
  107. }
  108. func (x *Override) GetCodeType() string {
  109. if x != nil {
  110. return x.CodeType
  111. }
  112. return ""
  113. }
  114. func (x *Override) GetDbType() string {
  115. if x != nil {
  116. return x.DbType
  117. }
  118. return ""
  119. }
  120. func (x *Override) GetNullable() bool {
  121. if x != nil {
  122. return x.Nullable
  123. }
  124. return false
  125. }
  126. func (x *Override) GetColumn() string {
  127. if x != nil {
  128. return x.Column
  129. }
  130. return ""
  131. }
  132. func (x *Override) GetTable() *Identifier {
  133. if x != nil {
  134. return x.Table
  135. }
  136. return nil
  137. }
  138. func (x *Override) GetColumnName() string {
  139. if x != nil {
  140. return x.ColumnName
  141. }
  142. return ""
  143. }
  144. func (x *Override) GetPythonType() *PythonType {
  145. if x != nil {
  146. return x.PythonType
  147. }
  148. return nil
  149. }
  150. type PythonType struct {
  151. state protoimpl.MessageState
  152. sizeCache protoimpl.SizeCache
  153. unknownFields protoimpl.UnknownFields
  154. Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
  155. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  156. }
  157. func (x *PythonType) Reset() {
  158. *x = PythonType{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_plugin_codegen_proto_msgTypes[2]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *PythonType) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*PythonType) ProtoMessage() {}
  169. func (x *PythonType) ProtoReflect() protoreflect.Message {
  170. mi := &file_plugin_codegen_proto_msgTypes[2]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use PythonType.ProtoReflect.Descriptor instead.
  181. func (*PythonType) Descriptor() ([]byte, []int) {
  182. return file_plugin_codegen_proto_rawDescGZIP(), []int{2}
  183. }
  184. func (x *PythonType) GetModule() string {
  185. if x != nil {
  186. return x.Module
  187. }
  188. return ""
  189. }
  190. func (x *PythonType) GetName() string {
  191. if x != nil {
  192. return x.Name
  193. }
  194. return ""
  195. }
  196. type Settings struct {
  197. state protoimpl.MessageState
  198. sizeCache protoimpl.SizeCache
  199. unknownFields protoimpl.UnknownFields
  200. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  201. Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"`
  202. Schema []string `protobuf:"bytes,3,rep,name=schema,proto3" json:"schema,omitempty"`
  203. Queries []string `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"`
  204. 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"`
  205. Overrides []*Override `protobuf:"bytes,6,rep,name=overrides,proto3" json:"overrides,omitempty"`
  206. // TODO: Refactor codegen settings
  207. Python *PythonCode `protobuf:"bytes,8,opt,name=python,proto3" json:"python,omitempty"`
  208. Kotlin *KotlinCode `protobuf:"bytes,9,opt,name=kotlin,proto3" json:"kotlin,omitempty"`
  209. }
  210. func (x *Settings) Reset() {
  211. *x = Settings{}
  212. if protoimpl.UnsafeEnabled {
  213. mi := &file_plugin_codegen_proto_msgTypes[3]
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. ms.StoreMessageInfo(mi)
  216. }
  217. }
  218. func (x *Settings) String() string {
  219. return protoimpl.X.MessageStringOf(x)
  220. }
  221. func (*Settings) ProtoMessage() {}
  222. func (x *Settings) ProtoReflect() protoreflect.Message {
  223. mi := &file_plugin_codegen_proto_msgTypes[3]
  224. if protoimpl.UnsafeEnabled && x != nil {
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. if ms.LoadMessageInfo() == nil {
  227. ms.StoreMessageInfo(mi)
  228. }
  229. return ms
  230. }
  231. return mi.MessageOf(x)
  232. }
  233. // Deprecated: Use Settings.ProtoReflect.Descriptor instead.
  234. func (*Settings) Descriptor() ([]byte, []int) {
  235. return file_plugin_codegen_proto_rawDescGZIP(), []int{3}
  236. }
  237. func (x *Settings) GetVersion() string {
  238. if x != nil {
  239. return x.Version
  240. }
  241. return ""
  242. }
  243. func (x *Settings) GetEngine() string {
  244. if x != nil {
  245. return x.Engine
  246. }
  247. return ""
  248. }
  249. func (x *Settings) GetSchema() []string {
  250. if x != nil {
  251. return x.Schema
  252. }
  253. return nil
  254. }
  255. func (x *Settings) GetQueries() []string {
  256. if x != nil {
  257. return x.Queries
  258. }
  259. return nil
  260. }
  261. func (x *Settings) GetRename() map[string]string {
  262. if x != nil {
  263. return x.Rename
  264. }
  265. return nil
  266. }
  267. func (x *Settings) GetOverrides() []*Override {
  268. if x != nil {
  269. return x.Overrides
  270. }
  271. return nil
  272. }
  273. func (x *Settings) GetPython() *PythonCode {
  274. if x != nil {
  275. return x.Python
  276. }
  277. return nil
  278. }
  279. func (x *Settings) GetKotlin() *KotlinCode {
  280. if x != nil {
  281. return x.Kotlin
  282. }
  283. return nil
  284. }
  285. type PythonCode struct {
  286. state protoimpl.MessageState
  287. sizeCache protoimpl.SizeCache
  288. unknownFields protoimpl.UnknownFields
  289. EmitExactTableNames bool `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
  290. EmitSyncQuerier bool `protobuf:"varint,2,opt,name=emit_sync_querier,json=emitSyncQuerier,proto3" json:"emit_sync_querier,omitempty"`
  291. EmitAsyncQuerier bool `protobuf:"varint,3,opt,name=emit_async_querier,json=emitAsyncQuerier,proto3" json:"emit_async_querier,omitempty"`
  292. Package string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"`
  293. Out string `protobuf:"bytes,5,opt,name=out,proto3" json:"out,omitempty"`
  294. }
  295. func (x *PythonCode) Reset() {
  296. *x = PythonCode{}
  297. if protoimpl.UnsafeEnabled {
  298. mi := &file_plugin_codegen_proto_msgTypes[4]
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. ms.StoreMessageInfo(mi)
  301. }
  302. }
  303. func (x *PythonCode) String() string {
  304. return protoimpl.X.MessageStringOf(x)
  305. }
  306. func (*PythonCode) ProtoMessage() {}
  307. func (x *PythonCode) ProtoReflect() protoreflect.Message {
  308. mi := &file_plugin_codegen_proto_msgTypes[4]
  309. if protoimpl.UnsafeEnabled && x != nil {
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. if ms.LoadMessageInfo() == nil {
  312. ms.StoreMessageInfo(mi)
  313. }
  314. return ms
  315. }
  316. return mi.MessageOf(x)
  317. }
  318. // Deprecated: Use PythonCode.ProtoReflect.Descriptor instead.
  319. func (*PythonCode) Descriptor() ([]byte, []int) {
  320. return file_plugin_codegen_proto_rawDescGZIP(), []int{4}
  321. }
  322. func (x *PythonCode) GetEmitExactTableNames() bool {
  323. if x != nil {
  324. return x.EmitExactTableNames
  325. }
  326. return false
  327. }
  328. func (x *PythonCode) GetEmitSyncQuerier() bool {
  329. if x != nil {
  330. return x.EmitSyncQuerier
  331. }
  332. return false
  333. }
  334. func (x *PythonCode) GetEmitAsyncQuerier() bool {
  335. if x != nil {
  336. return x.EmitAsyncQuerier
  337. }
  338. return false
  339. }
  340. func (x *PythonCode) GetPackage() string {
  341. if x != nil {
  342. return x.Package
  343. }
  344. return ""
  345. }
  346. func (x *PythonCode) GetOut() string {
  347. if x != nil {
  348. return x.Out
  349. }
  350. return ""
  351. }
  352. type KotlinCode struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. EmitExactTableNames bool `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
  357. Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
  358. Out string `protobuf:"bytes,3,opt,name=out,proto3" json:"out,omitempty"`
  359. }
  360. func (x *KotlinCode) Reset() {
  361. *x = KotlinCode{}
  362. if protoimpl.UnsafeEnabled {
  363. mi := &file_plugin_codegen_proto_msgTypes[5]
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. ms.StoreMessageInfo(mi)
  366. }
  367. }
  368. func (x *KotlinCode) String() string {
  369. return protoimpl.X.MessageStringOf(x)
  370. }
  371. func (*KotlinCode) ProtoMessage() {}
  372. func (x *KotlinCode) ProtoReflect() protoreflect.Message {
  373. mi := &file_plugin_codegen_proto_msgTypes[5]
  374. if protoimpl.UnsafeEnabled && x != nil {
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. if ms.LoadMessageInfo() == nil {
  377. ms.StoreMessageInfo(mi)
  378. }
  379. return ms
  380. }
  381. return mi.MessageOf(x)
  382. }
  383. // Deprecated: Use KotlinCode.ProtoReflect.Descriptor instead.
  384. func (*KotlinCode) Descriptor() ([]byte, []int) {
  385. return file_plugin_codegen_proto_rawDescGZIP(), []int{5}
  386. }
  387. func (x *KotlinCode) GetEmitExactTableNames() bool {
  388. if x != nil {
  389. return x.EmitExactTableNames
  390. }
  391. return false
  392. }
  393. func (x *KotlinCode) GetPackage() string {
  394. if x != nil {
  395. return x.Package
  396. }
  397. return ""
  398. }
  399. func (x *KotlinCode) GetOut() string {
  400. if x != nil {
  401. return x.Out
  402. }
  403. return ""
  404. }
  405. type Catalog struct {
  406. state protoimpl.MessageState
  407. sizeCache protoimpl.SizeCache
  408. unknownFields protoimpl.UnknownFields
  409. Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
  410. DefaultSchema string `protobuf:"bytes,2,opt,name=default_schema,json=defaultSchema,proto3" json:"default_schema,omitempty"`
  411. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  412. Schemas []*Schema `protobuf:"bytes,4,rep,name=schemas,proto3" json:"schemas,omitempty"`
  413. }
  414. func (x *Catalog) Reset() {
  415. *x = Catalog{}
  416. if protoimpl.UnsafeEnabled {
  417. mi := &file_plugin_codegen_proto_msgTypes[6]
  418. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  419. ms.StoreMessageInfo(mi)
  420. }
  421. }
  422. func (x *Catalog) String() string {
  423. return protoimpl.X.MessageStringOf(x)
  424. }
  425. func (*Catalog) ProtoMessage() {}
  426. func (x *Catalog) ProtoReflect() protoreflect.Message {
  427. mi := &file_plugin_codegen_proto_msgTypes[6]
  428. if protoimpl.UnsafeEnabled && x != nil {
  429. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  430. if ms.LoadMessageInfo() == nil {
  431. ms.StoreMessageInfo(mi)
  432. }
  433. return ms
  434. }
  435. return mi.MessageOf(x)
  436. }
  437. // Deprecated: Use Catalog.ProtoReflect.Descriptor instead.
  438. func (*Catalog) Descriptor() ([]byte, []int) {
  439. return file_plugin_codegen_proto_rawDescGZIP(), []int{6}
  440. }
  441. func (x *Catalog) GetComment() string {
  442. if x != nil {
  443. return x.Comment
  444. }
  445. return ""
  446. }
  447. func (x *Catalog) GetDefaultSchema() string {
  448. if x != nil {
  449. return x.DefaultSchema
  450. }
  451. return ""
  452. }
  453. func (x *Catalog) GetName() string {
  454. if x != nil {
  455. return x.Name
  456. }
  457. return ""
  458. }
  459. func (x *Catalog) GetSchemas() []*Schema {
  460. if x != nil {
  461. return x.Schemas
  462. }
  463. return nil
  464. }
  465. type Schema struct {
  466. state protoimpl.MessageState
  467. sizeCache protoimpl.SizeCache
  468. unknownFields protoimpl.UnknownFields
  469. Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
  470. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  471. Tables []*Table `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"`
  472. Enums []*Enum `protobuf:"bytes,4,rep,name=enums,proto3" json:"enums,omitempty"`
  473. }
  474. func (x *Schema) Reset() {
  475. *x = Schema{}
  476. if protoimpl.UnsafeEnabled {
  477. mi := &file_plugin_codegen_proto_msgTypes[7]
  478. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  479. ms.StoreMessageInfo(mi)
  480. }
  481. }
  482. func (x *Schema) String() string {
  483. return protoimpl.X.MessageStringOf(x)
  484. }
  485. func (*Schema) ProtoMessage() {}
  486. func (x *Schema) ProtoReflect() protoreflect.Message {
  487. mi := &file_plugin_codegen_proto_msgTypes[7]
  488. if protoimpl.UnsafeEnabled && x != nil {
  489. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  490. if ms.LoadMessageInfo() == nil {
  491. ms.StoreMessageInfo(mi)
  492. }
  493. return ms
  494. }
  495. return mi.MessageOf(x)
  496. }
  497. // Deprecated: Use Schema.ProtoReflect.Descriptor instead.
  498. func (*Schema) Descriptor() ([]byte, []int) {
  499. return file_plugin_codegen_proto_rawDescGZIP(), []int{7}
  500. }
  501. func (x *Schema) GetComment() string {
  502. if x != nil {
  503. return x.Comment
  504. }
  505. return ""
  506. }
  507. func (x *Schema) GetName() string {
  508. if x != nil {
  509. return x.Name
  510. }
  511. return ""
  512. }
  513. func (x *Schema) GetTables() []*Table {
  514. if x != nil {
  515. return x.Tables
  516. }
  517. return nil
  518. }
  519. func (x *Schema) GetEnums() []*Enum {
  520. if x != nil {
  521. return x.Enums
  522. }
  523. return nil
  524. }
  525. type Enum struct {
  526. state protoimpl.MessageState
  527. sizeCache protoimpl.SizeCache
  528. unknownFields protoimpl.UnknownFields
  529. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  530. Vals []string `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
  531. Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
  532. }
  533. func (x *Enum) Reset() {
  534. *x = Enum{}
  535. if protoimpl.UnsafeEnabled {
  536. mi := &file_plugin_codegen_proto_msgTypes[8]
  537. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  538. ms.StoreMessageInfo(mi)
  539. }
  540. }
  541. func (x *Enum) String() string {
  542. return protoimpl.X.MessageStringOf(x)
  543. }
  544. func (*Enum) ProtoMessage() {}
  545. func (x *Enum) ProtoReflect() protoreflect.Message {
  546. mi := &file_plugin_codegen_proto_msgTypes[8]
  547. if protoimpl.UnsafeEnabled && x != nil {
  548. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  549. if ms.LoadMessageInfo() == nil {
  550. ms.StoreMessageInfo(mi)
  551. }
  552. return ms
  553. }
  554. return mi.MessageOf(x)
  555. }
  556. // Deprecated: Use Enum.ProtoReflect.Descriptor instead.
  557. func (*Enum) Descriptor() ([]byte, []int) {
  558. return file_plugin_codegen_proto_rawDescGZIP(), []int{8}
  559. }
  560. func (x *Enum) GetName() string {
  561. if x != nil {
  562. return x.Name
  563. }
  564. return ""
  565. }
  566. func (x *Enum) GetVals() []string {
  567. if x != nil {
  568. return x.Vals
  569. }
  570. return nil
  571. }
  572. func (x *Enum) GetComment() string {
  573. if x != nil {
  574. return x.Comment
  575. }
  576. return ""
  577. }
  578. type Table struct {
  579. state protoimpl.MessageState
  580. sizeCache protoimpl.SizeCache
  581. unknownFields protoimpl.UnknownFields
  582. Rel *Identifier `protobuf:"bytes,1,opt,name=rel,proto3" json:"rel,omitempty"`
  583. Columns []*Column `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
  584. Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
  585. }
  586. func (x *Table) Reset() {
  587. *x = Table{}
  588. if protoimpl.UnsafeEnabled {
  589. mi := &file_plugin_codegen_proto_msgTypes[9]
  590. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  591. ms.StoreMessageInfo(mi)
  592. }
  593. }
  594. func (x *Table) String() string {
  595. return protoimpl.X.MessageStringOf(x)
  596. }
  597. func (*Table) ProtoMessage() {}
  598. func (x *Table) ProtoReflect() protoreflect.Message {
  599. mi := &file_plugin_codegen_proto_msgTypes[9]
  600. if protoimpl.UnsafeEnabled && x != nil {
  601. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  602. if ms.LoadMessageInfo() == nil {
  603. ms.StoreMessageInfo(mi)
  604. }
  605. return ms
  606. }
  607. return mi.MessageOf(x)
  608. }
  609. // Deprecated: Use Table.ProtoReflect.Descriptor instead.
  610. func (*Table) Descriptor() ([]byte, []int) {
  611. return file_plugin_codegen_proto_rawDescGZIP(), []int{9}
  612. }
  613. func (x *Table) GetRel() *Identifier {
  614. if x != nil {
  615. return x.Rel
  616. }
  617. return nil
  618. }
  619. func (x *Table) GetColumns() []*Column {
  620. if x != nil {
  621. return x.Columns
  622. }
  623. return nil
  624. }
  625. func (x *Table) GetComment() string {
  626. if x != nil {
  627. return x.Comment
  628. }
  629. return ""
  630. }
  631. type Identifier struct {
  632. state protoimpl.MessageState
  633. sizeCache protoimpl.SizeCache
  634. unknownFields protoimpl.UnknownFields
  635. Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
  636. Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
  637. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  638. }
  639. func (x *Identifier) Reset() {
  640. *x = Identifier{}
  641. if protoimpl.UnsafeEnabled {
  642. mi := &file_plugin_codegen_proto_msgTypes[10]
  643. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  644. ms.StoreMessageInfo(mi)
  645. }
  646. }
  647. func (x *Identifier) String() string {
  648. return protoimpl.X.MessageStringOf(x)
  649. }
  650. func (*Identifier) ProtoMessage() {}
  651. func (x *Identifier) ProtoReflect() protoreflect.Message {
  652. mi := &file_plugin_codegen_proto_msgTypes[10]
  653. if protoimpl.UnsafeEnabled && x != nil {
  654. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  655. if ms.LoadMessageInfo() == nil {
  656. ms.StoreMessageInfo(mi)
  657. }
  658. return ms
  659. }
  660. return mi.MessageOf(x)
  661. }
  662. // Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
  663. func (*Identifier) Descriptor() ([]byte, []int) {
  664. return file_plugin_codegen_proto_rawDescGZIP(), []int{10}
  665. }
  666. func (x *Identifier) GetCatalog() string {
  667. if x != nil {
  668. return x.Catalog
  669. }
  670. return ""
  671. }
  672. func (x *Identifier) GetSchema() string {
  673. if x != nil {
  674. return x.Schema
  675. }
  676. return ""
  677. }
  678. func (x *Identifier) GetName() string {
  679. if x != nil {
  680. return x.Name
  681. }
  682. return ""
  683. }
  684. type Column struct {
  685. state protoimpl.MessageState
  686. sizeCache protoimpl.SizeCache
  687. unknownFields protoimpl.UnknownFields
  688. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  689. NotNull bool `protobuf:"varint,3,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"`
  690. IsArray bool `protobuf:"varint,4,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"`
  691. Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
  692. Length int32 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"`
  693. IsNamedParam bool `protobuf:"varint,7,opt,name=is_named_param,json=isNamedParam,proto3" json:"is_named_param,omitempty"`
  694. IsFuncCall bool `protobuf:"varint,8,opt,name=is_func_call,json=isFuncCall,proto3" json:"is_func_call,omitempty"`
  695. // XXX: Figure out what PostgreSQL calls `foo.id`
  696. Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"`
  697. Table *Identifier `protobuf:"bytes,10,opt,name=table,proto3" json:"table,omitempty"`
  698. TableAlias string `protobuf:"bytes,11,opt,name=table_alias,json=tableAlias,proto3" json:"table_alias,omitempty"`
  699. Type *Identifier `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"`
  700. DataType string `protobuf:"bytes,13,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
  701. }
  702. func (x *Column) Reset() {
  703. *x = Column{}
  704. if protoimpl.UnsafeEnabled {
  705. mi := &file_plugin_codegen_proto_msgTypes[11]
  706. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  707. ms.StoreMessageInfo(mi)
  708. }
  709. }
  710. func (x *Column) String() string {
  711. return protoimpl.X.MessageStringOf(x)
  712. }
  713. func (*Column) ProtoMessage() {}
  714. func (x *Column) ProtoReflect() protoreflect.Message {
  715. mi := &file_plugin_codegen_proto_msgTypes[11]
  716. if protoimpl.UnsafeEnabled && x != nil {
  717. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  718. if ms.LoadMessageInfo() == nil {
  719. ms.StoreMessageInfo(mi)
  720. }
  721. return ms
  722. }
  723. return mi.MessageOf(x)
  724. }
  725. // Deprecated: Use Column.ProtoReflect.Descriptor instead.
  726. func (*Column) Descriptor() ([]byte, []int) {
  727. return file_plugin_codegen_proto_rawDescGZIP(), []int{11}
  728. }
  729. func (x *Column) GetName() string {
  730. if x != nil {
  731. return x.Name
  732. }
  733. return ""
  734. }
  735. func (x *Column) GetNotNull() bool {
  736. if x != nil {
  737. return x.NotNull
  738. }
  739. return false
  740. }
  741. func (x *Column) GetIsArray() bool {
  742. if x != nil {
  743. return x.IsArray
  744. }
  745. return false
  746. }
  747. func (x *Column) GetComment() string {
  748. if x != nil {
  749. return x.Comment
  750. }
  751. return ""
  752. }
  753. func (x *Column) GetLength() int32 {
  754. if x != nil {
  755. return x.Length
  756. }
  757. return 0
  758. }
  759. func (x *Column) GetIsNamedParam() bool {
  760. if x != nil {
  761. return x.IsNamedParam
  762. }
  763. return false
  764. }
  765. func (x *Column) GetIsFuncCall() bool {
  766. if x != nil {
  767. return x.IsFuncCall
  768. }
  769. return false
  770. }
  771. func (x *Column) GetScope() string {
  772. if x != nil {
  773. return x.Scope
  774. }
  775. return ""
  776. }
  777. func (x *Column) GetTable() *Identifier {
  778. if x != nil {
  779. return x.Table
  780. }
  781. return nil
  782. }
  783. func (x *Column) GetTableAlias() string {
  784. if x != nil {
  785. return x.TableAlias
  786. }
  787. return ""
  788. }
  789. func (x *Column) GetType() *Identifier {
  790. if x != nil {
  791. return x.Type
  792. }
  793. return nil
  794. }
  795. func (x *Column) GetDataType() string {
  796. if x != nil {
  797. return x.DataType
  798. }
  799. return ""
  800. }
  801. type Query struct {
  802. state protoimpl.MessageState
  803. sizeCache protoimpl.SizeCache
  804. unknownFields protoimpl.UnknownFields
  805. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
  806. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  807. Cmd string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"`
  808. Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
  809. Params []*Parameter `protobuf:"bytes,5,rep,name=params,json=parameters,proto3" json:"params,omitempty"`
  810. Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"`
  811. Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename,omitempty"`
  812. }
  813. func (x *Query) Reset() {
  814. *x = Query{}
  815. if protoimpl.UnsafeEnabled {
  816. mi := &file_plugin_codegen_proto_msgTypes[12]
  817. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  818. ms.StoreMessageInfo(mi)
  819. }
  820. }
  821. func (x *Query) String() string {
  822. return protoimpl.X.MessageStringOf(x)
  823. }
  824. func (*Query) ProtoMessage() {}
  825. func (x *Query) ProtoReflect() protoreflect.Message {
  826. mi := &file_plugin_codegen_proto_msgTypes[12]
  827. if protoimpl.UnsafeEnabled && x != nil {
  828. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  829. if ms.LoadMessageInfo() == nil {
  830. ms.StoreMessageInfo(mi)
  831. }
  832. return ms
  833. }
  834. return mi.MessageOf(x)
  835. }
  836. // Deprecated: Use Query.ProtoReflect.Descriptor instead.
  837. func (*Query) Descriptor() ([]byte, []int) {
  838. return file_plugin_codegen_proto_rawDescGZIP(), []int{12}
  839. }
  840. func (x *Query) GetText() string {
  841. if x != nil {
  842. return x.Text
  843. }
  844. return ""
  845. }
  846. func (x *Query) GetName() string {
  847. if x != nil {
  848. return x.Name
  849. }
  850. return ""
  851. }
  852. func (x *Query) GetCmd() string {
  853. if x != nil {
  854. return x.Cmd
  855. }
  856. return ""
  857. }
  858. func (x *Query) GetColumns() []*Column {
  859. if x != nil {
  860. return x.Columns
  861. }
  862. return nil
  863. }
  864. func (x *Query) GetParams() []*Parameter {
  865. if x != nil {
  866. return x.Params
  867. }
  868. return nil
  869. }
  870. func (x *Query) GetComments() []string {
  871. if x != nil {
  872. return x.Comments
  873. }
  874. return nil
  875. }
  876. func (x *Query) GetFilename() string {
  877. if x != nil {
  878. return x.Filename
  879. }
  880. return ""
  881. }
  882. type Parameter struct {
  883. state protoimpl.MessageState
  884. sizeCache protoimpl.SizeCache
  885. unknownFields protoimpl.UnknownFields
  886. Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
  887. Column *Column `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
  888. }
  889. func (x *Parameter) Reset() {
  890. *x = Parameter{}
  891. if protoimpl.UnsafeEnabled {
  892. mi := &file_plugin_codegen_proto_msgTypes[13]
  893. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  894. ms.StoreMessageInfo(mi)
  895. }
  896. }
  897. func (x *Parameter) String() string {
  898. return protoimpl.X.MessageStringOf(x)
  899. }
  900. func (*Parameter) ProtoMessage() {}
  901. func (x *Parameter) ProtoReflect() protoreflect.Message {
  902. mi := &file_plugin_codegen_proto_msgTypes[13]
  903. if protoimpl.UnsafeEnabled && x != nil {
  904. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  905. if ms.LoadMessageInfo() == nil {
  906. ms.StoreMessageInfo(mi)
  907. }
  908. return ms
  909. }
  910. return mi.MessageOf(x)
  911. }
  912. // Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
  913. func (*Parameter) Descriptor() ([]byte, []int) {
  914. return file_plugin_codegen_proto_rawDescGZIP(), []int{13}
  915. }
  916. func (x *Parameter) GetNumber() int32 {
  917. if x != nil {
  918. return x.Number
  919. }
  920. return 0
  921. }
  922. func (x *Parameter) GetColumn() *Column {
  923. if x != nil {
  924. return x.Column
  925. }
  926. return nil
  927. }
  928. type CodeGenRequest struct {
  929. state protoimpl.MessageState
  930. sizeCache protoimpl.SizeCache
  931. unknownFields protoimpl.UnknownFields
  932. Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
  933. Catalog *Catalog `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
  934. Queries []*Query `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"`
  935. }
  936. func (x *CodeGenRequest) Reset() {
  937. *x = CodeGenRequest{}
  938. if protoimpl.UnsafeEnabled {
  939. mi := &file_plugin_codegen_proto_msgTypes[14]
  940. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  941. ms.StoreMessageInfo(mi)
  942. }
  943. }
  944. func (x *CodeGenRequest) String() string {
  945. return protoimpl.X.MessageStringOf(x)
  946. }
  947. func (*CodeGenRequest) ProtoMessage() {}
  948. func (x *CodeGenRequest) ProtoReflect() protoreflect.Message {
  949. mi := &file_plugin_codegen_proto_msgTypes[14]
  950. if protoimpl.UnsafeEnabled && x != nil {
  951. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  952. if ms.LoadMessageInfo() == nil {
  953. ms.StoreMessageInfo(mi)
  954. }
  955. return ms
  956. }
  957. return mi.MessageOf(x)
  958. }
  959. // Deprecated: Use CodeGenRequest.ProtoReflect.Descriptor instead.
  960. func (*CodeGenRequest) Descriptor() ([]byte, []int) {
  961. return file_plugin_codegen_proto_rawDescGZIP(), []int{14}
  962. }
  963. func (x *CodeGenRequest) GetSettings() *Settings {
  964. if x != nil {
  965. return x.Settings
  966. }
  967. return nil
  968. }
  969. func (x *CodeGenRequest) GetCatalog() *Catalog {
  970. if x != nil {
  971. return x.Catalog
  972. }
  973. return nil
  974. }
  975. func (x *CodeGenRequest) GetQueries() []*Query {
  976. if x != nil {
  977. return x.Queries
  978. }
  979. return nil
  980. }
  981. type CodeGenResponse struct {
  982. state protoimpl.MessageState
  983. sizeCache protoimpl.SizeCache
  984. unknownFields protoimpl.UnknownFields
  985. Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
  986. }
  987. func (x *CodeGenResponse) Reset() {
  988. *x = CodeGenResponse{}
  989. if protoimpl.UnsafeEnabled {
  990. mi := &file_plugin_codegen_proto_msgTypes[15]
  991. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  992. ms.StoreMessageInfo(mi)
  993. }
  994. }
  995. func (x *CodeGenResponse) String() string {
  996. return protoimpl.X.MessageStringOf(x)
  997. }
  998. func (*CodeGenResponse) ProtoMessage() {}
  999. func (x *CodeGenResponse) ProtoReflect() protoreflect.Message {
  1000. mi := &file_plugin_codegen_proto_msgTypes[15]
  1001. if protoimpl.UnsafeEnabled && x != nil {
  1002. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1003. if ms.LoadMessageInfo() == nil {
  1004. ms.StoreMessageInfo(mi)
  1005. }
  1006. return ms
  1007. }
  1008. return mi.MessageOf(x)
  1009. }
  1010. // Deprecated: Use CodeGenResponse.ProtoReflect.Descriptor instead.
  1011. func (*CodeGenResponse) Descriptor() ([]byte, []int) {
  1012. return file_plugin_codegen_proto_rawDescGZIP(), []int{15}
  1013. }
  1014. func (x *CodeGenResponse) GetFiles() []*File {
  1015. if x != nil {
  1016. return x.Files
  1017. }
  1018. return nil
  1019. }
  1020. var File_plugin_codegen_proto protoreflect.FileDescriptor
  1021. var file_plugin_codegen_proto_rawDesc = []byte{
  1022. 0x0a, 0x14, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x67, 0x65, 0x6e,
  1023. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0x36,
  1024. 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  1025. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f,
  1026. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6f,
  1027. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xf7, 0x01, 0x0a, 0x08, 0x4f, 0x76, 0x65, 0x72, 0x72,
  1028. 0x69, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
  1029. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70,
  1030. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  1031. 0x28, 0x09, 0x52, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
  1032. 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e,
  1033. 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
  1034. 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
  1035. 0x28, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
  1036. 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,
  1037. 0x65, 0x72, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6c,
  1038. 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  1039. 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x70,
  1040. 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
  1041. 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e,
  1042. 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,
  1043. 0x22, 0x38, 0x0a, 0x0a, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16,
  1044. 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  1045. 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  1046. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x08, 0x53,
  1047. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  1048. 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
  1049. 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  1050. 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68,
  1051. 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
  1052. 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,
  1053. 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72,
  1054. 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6c,
  1055. 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65,
  1056. 0x6e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d,
  1057. 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x06,
  1058. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x4f, 0x76,
  1059. 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
  1060. 0x73, 0x12, 0x2a, 0x0a, 0x06, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,
  1061. 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f,
  1062. 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x12, 0x2a, 0x0a,
  1063. 0x06, 0x6b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
  1064. 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x4b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x43, 0x6f, 0x64,
  1065. 0x65, 0x52, 0x06, 0x6b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x65, 0x6e,
  1066. 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  1067. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  1068. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1069. 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc7, 0x01, 0x0a, 0x0a, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x43,
  1070. 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x63,
  1071. 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20,
  1072. 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6d, 0x69, 0x74, 0x45, 0x78, 0x61, 0x63, 0x74, 0x54, 0x61,
  1073. 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x6d, 0x69, 0x74,
  1074. 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20,
  1075. 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x6d, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x51, 0x75, 0x65,
  1076. 0x72, 0x69, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x73, 0x79,
  1077. 0x6e, 0x63, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
  1078. 0x52, 0x10, 0x65, 0x6d, 0x69, 0x74, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x51, 0x75, 0x65, 0x72, 0x69,
  1079. 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20,
  1080. 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03,
  1081. 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x75, 0x74, 0x22, 0x6d,
  1082. 0x0a, 0x0a, 0x4b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x16,
  1083. 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
  1084. 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6d,
  1085. 0x69, 0x74, 0x45, 0x78, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1086. 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  1087. 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f,
  1088. 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x75, 0x74, 0x22, 0x88, 0x01,
  1089. 0x0a, 0x07, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d,
  1090. 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
  1091. 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
  1092. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x66,
  1093. 0x61, 0x75, 0x6c, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
  1094. 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28,
  1095. 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1096. 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,
  1097. 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x06, 0x53, 0x63, 0x68,
  1098. 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01,
  1099. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a,
  1100. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  1101. 0x65, 0x12, 0x25, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  1102. 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
  1103. 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 0x75, 0x6d,
  1104. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
  1105. 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x22, 0x48, 0x0a, 0x04,
  1106. 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  1107. 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x61, 0x6c, 0x73,
  1108. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x76, 0x61, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07,
  1109. 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
  1110. 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
  1111. 0x24, 0x0a, 0x03, 0x72, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70,
  1112. 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,
  1113. 0x52, 0x03, 0x72, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
  1114. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
  1115. 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
  1116. 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  1117. 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x52, 0x0a, 0x0a, 0x49, 0x64, 0x65,
  1118. 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c,
  1119. 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
  1120. 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
  1121. 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
  1122. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf2, 0x02,
  1123. 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  1124. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08,
  1125. 0x6e, 0x6f, 0x74, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
  1126. 0x6e, 0x6f, 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72,
  1127. 0x72, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72,
  1128. 0x61, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20,
  1129. 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06,
  1130. 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65,
  1131. 0x6e, 0x67, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x64,
  1132. 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73,
  1133. 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x73,
  1134. 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
  1135. 0x52, 0x0a, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x14, 0x0a, 0x05,
  1136. 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f,
  1137. 0x70, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1138. 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74,
  1139. 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
  1140. 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28,
  1141. 0x09, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x26, 0x0a,
  1142. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c,
  1143. 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52,
  1144. 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79,
  1145. 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79,
  1146. 0x70, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04,
  1147. 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74,
  1148. 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  1149. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  1150. 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
  1151. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
  1152. 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
  1153. 0x12, 0x2d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
  1154. 0x32, 0x11, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65,
  1155. 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12,
  1156. 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
  1157. 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x66,
  1158. 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66,
  1159. 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d,
  1160. 0x65, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01,
  1161. 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x06,
  1162. 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70,
  1163. 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x06, 0x63, 0x6f,
  1164. 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e,
  1165. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69,
  1166. 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67,
  1167. 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74,
  1168. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
  1169. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
  1170. 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
  1171. 0x12, 0x27, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  1172. 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
  1173. 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x0f, 0x43, 0x6f, 0x64,
  1174. 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x05,
  1175. 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x6c,
  1176. 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73,
  1177. 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b,
  1178. 0x79, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x72, 0x6f, 0x79, 0x2f, 0x73, 0x71, 0x6c, 0x63, 0x2f, 0x69,
  1179. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x62, 0x06,
  1180. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1181. }
  1182. var (
  1183. file_plugin_codegen_proto_rawDescOnce sync.Once
  1184. file_plugin_codegen_proto_rawDescData = file_plugin_codegen_proto_rawDesc
  1185. )
  1186. func file_plugin_codegen_proto_rawDescGZIP() []byte {
  1187. file_plugin_codegen_proto_rawDescOnce.Do(func() {
  1188. file_plugin_codegen_proto_rawDescData = protoimpl.X.CompressGZIP(file_plugin_codegen_proto_rawDescData)
  1189. })
  1190. return file_plugin_codegen_proto_rawDescData
  1191. }
  1192. var file_plugin_codegen_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
  1193. var file_plugin_codegen_proto_goTypes = []interface{}{
  1194. (*File)(nil), // 0: plugin.File
  1195. (*Override)(nil), // 1: plugin.Override
  1196. (*PythonType)(nil), // 2: plugin.PythonType
  1197. (*Settings)(nil), // 3: plugin.Settings
  1198. (*PythonCode)(nil), // 4: plugin.PythonCode
  1199. (*KotlinCode)(nil), // 5: plugin.KotlinCode
  1200. (*Catalog)(nil), // 6: plugin.Catalog
  1201. (*Schema)(nil), // 7: plugin.Schema
  1202. (*Enum)(nil), // 8: plugin.Enum
  1203. (*Table)(nil), // 9: plugin.Table
  1204. (*Identifier)(nil), // 10: plugin.Identifier
  1205. (*Column)(nil), // 11: plugin.Column
  1206. (*Query)(nil), // 12: plugin.Query
  1207. (*Parameter)(nil), // 13: plugin.Parameter
  1208. (*CodeGenRequest)(nil), // 14: plugin.CodeGenRequest
  1209. (*CodeGenResponse)(nil), // 15: plugin.CodeGenResponse
  1210. nil, // 16: plugin.Settings.RenameEntry
  1211. }
  1212. var file_plugin_codegen_proto_depIdxs = []int32{
  1213. 10, // 0: plugin.Override.table:type_name -> plugin.Identifier
  1214. 2, // 1: plugin.Override.python_type:type_name -> plugin.PythonType
  1215. 16, // 2: plugin.Settings.rename:type_name -> plugin.Settings.RenameEntry
  1216. 1, // 3: plugin.Settings.overrides:type_name -> plugin.Override
  1217. 4, // 4: plugin.Settings.python:type_name -> plugin.PythonCode
  1218. 5, // 5: plugin.Settings.kotlin:type_name -> plugin.KotlinCode
  1219. 7, // 6: plugin.Catalog.schemas:type_name -> plugin.Schema
  1220. 9, // 7: plugin.Schema.tables:type_name -> plugin.Table
  1221. 8, // 8: plugin.Schema.enums:type_name -> plugin.Enum
  1222. 10, // 9: plugin.Table.rel:type_name -> plugin.Identifier
  1223. 11, // 10: plugin.Table.columns:type_name -> plugin.Column
  1224. 10, // 11: plugin.Column.table:type_name -> plugin.Identifier
  1225. 10, // 12: plugin.Column.type:type_name -> plugin.Identifier
  1226. 11, // 13: plugin.Query.columns:type_name -> plugin.Column
  1227. 13, // 14: plugin.Query.params:type_name -> plugin.Parameter
  1228. 11, // 15: plugin.Parameter.column:type_name -> plugin.Column
  1229. 3, // 16: plugin.CodeGenRequest.settings:type_name -> plugin.Settings
  1230. 6, // 17: plugin.CodeGenRequest.catalog:type_name -> plugin.Catalog
  1231. 12, // 18: plugin.CodeGenRequest.queries:type_name -> plugin.Query
  1232. 0, // 19: plugin.CodeGenResponse.files:type_name -> plugin.File
  1233. 20, // [20:20] is the sub-list for method output_type
  1234. 20, // [20:20] is the sub-list for method input_type
  1235. 20, // [20:20] is the sub-list for extension type_name
  1236. 20, // [20:20] is the sub-list for extension extendee
  1237. 0, // [0:20] is the sub-list for field type_name
  1238. }
  1239. func init() { file_plugin_codegen_proto_init() }
  1240. func file_plugin_codegen_proto_init() {
  1241. if File_plugin_codegen_proto != nil {
  1242. return
  1243. }
  1244. if !protoimpl.UnsafeEnabled {
  1245. file_plugin_codegen_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1246. switch v := v.(*File); i {
  1247. case 0:
  1248. return &v.state
  1249. case 1:
  1250. return &v.sizeCache
  1251. case 2:
  1252. return &v.unknownFields
  1253. default:
  1254. return nil
  1255. }
  1256. }
  1257. file_plugin_codegen_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1258. switch v := v.(*Override); i {
  1259. case 0:
  1260. return &v.state
  1261. case 1:
  1262. return &v.sizeCache
  1263. case 2:
  1264. return &v.unknownFields
  1265. default:
  1266. return nil
  1267. }
  1268. }
  1269. file_plugin_codegen_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1270. switch v := v.(*PythonType); i {
  1271. case 0:
  1272. return &v.state
  1273. case 1:
  1274. return &v.sizeCache
  1275. case 2:
  1276. return &v.unknownFields
  1277. default:
  1278. return nil
  1279. }
  1280. }
  1281. file_plugin_codegen_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1282. switch v := v.(*Settings); i {
  1283. case 0:
  1284. return &v.state
  1285. case 1:
  1286. return &v.sizeCache
  1287. case 2:
  1288. return &v.unknownFields
  1289. default:
  1290. return nil
  1291. }
  1292. }
  1293. file_plugin_codegen_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1294. switch v := v.(*PythonCode); i {
  1295. case 0:
  1296. return &v.state
  1297. case 1:
  1298. return &v.sizeCache
  1299. case 2:
  1300. return &v.unknownFields
  1301. default:
  1302. return nil
  1303. }
  1304. }
  1305. file_plugin_codegen_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1306. switch v := v.(*KotlinCode); i {
  1307. case 0:
  1308. return &v.state
  1309. case 1:
  1310. return &v.sizeCache
  1311. case 2:
  1312. return &v.unknownFields
  1313. default:
  1314. return nil
  1315. }
  1316. }
  1317. file_plugin_codegen_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1318. switch v := v.(*Catalog); i {
  1319. case 0:
  1320. return &v.state
  1321. case 1:
  1322. return &v.sizeCache
  1323. case 2:
  1324. return &v.unknownFields
  1325. default:
  1326. return nil
  1327. }
  1328. }
  1329. file_plugin_codegen_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1330. switch v := v.(*Schema); i {
  1331. case 0:
  1332. return &v.state
  1333. case 1:
  1334. return &v.sizeCache
  1335. case 2:
  1336. return &v.unknownFields
  1337. default:
  1338. return nil
  1339. }
  1340. }
  1341. file_plugin_codegen_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1342. switch v := v.(*Enum); i {
  1343. case 0:
  1344. return &v.state
  1345. case 1:
  1346. return &v.sizeCache
  1347. case 2:
  1348. return &v.unknownFields
  1349. default:
  1350. return nil
  1351. }
  1352. }
  1353. file_plugin_codegen_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1354. switch v := v.(*Table); i {
  1355. case 0:
  1356. return &v.state
  1357. case 1:
  1358. return &v.sizeCache
  1359. case 2:
  1360. return &v.unknownFields
  1361. default:
  1362. return nil
  1363. }
  1364. }
  1365. file_plugin_codegen_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1366. switch v := v.(*Identifier); i {
  1367. case 0:
  1368. return &v.state
  1369. case 1:
  1370. return &v.sizeCache
  1371. case 2:
  1372. return &v.unknownFields
  1373. default:
  1374. return nil
  1375. }
  1376. }
  1377. file_plugin_codegen_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1378. switch v := v.(*Column); i {
  1379. case 0:
  1380. return &v.state
  1381. case 1:
  1382. return &v.sizeCache
  1383. case 2:
  1384. return &v.unknownFields
  1385. default:
  1386. return nil
  1387. }
  1388. }
  1389. file_plugin_codegen_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1390. switch v := v.(*Query); i {
  1391. case 0:
  1392. return &v.state
  1393. case 1:
  1394. return &v.sizeCache
  1395. case 2:
  1396. return &v.unknownFields
  1397. default:
  1398. return nil
  1399. }
  1400. }
  1401. file_plugin_codegen_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1402. switch v := v.(*Parameter); i {
  1403. case 0:
  1404. return &v.state
  1405. case 1:
  1406. return &v.sizeCache
  1407. case 2:
  1408. return &v.unknownFields
  1409. default:
  1410. return nil
  1411. }
  1412. }
  1413. file_plugin_codegen_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1414. switch v := v.(*CodeGenRequest); i {
  1415. case 0:
  1416. return &v.state
  1417. case 1:
  1418. return &v.sizeCache
  1419. case 2:
  1420. return &v.unknownFields
  1421. default:
  1422. return nil
  1423. }
  1424. }
  1425. file_plugin_codegen_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1426. switch v := v.(*CodeGenResponse); i {
  1427. case 0:
  1428. return &v.state
  1429. case 1:
  1430. return &v.sizeCache
  1431. case 2:
  1432. return &v.unknownFields
  1433. default:
  1434. return nil
  1435. }
  1436. }
  1437. }
  1438. type x struct{}
  1439. out := protoimpl.TypeBuilder{
  1440. File: protoimpl.DescBuilder{
  1441. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1442. RawDescriptor: file_plugin_codegen_proto_rawDesc,
  1443. NumEnums: 0,
  1444. NumMessages: 17,
  1445. NumExtensions: 0,
  1446. NumServices: 0,
  1447. },
  1448. GoTypes: file_plugin_codegen_proto_goTypes,
  1449. DependencyIndexes: file_plugin_codegen_proto_depIdxs,
  1450. MessageInfos: file_plugin_codegen_proto_msgTypes,
  1451. }.Build()
  1452. File_plugin_codegen_proto = out.File
  1453. file_plugin_codegen_proto_rawDesc = nil
  1454. file_plugin_codegen_proto_goTypes = nil
  1455. file_plugin_codegen_proto_depIdxs = nil
  1456. }