github.com/imannamdari/v2ray-core/v5@v5.0.5/proxy/socks/config.pb.go (about)

     1  package socks
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	net "github.com/imannamdari/v2ray-core/v5/common/net"
     8  	packetaddr "github.com/imannamdari/v2ray-core/v5/common/net/packetaddr"
     9  	protocol "github.com/imannamdari/v2ray-core/v5/common/protocol"
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  )
    13  
    14  const (
    15  	// Verify that this generated code is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    17  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    19  )
    20  
    21  // AuthType is the authentication type of Socks proxy.
    22  type AuthType int32
    23  
    24  const (
    25  	// NO_AUTH is for anonymous authentication.
    26  	AuthType_NO_AUTH AuthType = 0
    27  	// PASSWORD is for username/password authentication.
    28  	AuthType_PASSWORD AuthType = 1
    29  )
    30  
    31  // Enum value maps for AuthType.
    32  var (
    33  	AuthType_name = map[int32]string{
    34  		0: "NO_AUTH",
    35  		1: "PASSWORD",
    36  	}
    37  	AuthType_value = map[string]int32{
    38  		"NO_AUTH":  0,
    39  		"PASSWORD": 1,
    40  	}
    41  )
    42  
    43  func (x AuthType) Enum() *AuthType {
    44  	p := new(AuthType)
    45  	*p = x
    46  	return p
    47  }
    48  
    49  func (x AuthType) String() string {
    50  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    51  }
    52  
    53  func (AuthType) Descriptor() protoreflect.EnumDescriptor {
    54  	return file_proxy_socks_config_proto_enumTypes[0].Descriptor()
    55  }
    56  
    57  func (AuthType) Type() protoreflect.EnumType {
    58  	return &file_proxy_socks_config_proto_enumTypes[0]
    59  }
    60  
    61  func (x AuthType) Number() protoreflect.EnumNumber {
    62  	return protoreflect.EnumNumber(x)
    63  }
    64  
    65  // Deprecated: Use AuthType.Descriptor instead.
    66  func (AuthType) EnumDescriptor() ([]byte, []int) {
    67  	return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  type Version int32
    71  
    72  const (
    73  	Version_SOCKS5  Version = 0
    74  	Version_SOCKS4  Version = 1
    75  	Version_SOCKS4A Version = 2
    76  )
    77  
    78  // Enum value maps for Version.
    79  var (
    80  	Version_name = map[int32]string{
    81  		0: "SOCKS5",
    82  		1: "SOCKS4",
    83  		2: "SOCKS4A",
    84  	}
    85  	Version_value = map[string]int32{
    86  		"SOCKS5":  0,
    87  		"SOCKS4":  1,
    88  		"SOCKS4A": 2,
    89  	}
    90  )
    91  
    92  func (x Version) Enum() *Version {
    93  	p := new(Version)
    94  	*p = x
    95  	return p
    96  }
    97  
    98  func (x Version) String() string {
    99  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   100  }
   101  
   102  func (Version) Descriptor() protoreflect.EnumDescriptor {
   103  	return file_proxy_socks_config_proto_enumTypes[1].Descriptor()
   104  }
   105  
   106  func (Version) Type() protoreflect.EnumType {
   107  	return &file_proxy_socks_config_proto_enumTypes[1]
   108  }
   109  
   110  func (x Version) Number() protoreflect.EnumNumber {
   111  	return protoreflect.EnumNumber(x)
   112  }
   113  
   114  // Deprecated: Use Version.Descriptor instead.
   115  func (Version) EnumDescriptor() ([]byte, []int) {
   116  	return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
   117  }
   118  
   119  // Account represents a Socks account.
   120  type Account struct {
   121  	state         protoimpl.MessageState
   122  	sizeCache     protoimpl.SizeCache
   123  	unknownFields protoimpl.UnknownFields
   124  
   125  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
   126  	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
   127  }
   128  
   129  func (x *Account) Reset() {
   130  	*x = Account{}
   131  	if protoimpl.UnsafeEnabled {
   132  		mi := &file_proxy_socks_config_proto_msgTypes[0]
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		ms.StoreMessageInfo(mi)
   135  	}
   136  }
   137  
   138  func (x *Account) String() string {
   139  	return protoimpl.X.MessageStringOf(x)
   140  }
   141  
   142  func (*Account) ProtoMessage() {}
   143  
   144  func (x *Account) ProtoReflect() protoreflect.Message {
   145  	mi := &file_proxy_socks_config_proto_msgTypes[0]
   146  	if protoimpl.UnsafeEnabled && x != nil {
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		if ms.LoadMessageInfo() == nil {
   149  			ms.StoreMessageInfo(mi)
   150  		}
   151  		return ms
   152  	}
   153  	return mi.MessageOf(x)
   154  }
   155  
   156  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
   157  func (*Account) Descriptor() ([]byte, []int) {
   158  	return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
   159  }
   160  
   161  func (x *Account) GetUsername() string {
   162  	if x != nil {
   163  		return x.Username
   164  	}
   165  	return ""
   166  }
   167  
   168  func (x *Account) GetPassword() string {
   169  	if x != nil {
   170  		return x.Password
   171  	}
   172  	return ""
   173  }
   174  
   175  // ServerConfig is the protobuf config for Socks server.
   176  type ServerConfig struct {
   177  	state         protoimpl.MessageState
   178  	sizeCache     protoimpl.SizeCache
   179  	unknownFields protoimpl.UnknownFields
   180  
   181  	AuthType   AuthType          `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"`
   182  	Accounts   map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   183  	Address    *net.IPOrDomain   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
   184  	UdpEnabled bool              `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
   185  	// Deprecated: Do not use.
   186  	Timeout        uint32                    `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
   187  	UserLevel      uint32                    `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
   188  	PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,7,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
   189  }
   190  
   191  func (x *ServerConfig) Reset() {
   192  	*x = ServerConfig{}
   193  	if protoimpl.UnsafeEnabled {
   194  		mi := &file_proxy_socks_config_proto_msgTypes[1]
   195  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   196  		ms.StoreMessageInfo(mi)
   197  	}
   198  }
   199  
   200  func (x *ServerConfig) String() string {
   201  	return protoimpl.X.MessageStringOf(x)
   202  }
   203  
   204  func (*ServerConfig) ProtoMessage() {}
   205  
   206  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
   207  	mi := &file_proxy_socks_config_proto_msgTypes[1]
   208  	if protoimpl.UnsafeEnabled && x != nil {
   209  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   210  		if ms.LoadMessageInfo() == nil {
   211  			ms.StoreMessageInfo(mi)
   212  		}
   213  		return ms
   214  	}
   215  	return mi.MessageOf(x)
   216  }
   217  
   218  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
   219  func (*ServerConfig) Descriptor() ([]byte, []int) {
   220  	return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
   221  }
   222  
   223  func (x *ServerConfig) GetAuthType() AuthType {
   224  	if x != nil {
   225  		return x.AuthType
   226  	}
   227  	return AuthType_NO_AUTH
   228  }
   229  
   230  func (x *ServerConfig) GetAccounts() map[string]string {
   231  	if x != nil {
   232  		return x.Accounts
   233  	}
   234  	return nil
   235  }
   236  
   237  func (x *ServerConfig) GetAddress() *net.IPOrDomain {
   238  	if x != nil {
   239  		return x.Address
   240  	}
   241  	return nil
   242  }
   243  
   244  func (x *ServerConfig) GetUdpEnabled() bool {
   245  	if x != nil {
   246  		return x.UdpEnabled
   247  	}
   248  	return false
   249  }
   250  
   251  // Deprecated: Do not use.
   252  func (x *ServerConfig) GetTimeout() uint32 {
   253  	if x != nil {
   254  		return x.Timeout
   255  	}
   256  	return 0
   257  }
   258  
   259  func (x *ServerConfig) GetUserLevel() uint32 {
   260  	if x != nil {
   261  		return x.UserLevel
   262  	}
   263  	return 0
   264  }
   265  
   266  func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
   267  	if x != nil {
   268  		return x.PacketEncoding
   269  	}
   270  	return packetaddr.PacketAddrType(0)
   271  }
   272  
   273  // ClientConfig is the protobuf config for Socks client.
   274  type ClientConfig struct {
   275  	state         protoimpl.MessageState
   276  	sizeCache     protoimpl.SizeCache
   277  	unknownFields protoimpl.UnknownFields
   278  
   279  	// Sever is a list of Socks server addresses.
   280  	Server  []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
   281  	Version Version                    `protobuf:"varint,2,opt,name=version,proto3,enum=v2ray.core.proxy.socks.Version" json:"version,omitempty"`
   282  }
   283  
   284  func (x *ClientConfig) Reset() {
   285  	*x = ClientConfig{}
   286  	if protoimpl.UnsafeEnabled {
   287  		mi := &file_proxy_socks_config_proto_msgTypes[2]
   288  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   289  		ms.StoreMessageInfo(mi)
   290  	}
   291  }
   292  
   293  func (x *ClientConfig) String() string {
   294  	return protoimpl.X.MessageStringOf(x)
   295  }
   296  
   297  func (*ClientConfig) ProtoMessage() {}
   298  
   299  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   300  	mi := &file_proxy_socks_config_proto_msgTypes[2]
   301  	if protoimpl.UnsafeEnabled && x != nil {
   302  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   303  		if ms.LoadMessageInfo() == nil {
   304  			ms.StoreMessageInfo(mi)
   305  		}
   306  		return ms
   307  	}
   308  	return mi.MessageOf(x)
   309  }
   310  
   311  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   312  func (*ClientConfig) Descriptor() ([]byte, []int) {
   313  	return file_proxy_socks_config_proto_rawDescGZIP(), []int{2}
   314  }
   315  
   316  func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
   317  	if x != nil {
   318  		return x.Server
   319  	}
   320  	return nil
   321  }
   322  
   323  func (x *ClientConfig) GetVersion() Version {
   324  	if x != nil {
   325  		return x.Version
   326  	}
   327  	return Version_SOCKS5
   328  }
   329  
   330  var File_proxy_socks_config_proto protoreflect.FileDescriptor
   331  
   332  var file_proxy_socks_config_proto_rawDesc = []byte{
   333  	0x0a, 0x18, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f,
   334  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61,
   335  	0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63,
   336  	0x6b, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61,
   337  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f,
   338  	0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61,
   339  	0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   340  	0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   341  	0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
   342  	0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
   343  	0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   344  	0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
   345  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
   346  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc9, 0x03, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
   347  	0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f,
   348  	0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
   349  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f,
   350  	0x63, 0x6b, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75,
   351  	0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
   352  	0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
   353  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
   354  	0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41,
   355  	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x63,
   356  	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
   357  	0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   358  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
   359  	0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
   360  	0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
   361  	0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e, 0x61,
   362  	0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
   363  	0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
   364  	0x75, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
   365  	0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65,
   366  	0x6c, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f,
   367  	0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72,
   368  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b,
   369  	0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64,
   370  	0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63,
   371  	0x6f, 0x64, 0x69, 0x6e, 0x67, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
   372  	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
   373  	0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   374  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
   375  	0x38, 0x01, 0x22, 0x8d, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
   376  	0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20,
   377  	0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   378  	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   379  	0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52,
   380  	0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
   381  	0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
   382  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
   383  	0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
   384  	0x6f, 0x6e, 0x2a, 0x25, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b,
   385  	0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50,
   386  	0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x2a, 0x2e, 0x0a, 0x07, 0x56, 0x65, 0x72,
   387  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x35, 0x10, 0x00,
   388  	0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
   389  	0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x41, 0x10, 0x02, 0x42, 0x63, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
   390  	0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
   391  	0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75,
   392  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
   393  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
   394  	0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02, 0x16, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
   395  	0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06,
   396  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   397  }
   398  
   399  var (
   400  	file_proxy_socks_config_proto_rawDescOnce sync.Once
   401  	file_proxy_socks_config_proto_rawDescData = file_proxy_socks_config_proto_rawDesc
   402  )
   403  
   404  func file_proxy_socks_config_proto_rawDescGZIP() []byte {
   405  	file_proxy_socks_config_proto_rawDescOnce.Do(func() {
   406  		file_proxy_socks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_config_proto_rawDescData)
   407  	})
   408  	return file_proxy_socks_config_proto_rawDescData
   409  }
   410  
   411  var file_proxy_socks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
   412  var file_proxy_socks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   413  var file_proxy_socks_config_proto_goTypes = []interface{}{
   414  	(AuthType)(0),                   // 0: v2ray.core.proxy.socks.AuthType
   415  	(Version)(0),                    // 1: v2ray.core.proxy.socks.Version
   416  	(*Account)(nil),                 // 2: v2ray.core.proxy.socks.Account
   417  	(*ServerConfig)(nil),            // 3: v2ray.core.proxy.socks.ServerConfig
   418  	(*ClientConfig)(nil),            // 4: v2ray.core.proxy.socks.ClientConfig
   419  	nil,                             // 5: v2ray.core.proxy.socks.ServerConfig.AccountsEntry
   420  	(*net.IPOrDomain)(nil),          // 6: v2ray.core.common.net.IPOrDomain
   421  	(packetaddr.PacketAddrType)(0),  // 7: v2ray.core.net.packetaddr.PacketAddrType
   422  	(*protocol.ServerEndpoint)(nil), // 8: v2ray.core.common.protocol.ServerEndpoint
   423  }
   424  var file_proxy_socks_config_proto_depIdxs = []int32{
   425  	0, // 0: v2ray.core.proxy.socks.ServerConfig.auth_type:type_name -> v2ray.core.proxy.socks.AuthType
   426  	5, // 1: v2ray.core.proxy.socks.ServerConfig.accounts:type_name -> v2ray.core.proxy.socks.ServerConfig.AccountsEntry
   427  	6, // 2: v2ray.core.proxy.socks.ServerConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   428  	7, // 3: v2ray.core.proxy.socks.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
   429  	8, // 4: v2ray.core.proxy.socks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
   430  	1, // 5: v2ray.core.proxy.socks.ClientConfig.version:type_name -> v2ray.core.proxy.socks.Version
   431  	6, // [6:6] is the sub-list for method output_type
   432  	6, // [6:6] is the sub-list for method input_type
   433  	6, // [6:6] is the sub-list for extension type_name
   434  	6, // [6:6] is the sub-list for extension extendee
   435  	0, // [0:6] is the sub-list for field type_name
   436  }
   437  
   438  func init() { file_proxy_socks_config_proto_init() }
   439  func file_proxy_socks_config_proto_init() {
   440  	if File_proxy_socks_config_proto != nil {
   441  		return
   442  	}
   443  	if !protoimpl.UnsafeEnabled {
   444  		file_proxy_socks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   445  			switch v := v.(*Account); i {
   446  			case 0:
   447  				return &v.state
   448  			case 1:
   449  				return &v.sizeCache
   450  			case 2:
   451  				return &v.unknownFields
   452  			default:
   453  				return nil
   454  			}
   455  		}
   456  		file_proxy_socks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   457  			switch v := v.(*ServerConfig); i {
   458  			case 0:
   459  				return &v.state
   460  			case 1:
   461  				return &v.sizeCache
   462  			case 2:
   463  				return &v.unknownFields
   464  			default:
   465  				return nil
   466  			}
   467  		}
   468  		file_proxy_socks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   469  			switch v := v.(*ClientConfig); i {
   470  			case 0:
   471  				return &v.state
   472  			case 1:
   473  				return &v.sizeCache
   474  			case 2:
   475  				return &v.unknownFields
   476  			default:
   477  				return nil
   478  			}
   479  		}
   480  	}
   481  	type x struct{}
   482  	out := protoimpl.TypeBuilder{
   483  		File: protoimpl.DescBuilder{
   484  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   485  			RawDescriptor: file_proxy_socks_config_proto_rawDesc,
   486  			NumEnums:      2,
   487  			NumMessages:   4,
   488  			NumExtensions: 0,
   489  			NumServices:   0,
   490  		},
   491  		GoTypes:           file_proxy_socks_config_proto_goTypes,
   492  		DependencyIndexes: file_proxy_socks_config_proto_depIdxs,
   493  		EnumInfos:         file_proxy_socks_config_proto_enumTypes,
   494  		MessageInfos:      file_proxy_socks_config_proto_msgTypes,
   495  	}.Build()
   496  	File_proxy_socks_config_proto = out.File
   497  	file_proxy_socks_config_proto_rawDesc = nil
   498  	file_proxy_socks_config_proto_goTypes = nil
   499  	file_proxy_socks_config_proto_depIdxs = nil
   500  }