github.com/imannamdari/v2ray-core/v5@v5.0.5/app/reverse/config.pb.go (about) 1 package reverse 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 8 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 Control_State int32 20 21 const ( 22 Control_ACTIVE Control_State = 0 23 Control_DRAIN Control_State = 1 24 ) 25 26 // Enum value maps for Control_State. 27 var ( 28 Control_State_name = map[int32]string{ 29 0: "ACTIVE", 30 1: "DRAIN", 31 } 32 Control_State_value = map[string]int32{ 33 "ACTIVE": 0, 34 "DRAIN": 1, 35 } 36 ) 37 38 func (x Control_State) Enum() *Control_State { 39 p := new(Control_State) 40 *p = x 41 return p 42 } 43 44 func (x Control_State) String() string { 45 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 46 } 47 48 func (Control_State) Descriptor() protoreflect.EnumDescriptor { 49 return file_app_reverse_config_proto_enumTypes[0].Descriptor() 50 } 51 52 func (Control_State) Type() protoreflect.EnumType { 53 return &file_app_reverse_config_proto_enumTypes[0] 54 } 55 56 func (x Control_State) Number() protoreflect.EnumNumber { 57 return protoreflect.EnumNumber(x) 58 } 59 60 // Deprecated: Use Control_State.Descriptor instead. 61 func (Control_State) EnumDescriptor() ([]byte, []int) { 62 return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0} 63 } 64 65 type Control struct { 66 state protoimpl.MessageState 67 sizeCache protoimpl.SizeCache 68 unknownFields protoimpl.UnknownFields 69 70 State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"` 71 Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"` 72 } 73 74 func (x *Control) Reset() { 75 *x = Control{} 76 if protoimpl.UnsafeEnabled { 77 mi := &file_app_reverse_config_proto_msgTypes[0] 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 ms.StoreMessageInfo(mi) 80 } 81 } 82 83 func (x *Control) String() string { 84 return protoimpl.X.MessageStringOf(x) 85 } 86 87 func (*Control) ProtoMessage() {} 88 89 func (x *Control) ProtoReflect() protoreflect.Message { 90 mi := &file_app_reverse_config_proto_msgTypes[0] 91 if protoimpl.UnsafeEnabled && x != nil { 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 if ms.LoadMessageInfo() == nil { 94 ms.StoreMessageInfo(mi) 95 } 96 return ms 97 } 98 return mi.MessageOf(x) 99 } 100 101 // Deprecated: Use Control.ProtoReflect.Descriptor instead. 102 func (*Control) Descriptor() ([]byte, []int) { 103 return file_app_reverse_config_proto_rawDescGZIP(), []int{0} 104 } 105 106 func (x *Control) GetState() Control_State { 107 if x != nil { 108 return x.State 109 } 110 return Control_ACTIVE 111 } 112 113 func (x *Control) GetRandom() []byte { 114 if x != nil { 115 return x.Random 116 } 117 return nil 118 } 119 120 type BridgeConfig struct { 121 state protoimpl.MessageState 122 sizeCache protoimpl.SizeCache 123 unknownFields protoimpl.UnknownFields 124 125 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 126 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 127 } 128 129 func (x *BridgeConfig) Reset() { 130 *x = BridgeConfig{} 131 if protoimpl.UnsafeEnabled { 132 mi := &file_app_reverse_config_proto_msgTypes[1] 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 ms.StoreMessageInfo(mi) 135 } 136 } 137 138 func (x *BridgeConfig) String() string { 139 return protoimpl.X.MessageStringOf(x) 140 } 141 142 func (*BridgeConfig) ProtoMessage() {} 143 144 func (x *BridgeConfig) ProtoReflect() protoreflect.Message { 145 mi := &file_app_reverse_config_proto_msgTypes[1] 146 if protoimpl.UnsafeEnabled && x != nil { 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 148 if ms.LoadMessageInfo() == nil { 149 ms.StoreMessageInfo(mi) 150 } 151 return ms 152 } 153 return mi.MessageOf(x) 154 } 155 156 // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead. 157 func (*BridgeConfig) Descriptor() ([]byte, []int) { 158 return file_app_reverse_config_proto_rawDescGZIP(), []int{1} 159 } 160 161 func (x *BridgeConfig) GetTag() string { 162 if x != nil { 163 return x.Tag 164 } 165 return "" 166 } 167 168 func (x *BridgeConfig) GetDomain() string { 169 if x != nil { 170 return x.Domain 171 } 172 return "" 173 } 174 175 type PortalConfig struct { 176 state protoimpl.MessageState 177 sizeCache protoimpl.SizeCache 178 unknownFields protoimpl.UnknownFields 179 180 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 181 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 182 } 183 184 func (x *PortalConfig) Reset() { 185 *x = PortalConfig{} 186 if protoimpl.UnsafeEnabled { 187 mi := &file_app_reverse_config_proto_msgTypes[2] 188 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 189 ms.StoreMessageInfo(mi) 190 } 191 } 192 193 func (x *PortalConfig) String() string { 194 return protoimpl.X.MessageStringOf(x) 195 } 196 197 func (*PortalConfig) ProtoMessage() {} 198 199 func (x *PortalConfig) ProtoReflect() protoreflect.Message { 200 mi := &file_app_reverse_config_proto_msgTypes[2] 201 if protoimpl.UnsafeEnabled && x != nil { 202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 203 if ms.LoadMessageInfo() == nil { 204 ms.StoreMessageInfo(mi) 205 } 206 return ms 207 } 208 return mi.MessageOf(x) 209 } 210 211 // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead. 212 func (*PortalConfig) Descriptor() ([]byte, []int) { 213 return file_app_reverse_config_proto_rawDescGZIP(), []int{2} 214 } 215 216 func (x *PortalConfig) GetTag() string { 217 if x != nil { 218 return x.Tag 219 } 220 return "" 221 } 222 223 func (x *PortalConfig) GetDomain() string { 224 if x != nil { 225 return x.Domain 226 } 227 return "" 228 } 229 230 type Config struct { 231 state protoimpl.MessageState 232 sizeCache protoimpl.SizeCache 233 unknownFields protoimpl.UnknownFields 234 235 BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"` 236 PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"` 237 } 238 239 func (x *Config) Reset() { 240 *x = Config{} 241 if protoimpl.UnsafeEnabled { 242 mi := &file_app_reverse_config_proto_msgTypes[3] 243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 244 ms.StoreMessageInfo(mi) 245 } 246 } 247 248 func (x *Config) String() string { 249 return protoimpl.X.MessageStringOf(x) 250 } 251 252 func (*Config) ProtoMessage() {} 253 254 func (x *Config) ProtoReflect() protoreflect.Message { 255 mi := &file_app_reverse_config_proto_msgTypes[3] 256 if protoimpl.UnsafeEnabled && x != nil { 257 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 258 if ms.LoadMessageInfo() == nil { 259 ms.StoreMessageInfo(mi) 260 } 261 return ms 262 } 263 return mi.MessageOf(x) 264 } 265 266 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 267 func (*Config) Descriptor() ([]byte, []int) { 268 return file_app_reverse_config_proto_rawDescGZIP(), []int{3} 269 } 270 271 func (x *Config) GetBridgeConfig() []*BridgeConfig { 272 if x != nil { 273 return x.BridgeConfig 274 } 275 return nil 276 } 277 278 func (x *Config) GetPortalConfig() []*PortalConfig { 279 if x != nil { 280 return x.PortalConfig 281 } 282 return nil 283 } 284 285 var File_app_reverse_config_proto protoreflect.FileDescriptor 286 287 var file_app_reverse_config_proto_rawDesc = []byte{ 288 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f, 289 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61, 290 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 291 0x73, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 292 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 293 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 294 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 295 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 296 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 297 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 298 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61, 299 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 300 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x52, 0x41, 301 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 302 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 303 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 304 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x38, 305 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 306 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 307 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 308 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xba, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 309 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f, 310 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 311 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 312 0x72, 0x73, 0x65, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 313 0x52, 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 314 0x0a, 0x0d, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 315 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 316 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 317 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 318 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x1a, 0x82, 0xb5, 0x18, 0x09, 0x0a, 319 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x09, 0x12, 0x07, 0x72, 0x65, 320 0x76, 0x65, 0x72, 0x73, 0x65, 0x42, 0x67, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 321 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x72, 0x65, 322 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 323 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 324 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 325 0x72, 0x73, 0x65, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 326 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 327 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 328 } 329 330 var ( 331 file_app_reverse_config_proto_rawDescOnce sync.Once 332 file_app_reverse_config_proto_rawDescData = file_app_reverse_config_proto_rawDesc 333 ) 334 335 func file_app_reverse_config_proto_rawDescGZIP() []byte { 336 file_app_reverse_config_proto_rawDescOnce.Do(func() { 337 file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_reverse_config_proto_rawDescData) 338 }) 339 return file_app_reverse_config_proto_rawDescData 340 } 341 342 var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 343 var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 344 var file_app_reverse_config_proto_goTypes = []interface{}{ 345 (Control_State)(0), // 0: v2ray.core.app.reverse.Control.State 346 (*Control)(nil), // 1: v2ray.core.app.reverse.Control 347 (*BridgeConfig)(nil), // 2: v2ray.core.app.reverse.BridgeConfig 348 (*PortalConfig)(nil), // 3: v2ray.core.app.reverse.PortalConfig 349 (*Config)(nil), // 4: v2ray.core.app.reverse.Config 350 } 351 var file_app_reverse_config_proto_depIdxs = []int32{ 352 0, // 0: v2ray.core.app.reverse.Control.state:type_name -> v2ray.core.app.reverse.Control.State 353 2, // 1: v2ray.core.app.reverse.Config.bridge_config:type_name -> v2ray.core.app.reverse.BridgeConfig 354 3, // 2: v2ray.core.app.reverse.Config.portal_config:type_name -> v2ray.core.app.reverse.PortalConfig 355 3, // [3:3] is the sub-list for method output_type 356 3, // [3:3] is the sub-list for method input_type 357 3, // [3:3] is the sub-list for extension type_name 358 3, // [3:3] is the sub-list for extension extendee 359 0, // [0:3] is the sub-list for field type_name 360 } 361 362 func init() { file_app_reverse_config_proto_init() } 363 func file_app_reverse_config_proto_init() { 364 if File_app_reverse_config_proto != nil { 365 return 366 } 367 if !protoimpl.UnsafeEnabled { 368 file_app_reverse_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 369 switch v := v.(*Control); i { 370 case 0: 371 return &v.state 372 case 1: 373 return &v.sizeCache 374 case 2: 375 return &v.unknownFields 376 default: 377 return nil 378 } 379 } 380 file_app_reverse_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 381 switch v := v.(*BridgeConfig); i { 382 case 0: 383 return &v.state 384 case 1: 385 return &v.sizeCache 386 case 2: 387 return &v.unknownFields 388 default: 389 return nil 390 } 391 } 392 file_app_reverse_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 393 switch v := v.(*PortalConfig); i { 394 case 0: 395 return &v.state 396 case 1: 397 return &v.sizeCache 398 case 2: 399 return &v.unknownFields 400 default: 401 return nil 402 } 403 } 404 file_app_reverse_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 405 switch v := v.(*Config); i { 406 case 0: 407 return &v.state 408 case 1: 409 return &v.sizeCache 410 case 2: 411 return &v.unknownFields 412 default: 413 return nil 414 } 415 } 416 } 417 type x struct{} 418 out := protoimpl.TypeBuilder{ 419 File: protoimpl.DescBuilder{ 420 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 421 RawDescriptor: file_app_reverse_config_proto_rawDesc, 422 NumEnums: 1, 423 NumMessages: 4, 424 NumExtensions: 0, 425 NumServices: 0, 426 }, 427 GoTypes: file_app_reverse_config_proto_goTypes, 428 DependencyIndexes: file_app_reverse_config_proto_depIdxs, 429 EnumInfos: file_app_reverse_config_proto_enumTypes, 430 MessageInfos: file_app_reverse_config_proto_msgTypes, 431 }.Build() 432 File_app_reverse_config_proto = out.File 433 file_app_reverse_config_proto_rawDesc = nil 434 file_app_reverse_config_proto_goTypes = nil 435 file_app_reverse_config_proto_depIdxs = nil 436 }