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