user.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. package protocol
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. serial "v2ray.com/core/common/serial"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. // User is a generic user for all procotols.
  20. type User struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
  25. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
  26. // Protocol specific account information. Must be the account proto in one of the proxies.
  27. Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  28. }
  29. func (x *User) Reset() {
  30. *x = User{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_v2ray_com_core_common_protocol_user_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *User) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*User) ProtoMessage() {}
  41. func (x *User) ProtoReflect() protoreflect.Message {
  42. mi := &file_v2ray_com_core_common_protocol_user_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  53. func (*User) Descriptor() ([]byte, []int) {
  54. return file_v2ray_com_core_common_protocol_user_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *User) GetLevel() uint32 {
  57. if x != nil {
  58. return x.Level
  59. }
  60. return 0
  61. }
  62. func (x *User) GetEmail() string {
  63. if x != nil {
  64. return x.Email
  65. }
  66. return ""
  67. }
  68. func (x *User) GetAccount() *serial.TypedMessage {
  69. if x != nil {
  70. return x.Account
  71. }
  72. return nil
  73. }
  74. var File_v2ray_com_core_common_protocol_user_proto protoreflect.FileDescriptor
  75. var file_v2ray_com_core_common_protocol_user_proto_rawDesc = []byte{
  76. 0x0a, 0x29, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  77. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  78. 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 0x72,
  79. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  80. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x30, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  81. 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73,
  82. 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73,
  83. 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x04, 0x55, 0x73, 0x65,
  84. 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  85. 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c,
  86. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x40, 0x0a,
  87. 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26,
  88. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  89. 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d,
  90. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42,
  91. 0x49, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  92. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  93. 0x6c, 0x50, 0x01, 0x5a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a,
  94. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
  95. 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  96. 0x6f, 0x33,
  97. }
  98. var (
  99. file_v2ray_com_core_common_protocol_user_proto_rawDescOnce sync.Once
  100. file_v2ray_com_core_common_protocol_user_proto_rawDescData = file_v2ray_com_core_common_protocol_user_proto_rawDesc
  101. )
  102. func file_v2ray_com_core_common_protocol_user_proto_rawDescGZIP() []byte {
  103. file_v2ray_com_core_common_protocol_user_proto_rawDescOnce.Do(func() {
  104. file_v2ray_com_core_common_protocol_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_common_protocol_user_proto_rawDescData)
  105. })
  106. return file_v2ray_com_core_common_protocol_user_proto_rawDescData
  107. }
  108. var file_v2ray_com_core_common_protocol_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  109. var file_v2ray_com_core_common_protocol_user_proto_goTypes = []interface{}{
  110. (*User)(nil), // 0: v2ray.core.common.protocol.User
  111. (*serial.TypedMessage)(nil), // 1: v2ray.core.common.serial.TypedMessage
  112. }
  113. var file_v2ray_com_core_common_protocol_user_proto_depIdxs = []int32{
  114. 1, // 0: v2ray.core.common.protocol.User.account:type_name -> v2ray.core.common.serial.TypedMessage
  115. 1, // [1:1] is the sub-list for method output_type
  116. 1, // [1:1] is the sub-list for method input_type
  117. 1, // [1:1] is the sub-list for extension type_name
  118. 1, // [1:1] is the sub-list for extension extendee
  119. 0, // [0:1] is the sub-list for field type_name
  120. }
  121. func init() { file_v2ray_com_core_common_protocol_user_proto_init() }
  122. func file_v2ray_com_core_common_protocol_user_proto_init() {
  123. if File_v2ray_com_core_common_protocol_user_proto != nil {
  124. return
  125. }
  126. if !protoimpl.UnsafeEnabled {
  127. file_v2ray_com_core_common_protocol_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  128. switch v := v.(*User); i {
  129. case 0:
  130. return &v.state
  131. case 1:
  132. return &v.sizeCache
  133. case 2:
  134. return &v.unknownFields
  135. default:
  136. return nil
  137. }
  138. }
  139. }
  140. type x struct{}
  141. out := protoimpl.TypeBuilder{
  142. File: protoimpl.DescBuilder{
  143. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  144. RawDescriptor: file_v2ray_com_core_common_protocol_user_proto_rawDesc,
  145. NumEnums: 0,
  146. NumMessages: 1,
  147. NumExtensions: 0,
  148. NumServices: 0,
  149. },
  150. GoTypes: file_v2ray_com_core_common_protocol_user_proto_goTypes,
  151. DependencyIndexes: file_v2ray_com_core_common_protocol_user_proto_depIdxs,
  152. MessageInfos: file_v2ray_com_core_common_protocol_user_proto_msgTypes,
  153. }.Build()
  154. File_v2ray_com_core_common_protocol_user_proto = out.File
  155. file_v2ray_com_core_common_protocol_user_proto_rawDesc = nil
  156. file_v2ray_com_core_common_protocol_user_proto_goTypes = nil
  157. file_v2ray_com_core_common_protocol_user_proto_depIdxs = nil
  158. }