github.com/moqsien/xraycore@v1.8.5/app/reverse/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v4.23.1
     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=xray.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, 0x10, 0x78, 0x72, 0x61, 0x79,
   294  	0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x78, 0x0a, 0x07,
   295  	0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
   296  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
   297  	0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
   298  	0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16,
   299  	0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
   300  	0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
   301  	0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
   302  	0x52, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65,
   303  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
   304  	0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
   305  	0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
   306  	0x22, 0x38, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   307  	0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74,
   308  	0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
   309  	0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x06, 0x43,
   310  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f,
   311  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78,
   312  	0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e,
   313  	0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x62, 0x72,
   314  	0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x70, 0x6f,
   315  	0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28,
   316  	0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76,
   317  	0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   318  	0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
   319  	0x56, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
   320  	0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74,
   321  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
   322  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72,
   323  	0x73, 0x65, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   324  	0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   325  }
   326  
   327  var (
   328  	file_app_reverse_config_proto_rawDescOnce sync.Once
   329  	file_app_reverse_config_proto_rawDescData = file_app_reverse_config_proto_rawDesc
   330  )
   331  
   332  func file_app_reverse_config_proto_rawDescGZIP() []byte {
   333  	file_app_reverse_config_proto_rawDescOnce.Do(func() {
   334  		file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_reverse_config_proto_rawDescData)
   335  	})
   336  	return file_app_reverse_config_proto_rawDescData
   337  }
   338  
   339  var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   340  var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   341  var file_app_reverse_config_proto_goTypes = []interface{}{
   342  	(Control_State)(0),   // 0: xray.app.reverse.Control.State
   343  	(*Control)(nil),      // 1: xray.app.reverse.Control
   344  	(*BridgeConfig)(nil), // 2: xray.app.reverse.BridgeConfig
   345  	(*PortalConfig)(nil), // 3: xray.app.reverse.PortalConfig
   346  	(*Config)(nil),       // 4: xray.app.reverse.Config
   347  }
   348  var file_app_reverse_config_proto_depIdxs = []int32{
   349  	0, // 0: xray.app.reverse.Control.state:type_name -> xray.app.reverse.Control.State
   350  	2, // 1: xray.app.reverse.Config.bridge_config:type_name -> xray.app.reverse.BridgeConfig
   351  	3, // 2: xray.app.reverse.Config.portal_config:type_name -> xray.app.reverse.PortalConfig
   352  	3, // [3:3] is the sub-list for method output_type
   353  	3, // [3:3] is the sub-list for method input_type
   354  	3, // [3:3] is the sub-list for extension type_name
   355  	3, // [3:3] is the sub-list for extension extendee
   356  	0, // [0:3] is the sub-list for field type_name
   357  }
   358  
   359  func init() { file_app_reverse_config_proto_init() }
   360  func file_app_reverse_config_proto_init() {
   361  	if File_app_reverse_config_proto != nil {
   362  		return
   363  	}
   364  	if !protoimpl.UnsafeEnabled {
   365  		file_app_reverse_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   366  			switch v := v.(*Control); i {
   367  			case 0:
   368  				return &v.state
   369  			case 1:
   370  				return &v.sizeCache
   371  			case 2:
   372  				return &v.unknownFields
   373  			default:
   374  				return nil
   375  			}
   376  		}
   377  		file_app_reverse_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   378  			switch v := v.(*BridgeConfig); i {
   379  			case 0:
   380  				return &v.state
   381  			case 1:
   382  				return &v.sizeCache
   383  			case 2:
   384  				return &v.unknownFields
   385  			default:
   386  				return nil
   387  			}
   388  		}
   389  		file_app_reverse_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   390  			switch v := v.(*PortalConfig); i {
   391  			case 0:
   392  				return &v.state
   393  			case 1:
   394  				return &v.sizeCache
   395  			case 2:
   396  				return &v.unknownFields
   397  			default:
   398  				return nil
   399  			}
   400  		}
   401  		file_app_reverse_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   402  			switch v := v.(*Config); i {
   403  			case 0:
   404  				return &v.state
   405  			case 1:
   406  				return &v.sizeCache
   407  			case 2:
   408  				return &v.unknownFields
   409  			default:
   410  				return nil
   411  			}
   412  		}
   413  	}
   414  	type x struct{}
   415  	out := protoimpl.TypeBuilder{
   416  		File: protoimpl.DescBuilder{
   417  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   418  			RawDescriptor: file_app_reverse_config_proto_rawDesc,
   419  			NumEnums:      1,
   420  			NumMessages:   4,
   421  			NumExtensions: 0,
   422  			NumServices:   0,
   423  		},
   424  		GoTypes:           file_app_reverse_config_proto_goTypes,
   425  		DependencyIndexes: file_app_reverse_config_proto_depIdxs,
   426  		EnumInfos:         file_app_reverse_config_proto_enumTypes,
   427  		MessageInfos:      file_app_reverse_config_proto_msgTypes,
   428  	}.Build()
   429  	File_app_reverse_config_proto = out.File
   430  	file_app_reverse_config_proto_rawDesc = nil
   431  	file_app_reverse_config_proto_goTypes = nil
   432  	file_app_reverse_config_proto_depIdxs = nil
   433  }