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