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

     1  package inbound
     2  
     3  import (
     4  	protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
     5  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     6  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     7  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     8  	reflect "reflect"
     9  	sync "sync"
    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 DetourConfig struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
    25  }
    26  
    27  func (x *DetourConfig) Reset() {
    28  	*x = DetourConfig{}
    29  	if protoimpl.UnsafeEnabled {
    30  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
    31  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    32  		ms.StoreMessageInfo(mi)
    33  	}
    34  }
    35  
    36  func (x *DetourConfig) String() string {
    37  	return protoimpl.X.MessageStringOf(x)
    38  }
    39  
    40  func (*DetourConfig) ProtoMessage() {}
    41  
    42  func (x *DetourConfig) ProtoReflect() protoreflect.Message {
    43  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
    44  	if protoimpl.UnsafeEnabled && x != nil {
    45  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    46  		if ms.LoadMessageInfo() == nil {
    47  			ms.StoreMessageInfo(mi)
    48  		}
    49  		return ms
    50  	}
    51  	return mi.MessageOf(x)
    52  }
    53  
    54  // Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead.
    55  func (*DetourConfig) Descriptor() ([]byte, []int) {
    56  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{0}
    57  }
    58  
    59  func (x *DetourConfig) GetTo() string {
    60  	if x != nil {
    61  		return x.To
    62  	}
    63  	return ""
    64  }
    65  
    66  type DefaultConfig struct {
    67  	state         protoimpl.MessageState
    68  	sizeCache     protoimpl.SizeCache
    69  	unknownFields protoimpl.UnknownFields
    70  
    71  	AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
    72  	Level   uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
    73  }
    74  
    75  func (x *DefaultConfig) Reset() {
    76  	*x = DefaultConfig{}
    77  	if protoimpl.UnsafeEnabled {
    78  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
    79  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    80  		ms.StoreMessageInfo(mi)
    81  	}
    82  }
    83  
    84  func (x *DefaultConfig) String() string {
    85  	return protoimpl.X.MessageStringOf(x)
    86  }
    87  
    88  func (*DefaultConfig) ProtoMessage() {}
    89  
    90  func (x *DefaultConfig) ProtoReflect() protoreflect.Message {
    91  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
    92  	if protoimpl.UnsafeEnabled && x != nil {
    93  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    94  		if ms.LoadMessageInfo() == nil {
    95  			ms.StoreMessageInfo(mi)
    96  		}
    97  		return ms
    98  	}
    99  	return mi.MessageOf(x)
   100  }
   101  
   102  // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead.
   103  func (*DefaultConfig) Descriptor() ([]byte, []int) {
   104  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1}
   105  }
   106  
   107  func (x *DefaultConfig) GetAlterId() uint32 {
   108  	if x != nil {
   109  		return x.AlterId
   110  	}
   111  	return 0
   112  }
   113  
   114  func (x *DefaultConfig) GetLevel() uint32 {
   115  	if x != nil {
   116  		return x.Level
   117  	}
   118  	return 0
   119  }
   120  
   121  type Config struct {
   122  	state         protoimpl.MessageState
   123  	sizeCache     protoimpl.SizeCache
   124  	unknownFields protoimpl.UnknownFields
   125  
   126  	User                 []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
   127  	Default              *DefaultConfig   `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
   128  	Detour               *DetourConfig    `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
   129  	SecureEncryptionOnly bool             `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
   130  }
   131  
   132  func (x *Config) Reset() {
   133  	*x = Config{}
   134  	if protoimpl.UnsafeEnabled {
   135  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
   136  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   137  		ms.StoreMessageInfo(mi)
   138  	}
   139  }
   140  
   141  func (x *Config) String() string {
   142  	return protoimpl.X.MessageStringOf(x)
   143  }
   144  
   145  func (*Config) ProtoMessage() {}
   146  
   147  func (x *Config) ProtoReflect() protoreflect.Message {
   148  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
   149  	if protoimpl.UnsafeEnabled && x != nil {
   150  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   151  		if ms.LoadMessageInfo() == nil {
   152  			ms.StoreMessageInfo(mi)
   153  		}
   154  		return ms
   155  	}
   156  	return mi.MessageOf(x)
   157  }
   158  
   159  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   160  func (*Config) Descriptor() ([]byte, []int) {
   161  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
   162  }
   163  
   164  func (x *Config) GetUser() []*protocol.User {
   165  	if x != nil {
   166  		return x.User
   167  	}
   168  	return nil
   169  }
   170  
   171  func (x *Config) GetDefault() *DefaultConfig {
   172  	if x != nil {
   173  		return x.Default
   174  	}
   175  	return nil
   176  }
   177  
   178  func (x *Config) GetDetour() *DetourConfig {
   179  	if x != nil {
   180  		return x.Detour
   181  	}
   182  	return nil
   183  }
   184  
   185  func (x *Config) GetSecureEncryptionOnly() bool {
   186  	if x != nil {
   187  		return x.SecureEncryptionOnly
   188  	}
   189  	return false
   190  }
   191  
   192  type SimplifiedConfig struct {
   193  	state         protoimpl.MessageState
   194  	sizeCache     protoimpl.SizeCache
   195  	unknownFields protoimpl.UnknownFields
   196  
   197  	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
   198  }
   199  
   200  func (x *SimplifiedConfig) Reset() {
   201  	*x = SimplifiedConfig{}
   202  	if protoimpl.UnsafeEnabled {
   203  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3]
   204  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   205  		ms.StoreMessageInfo(mi)
   206  	}
   207  }
   208  
   209  func (x *SimplifiedConfig) String() string {
   210  	return protoimpl.X.MessageStringOf(x)
   211  }
   212  
   213  func (*SimplifiedConfig) ProtoMessage() {}
   214  
   215  func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
   216  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3]
   217  	if protoimpl.UnsafeEnabled && x != nil {
   218  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   219  		if ms.LoadMessageInfo() == nil {
   220  			ms.StoreMessageInfo(mi)
   221  		}
   222  		return ms
   223  	}
   224  	return mi.MessageOf(x)
   225  }
   226  
   227  // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
   228  func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
   229  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{3}
   230  }
   231  
   232  func (x *SimplifiedConfig) GetUsers() []string {
   233  	if x != nil {
   234  		return x.Users
   235  	}
   236  	return nil
   237  }
   238  
   239  var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
   240  
   241  var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{
   242  	0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
   243  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
   244  	0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
   245  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
   246  	0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   247  	0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
   248  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
   249  	0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   250  	0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   251  	0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f,
   252  	0x22, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   253  	0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
   254  	0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
   255  	0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76,
   256  	0x65, 0x6c, 0x22, 0x83, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a,
   257  	0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32,
   258  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   259  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
   260  	0x73, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02,
   261  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   262  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e,
   263  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e,
   264  	0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x06,
   265  	0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76,
   266  	0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   267  	0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65,
   268  	0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f,
   269  	0x75, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63,
   270  	0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01,
   271  	0x28, 0x08, 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70,
   272  	0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x3e, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70,
   273  	0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05,
   274  	0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65,
   275  	0x72, 0x73, 0x3a, 0x14, 0x82, 0xb5, 0x18, 0x10, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
   276  	0x64, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
   277  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
   278  	0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01,
   279  	0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
   280  	0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
   281  	0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62,
   282  	0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
   283  	0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e,
   284  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   285  }
   286  
   287  var (
   288  	file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
   289  	file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
   290  )
   291  
   292  func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
   293  	file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
   294  		file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
   295  	})
   296  	return file_proxy_vmess_inbound_config_proto_rawDescData
   297  }
   298  
   299  var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   300  var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
   301  	(*DetourConfig)(nil),     // 0: v2ray.core.proxy.vmess.inbound.DetourConfig
   302  	(*DefaultConfig)(nil),    // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig
   303  	(*Config)(nil),           // 2: v2ray.core.proxy.vmess.inbound.Config
   304  	(*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.vmess.inbound.SimplifiedConfig
   305  	(*protocol.User)(nil),    // 4: v2ray.core.common.protocol.User
   306  }
   307  var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
   308  	4, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
   309  	1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig
   310  	0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.proxy.vmess.inbound.DetourConfig
   311  	3, // [3:3] is the sub-list for method output_type
   312  	3, // [3:3] is the sub-list for method input_type
   313  	3, // [3:3] is the sub-list for extension type_name
   314  	3, // [3:3] is the sub-list for extension extendee
   315  	0, // [0:3] is the sub-list for field type_name
   316  }
   317  
   318  func init() { file_proxy_vmess_inbound_config_proto_init() }
   319  func file_proxy_vmess_inbound_config_proto_init() {
   320  	if File_proxy_vmess_inbound_config_proto != nil {
   321  		return
   322  	}
   323  	if !protoimpl.UnsafeEnabled {
   324  		file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   325  			switch v := v.(*DetourConfig); i {
   326  			case 0:
   327  				return &v.state
   328  			case 1:
   329  				return &v.sizeCache
   330  			case 2:
   331  				return &v.unknownFields
   332  			default:
   333  				return nil
   334  			}
   335  		}
   336  		file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   337  			switch v := v.(*DefaultConfig); i {
   338  			case 0:
   339  				return &v.state
   340  			case 1:
   341  				return &v.sizeCache
   342  			case 2:
   343  				return &v.unknownFields
   344  			default:
   345  				return nil
   346  			}
   347  		}
   348  		file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   349  			switch v := v.(*Config); i {
   350  			case 0:
   351  				return &v.state
   352  			case 1:
   353  				return &v.sizeCache
   354  			case 2:
   355  				return &v.unknownFields
   356  			default:
   357  				return nil
   358  			}
   359  		}
   360  		file_proxy_vmess_inbound_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   361  			switch v := v.(*SimplifiedConfig); i {
   362  			case 0:
   363  				return &v.state
   364  			case 1:
   365  				return &v.sizeCache
   366  			case 2:
   367  				return &v.unknownFields
   368  			default:
   369  				return nil
   370  			}
   371  		}
   372  	}
   373  	type x struct{}
   374  	out := protoimpl.TypeBuilder{
   375  		File: protoimpl.DescBuilder{
   376  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   377  			RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
   378  			NumEnums:      0,
   379  			NumMessages:   4,
   380  			NumExtensions: 0,
   381  			NumServices:   0,
   382  		},
   383  		GoTypes:           file_proxy_vmess_inbound_config_proto_goTypes,
   384  		DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
   385  		MessageInfos:      file_proxy_vmess_inbound_config_proto_msgTypes,
   386  	}.Build()
   387  	File_proxy_vmess_inbound_config_proto = out.File
   388  	file_proxy_vmess_inbound_config_proto_rawDesc = nil
   389  	file_proxy_vmess_inbound_config_proto_goTypes = nil
   390  	file_proxy_vmess_inbound_config_proto_depIdxs = nil
   391  }