config.pb.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/proxy/shadowsocks/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package shadowsocks is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/proxy/shadowsocks/config.proto
  8. It has these top-level messages:
  9. Account
  10. Config
  11. */
  12. package shadowsocks
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import com_v2ray_core_common_protocol "v2ray.com/core/common/protocol"
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type Config_Cipher int32
  27. const (
  28. Config_UNKNOWN Config_Cipher = 0
  29. Config_AES_128_CFB Config_Cipher = 1
  30. Config_AES_256_CFB Config_Cipher = 2
  31. Config_CHACHA20 Config_Cipher = 3
  32. Config_CHACHA20_IEFT Config_Cipher = 4
  33. )
  34. var Config_Cipher_name = map[int32]string{
  35. 0: "UNKNOWN",
  36. 1: "AES_128_CFB",
  37. 2: "AES_256_CFB",
  38. 3: "CHACHA20",
  39. 4: "CHACHA20_IEFT",
  40. }
  41. var Config_Cipher_value = map[string]int32{
  42. "UNKNOWN": 0,
  43. "AES_128_CFB": 1,
  44. "AES_256_CFB": 2,
  45. "CHACHA20": 3,
  46. "CHACHA20_IEFT": 4,
  47. }
  48. func (x Config_Cipher) String() string {
  49. return proto.EnumName(Config_Cipher_name, int32(x))
  50. }
  51. func (Config_Cipher) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
  52. type Account struct {
  53. Password string `protobuf:"bytes,1,opt,name=password" json:"password,omitempty"`
  54. }
  55. func (m *Account) Reset() { *m = Account{} }
  56. func (m *Account) String() string { return proto.CompactTextString(m) }
  57. func (*Account) ProtoMessage() {}
  58. func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  59. type Config struct {
  60. Cipher Config_Cipher `protobuf:"varint,1,opt,name=cipher,enum=com.v2ray.core.proxy.shadowsocks.Config_Cipher" json:"cipher,omitempty"`
  61. UdpEnabled bool `protobuf:"varint,2,opt,name=udp_enabled,json=udpEnabled" json:"udp_enabled,omitempty"`
  62. User *com_v2ray_core_common_protocol.User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"`
  63. }
  64. func (m *Config) Reset() { *m = Config{} }
  65. func (m *Config) String() string { return proto.CompactTextString(m) }
  66. func (*Config) ProtoMessage() {}
  67. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  68. func (m *Config) GetUser() *com_v2ray_core_common_protocol.User {
  69. if m != nil {
  70. return m.User
  71. }
  72. return nil
  73. }
  74. func init() {
  75. proto.RegisterType((*Account)(nil), "com.v2ray.core.proxy.shadowsocks.Account")
  76. proto.RegisterType((*Config)(nil), "com.v2ray.core.proxy.shadowsocks.Config")
  77. proto.RegisterEnum("com.v2ray.core.proxy.shadowsocks.Config_Cipher", Config_Cipher_name, Config_Cipher_value)
  78. }
  79. func init() { proto.RegisterFile("v2ray.com/core/proxy/shadowsocks/config.proto", fileDescriptor0) }
  80. var fileDescriptor0 = []byte{
  81. // 308 bytes of a gzipped FileDescriptorProto
  82. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x8f, 0x41, 0x4f, 0xc2, 0x40,
  83. 0x14, 0x84, 0x2d, 0x90, 0x82, 0xaf, 0xa2, 0x75, 0x4f, 0x84, 0x8b, 0x0d, 0xd1, 0x04, 0x0f, 0xee,
  84. 0x6a, 0x8d, 0x86, 0x6b, 0x69, 0x40, 0x8c, 0x09, 0x26, 0x55, 0xa2, 0xf1, 0xd2, 0x94, 0xed, 0x2a,
  85. 0x44, 0xda, 0xd7, 0xec, 0x52, 0x91, 0x3f, 0xe0, 0xef, 0x36, 0x6e, 0xad, 0x21, 0x5c, 0x3c, 0xbe,
  86. 0xc9, 0x7c, 0x6f, 0x66, 0xe0, 0xec, 0xc3, 0x95, 0xd1, 0x9a, 0x72, 0x4c, 0x18, 0x47, 0x29, 0x58,
  87. 0x26, 0xf1, 0x73, 0xcd, 0xd4, 0x2c, 0x8a, 0x71, 0xa5, 0x90, 0xbf, 0x2b, 0xc6, 0x31, 0x7d, 0x9d,
  88. 0xbf, 0xd1, 0x4c, 0xe2, 0x12, 0x89, 0xc3, 0x31, 0xa1, 0x25, 0x22, 0x05, 0xd5, 0x76, 0xba, 0x61,
  89. 0x6f, 0x9f, 0x6e, 0x3d, 0xe4, 0x98, 0x24, 0x98, 0x32, 0x8d, 0x73, 0x5c, 0xb0, 0x5c, 0x09, 0x59,
  90. 0x3c, 0xeb, 0x9c, 0x40, 0xdd, 0xe3, 0x1c, 0xf3, 0x74, 0x49, 0xda, 0xd0, 0xc8, 0x22, 0xa5, 0x56,
  91. 0x28, 0xe3, 0x96, 0xe1, 0x18, 0xdd, 0xdd, 0xe0, 0xef, 0xee, 0x7c, 0x55, 0xc0, 0xf4, 0x75, 0x09,
  92. 0x72, 0x03, 0x26, 0x9f, 0x67, 0x33, 0x21, 0xb5, 0x69, 0xdf, 0x65, 0xf4, 0xbf, 0x3e, 0xb4, 0x20,
  93. 0xa9, 0xaf, 0xb1, 0xe0, 0x17, 0x27, 0x47, 0x60, 0xe5, 0x71, 0x16, 0x8a, 0x34, 0x9a, 0x2e, 0x44,
  94. 0xdc, 0xaa, 0x38, 0x46, 0xb7, 0x11, 0x40, 0x1e, 0x67, 0x83, 0x42, 0x21, 0x3d, 0xa8, 0xfd, 0x34,
  95. 0x6d, 0x55, 0x1d, 0xa3, 0x6b, 0xb9, 0xc7, 0xdb, 0x39, 0xc5, 0x2a, 0x5a, 0xae, 0xa2, 0x13, 0x25,
  96. 0x64, 0xa0, 0x89, 0xce, 0x33, 0x98, 0x45, 0x18, 0xb1, 0xa0, 0x3e, 0x19, 0xdf, 0x8d, 0xef, 0x9f,
  97. 0xc6, 0xf6, 0x0e, 0x39, 0x00, 0xcb, 0x1b, 0x3c, 0x84, 0x17, 0x6e, 0x2f, 0xf4, 0x87, 0x7d, 0xdb,
  98. 0x28, 0x05, 0xf7, 0xea, 0x5a, 0x0b, 0x15, 0xb2, 0x07, 0x0d, 0x7f, 0xe4, 0xf9, 0x23, 0xcf, 0x3d,
  99. 0xb7, 0xab, 0xe4, 0x10, 0x9a, 0xe5, 0x15, 0xde, 0x0e, 0x86, 0x8f, 0x76, 0xad, 0xdf, 0x7c, 0xb1,
  100. 0x36, 0x96, 0x4d, 0x4d, 0x9d, 0x7e, 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xee, 0x41, 0x94,
  101. 0xc3, 0x01, 0x00, 0x00,
  102. }