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