github.com/EagleQL/Xray-core@v1.4.3/proxy/shadowsocks/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: proxy/shadowsocks/config.proto 6 7 package shadowsocks 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 net "github.com/xtls/xray-core/common/net" 12 protocol "github.com/xtls/xray-core/common/protocol" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 type CipherType int32 31 32 const ( 33 CipherType_UNKNOWN CipherType = 0 34 CipherType_AES_128_CFB CipherType = 1 35 CipherType_AES_256_CFB CipherType = 2 36 CipherType_CHACHA20 CipherType = 3 37 CipherType_CHACHA20_IETF CipherType = 4 38 CipherType_AES_128_GCM CipherType = 5 39 CipherType_AES_256_GCM CipherType = 6 40 CipherType_CHACHA20_POLY1305 CipherType = 7 41 CipherType_NONE CipherType = 8 42 ) 43 44 // Enum value maps for CipherType. 45 var ( 46 CipherType_name = map[int32]string{ 47 0: "UNKNOWN", 48 1: "AES_128_CFB", 49 2: "AES_256_CFB", 50 3: "CHACHA20", 51 4: "CHACHA20_IETF", 52 5: "AES_128_GCM", 53 6: "AES_256_GCM", 54 7: "CHACHA20_POLY1305", 55 8: "NONE", 56 } 57 CipherType_value = map[string]int32{ 58 "UNKNOWN": 0, 59 "AES_128_CFB": 1, 60 "AES_256_CFB": 2, 61 "CHACHA20": 3, 62 "CHACHA20_IETF": 4, 63 "AES_128_GCM": 5, 64 "AES_256_GCM": 6, 65 "CHACHA20_POLY1305": 7, 66 "NONE": 8, 67 } 68 ) 69 70 func (x CipherType) Enum() *CipherType { 71 p := new(CipherType) 72 *p = x 73 return p 74 } 75 76 func (x CipherType) String() string { 77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 78 } 79 80 func (CipherType) Descriptor() protoreflect.EnumDescriptor { 81 return file_proxy_shadowsocks_config_proto_enumTypes[0].Descriptor() 82 } 83 84 func (CipherType) Type() protoreflect.EnumType { 85 return &file_proxy_shadowsocks_config_proto_enumTypes[0] 86 } 87 88 func (x CipherType) Number() protoreflect.EnumNumber { 89 return protoreflect.EnumNumber(x) 90 } 91 92 // Deprecated: Use CipherType.Descriptor instead. 93 func (CipherType) EnumDescriptor() ([]byte, []int) { 94 return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0} 95 } 96 97 type Account struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` 103 CipherType CipherType `protobuf:"varint,2,opt,name=cipher_type,json=cipherType,proto3,enum=xray.proxy.shadowsocks.CipherType" json:"cipher_type,omitempty"` 104 } 105 106 func (x *Account) Reset() { 107 *x = Account{} 108 if protoimpl.UnsafeEnabled { 109 mi := &file_proxy_shadowsocks_config_proto_msgTypes[0] 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 ms.StoreMessageInfo(mi) 112 } 113 } 114 115 func (x *Account) String() string { 116 return protoimpl.X.MessageStringOf(x) 117 } 118 119 func (*Account) ProtoMessage() {} 120 121 func (x *Account) ProtoReflect() protoreflect.Message { 122 mi := &file_proxy_shadowsocks_config_proto_msgTypes[0] 123 if protoimpl.UnsafeEnabled && x != nil { 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 if ms.LoadMessageInfo() == nil { 126 ms.StoreMessageInfo(mi) 127 } 128 return ms 129 } 130 return mi.MessageOf(x) 131 } 132 133 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 134 func (*Account) Descriptor() ([]byte, []int) { 135 return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0} 136 } 137 138 func (x *Account) GetPassword() string { 139 if x != nil { 140 return x.Password 141 } 142 return "" 143 } 144 145 func (x *Account) GetCipherType() CipherType { 146 if x != nil { 147 return x.CipherType 148 } 149 return CipherType_UNKNOWN 150 } 151 152 type ServerConfig struct { 153 state protoimpl.MessageState 154 sizeCache protoimpl.SizeCache 155 unknownFields protoimpl.UnknownFields 156 157 Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` 158 Network []net.Network `protobuf:"varint,2,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,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 func (x *ServerConfig) GetUsers() []*protocol.User { 194 if x != nil { 195 return x.Users 196 } 197 return nil 198 } 199 200 func (x *ServerConfig) GetNetwork() []net.Network { 201 if x != nil { 202 return x.Network 203 } 204 return nil 205 } 206 207 type ClientConfig struct { 208 state protoimpl.MessageState 209 sizeCache protoimpl.SizeCache 210 unknownFields protoimpl.UnknownFields 211 212 Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` 213 } 214 215 func (x *ClientConfig) Reset() { 216 *x = ClientConfig{} 217 if protoimpl.UnsafeEnabled { 218 mi := &file_proxy_shadowsocks_config_proto_msgTypes[2] 219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 220 ms.StoreMessageInfo(mi) 221 } 222 } 223 224 func (x *ClientConfig) String() string { 225 return protoimpl.X.MessageStringOf(x) 226 } 227 228 func (*ClientConfig) ProtoMessage() {} 229 230 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 231 mi := &file_proxy_shadowsocks_config_proto_msgTypes[2] 232 if protoimpl.UnsafeEnabled && x != nil { 233 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 234 if ms.LoadMessageInfo() == nil { 235 ms.StoreMessageInfo(mi) 236 } 237 return ms 238 } 239 return mi.MessageOf(x) 240 } 241 242 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 243 func (*ClientConfig) Descriptor() ([]byte, []int) { 244 return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{2} 245 } 246 247 func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { 248 if x != nil { 249 return x.Server 250 } 251 return nil 252 } 253 254 var File_proxy_shadowsocks_config_proto protoreflect.FileDescriptor 255 256 var file_proxy_shadowsocks_config_proto_rawDesc = []byte{ 257 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 258 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 259 0x12, 0x16, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 260 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 261 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 262 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 263 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 264 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 265 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 266 0x6f, 0x22, 0x6a, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 267 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 268 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x43, 0x0a, 0x0b, 0x63, 0x69, 0x70, 0x68, 269 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 270 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 271 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 272 0x65, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, 0x74, 0x0a, 273 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x0a, 274 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 275 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 276 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 277 0x32, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 278 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 279 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 280 0x6f, 0x72, 0x6b, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 281 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 282 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 283 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 284 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 285 0x72, 0x2a, 0x9f, 0x01, 0x0a, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 286 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 287 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x43, 0x46, 0x42, 0x10, 0x01, 0x12, 0x0f, 288 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x43, 0x46, 0x42, 0x10, 0x02, 0x12, 289 0x0c, 0x0a, 0x08, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x10, 0x03, 0x12, 0x11, 0x0a, 290 0x0d, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x49, 0x45, 0x54, 0x46, 0x10, 0x04, 291 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 292 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d, 293 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 294 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x07, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 295 0x45, 0x10, 0x08, 0x42, 0x64, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 296 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 297 0x73, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 298 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 299 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 300 0xaa, 0x02, 0x16, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 301 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 302 0x33, 303 } 304 305 var ( 306 file_proxy_shadowsocks_config_proto_rawDescOnce sync.Once 307 file_proxy_shadowsocks_config_proto_rawDescData = file_proxy_shadowsocks_config_proto_rawDesc 308 ) 309 310 func file_proxy_shadowsocks_config_proto_rawDescGZIP() []byte { 311 file_proxy_shadowsocks_config_proto_rawDescOnce.Do(func() { 312 file_proxy_shadowsocks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_config_proto_rawDescData) 313 }) 314 return file_proxy_shadowsocks_config_proto_rawDescData 315 } 316 317 var file_proxy_shadowsocks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 318 var file_proxy_shadowsocks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 319 var file_proxy_shadowsocks_config_proto_goTypes = []interface{}{ 320 (CipherType)(0), // 0: xray.proxy.shadowsocks.CipherType 321 (*Account)(nil), // 1: xray.proxy.shadowsocks.Account 322 (*ServerConfig)(nil), // 2: xray.proxy.shadowsocks.ServerConfig 323 (*ClientConfig)(nil), // 3: xray.proxy.shadowsocks.ClientConfig 324 (*protocol.User)(nil), // 4: xray.common.protocol.User 325 (net.Network)(0), // 5: xray.common.net.Network 326 (*protocol.ServerEndpoint)(nil), // 6: xray.common.protocol.ServerEndpoint 327 } 328 var file_proxy_shadowsocks_config_proto_depIdxs = []int32{ 329 0, // 0: xray.proxy.shadowsocks.Account.cipher_type:type_name -> xray.proxy.shadowsocks.CipherType 330 4, // 1: xray.proxy.shadowsocks.ServerConfig.users:type_name -> xray.common.protocol.User 331 5, // 2: xray.proxy.shadowsocks.ServerConfig.network:type_name -> xray.common.net.Network 332 6, // 3: xray.proxy.shadowsocks.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint 333 4, // [4:4] is the sub-list for method output_type 334 4, // [4:4] is the sub-list for method input_type 335 4, // [4:4] is the sub-list for extension type_name 336 4, // [4:4] is the sub-list for extension extendee 337 0, // [0:4] is the sub-list for field type_name 338 } 339 340 func init() { file_proxy_shadowsocks_config_proto_init() } 341 func file_proxy_shadowsocks_config_proto_init() { 342 if File_proxy_shadowsocks_config_proto != nil { 343 return 344 } 345 if !protoimpl.UnsafeEnabled { 346 file_proxy_shadowsocks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 347 switch v := v.(*Account); i { 348 case 0: 349 return &v.state 350 case 1: 351 return &v.sizeCache 352 case 2: 353 return &v.unknownFields 354 default: 355 return nil 356 } 357 } 358 file_proxy_shadowsocks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 359 switch v := v.(*ServerConfig); i { 360 case 0: 361 return &v.state 362 case 1: 363 return &v.sizeCache 364 case 2: 365 return &v.unknownFields 366 default: 367 return nil 368 } 369 } 370 file_proxy_shadowsocks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 371 switch v := v.(*ClientConfig); i { 372 case 0: 373 return &v.state 374 case 1: 375 return &v.sizeCache 376 case 2: 377 return &v.unknownFields 378 default: 379 return nil 380 } 381 } 382 } 383 type x struct{} 384 out := protoimpl.TypeBuilder{ 385 File: protoimpl.DescBuilder{ 386 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 387 RawDescriptor: file_proxy_shadowsocks_config_proto_rawDesc, 388 NumEnums: 1, 389 NumMessages: 3, 390 NumExtensions: 0, 391 NumServices: 0, 392 }, 393 GoTypes: file_proxy_shadowsocks_config_proto_goTypes, 394 DependencyIndexes: file_proxy_shadowsocks_config_proto_depIdxs, 395 EnumInfos: file_proxy_shadowsocks_config_proto_enumTypes, 396 MessageInfos: file_proxy_shadowsocks_config_proto_msgTypes, 397 }.Build() 398 File_proxy_shadowsocks_config_proto = out.File 399 file_proxy_shadowsocks_config_proto_rawDesc = nil 400 file_proxy_shadowsocks_config_proto_goTypes = nil 401 file_proxy_shadowsocks_config_proto_depIdxs = nil 402 }