github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/trojan/config.pb.go (about) 1 package trojan 2 3 import ( 4 packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr" 5 protocol "github.com/v2fly/v2ray-core/v5/common/protocol" 6 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 7 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 8 reflect "reflect" 9 sync "sync" 10 ) 11 12 const ( 13 // Verify that this generated code is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 15 // Verify that runtime/protoimpl is sufficiently up-to-date. 16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 17 ) 18 19 type Account struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` 25 } 26 27 func (x *Account) Reset() { 28 *x = Account{} 29 if protoimpl.UnsafeEnabled { 30 mi := &file_proxy_trojan_config_proto_msgTypes[0] 31 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 32 ms.StoreMessageInfo(mi) 33 } 34 } 35 36 func (x *Account) String() string { 37 return protoimpl.X.MessageStringOf(x) 38 } 39 40 func (*Account) ProtoMessage() {} 41 42 func (x *Account) ProtoReflect() protoreflect.Message { 43 mi := &file_proxy_trojan_config_proto_msgTypes[0] 44 if protoimpl.UnsafeEnabled && x != nil { 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 if ms.LoadMessageInfo() == nil { 47 ms.StoreMessageInfo(mi) 48 } 49 return ms 50 } 51 return mi.MessageOf(x) 52 } 53 54 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 55 func (*Account) Descriptor() ([]byte, []int) { 56 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{0} 57 } 58 59 func (x *Account) GetPassword() string { 60 if x != nil { 61 return x.Password 62 } 63 return "" 64 } 65 66 type Fallback struct { 67 state protoimpl.MessageState 68 sizeCache protoimpl.SizeCache 69 unknownFields protoimpl.UnknownFields 70 71 Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"` 72 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 73 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` 74 Dest string `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"` 75 Xver uint64 `protobuf:"varint,5,opt,name=xver,proto3" json:"xver,omitempty"` 76 } 77 78 func (x *Fallback) Reset() { 79 *x = Fallback{} 80 if protoimpl.UnsafeEnabled { 81 mi := &file_proxy_trojan_config_proto_msgTypes[1] 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 ms.StoreMessageInfo(mi) 84 } 85 } 86 87 func (x *Fallback) String() string { 88 return protoimpl.X.MessageStringOf(x) 89 } 90 91 func (*Fallback) ProtoMessage() {} 92 93 func (x *Fallback) ProtoReflect() protoreflect.Message { 94 mi := &file_proxy_trojan_config_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 105 // Deprecated: Use Fallback.ProtoReflect.Descriptor instead. 106 func (*Fallback) Descriptor() ([]byte, []int) { 107 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1} 108 } 109 110 func (x *Fallback) GetAlpn() string { 111 if x != nil { 112 return x.Alpn 113 } 114 return "" 115 } 116 117 func (x *Fallback) GetPath() string { 118 if x != nil { 119 return x.Path 120 } 121 return "" 122 } 123 124 func (x *Fallback) GetType() string { 125 if x != nil { 126 return x.Type 127 } 128 return "" 129 } 130 131 func (x *Fallback) GetDest() string { 132 if x != nil { 133 return x.Dest 134 } 135 return "" 136 } 137 138 func (x *Fallback) GetXver() uint64 { 139 if x != nil { 140 return x.Xver 141 } 142 return 0 143 } 144 145 type ClientConfig struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` 151 } 152 153 func (x *ClientConfig) Reset() { 154 *x = ClientConfig{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_proxy_trojan_config_proto_msgTypes[2] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *ClientConfig) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*ClientConfig) ProtoMessage() {} 167 168 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 169 mi := &file_proxy_trojan_config_proto_msgTypes[2] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 181 func (*ClientConfig) Descriptor() ([]byte, []int) { 182 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2} 183 } 184 185 func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { 186 if x != nil { 187 return x.Server 188 } 189 return nil 190 } 191 192 type ServerConfig struct { 193 state protoimpl.MessageState 194 sizeCache protoimpl.SizeCache 195 unknownFields protoimpl.UnknownFields 196 197 Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` 198 Fallbacks []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"` 199 PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"` 200 } 201 202 func (x *ServerConfig) Reset() { 203 *x = ServerConfig{} 204 if protoimpl.UnsafeEnabled { 205 mi := &file_proxy_trojan_config_proto_msgTypes[3] 206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 207 ms.StoreMessageInfo(mi) 208 } 209 } 210 211 func (x *ServerConfig) String() string { 212 return protoimpl.X.MessageStringOf(x) 213 } 214 215 func (*ServerConfig) ProtoMessage() {} 216 217 func (x *ServerConfig) ProtoReflect() protoreflect.Message { 218 mi := &file_proxy_trojan_config_proto_msgTypes[3] 219 if protoimpl.UnsafeEnabled && x != nil { 220 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 221 if ms.LoadMessageInfo() == nil { 222 ms.StoreMessageInfo(mi) 223 } 224 return ms 225 } 226 return mi.MessageOf(x) 227 } 228 229 // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead. 230 func (*ServerConfig) Descriptor() ([]byte, []int) { 231 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3} 232 } 233 234 func (x *ServerConfig) GetUsers() []*protocol.User { 235 if x != nil { 236 return x.Users 237 } 238 return nil 239 } 240 241 func (x *ServerConfig) GetFallbacks() []*Fallback { 242 if x != nil { 243 return x.Fallbacks 244 } 245 return nil 246 } 247 248 func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType { 249 if x != nil { 250 return x.PacketEncoding 251 } 252 return packetaddr.PacketAddrType(0) 253 } 254 255 var File_proxy_trojan_config_proto protoreflect.FileDescriptor 256 257 var file_proxy_trojan_config_proto_rawDesc = []byte{ 258 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x63, 259 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x76, 0x32, 0x72, 260 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 261 0x6f, 0x6a, 0x61, 0x6e, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 262 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 263 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 264 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 265 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 266 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 267 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 268 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 269 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x6e, 270 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 271 0x70, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12, 272 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 273 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 274 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x04, 275 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 276 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0x52, 277 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 278 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 279 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 280 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 281 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 282 0x65, 0x72, 0x22, 0xdb, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 283 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 284 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 285 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 286 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x66, 287 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 288 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 289 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 290 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x12, 0x52, 0x0a, 0x0f, 291 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 292 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 293 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 294 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 295 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 296 0x42, 0x66, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 297 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x50, 298 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 299 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 300 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 301 0x17, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 302 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 303 } 304 305 var ( 306 file_proxy_trojan_config_proto_rawDescOnce sync.Once 307 file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc 308 ) 309 310 func file_proxy_trojan_config_proto_rawDescGZIP() []byte { 311 file_proxy_trojan_config_proto_rawDescOnce.Do(func() { 312 file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_config_proto_rawDescData) 313 }) 314 return file_proxy_trojan_config_proto_rawDescData 315 } 316 317 var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 318 var file_proxy_trojan_config_proto_goTypes = []interface{}{ 319 (*Account)(nil), // 0: v2ray.core.proxy.trojan.Account 320 (*Fallback)(nil), // 1: v2ray.core.proxy.trojan.Fallback 321 (*ClientConfig)(nil), // 2: v2ray.core.proxy.trojan.ClientConfig 322 (*ServerConfig)(nil), // 3: v2ray.core.proxy.trojan.ServerConfig 323 (*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint 324 (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User 325 (packetaddr.PacketAddrType)(0), // 6: v2ray.core.net.packetaddr.PacketAddrType 326 } 327 var file_proxy_trojan_config_proto_depIdxs = []int32{ 328 4, // 0: v2ray.core.proxy.trojan.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint 329 5, // 1: v2ray.core.proxy.trojan.ServerConfig.users:type_name -> v2ray.core.common.protocol.User 330 1, // 2: v2ray.core.proxy.trojan.ServerConfig.fallbacks:type_name -> v2ray.core.proxy.trojan.Fallback 331 6, // 3: v2ray.core.proxy.trojan.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType 332 4, // [4:4] is the sub-list for method output_type 333 4, // [4:4] is the sub-list for method input_type 334 4, // [4:4] is the sub-list for extension type_name 335 4, // [4:4] is the sub-list for extension extendee 336 0, // [0:4] is the sub-list for field type_name 337 } 338 339 func init() { file_proxy_trojan_config_proto_init() } 340 func file_proxy_trojan_config_proto_init() { 341 if File_proxy_trojan_config_proto != nil { 342 return 343 } 344 if !protoimpl.UnsafeEnabled { 345 file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 346 switch v := v.(*Account); i { 347 case 0: 348 return &v.state 349 case 1: 350 return &v.sizeCache 351 case 2: 352 return &v.unknownFields 353 default: 354 return nil 355 } 356 } 357 file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 358 switch v := v.(*Fallback); i { 359 case 0: 360 return &v.state 361 case 1: 362 return &v.sizeCache 363 case 2: 364 return &v.unknownFields 365 default: 366 return nil 367 } 368 } 369 file_proxy_trojan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 370 switch v := v.(*ClientConfig); i { 371 case 0: 372 return &v.state 373 case 1: 374 return &v.sizeCache 375 case 2: 376 return &v.unknownFields 377 default: 378 return nil 379 } 380 } 381 file_proxy_trojan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 382 switch v := v.(*ServerConfig); i { 383 case 0: 384 return &v.state 385 case 1: 386 return &v.sizeCache 387 case 2: 388 return &v.unknownFields 389 default: 390 return nil 391 } 392 } 393 } 394 type x struct{} 395 out := protoimpl.TypeBuilder{ 396 File: protoimpl.DescBuilder{ 397 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 398 RawDescriptor: file_proxy_trojan_config_proto_rawDesc, 399 NumEnums: 0, 400 NumMessages: 4, 401 NumExtensions: 0, 402 NumServices: 0, 403 }, 404 GoTypes: file_proxy_trojan_config_proto_goTypes, 405 DependencyIndexes: file_proxy_trojan_config_proto_depIdxs, 406 MessageInfos: file_proxy_trojan_config_proto_msgTypes, 407 }.Build() 408 File_proxy_trojan_config_proto = out.File 409 file_proxy_trojan_config_proto_rawDesc = nil 410 file_proxy_trojan_config_proto_goTypes = nil 411 file_proxy_trojan_config_proto_depIdxs = nil 412 }