user.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package protocol
  2. import (
  3. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  4. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  5. anypb "google.golang.org/protobuf/types/known/anypb"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  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. // User is a generic user for all procotols.
  17. type User struct {
  18. state protoimpl.MessageState `protogen:"open.v1"`
  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
  22. // the proxies.
  23. Account *anypb.Any `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *User) Reset() {
  28. *x = User{}
  29. mi := &file_common_protocol_user_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *User) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*User) ProtoMessage() {}
  37. func (x *User) ProtoReflect() protoreflect.Message {
  38. mi := &file_common_protocol_user_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  49. func (*User) Descriptor() ([]byte, []int) {
  50. return file_common_protocol_user_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *User) GetLevel() uint32 {
  53. if x != nil {
  54. return x.Level
  55. }
  56. return 0
  57. }
  58. func (x *User) GetEmail() string {
  59. if x != nil {
  60. return x.Email
  61. }
  62. return ""
  63. }
  64. func (x *User) GetAccount() *anypb.Any {
  65. if x != nil {
  66. return x.Account
  67. }
  68. return nil
  69. }
  70. var File_common_protocol_user_proto protoreflect.FileDescriptor
  71. var file_common_protocol_user_proto_rawDesc = string([]byte{
  72. 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  73. 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32,
  74. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  75. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  76. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72,
  77. 0x6f, 0x74, 0x6f, 0x22, 0x62, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c,
  78. 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65,
  79. 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  80. 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2e, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
  81. 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  82. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07,
  83. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  84. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  85. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74,
  86. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  87. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  88. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 0x56, 0x32,
  89. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  90. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  91. })
  92. var (
  93. file_common_protocol_user_proto_rawDescOnce sync.Once
  94. file_common_protocol_user_proto_rawDescData []byte
  95. )
  96. func file_common_protocol_user_proto_rawDescGZIP() []byte {
  97. file_common_protocol_user_proto_rawDescOnce.Do(func() {
  98. file_common_protocol_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_protocol_user_proto_rawDesc), len(file_common_protocol_user_proto_rawDesc)))
  99. })
  100. return file_common_protocol_user_proto_rawDescData
  101. }
  102. var file_common_protocol_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  103. var file_common_protocol_user_proto_goTypes = []any{
  104. (*User)(nil), // 0: v2ray.core.common.protocol.User
  105. (*anypb.Any)(nil), // 1: google.protobuf.Any
  106. }
  107. var file_common_protocol_user_proto_depIdxs = []int32{
  108. 1, // 0: v2ray.core.common.protocol.User.account:type_name -> google.protobuf.Any
  109. 1, // [1:1] is the sub-list for method output_type
  110. 1, // [1:1] is the sub-list for method input_type
  111. 1, // [1:1] is the sub-list for extension type_name
  112. 1, // [1:1] is the sub-list for extension extendee
  113. 0, // [0:1] is the sub-list for field type_name
  114. }
  115. func init() { file_common_protocol_user_proto_init() }
  116. func file_common_protocol_user_proto_init() {
  117. if File_common_protocol_user_proto != nil {
  118. return
  119. }
  120. type x struct{}
  121. out := protoimpl.TypeBuilder{
  122. File: protoimpl.DescBuilder{
  123. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  124. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_protocol_user_proto_rawDesc), len(file_common_protocol_user_proto_rawDesc)),
  125. NumEnums: 0,
  126. NumMessages: 1,
  127. NumExtensions: 0,
  128. NumServices: 0,
  129. },
  130. GoTypes: file_common_protocol_user_proto_goTypes,
  131. DependencyIndexes: file_common_protocol_user_proto_depIdxs,
  132. MessageInfos: file_common_protocol_user_proto_msgTypes,
  133. }.Build()
  134. File_common_protocol_user_proto = out.File
  135. file_common_protocol_user_proto_goTypes = nil
  136. file_common_protocol_user_proto_depIdxs = nil
  137. }