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

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