github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/msg/imsg.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: imsg.proto 6 7 package msg 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 rony "github.com/ronaksoft/rony" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // TunnelMessage 26 type TunnelMessage struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 SenderID []byte `protobuf:"bytes,1,opt,name=SenderID,proto3" json:"SenderID,omitempty"` 32 SenderReplicaSet uint64 `protobuf:"varint,2,opt,name=SenderReplicaSet,proto3" json:"SenderReplicaSet,omitempty"` 33 Store []*rony.KeyValue `protobuf:"bytes,3,rep,name=Store,proto3" json:"Store,omitempty"` 34 Envelope *rony.MessageEnvelope `protobuf:"bytes,4,opt,name=Envelope,proto3" json:"Envelope,omitempty"` 35 } 36 37 func (x *TunnelMessage) Reset() { 38 *x = TunnelMessage{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_imsg_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *TunnelMessage) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*TunnelMessage) ProtoMessage() {} 51 52 func (x *TunnelMessage) ProtoReflect() protoreflect.Message { 53 mi := &file_imsg_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use TunnelMessage.ProtoReflect.Descriptor instead. 65 func (*TunnelMessage) Descriptor() ([]byte, []int) { 66 return file_imsg_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *TunnelMessage) GetSenderID() []byte { 70 if x != nil { 71 return x.SenderID 72 } 73 return nil 74 } 75 76 func (x *TunnelMessage) GetSenderReplicaSet() uint64 { 77 if x != nil { 78 return x.SenderReplicaSet 79 } 80 return 0 81 } 82 83 func (x *TunnelMessage) GetStore() []*rony.KeyValue { 84 if x != nil { 85 return x.Store 86 } 87 return nil 88 } 89 90 func (x *TunnelMessage) GetEnvelope() *rony.MessageEnvelope { 91 if x != nil { 92 return x.Envelope 93 } 94 return nil 95 } 96 97 // EdgeNode 98 type EdgeNode struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 ServerID []byte `protobuf:"bytes,1,opt,name=ServerID,proto3" json:"ServerID,omitempty"` 104 ReplicaSet uint64 `protobuf:"varint,2,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` 105 Hash uint64 `protobuf:"varint,3,opt,name=Hash,proto3" json:"Hash,omitempty"` 106 GatewayAddr []string `protobuf:"bytes,7,rep,name=GatewayAddr,proto3" json:"GatewayAddr,omitempty"` 107 TunnelAddr []string `protobuf:"bytes,8,rep,name=TunnelAddr,proto3" json:"TunnelAddr,omitempty"` 108 } 109 110 func (x *EdgeNode) Reset() { 111 *x = EdgeNode{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_imsg_proto_msgTypes[1] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *EdgeNode) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*EdgeNode) ProtoMessage() {} 124 125 func (x *EdgeNode) ProtoReflect() protoreflect.Message { 126 mi := &file_imsg_proto_msgTypes[1] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use EdgeNode.ProtoReflect.Descriptor instead. 138 func (*EdgeNode) Descriptor() ([]byte, []int) { 139 return file_imsg_proto_rawDescGZIP(), []int{1} 140 } 141 142 func (x *EdgeNode) GetServerID() []byte { 143 if x != nil { 144 return x.ServerID 145 } 146 return nil 147 } 148 149 func (x *EdgeNode) GetReplicaSet() uint64 { 150 if x != nil { 151 return x.ReplicaSet 152 } 153 return 0 154 } 155 156 func (x *EdgeNode) GetHash() uint64 { 157 if x != nil { 158 return x.Hash 159 } 160 return 0 161 } 162 163 func (x *EdgeNode) GetGatewayAddr() []string { 164 if x != nil { 165 return x.GatewayAddr 166 } 167 return nil 168 } 169 170 func (x *EdgeNode) GetTunnelAddr() []string { 171 if x != nil { 172 return x.TunnelAddr 173 } 174 return nil 175 } 176 177 var File_imsg_proto protoreflect.FileDescriptor 178 179 var file_imsg_proto_rawDesc = []byte{ 180 0x0a, 0x0a, 0x69, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x6d, 0x73, 181 0x67, 0x1a, 0x09, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x01, 0x0a, 182 0x0d, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 183 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 184 0x52, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x44, 0x12, 0x2a, 0x0a, 0x10, 0x53, 0x65, 185 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x18, 0x02, 186 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 187 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x18, 188 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 0x4b, 0x65, 0x79, 189 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x31, 0x0a, 0x08, 190 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 191 0x2e, 0x72, 0x6f, 0x6e, 0x79, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x76, 192 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x08, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x22, 193 0x9c, 0x01, 0x0a, 0x08, 0x45, 0x64, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 194 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 195 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 196 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x52, 0x65, 197 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x61, 0x73, 0x68, 198 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x0b, 199 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72, 0x18, 0x07, 0x20, 0x03, 0x28, 200 0x09, 0x52, 0x0b, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1e, 201 0x0a, 0x0a, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x18, 0x08, 0x20, 0x03, 202 0x28, 0x09, 0x52, 0x0a, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x42, 0x23, 203 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x6f, 0x6e, 204 0x61, 0x6b, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 205 0x6d, 0x73, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 206 } 207 208 var ( 209 file_imsg_proto_rawDescOnce sync.Once 210 file_imsg_proto_rawDescData = file_imsg_proto_rawDesc 211 ) 212 213 func file_imsg_proto_rawDescGZIP() []byte { 214 file_imsg_proto_rawDescOnce.Do(func() { 215 file_imsg_proto_rawDescData = protoimpl.X.CompressGZIP(file_imsg_proto_rawDescData) 216 }) 217 return file_imsg_proto_rawDescData 218 } 219 220 var file_imsg_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 221 var file_imsg_proto_goTypes = []interface{}{ 222 (*TunnelMessage)(nil), // 0: msg.TunnelMessage 223 (*EdgeNode)(nil), // 1: msg.EdgeNode 224 (*rony.KeyValue)(nil), // 2: rony.KeyValue 225 (*rony.MessageEnvelope)(nil), // 3: rony.MessageEnvelope 226 } 227 var file_imsg_proto_depIdxs = []int32{ 228 2, // 0: msg.TunnelMessage.Store:type_name -> rony.KeyValue 229 3, // 1: msg.TunnelMessage.Envelope:type_name -> rony.MessageEnvelope 230 2, // [2:2] is the sub-list for method output_type 231 2, // [2:2] is the sub-list for method input_type 232 2, // [2:2] is the sub-list for extension type_name 233 2, // [2:2] is the sub-list for extension extendee 234 0, // [0:2] is the sub-list for field type_name 235 } 236 237 func init() { file_imsg_proto_init() } 238 func file_imsg_proto_init() { 239 if File_imsg_proto != nil { 240 return 241 } 242 if !protoimpl.UnsafeEnabled { 243 file_imsg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 244 switch v := v.(*TunnelMessage); i { 245 case 0: 246 return &v.state 247 case 1: 248 return &v.sizeCache 249 case 2: 250 return &v.unknownFields 251 default: 252 return nil 253 } 254 } 255 file_imsg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 256 switch v := v.(*EdgeNode); i { 257 case 0: 258 return &v.state 259 case 1: 260 return &v.sizeCache 261 case 2: 262 return &v.unknownFields 263 default: 264 return nil 265 } 266 } 267 } 268 type x struct{} 269 out := protoimpl.TypeBuilder{ 270 File: protoimpl.DescBuilder{ 271 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 272 RawDescriptor: file_imsg_proto_rawDesc, 273 NumEnums: 0, 274 NumMessages: 2, 275 NumExtensions: 0, 276 NumServices: 0, 277 }, 278 GoTypes: file_imsg_proto_goTypes, 279 DependencyIndexes: file_imsg_proto_depIdxs, 280 MessageInfos: file_imsg_proto_msgTypes, 281 }.Build() 282 File_imsg_proto = out.File 283 file_imsg_proto_rawDesc = nil 284 file_imsg_proto_goTypes = nil 285 file_imsg_proto_depIdxs = nil 286 }