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