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

     1  package shadowsocks
     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  type CipherType int32
    21  
    22  const (
    23  	CipherType_UNKNOWN           CipherType = 0
    24  	CipherType_AES_128_GCM       CipherType = 1
    25  	CipherType_AES_256_GCM       CipherType = 2
    26  	CipherType_CHACHA20_POLY1305 CipherType = 3
    27  	CipherType_NONE              CipherType = 4
    28  )
    29  
    30  // Enum value maps for CipherType.
    31  var (
    32  	CipherType_name = map[int32]string{
    33  		0: "UNKNOWN",
    34  		1: "AES_128_GCM",
    35  		2: "AES_256_GCM",
    36  		3: "CHACHA20_POLY1305",
    37  		4: "NONE",
    38  	}
    39  	CipherType_value = map[string]int32{
    40  		"UNKNOWN":           0,
    41  		"AES_128_GCM":       1,
    42  		"AES_256_GCM":       2,
    43  		"CHACHA20_POLY1305": 3,
    44  		"NONE":              4,
    45  	}
    46  )
    47  
    48  func (x CipherType) Enum() *CipherType {
    49  	p := new(CipherType)
    50  	*p = x
    51  	return p
    52  }
    53  
    54  func (x CipherType) String() string {
    55  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    56  }
    57  
    58  func (CipherType) Descriptor() protoreflect.EnumDescriptor {
    59  	return file_proxy_shadowsocks_config_proto_enumTypes[0].Descriptor()
    60  }
    61  
    62  func (CipherType) Type() protoreflect.EnumType {
    63  	return &file_proxy_shadowsocks_config_proto_enumTypes[0]
    64  }
    65  
    66  func (x CipherType) Number() protoreflect.EnumNumber {
    67  	return protoreflect.EnumNumber(x)
    68  }
    69  
    70  // Deprecated: Use CipherType.Descriptor instead.
    71  func (CipherType) EnumDescriptor() ([]byte, []int) {
    72  	return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  type Account struct {
    76  	state         protoimpl.MessageState
    77  	sizeCache     protoimpl.SizeCache
    78  	unknownFields protoimpl.UnknownFields
    79  
    80  	Password                       string     `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    81  	CipherType                     CipherType `protobuf:"varint,2,opt,name=cipher_type,json=cipherType,proto3,enum=v2ray.core.proxy.shadowsocks.CipherType" json:"cipher_type,omitempty"`
    82  	IvCheck                        bool       `protobuf:"varint,3,opt,name=iv_check,json=ivCheck,proto3" json:"iv_check,omitempty"`
    83  	ExperimentReducedIvHeadEntropy bool       `protobuf:"varint,90001,opt,name=experiment_reduced_iv_head_entropy,json=experimentReducedIvHeadEntropy,proto3" json:"experiment_reduced_iv_head_entropy,omitempty"`
    84  }
    85  
    86  func (x *Account) Reset() {
    87  	*x = Account{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_proxy_shadowsocks_config_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *Account) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*Account) ProtoMessage() {}
   100  
   101  func (x *Account) ProtoReflect() protoreflect.Message {
   102  	mi := &file_proxy_shadowsocks_config_proto_msgTypes[0]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
   114  func (*Account) Descriptor() ([]byte, []int) {
   115  	return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *Account) GetPassword() string {
   119  	if x != nil {
   120  		return x.Password
   121  	}
   122  	return ""
   123  }
   124  
   125  func (x *Account) GetCipherType() CipherType {
   126  	if x != nil {
   127  		return x.CipherType
   128  	}
   129  	return CipherType_UNKNOWN
   130  }
   131  
   132  func (x *Account) GetIvCheck() bool {
   133  	if x != nil {
   134  		return x.IvCheck
   135  	}
   136  	return false
   137  }
   138  
   139  func (x *Account) GetExperimentReducedIvHeadEntropy() bool {
   140  	if x != nil {
   141  		return x.ExperimentReducedIvHeadEntropy
   142  	}
   143  	return false
   144  }
   145  
   146  type ServerConfig struct {
   147  	state         protoimpl.MessageState
   148  	sizeCache     protoimpl.SizeCache
   149  	unknownFields protoimpl.UnknownFields
   150  
   151  	// UdpEnabled specified whether or not to enable UDP for Shadowsocks.
   152  	// Deprecated. Use 'network' field.
   153  	//
   154  	// Deprecated: Marked as deprecated in proxy/shadowsocks/config.proto.
   155  	UdpEnabled     bool                      `protobuf:"varint,1,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
   156  	User           *protocol.User            `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
   157  	Network        []net.Network             `protobuf:"varint,3,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
   158  	PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
   159  }
   160  
   161  func (x *ServerConfig) Reset() {
   162  	*x = ServerConfig{}
   163  	if protoimpl.UnsafeEnabled {
   164  		mi := &file_proxy_shadowsocks_config_proto_msgTypes[1]
   165  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   166  		ms.StoreMessageInfo(mi)
   167  	}
   168  }
   169  
   170  func (x *ServerConfig) String() string {
   171  	return protoimpl.X.MessageStringOf(x)
   172  }
   173  
   174  func (*ServerConfig) ProtoMessage() {}
   175  
   176  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
   177  	mi := &file_proxy_shadowsocks_config_proto_msgTypes[1]
   178  	if protoimpl.UnsafeEnabled && x != nil {
   179  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   180  		if ms.LoadMessageInfo() == nil {
   181  			ms.StoreMessageInfo(mi)
   182  		}
   183  		return ms
   184  	}
   185  	return mi.MessageOf(x)
   186  }
   187  
   188  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
   189  func (*ServerConfig) Descriptor() ([]byte, []int) {
   190  	return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{1}
   191  }
   192  
   193  // Deprecated: Marked as deprecated in proxy/shadowsocks/config.proto.
   194  func (x *ServerConfig) GetUdpEnabled() bool {
   195  	if x != nil {
   196  		return x.UdpEnabled
   197  	}
   198  	return false
   199  }
   200  
   201  func (x *ServerConfig) GetUser() *protocol.User {
   202  	if x != nil {
   203  		return x.User
   204  	}
   205  	return nil
   206  }
   207  
   208  func (x *ServerConfig) GetNetwork() []net.Network {
   209  	if x != nil {
   210  		return x.Network
   211  	}
   212  	return nil
   213  }
   214  
   215  func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
   216  	if x != nil {
   217  		return x.PacketEncoding
   218  	}
   219  	return packetaddr.PacketAddrType(0)
   220  }
   221  
   222  type ClientConfig struct {
   223  	state         protoimpl.MessageState
   224  	sizeCache     protoimpl.SizeCache
   225  	unknownFields protoimpl.UnknownFields
   226  
   227  	Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
   228  }
   229  
   230  func (x *ClientConfig) Reset() {
   231  	*x = ClientConfig{}
   232  	if protoimpl.UnsafeEnabled {
   233  		mi := &file_proxy_shadowsocks_config_proto_msgTypes[2]
   234  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   235  		ms.StoreMessageInfo(mi)
   236  	}
   237  }
   238  
   239  func (x *ClientConfig) String() string {
   240  	return protoimpl.X.MessageStringOf(x)
   241  }
   242  
   243  func (*ClientConfig) ProtoMessage() {}
   244  
   245  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   246  	mi := &file_proxy_shadowsocks_config_proto_msgTypes[2]
   247  	if protoimpl.UnsafeEnabled && x != nil {
   248  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   249  		if ms.LoadMessageInfo() == nil {
   250  			ms.StoreMessageInfo(mi)
   251  		}
   252  		return ms
   253  	}
   254  	return mi.MessageOf(x)
   255  }
   256  
   257  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   258  func (*ClientConfig) Descriptor() ([]byte, []int) {
   259  	return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{2}
   260  }
   261  
   262  func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
   263  	if x != nil {
   264  		return x.Server
   265  	}
   266  	return nil
   267  }
   268  
   269  var File_proxy_shadowsocks_config_proto protoreflect.FileDescriptor
   270  
   271  var file_proxy_shadowsocks_config_proto_rawDesc = []byte{
   272  	0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
   273  	0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   274  	0x12, 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   275  	0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x18,
   276  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f,
   277  	0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   278  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70,
   279  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
   280  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65,
   281  	0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
   282  	0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63,
   283  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x07,
   284  	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
   285  	0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
   286  	0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x74, 0x79,
   287  	0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
   288  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64,
   289  	0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79,
   290  	0x70, 0x65, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19,
   291  	0x0a, 0x08, 0x69, 0x76, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
   292  	0x52, 0x07, 0x69, 0x76, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x4c, 0x0a, 0x22, 0x65, 0x78, 0x70,
   293  	0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x5f,
   294  	0x69, 0x76, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18,
   295  	0x91, 0xbf, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d,
   296  	0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x49, 0x76, 0x48, 0x65, 0x61, 0x64,
   297  	0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x22, 0xf7, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76,
   298  	0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f,
   299  	0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18,
   300  	0x01, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x34, 0x0a,
   301  	0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32,
   302  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   303  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
   304  	0x73, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03,
   305  	0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   306  	0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74,
   307  	0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x52, 0x0a,
   308  	0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
   309  	0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
   310  	0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64,
   311  	0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70,
   312  	0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
   313  	0x67, 0x22, 0x52, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   314  	0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28,
   315  	0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
   316  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53,
   317  	0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73,
   318  	0x65, 0x72, 0x76, 0x65, 0x72, 0x2a, 0x5c, 0x0a, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54,
   319  	0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
   320  	0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10,
   321  	0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d,
   322  	0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50,
   323  	0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e,
   324  	0x45, 0x10, 0x04, 0x42, 0x75, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
   325  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64,
   326  	0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75,
   327  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
   328  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
   329  	0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02, 0x1c, 0x56, 0x32,
   330  	0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53,
   331  	0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   332  	0x6f, 0x33,
   333  }
   334  
   335  var (
   336  	file_proxy_shadowsocks_config_proto_rawDescOnce sync.Once
   337  	file_proxy_shadowsocks_config_proto_rawDescData = file_proxy_shadowsocks_config_proto_rawDesc
   338  )
   339  
   340  func file_proxy_shadowsocks_config_proto_rawDescGZIP() []byte {
   341  	file_proxy_shadowsocks_config_proto_rawDescOnce.Do(func() {
   342  		file_proxy_shadowsocks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_config_proto_rawDescData)
   343  	})
   344  	return file_proxy_shadowsocks_config_proto_rawDescData
   345  }
   346  
   347  var file_proxy_shadowsocks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   348  var file_proxy_shadowsocks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   349  var file_proxy_shadowsocks_config_proto_goTypes = []interface{}{
   350  	(CipherType)(0),                 // 0: v2ray.core.proxy.shadowsocks.CipherType
   351  	(*Account)(nil),                 // 1: v2ray.core.proxy.shadowsocks.Account
   352  	(*ServerConfig)(nil),            // 2: v2ray.core.proxy.shadowsocks.ServerConfig
   353  	(*ClientConfig)(nil),            // 3: v2ray.core.proxy.shadowsocks.ClientConfig
   354  	(*protocol.User)(nil),           // 4: v2ray.core.common.protocol.User
   355  	(net.Network)(0),                // 5: v2ray.core.common.net.Network
   356  	(packetaddr.PacketAddrType)(0),  // 6: v2ray.core.net.packetaddr.PacketAddrType
   357  	(*protocol.ServerEndpoint)(nil), // 7: v2ray.core.common.protocol.ServerEndpoint
   358  }
   359  var file_proxy_shadowsocks_config_proto_depIdxs = []int32{
   360  	0, // 0: v2ray.core.proxy.shadowsocks.Account.cipher_type:type_name -> v2ray.core.proxy.shadowsocks.CipherType
   361  	4, // 1: v2ray.core.proxy.shadowsocks.ServerConfig.user:type_name -> v2ray.core.common.protocol.User
   362  	5, // 2: v2ray.core.proxy.shadowsocks.ServerConfig.network:type_name -> v2ray.core.common.net.Network
   363  	6, // 3: v2ray.core.proxy.shadowsocks.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
   364  	7, // 4: v2ray.core.proxy.shadowsocks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
   365  	5, // [5:5] is the sub-list for method output_type
   366  	5, // [5:5] is the sub-list for method input_type
   367  	5, // [5:5] is the sub-list for extension type_name
   368  	5, // [5:5] is the sub-list for extension extendee
   369  	0, // [0:5] is the sub-list for field type_name
   370  }
   371  
   372  func init() { file_proxy_shadowsocks_config_proto_init() }
   373  func file_proxy_shadowsocks_config_proto_init() {
   374  	if File_proxy_shadowsocks_config_proto != nil {
   375  		return
   376  	}
   377  	if !protoimpl.UnsafeEnabled {
   378  		file_proxy_shadowsocks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   379  			switch v := v.(*Account); i {
   380  			case 0:
   381  				return &v.state
   382  			case 1:
   383  				return &v.sizeCache
   384  			case 2:
   385  				return &v.unknownFields
   386  			default:
   387  				return nil
   388  			}
   389  		}
   390  		file_proxy_shadowsocks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   391  			switch v := v.(*ServerConfig); i {
   392  			case 0:
   393  				return &v.state
   394  			case 1:
   395  				return &v.sizeCache
   396  			case 2:
   397  				return &v.unknownFields
   398  			default:
   399  				return nil
   400  			}
   401  		}
   402  		file_proxy_shadowsocks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   403  			switch v := v.(*ClientConfig); i {
   404  			case 0:
   405  				return &v.state
   406  			case 1:
   407  				return &v.sizeCache
   408  			case 2:
   409  				return &v.unknownFields
   410  			default:
   411  				return nil
   412  			}
   413  		}
   414  	}
   415  	type x struct{}
   416  	out := protoimpl.TypeBuilder{
   417  		File: protoimpl.DescBuilder{
   418  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   419  			RawDescriptor: file_proxy_shadowsocks_config_proto_rawDesc,
   420  			NumEnums:      1,
   421  			NumMessages:   3,
   422  			NumExtensions: 0,
   423  			NumServices:   0,
   424  		},
   425  		GoTypes:           file_proxy_shadowsocks_config_proto_goTypes,
   426  		DependencyIndexes: file_proxy_shadowsocks_config_proto_depIdxs,
   427  		EnumInfos:         file_proxy_shadowsocks_config_proto_enumTypes,
   428  		MessageInfos:      file_proxy_shadowsocks_config_proto_msgTypes,
   429  	}.Build()
   430  	File_proxy_shadowsocks_config_proto = out.File
   431  	file_proxy_shadowsocks_config_proto_rawDesc = nil
   432  	file_proxy_shadowsocks_config_proto_goTypes = nil
   433  	file_proxy_shadowsocks_config_proto_depIdxs = nil
   434  }