github.com/RevenueMonster/sqlike@v1.0.6/protobuf/key.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: key.proto 6 7 package protobuf 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Key struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Namespace string `protobuf:"bytes,1,opt,name=Namespace,proto3" json:"Namespace,omitempty"` 29 Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"` 30 IntID int64 `protobuf:"varint,3,opt,name=IntID,proto3" json:"IntID,omitempty"` 31 NameID string `protobuf:"bytes,4,opt,name=NameID,proto3" json:"NameID,omitempty"` 32 Parent *Key `protobuf:"bytes,5,opt,name=Parent,proto3" json:"Parent,omitempty"` 33 } 34 35 func (x *Key) Reset() { 36 *x = Key{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_key_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Key) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Key) ProtoMessage() {} 49 50 func (x *Key) ProtoReflect() protoreflect.Message { 51 mi := &file_key_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Key.ProtoReflect.Descriptor instead. 63 func (*Key) Descriptor() ([]byte, []int) { 64 return file_key_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Key) GetNamespace() string { 68 if x != nil { 69 return x.Namespace 70 } 71 return "" 72 } 73 74 func (x *Key) GetKind() string { 75 if x != nil { 76 return x.Kind 77 } 78 return "" 79 } 80 81 func (x *Key) GetIntID() int64 { 82 if x != nil { 83 return x.IntID 84 } 85 return 0 86 } 87 88 func (x *Key) GetNameID() string { 89 if x != nil { 90 return x.NameID 91 } 92 return "" 93 } 94 95 func (x *Key) GetParent() *Key { 96 if x != nil { 97 return x.Parent 98 } 99 return nil 100 } 101 102 var File_key_proto protoreflect.FileDescriptor 103 104 var file_key_proto_rawDesc = []byte{ 105 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x71, 0x6c, 106 0x69, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x72, 0x6f, 107 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x4e, 0x61, 108 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x4e, 109 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 110 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 111 0x49, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x49, 0x6e, 0x74, 112 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 113 0x28, 0x09, 0x52, 0x06, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x12, 0x32, 0x0a, 0x06, 0x50, 0x61, 114 0x72, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x71, 0x6c, 115 0x69, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x72, 0x6f, 116 0x74, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x26, 117 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x33, 118 0x6e, 0x6c, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x73, 0x71, 0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x70, 0x72, 119 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 120 } 121 122 var ( 123 file_key_proto_rawDescOnce sync.Once 124 file_key_proto_rawDescData = file_key_proto_rawDesc 125 ) 126 127 func file_key_proto_rawDescGZIP() []byte { 128 file_key_proto_rawDescOnce.Do(func() { 129 file_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_key_proto_rawDescData) 130 }) 131 return file_key_proto_rawDescData 132 } 133 134 var file_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 135 var file_key_proto_goTypes = []interface{}{ 136 (*Key)(nil), // 0: sqlike.protobuf.proto.Key 137 } 138 var file_key_proto_depIdxs = []int32{ 139 0, // 0: sqlike.protobuf.proto.Key.Parent:type_name -> sqlike.protobuf.proto.Key 140 1, // [1:1] is the sub-list for method output_type 141 1, // [1:1] is the sub-list for method input_type 142 1, // [1:1] is the sub-list for extension type_name 143 1, // [1:1] is the sub-list for extension extendee 144 0, // [0:1] is the sub-list for field type_name 145 } 146 147 func init() { file_key_proto_init() } 148 func file_key_proto_init() { 149 if File_key_proto != nil { 150 return 151 } 152 if !protoimpl.UnsafeEnabled { 153 file_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 154 switch v := v.(*Key); i { 155 case 0: 156 return &v.state 157 case 1: 158 return &v.sizeCache 159 case 2: 160 return &v.unknownFields 161 default: 162 return nil 163 } 164 } 165 } 166 type x struct{} 167 out := protoimpl.TypeBuilder{ 168 File: protoimpl.DescBuilder{ 169 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 170 RawDescriptor: file_key_proto_rawDesc, 171 NumEnums: 0, 172 NumMessages: 1, 173 NumExtensions: 0, 174 NumServices: 0, 175 }, 176 GoTypes: file_key_proto_goTypes, 177 DependencyIndexes: file_key_proto_depIdxs, 178 MessageInfos: file_key_proto_msgTypes, 179 }.Build() 180 File_key_proto = out.File 181 file_key_proto_rawDesc = nil 182 file_key_proto_goTypes = nil 183 file_key_proto_depIdxs = nil 184 }