12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.27.1
- // protoc v3.19.1
- // source: plugin/codegen.proto
- package plugin
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type File struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
- }
- func (x *File) Reset() {
- *x = File{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *File) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*File) ProtoMessage() {}
- func (x *File) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use File.ProtoReflect.Descriptor instead.
- func (*File) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{0}
- }
- func (x *File) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *File) GetContents() []byte {
- if x != nil {
- return x.Contents
- }
- return nil
- }
- type Override struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // name of the type to use, e.g. `github.com/segmentio/ksuid.KSUID` or `mymodule.Type`
- CodeType string `protobuf:"bytes,1,opt,name=code_type,proto3" json:"code_type,omitempty"`
- // name of the type to use, e.g. `text`
- DbType string `protobuf:"bytes,3,opt,name=db_type,proto3" json:"db_type,omitempty"`
- // True if the override should apply to a nullable database type
- Nullable bool `protobuf:"varint,5,opt,name=nullable,proto3" json:"nullable,omitempty"`
- // fully qualified name of the column, e.g. `accounts.id`
- Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"`
- Table *Identifier `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"`
- ColumnName string `protobuf:"bytes,8,opt,name=column_name,proto3" json:"column_name,omitempty"`
- PythonType *PythonType `protobuf:"bytes,9,opt,name=python_type,json=pythonType,proto3" json:"python_type,omitempty"`
- }
- func (x *Override) Reset() {
- *x = Override{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Override) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Override) ProtoMessage() {}
- func (x *Override) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Override.ProtoReflect.Descriptor instead.
- func (*Override) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{1}
- }
- func (x *Override) GetCodeType() string {
- if x != nil {
- return x.CodeType
- }
- return ""
- }
- func (x *Override) GetDbType() string {
- if x != nil {
- return x.DbType
- }
- return ""
- }
- func (x *Override) GetNullable() bool {
- if x != nil {
- return x.Nullable
- }
- return false
- }
- func (x *Override) GetColumn() string {
- if x != nil {
- return x.Column
- }
- return ""
- }
- func (x *Override) GetTable() *Identifier {
- if x != nil {
- return x.Table
- }
- return nil
- }
- func (x *Override) GetColumnName() string {
- if x != nil {
- return x.ColumnName
- }
- return ""
- }
- func (x *Override) GetPythonType() *PythonType {
- if x != nil {
- return x.PythonType
- }
- return nil
- }
- type PythonType struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- }
- func (x *PythonType) Reset() {
- *x = PythonType{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PythonType) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PythonType) ProtoMessage() {}
- func (x *PythonType) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PythonType.ProtoReflect.Descriptor instead.
- func (*PythonType) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{2}
- }
- func (x *PythonType) GetModule() string {
- if x != nil {
- return x.Module
- }
- return ""
- }
- func (x *PythonType) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- type Settings struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
- Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"`
- Schema []string `protobuf:"bytes,3,rep,name=schema,proto3" json:"schema,omitempty"`
- Queries []string `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"`
- 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"`
- Overrides []*Override `protobuf:"bytes,6,rep,name=overrides,proto3" json:"overrides,omitempty"`
- // TODO: Refactor codegen settings
- Python *PythonCode `protobuf:"bytes,8,opt,name=python,proto3" json:"python,omitempty"`
- Kotlin *KotlinCode `protobuf:"bytes,9,opt,name=kotlin,proto3" json:"kotlin,omitempty"`
- }
- func (x *Settings) Reset() {
- *x = Settings{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Settings) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Settings) ProtoMessage() {}
- func (x *Settings) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Settings.ProtoReflect.Descriptor instead.
- func (*Settings) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{3}
- }
- func (x *Settings) GetVersion() string {
- if x != nil {
- return x.Version
- }
- return ""
- }
- func (x *Settings) GetEngine() string {
- if x != nil {
- return x.Engine
- }
- return ""
- }
- func (x *Settings) GetSchema() []string {
- if x != nil {
- return x.Schema
- }
- return nil
- }
- func (x *Settings) GetQueries() []string {
- if x != nil {
- return x.Queries
- }
- return nil
- }
- func (x *Settings) GetRename() map[string]string {
- if x != nil {
- return x.Rename
- }
- return nil
- }
- func (x *Settings) GetOverrides() []*Override {
- if x != nil {
- return x.Overrides
- }
- return nil
- }
- func (x *Settings) GetPython() *PythonCode {
- if x != nil {
- return x.Python
- }
- return nil
- }
- func (x *Settings) GetKotlin() *KotlinCode {
- if x != nil {
- return x.Kotlin
- }
- return nil
- }
- type PythonCode struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- EmitExactTableNames bool `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
- EmitSyncQuerier bool `protobuf:"varint,2,opt,name=emit_sync_querier,json=emitSyncQuerier,proto3" json:"emit_sync_querier,omitempty"`
- EmitAsyncQuerier bool `protobuf:"varint,3,opt,name=emit_async_querier,json=emitAsyncQuerier,proto3" json:"emit_async_querier,omitempty"`
- Package string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"`
- Out string `protobuf:"bytes,5,opt,name=out,proto3" json:"out,omitempty"`
- }
- func (x *PythonCode) Reset() {
- *x = PythonCode{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PythonCode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PythonCode) ProtoMessage() {}
- func (x *PythonCode) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PythonCode.ProtoReflect.Descriptor instead.
- func (*PythonCode) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{4}
- }
- func (x *PythonCode) GetEmitExactTableNames() bool {
- if x != nil {
- return x.EmitExactTableNames
- }
- return false
- }
- func (x *PythonCode) GetEmitSyncQuerier() bool {
- if x != nil {
- return x.EmitSyncQuerier
- }
- return false
- }
- func (x *PythonCode) GetEmitAsyncQuerier() bool {
- if x != nil {
- return x.EmitAsyncQuerier
- }
- return false
- }
- func (x *PythonCode) GetPackage() string {
- if x != nil {
- return x.Package
- }
- return ""
- }
- func (x *PythonCode) GetOut() string {
- if x != nil {
- return x.Out
- }
- return ""
- }
- type KotlinCode struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- EmitExactTableNames bool `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
- Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
- Out string `protobuf:"bytes,3,opt,name=out,proto3" json:"out,omitempty"`
- }
- func (x *KotlinCode) Reset() {
- *x = KotlinCode{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *KotlinCode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*KotlinCode) ProtoMessage() {}
- func (x *KotlinCode) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use KotlinCode.ProtoReflect.Descriptor instead.
- func (*KotlinCode) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{5}
- }
- func (x *KotlinCode) GetEmitExactTableNames() bool {
- if x != nil {
- return x.EmitExactTableNames
- }
- return false
- }
- func (x *KotlinCode) GetPackage() string {
- if x != nil {
- return x.Package
- }
- return ""
- }
- func (x *KotlinCode) GetOut() string {
- if x != nil {
- return x.Out
- }
- return ""
- }
- type Catalog struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
- DefaultSchema string `protobuf:"bytes,2,opt,name=default_schema,json=defaultSchema,proto3" json:"default_schema,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
- Schemas []*Schema `protobuf:"bytes,4,rep,name=schemas,proto3" json:"schemas,omitempty"`
- }
- func (x *Catalog) Reset() {
- *x = Catalog{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Catalog) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Catalog) ProtoMessage() {}
- func (x *Catalog) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Catalog.ProtoReflect.Descriptor instead.
- func (*Catalog) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{6}
- }
- func (x *Catalog) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
- }
- func (x *Catalog) GetDefaultSchema() string {
- if x != nil {
- return x.DefaultSchema
- }
- return ""
- }
- func (x *Catalog) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Catalog) GetSchemas() []*Schema {
- if x != nil {
- return x.Schemas
- }
- return nil
- }
- type Schema struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Tables []*Table `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"`
- Enums []*Enum `protobuf:"bytes,4,rep,name=enums,proto3" json:"enums,omitempty"`
- }
- func (x *Schema) Reset() {
- *x = Schema{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Schema) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Schema) ProtoMessage() {}
- func (x *Schema) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Schema.ProtoReflect.Descriptor instead.
- func (*Schema) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{7}
- }
- func (x *Schema) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
- }
- func (x *Schema) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Schema) GetTables() []*Table {
- if x != nil {
- return x.Tables
- }
- return nil
- }
- func (x *Schema) GetEnums() []*Enum {
- if x != nil {
- return x.Enums
- }
- return nil
- }
- type Enum struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Vals []string `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"`
- Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
- }
- func (x *Enum) Reset() {
- *x = Enum{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Enum) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Enum) ProtoMessage() {}
- func (x *Enum) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Enum.ProtoReflect.Descriptor instead.
- func (*Enum) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{8}
- }
- func (x *Enum) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Enum) GetVals() []string {
- if x != nil {
- return x.Vals
- }
- return nil
- }
- func (x *Enum) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
- }
- type Table struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Rel *Identifier `protobuf:"bytes,1,opt,name=rel,proto3" json:"rel,omitempty"`
- Columns []*Column `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
- Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
- }
- func (x *Table) Reset() {
- *x = Table{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Table) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Table) ProtoMessage() {}
- func (x *Table) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Table.ProtoReflect.Descriptor instead.
- func (*Table) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{9}
- }
- func (x *Table) GetRel() *Identifier {
- if x != nil {
- return x.Rel
- }
- return nil
- }
- func (x *Table) GetColumns() []*Column {
- if x != nil {
- return x.Columns
- }
- return nil
- }
- func (x *Table) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
- }
- type Identifier struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
- Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
- }
- func (x *Identifier) Reset() {
- *x = Identifier{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Identifier) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Identifier) ProtoMessage() {}
- func (x *Identifier) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
- func (*Identifier) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{10}
- }
- func (x *Identifier) GetCatalog() string {
- if x != nil {
- return x.Catalog
- }
- return ""
- }
- func (x *Identifier) GetSchema() string {
- if x != nil {
- return x.Schema
- }
- return ""
- }
- func (x *Identifier) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- type Column struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- NotNull bool `protobuf:"varint,3,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"`
- IsArray bool `protobuf:"varint,4,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"`
- Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
- Length int32 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"`
- IsNamedParam bool `protobuf:"varint,7,opt,name=is_named_param,json=isNamedParam,proto3" json:"is_named_param,omitempty"`
- IsFuncCall bool `protobuf:"varint,8,opt,name=is_func_call,json=isFuncCall,proto3" json:"is_func_call,omitempty"`
- // XXX: Figure out what PostgreSQL calls `foo.id`
- Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"`
- Table *Identifier `protobuf:"bytes,10,opt,name=table,proto3" json:"table,omitempty"`
- TableAlias string `protobuf:"bytes,11,opt,name=table_alias,json=tableAlias,proto3" json:"table_alias,omitempty"`
- Type *Identifier `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"`
- DataType string `protobuf:"bytes,13,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
- }
- func (x *Column) Reset() {
- *x = Column{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Column) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Column) ProtoMessage() {}
- func (x *Column) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[11]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Column.ProtoReflect.Descriptor instead.
- func (*Column) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{11}
- }
- func (x *Column) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Column) GetNotNull() bool {
- if x != nil {
- return x.NotNull
- }
- return false
- }
- func (x *Column) GetIsArray() bool {
- if x != nil {
- return x.IsArray
- }
- return false
- }
- func (x *Column) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
- }
- func (x *Column) GetLength() int32 {
- if x != nil {
- return x.Length
- }
- return 0
- }
- func (x *Column) GetIsNamedParam() bool {
- if x != nil {
- return x.IsNamedParam
- }
- return false
- }
- func (x *Column) GetIsFuncCall() bool {
- if x != nil {
- return x.IsFuncCall
- }
- return false
- }
- func (x *Column) GetScope() string {
- if x != nil {
- return x.Scope
- }
- return ""
- }
- func (x *Column) GetTable() *Identifier {
- if x != nil {
- return x.Table
- }
- return nil
- }
- func (x *Column) GetTableAlias() string {
- if x != nil {
- return x.TableAlias
- }
- return ""
- }
- func (x *Column) GetType() *Identifier {
- if x != nil {
- return x.Type
- }
- return nil
- }
- func (x *Column) GetDataType() string {
- if x != nil {
- return x.DataType
- }
- return ""
- }
- type Query struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Cmd string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"`
- Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
- Params []*Parameter `protobuf:"bytes,5,rep,name=params,json=parameters,proto3" json:"params,omitempty"`
- Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"`
- Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename,omitempty"`
- }
- func (x *Query) Reset() {
- *x = Query{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Query) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Query) ProtoMessage() {}
- func (x *Query) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[12]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Query.ProtoReflect.Descriptor instead.
- func (*Query) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{12}
- }
- func (x *Query) GetText() string {
- if x != nil {
- return x.Text
- }
- return ""
- }
- func (x *Query) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Query) GetCmd() string {
- if x != nil {
- return x.Cmd
- }
- return ""
- }
- func (x *Query) GetColumns() []*Column {
- if x != nil {
- return x.Columns
- }
- return nil
- }
- func (x *Query) GetParams() []*Parameter {
- if x != nil {
- return x.Params
- }
- return nil
- }
- func (x *Query) GetComments() []string {
- if x != nil {
- return x.Comments
- }
- return nil
- }
- func (x *Query) GetFilename() string {
- if x != nil {
- return x.Filename
- }
- return ""
- }
- type Parameter struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
- Column *Column `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
- }
- func (x *Parameter) Reset() {
- *x = Parameter{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Parameter) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Parameter) ProtoMessage() {}
- func (x *Parameter) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[13]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Parameter.ProtoReflect.Descriptor instead.
- func (*Parameter) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{13}
- }
- func (x *Parameter) GetNumber() int32 {
- if x != nil {
- return x.Number
- }
- return 0
- }
- func (x *Parameter) GetColumn() *Column {
- if x != nil {
- return x.Column
- }
- return nil
- }
- type CodeGenRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
- Catalog *Catalog `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
- Queries []*Query `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"`
- }
- func (x *CodeGenRequest) Reset() {
- *x = CodeGenRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CodeGenRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CodeGenRequest) ProtoMessage() {}
- func (x *CodeGenRequest) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[14]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CodeGenRequest.ProtoReflect.Descriptor instead.
- func (*CodeGenRequest) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{14}
- }
- func (x *CodeGenRequest) GetSettings() *Settings {
- if x != nil {
- return x.Settings
- }
- return nil
- }
- func (x *CodeGenRequest) GetCatalog() *Catalog {
- if x != nil {
- return x.Catalog
- }
- return nil
- }
- func (x *CodeGenRequest) GetQueries() []*Query {
- if x != nil {
- return x.Queries
- }
- return nil
- }
- type CodeGenResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
- }
- func (x *CodeGenResponse) Reset() {
- *x = CodeGenResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_plugin_codegen_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CodeGenResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CodeGenResponse) ProtoMessage() {}
- func (x *CodeGenResponse) ProtoReflect() protoreflect.Message {
- mi := &file_plugin_codegen_proto_msgTypes[15]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CodeGenResponse.ProtoReflect.Descriptor instead.
- func (*CodeGenResponse) Descriptor() ([]byte, []int) {
- return file_plugin_codegen_proto_rawDescGZIP(), []int{15}
- }
- func (x *CodeGenResponse) GetFiles() []*File {
- if x != nil {
- return x.Files
- }
- return nil
- }
- var File_plugin_codegen_proto protoreflect.FileDescriptor
- var file_plugin_codegen_proto_rawDesc = []byte{
- 0x0a, 0x14, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x67, 0x65, 0x6e,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0x36,
- 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f,
- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6f,
- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xf7, 0x01, 0x0a, 0x08, 0x4f, 0x76, 0x65, 0x72, 0x72,
- 0x69, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70,
- 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x64, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
- 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e,
- 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
- 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
- 0x28, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
- 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,
- 0x65, 0x72, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6c,
- 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x70,
- 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e,
- 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65,
- 0x22, 0x38, 0x0a, 0x0a, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16,
- 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x08, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
- 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
- 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,
- 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72,
- 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6c,
- 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65,
- 0x6e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x6e, 0x61, 0x6d,
- 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x06,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x4f, 0x76,
- 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
- 0x73, 0x12, 0x2a, 0x0a, 0x06, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f,
- 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x12, 0x2a, 0x0a,
- 0x06, 0x6b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e,
- 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x4b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x43, 0x6f, 0x64,
- 0x65, 0x52, 0x06, 0x6b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x65, 0x6e,
- 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
- 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
- 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc7, 0x01, 0x0a, 0x0a, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x43,
- 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x63,
- 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6d, 0x69, 0x74, 0x45, 0x78, 0x61, 0x63, 0x74, 0x54, 0x61,
- 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x6d, 0x69, 0x74,
- 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x6d, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x51, 0x75, 0x65,
- 0x72, 0x69, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x61, 0x73, 0x79,
- 0x6e, 0x63, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x10, 0x65, 0x6d, 0x69, 0x74, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x51, 0x75, 0x65, 0x72, 0x69,
- 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03,
- 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x75, 0x74, 0x22, 0x6d,
- 0x0a, 0x0a, 0x4b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x16,
- 0x65, 0x6d, 0x69, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65,
- 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6d,
- 0x69, 0x74, 0x45, 0x78, 0x61, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f,
- 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x75, 0x74, 0x22, 0x88, 0x01,
- 0x0a, 0x07, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d,
- 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
- 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x66,
- 0x61, 0x75, 0x6c, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28,
- 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,
- 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x06, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x12, 0x25, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
- 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 0x75, 0x6d,
- 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
- 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x22, 0x48, 0x0a, 0x04,
- 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x61, 0x6c, 0x73,
- 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x76, 0x61, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07,
- 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
- 0x24, 0x0a, 0x03, 0x72, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70,
- 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,
- 0x52, 0x03, 0x72, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
- 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
- 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x52, 0x0a, 0x0a, 0x49, 0x64, 0x65,
- 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c,
- 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
- 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf2, 0x02,
- 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08,
- 0x6e, 0x6f, 0x74, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
- 0x6e, 0x6f, 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72,
- 0x72, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72,
- 0x61, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06,
- 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x65,
- 0x6e, 0x67, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x64,
- 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73,
- 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x73,
- 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x0a, 0x69, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x14, 0x0a, 0x05,
- 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f,
- 0x70, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74,
- 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x26, 0x0a,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x6c,
- 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79,
- 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79,
- 0x70, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04,
- 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74,
- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
- 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
- 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
- 0x12, 0x2d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x11, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65,
- 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12,
- 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
- 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x66,
- 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66,
- 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d,
- 0x65, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x06,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70,
- 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x06, 0x63, 0x6f,
- 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6c, 0x75, 0x67,
- 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
- 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
- 0x12, 0x27, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
- 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x0f, 0x43, 0x6f, 0x64,
- 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x05,
- 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x6c,
- 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73,
- 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b,
- 0x79, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x72, 0x6f, 0x79, 0x2f, 0x73, 0x71, 0x6c, 0x63, 0x2f, 0x69,
- 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_plugin_codegen_proto_rawDescOnce sync.Once
- file_plugin_codegen_proto_rawDescData = file_plugin_codegen_proto_rawDesc
- )
- func file_plugin_codegen_proto_rawDescGZIP() []byte {
- file_plugin_codegen_proto_rawDescOnce.Do(func() {
- file_plugin_codegen_proto_rawDescData = protoimpl.X.CompressGZIP(file_plugin_codegen_proto_rawDescData)
- })
- return file_plugin_codegen_proto_rawDescData
- }
- var file_plugin_codegen_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
- var file_plugin_codegen_proto_goTypes = []interface{}{
- (*File)(nil), // 0: plugin.File
- (*Override)(nil), // 1: plugin.Override
- (*PythonType)(nil), // 2: plugin.PythonType
- (*Settings)(nil), // 3: plugin.Settings
- (*PythonCode)(nil), // 4: plugin.PythonCode
- (*KotlinCode)(nil), // 5: plugin.KotlinCode
- (*Catalog)(nil), // 6: plugin.Catalog
- (*Schema)(nil), // 7: plugin.Schema
- (*Enum)(nil), // 8: plugin.Enum
- (*Table)(nil), // 9: plugin.Table
- (*Identifier)(nil), // 10: plugin.Identifier
- (*Column)(nil), // 11: plugin.Column
- (*Query)(nil), // 12: plugin.Query
- (*Parameter)(nil), // 13: plugin.Parameter
- (*CodeGenRequest)(nil), // 14: plugin.CodeGenRequest
- (*CodeGenResponse)(nil), // 15: plugin.CodeGenResponse
- nil, // 16: plugin.Settings.RenameEntry
- }
- var file_plugin_codegen_proto_depIdxs = []int32{
- 10, // 0: plugin.Override.table:type_name -> plugin.Identifier
- 2, // 1: plugin.Override.python_type:type_name -> plugin.PythonType
- 16, // 2: plugin.Settings.rename:type_name -> plugin.Settings.RenameEntry
- 1, // 3: plugin.Settings.overrides:type_name -> plugin.Override
- 4, // 4: plugin.Settings.python:type_name -> plugin.PythonCode
- 5, // 5: plugin.Settings.kotlin:type_name -> plugin.KotlinCode
- 7, // 6: plugin.Catalog.schemas:type_name -> plugin.Schema
- 9, // 7: plugin.Schema.tables:type_name -> plugin.Table
- 8, // 8: plugin.Schema.enums:type_name -> plugin.Enum
- 10, // 9: plugin.Table.rel:type_name -> plugin.Identifier
- 11, // 10: plugin.Table.columns:type_name -> plugin.Column
- 10, // 11: plugin.Column.table:type_name -> plugin.Identifier
- 10, // 12: plugin.Column.type:type_name -> plugin.Identifier
- 11, // 13: plugin.Query.columns:type_name -> plugin.Column
- 13, // 14: plugin.Query.params:type_name -> plugin.Parameter
- 11, // 15: plugin.Parameter.column:type_name -> plugin.Column
- 3, // 16: plugin.CodeGenRequest.settings:type_name -> plugin.Settings
- 6, // 17: plugin.CodeGenRequest.catalog:type_name -> plugin.Catalog
- 12, // 18: plugin.CodeGenRequest.queries:type_name -> plugin.Query
- 0, // 19: plugin.CodeGenResponse.files:type_name -> plugin.File
- 20, // [20:20] is the sub-list for method output_type
- 20, // [20:20] is the sub-list for method input_type
- 20, // [20:20] is the sub-list for extension type_name
- 20, // [20:20] is the sub-list for extension extendee
- 0, // [0:20] is the sub-list for field type_name
- }
- func init() { file_plugin_codegen_proto_init() }
- func file_plugin_codegen_proto_init() {
- if File_plugin_codegen_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_plugin_codegen_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*File); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Override); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PythonType); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Settings); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PythonCode); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*KotlinCode); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Catalog); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Schema); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Enum); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Table); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Identifier); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Column); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Query); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Parameter); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CodeGenRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_plugin_codegen_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CodeGenResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_plugin_codegen_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 17,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_plugin_codegen_proto_goTypes,
- DependencyIndexes: file_plugin_codegen_proto_depIdxs,
- MessageInfos: file_plugin_codegen_proto_msgTypes,
- }.Build()
- File_plugin_codegen_proto = out.File
- file_plugin_codegen_proto_rawDesc = nil
- file_plugin_codegen_proto_goTypes = nil
- file_plugin_codegen_proto_depIdxs = nil
- }
|