github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/proxy/trojan/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.13.0 5 // source: proxy/trojan/config.proto 6 7 package trojan 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 protocol "v2ray.com/core/common/protocol" 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 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type 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 37 func (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 46 func (x *Account) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Account) ProtoMessage() {} 51 52 func (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. 65 func (*Account) Descriptor() ([]byte, []int) { 66 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Account) GetPassword() string { 70 if x != nil { 71 return x.Password 72 } 73 return "" 74 } 75 76 type 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 88 func (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 97 func (x *Fallback) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*Fallback) ProtoMessage() {} 102 103 func (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. 116 func (*Fallback) Descriptor() ([]byte, []int) { 117 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1} 118 } 119 120 func (x *Fallback) GetAlpn() string { 121 if x != nil { 122 return x.Alpn 123 } 124 return "" 125 } 126 127 func (x *Fallback) GetPath() string { 128 if x != nil { 129 return x.Path 130 } 131 return "" 132 } 133 134 func (x *Fallback) GetType() string { 135 if x != nil { 136 return x.Type 137 } 138 return "" 139 } 140 141 func (x *Fallback) GetDest() string { 142 if x != nil { 143 return x.Dest 144 } 145 return "" 146 } 147 148 func (x *Fallback) GetXver() uint64 { 149 if x != nil { 150 return x.Xver 151 } 152 return 0 153 } 154 155 type 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 163 func (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 172 func (x *ClientConfig) String() string { 173 return protoimpl.X.MessageStringOf(x) 174 } 175 176 func (*ClientConfig) ProtoMessage() {} 177 178 func (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. 191 func (*ClientConfig) Descriptor() ([]byte, []int) { 192 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2} 193 } 194 195 func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { 196 if x != nil { 197 return x.Server 198 } 199 return nil 200 } 201 202 type 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 211 func (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 220 func (x *ServerConfig) String() string { 221 return protoimpl.X.MessageStringOf(x) 222 } 223 224 func (*ServerConfig) ProtoMessage() {} 225 226 func (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. 239 func (*ServerConfig) Descriptor() ([]byte, []int) { 240 return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3} 241 } 242 243 func (x *ServerConfig) GetUsers() []*protocol.User { 244 if x != nil { 245 return x.Users 246 } 247 return nil 248 } 249 250 func (x *ServerConfig) GetFallbacks() []*Fallback { 251 if x != nil { 252 return x.Fallbacks 253 } 254 return nil 255 } 256 257 var File_proxy_trojan_config_proto protoreflect.FileDescriptor 258 259 var 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, 0x56, 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, 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79, 293 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 294 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 0x17, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 295 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 296 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 297 } 298 299 var ( 300 file_proxy_trojan_config_proto_rawDescOnce sync.Once 301 file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc 302 ) 303 304 func file_proxy_trojan_config_proto_rawDescGZIP() []byte { 305 file_proxy_trojan_config_proto_rawDescOnce.Do(func() { 306 file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_config_proto_rawDescData) 307 }) 308 return file_proxy_trojan_config_proto_rawDescData 309 } 310 311 var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 312 var file_proxy_trojan_config_proto_goTypes = []interface{}{ 313 (*Account)(nil), // 0: v2ray.core.proxy.trojan.Account 314 (*Fallback)(nil), // 1: v2ray.core.proxy.trojan.Fallback 315 (*ClientConfig)(nil), // 2: v2ray.core.proxy.trojan.ClientConfig 316 (*ServerConfig)(nil), // 3: v2ray.core.proxy.trojan.ServerConfig 317 (*protocol.ServerEndpoint)(nil), // 4: v2ray.core.common.protocol.ServerEndpoint 318 (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User 319 } 320 var file_proxy_trojan_config_proto_depIdxs = []int32{ 321 4, // 0: v2ray.core.proxy.trojan.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint 322 5, // 1: v2ray.core.proxy.trojan.ServerConfig.users:type_name -> v2ray.core.common.protocol.User 323 1, // 2: v2ray.core.proxy.trojan.ServerConfig.fallbacks:type_name -> v2ray.core.proxy.trojan.Fallback 324 3, // [3:3] is the sub-list for method output_type 325 3, // [3:3] is the sub-list for method input_type 326 3, // [3:3] is the sub-list for extension type_name 327 3, // [3:3] is the sub-list for extension extendee 328 0, // [0:3] is the sub-list for field type_name 329 } 330 331 func init() { file_proxy_trojan_config_proto_init() } 332 func file_proxy_trojan_config_proto_init() { 333 if File_proxy_trojan_config_proto != nil { 334 return 335 } 336 if !protoimpl.UnsafeEnabled { 337 file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 338 switch v := v.(*Account); i { 339 case 0: 340 return &v.state 341 case 1: 342 return &v.sizeCache 343 case 2: 344 return &v.unknownFields 345 default: 346 return nil 347 } 348 } 349 file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 350 switch v := v.(*Fallback); 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[2].Exporter = func(v interface{}, i int) interface{} { 362 switch v := v.(*ClientConfig); 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[3].Exporter = func(v interface{}, i int) interface{} { 374 switch v := v.(*ServerConfig); 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 } 386 type x struct{} 387 out := protoimpl.TypeBuilder{ 388 File: protoimpl.DescBuilder{ 389 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 390 RawDescriptor: file_proxy_trojan_config_proto_rawDesc, 391 NumEnums: 0, 392 NumMessages: 4, 393 NumExtensions: 0, 394 NumServices: 0, 395 }, 396 GoTypes: file_proxy_trojan_config_proto_goTypes, 397 DependencyIndexes: file_proxy_trojan_config_proto_depIdxs, 398 MessageInfos: file_proxy_trojan_config_proto_msgTypes, 399 }.Build() 400 File_proxy_trojan_config_proto = out.File 401 file_proxy_trojan_config_proto_rawDesc = nil 402 file_proxy_trojan_config_proto_goTypes = nil 403 file_proxy_trojan_config_proto_depIdxs = nil 404 }