user.pb.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package protocol
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. serial "v2ray.com/core/common/serial"
  7. )
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // User is a generic user for all procotols.
  18. type User struct {
  19. Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
  20. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
  21. // Protocol specific account information. Must be the account proto in one of the proxies.
  22. Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *User) Reset() { *m = User{} }
  28. func (m *User) String() string { return proto.CompactTextString(m) }
  29. func (*User) ProtoMessage() {}
  30. func (*User) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_9da52c16030369bd, []int{0}
  32. }
  33. func (m *User) XXX_Unmarshal(b []byte) error {
  34. return xxx_messageInfo_User.Unmarshal(m, b)
  35. }
  36. func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. return xxx_messageInfo_User.Marshal(b, m, deterministic)
  38. }
  39. func (m *User) XXX_Merge(src proto.Message) {
  40. xxx_messageInfo_User.Merge(m, src)
  41. }
  42. func (m *User) XXX_Size() int {
  43. return xxx_messageInfo_User.Size(m)
  44. }
  45. func (m *User) XXX_DiscardUnknown() {
  46. xxx_messageInfo_User.DiscardUnknown(m)
  47. }
  48. var xxx_messageInfo_User proto.InternalMessageInfo
  49. func (m *User) GetLevel() uint32 {
  50. if m != nil {
  51. return m.Level
  52. }
  53. return 0
  54. }
  55. func (m *User) GetEmail() string {
  56. if m != nil {
  57. return m.Email
  58. }
  59. return ""
  60. }
  61. func (m *User) GetAccount() *serial.TypedMessage {
  62. if m != nil {
  63. return m.Account
  64. }
  65. return nil
  66. }
  67. func init() {
  68. proto.RegisterType((*User)(nil), "v2ray.core.common.protocol.User")
  69. }
  70. func init() {
  71. proto.RegisterFile("v2ray.com/core/common/protocol/user.proto", fileDescriptor_9da52c16030369bd)
  72. }
  73. var fileDescriptor_9da52c16030369bd = []byte{
  74. // 218 bytes of a gzipped FileDescriptorProto
  75. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2c, 0x33, 0x2a, 0x4a,
  76. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  77. 0xcf, 0xd3, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0xce, 0xcf, 0xd1, 0x2f, 0x2d, 0x4e, 0x2d, 0xd2,
  78. 0x03, 0xf3, 0x84, 0xa4, 0x60, 0x4a, 0x8b, 0x52, 0xf5, 0x20, 0xca, 0xf4, 0x60, 0xca, 0xa4, 0x0c,
  79. 0xb0, 0x1b, 0x53, 0x9c, 0x5a, 0x94, 0x99, 0x98, 0xa3, 0x5f, 0x52, 0x59, 0x90, 0x9a, 0x12, 0x9f,
  80. 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x0a, 0xd1, 0xa4, 0x54, 0xc2, 0xc5, 0x12, 0x5a, 0x9c, 0x5a,
  81. 0x24, 0x24, 0xc2, 0xc5, 0x9a, 0x93, 0x5a, 0x96, 0x9a, 0x23, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x1b,
  82. 0x04, 0xe1, 0x80, 0x44, 0x53, 0x73, 0x13, 0x33, 0x73, 0x24, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83,
  83. 0x20, 0x1c, 0x21, 0x07, 0x2e, 0xf6, 0xc4, 0xe4, 0xe4, 0xfc, 0xd2, 0xbc, 0x12, 0x09, 0x66, 0x05,
  84. 0x46, 0x0d, 0x6e, 0x23, 0x35, 0x3d, 0x4c, 0x37, 0x41, 0xec, 0xd4, 0x0b, 0x01, 0xd9, 0xe9, 0x0b,
  85. 0xb1, 0x32, 0x08, 0xa6, 0xcd, 0xc9, 0x93, 0x4b, 0x2e, 0x39, 0x3f, 0x57, 0x0f, 0xb7, 0x4f, 0x02,
  86. 0x18, 0xa3, 0x38, 0x60, 0xec, 0x55, 0x4c, 0x52, 0x61, 0x46, 0x41, 0x89, 0x95, 0x7a, 0xce, 0x20,
  87. 0x85, 0xce, 0x10, 0x85, 0x01, 0x50, 0xc9, 0x24, 0x36, 0xb0, 0x32, 0x63, 0x40, 0x00, 0x00, 0x00,
  88. 0xff, 0xff, 0x02, 0xf5, 0x15, 0xcc, 0x42, 0x01, 0x00, 0x00,
  89. }