github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/reverse/config.pb.go (about)

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