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