github.com/v2fly/v2ray-core/v4@v4.45.2/app/reverse/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: app/reverse/config.proto 6 7 package reverse 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Control_State int32 24 25 const ( 26 Control_ACTIVE Control_State = 0 27 Control_DRAIN Control_State = 1 28 ) 29 30 // Enum value maps for Control_State. 31 var ( 32 Control_State_name = map[int32]string{ 33 0: "ACTIVE", 34 1: "DRAIN", 35 } 36 Control_State_value = map[string]int32{ 37 "ACTIVE": 0, 38 "DRAIN": 1, 39 } 40 ) 41 42 func (x Control_State) Enum() *Control_State { 43 p := new(Control_State) 44 *p = x 45 return p 46 } 47 48 func (x Control_State) String() string { 49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 50 } 51 52 func (Control_State) Descriptor() protoreflect.EnumDescriptor { 53 return file_app_reverse_config_proto_enumTypes[0].Descriptor() 54 } 55 56 func (Control_State) Type() protoreflect.EnumType { 57 return &file_app_reverse_config_proto_enumTypes[0] 58 } 59 60 func (x Control_State) Number() protoreflect.EnumNumber { 61 return protoreflect.EnumNumber(x) 62 } 63 64 // Deprecated: Use Control_State.Descriptor instead. 65 func (Control_State) EnumDescriptor() ([]byte, []int) { 66 return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0} 67 } 68 69 type Control struct { 70 state protoimpl.MessageState 71 sizeCache protoimpl.SizeCache 72 unknownFields protoimpl.UnknownFields 73 74 State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"` 75 Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"` 76 } 77 78 func (x *Control) Reset() { 79 *x = Control{} 80 if protoimpl.UnsafeEnabled { 81 mi := &file_app_reverse_config_proto_msgTypes[0] 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 ms.StoreMessageInfo(mi) 84 } 85 } 86 87 func (x *Control) String() string { 88 return protoimpl.X.MessageStringOf(x) 89 } 90 91 func (*Control) ProtoMessage() {} 92 93 func (x *Control) ProtoReflect() protoreflect.Message { 94 mi := &file_app_reverse_config_proto_msgTypes[0] 95 if protoimpl.UnsafeEnabled && x != nil { 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 if ms.LoadMessageInfo() == nil { 98 ms.StoreMessageInfo(mi) 99 } 100 return ms 101 } 102 return mi.MessageOf(x) 103 } 104 105 // Deprecated: Use Control.ProtoReflect.Descriptor instead. 106 func (*Control) Descriptor() ([]byte, []int) { 107 return file_app_reverse_config_proto_rawDescGZIP(), []int{0} 108 } 109 110 func (x *Control) GetState() Control_State { 111 if x != nil { 112 return x.State 113 } 114 return Control_ACTIVE 115 } 116 117 func (x *Control) GetRandom() []byte { 118 if x != nil { 119 return x.Random 120 } 121 return nil 122 } 123 124 type BridgeConfig struct { 125 state protoimpl.MessageState 126 sizeCache protoimpl.SizeCache 127 unknownFields protoimpl.UnknownFields 128 129 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 130 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 131 } 132 133 func (x *BridgeConfig) Reset() { 134 *x = BridgeConfig{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_app_reverse_config_proto_msgTypes[1] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *BridgeConfig) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*BridgeConfig) ProtoMessage() {} 147 148 func (x *BridgeConfig) ProtoReflect() protoreflect.Message { 149 mi := &file_app_reverse_config_proto_msgTypes[1] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead. 161 func (*BridgeConfig) Descriptor() ([]byte, []int) { 162 return file_app_reverse_config_proto_rawDescGZIP(), []int{1} 163 } 164 165 func (x *BridgeConfig) GetTag() string { 166 if x != nil { 167 return x.Tag 168 } 169 return "" 170 } 171 172 func (x *BridgeConfig) GetDomain() string { 173 if x != nil { 174 return x.Domain 175 } 176 return "" 177 } 178 179 type PortalConfig struct { 180 state protoimpl.MessageState 181 sizeCache protoimpl.SizeCache 182 unknownFields protoimpl.UnknownFields 183 184 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 185 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 186 } 187 188 func (x *PortalConfig) Reset() { 189 *x = PortalConfig{} 190 if protoimpl.UnsafeEnabled { 191 mi := &file_app_reverse_config_proto_msgTypes[2] 192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 193 ms.StoreMessageInfo(mi) 194 } 195 } 196 197 func (x *PortalConfig) String() string { 198 return protoimpl.X.MessageStringOf(x) 199 } 200 201 func (*PortalConfig) ProtoMessage() {} 202 203 func (x *PortalConfig) ProtoReflect() protoreflect.Message { 204 mi := &file_app_reverse_config_proto_msgTypes[2] 205 if protoimpl.UnsafeEnabled && x != nil { 206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 207 if ms.LoadMessageInfo() == nil { 208 ms.StoreMessageInfo(mi) 209 } 210 return ms 211 } 212 return mi.MessageOf(x) 213 } 214 215 // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead. 216 func (*PortalConfig) Descriptor() ([]byte, []int) { 217 return file_app_reverse_config_proto_rawDescGZIP(), []int{2} 218 } 219 220 func (x *PortalConfig) GetTag() string { 221 if x != nil { 222 return x.Tag 223 } 224 return "" 225 } 226 227 func (x *PortalConfig) GetDomain() string { 228 if x != nil { 229 return x.Domain 230 } 231 return "" 232 } 233 234 type Config struct { 235 state protoimpl.MessageState 236 sizeCache protoimpl.SizeCache 237 unknownFields protoimpl.UnknownFields 238 239 BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"` 240 PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"` 241 } 242 243 func (x *Config) Reset() { 244 *x = Config{} 245 if protoimpl.UnsafeEnabled { 246 mi := &file_app_reverse_config_proto_msgTypes[3] 247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 248 ms.StoreMessageInfo(mi) 249 } 250 } 251 252 func (x *Config) String() string { 253 return protoimpl.X.MessageStringOf(x) 254 } 255 256 func (*Config) ProtoMessage() {} 257 258 func (x *Config) ProtoReflect() protoreflect.Message { 259 mi := &file_app_reverse_config_proto_msgTypes[3] 260 if protoimpl.UnsafeEnabled && x != nil { 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 if ms.LoadMessageInfo() == nil { 263 ms.StoreMessageInfo(mi) 264 } 265 return ms 266 } 267 return mi.MessageOf(x) 268 } 269 270 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 271 func (*Config) Descriptor() ([]byte, []int) { 272 return file_app_reverse_config_proto_rawDescGZIP(), []int{3} 273 } 274 275 func (x *Config) GetBridgeConfig() []*BridgeConfig { 276 if x != nil { 277 return x.BridgeConfig 278 } 279 return nil 280 } 281 282 func (x *Config) GetPortalConfig() []*PortalConfig { 283 if x != nil { 284 return x.PortalConfig 285 } 286 return nil 287 } 288 289 var File_app_reverse_config_proto protoreflect.FileDescriptor 290 291 var file_app_reverse_config_proto_rawDesc = []byte{ 292 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f, 293 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61, 294 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 295 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x3b, 0x0a, 296 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 297 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 298 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x74, 299 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 300 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x64, 301 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x41, 302 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x52, 0x41, 0x49, 0x4e, 303 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 304 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 305 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 306 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x38, 0x0a, 0x0c, 307 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 308 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 309 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 310 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x9e, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 311 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 312 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 313 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 314 0x65, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 315 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0d, 316 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 317 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 318 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x72, 319 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 0x74, 0x61, 320 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x67, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 321 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 322 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 323 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 324 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 325 0x76, 0x65, 0x72, 0x73, 0x65, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 326 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 327 0x62, 0x06, 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 }