user.pb.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package protocol
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. type User struct {
  11. Level uint32 `protobuf:"varint,1,opt,name=level" json:"level,omitempty"`
  12. Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
  13. // Protocol specific account information.
  14. Account *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,3,opt,name=account" json:"account,omitempty"`
  15. }
  16. func (m *User) Reset() { *m = User{} }
  17. func (m *User) String() string { return proto.CompactTextString(m) }
  18. func (*User) ProtoMessage() {}
  19. func (*User) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
  20. func (m *User) GetLevel() uint32 {
  21. if m != nil {
  22. return m.Level
  23. }
  24. return 0
  25. }
  26. func (m *User) GetEmail() string {
  27. if m != nil {
  28. return m.Email
  29. }
  30. return ""
  31. }
  32. func (m *User) GetAccount() *v2ray_core_common_serial.TypedMessage {
  33. if m != nil {
  34. return m.Account
  35. }
  36. return nil
  37. }
  38. func init() {
  39. proto.RegisterType((*User)(nil), "v2ray.core.common.protocol.User")
  40. }
  41. func init() { proto.RegisterFile("v2ray.com/core/common/protocol/user.proto", fileDescriptor3) }
  42. var fileDescriptor3 = []byte{
  43. // 222 bytes of a gzipped FileDescriptorProto
  44. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x8f, 0xcf, 0x4a, 0xc4, 0x30,
  45. 0x10, 0xc6, 0xc9, 0xfa, 0x77, 0x23, 0x5e, 0x8a, 0x87, 0xd2, 0x83, 0x14, 0x0f, 0x52, 0x2f, 0x13,
  46. 0xa9, 0x2f, 0x20, 0xbb, 0x67, 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