user.pb.go 6.6 KB

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