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