user.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: common/protocol/user.proto
  6. package protocol
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  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. // User is a generic user for all protocols.
  22. type User struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  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
  27. // the proxies.
  28. Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  29. unknownFields protoimpl.UnknownFields
  30. sizeCache protoimpl.SizeCache
  31. }
  32. func (x *User) Reset() {
  33. *x = User{}
  34. mi := &file_common_protocol_user_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *User) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*User) ProtoMessage() {}
  42. func (x *User) ProtoReflect() protoreflect.Message {
  43. mi := &file_common_protocol_user_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  54. func (*User) Descriptor() ([]byte, []int) {
  55. return file_common_protocol_user_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *User) GetLevel() uint32 {
  58. if x != nil {
  59. return x.Level
  60. }
  61. return 0
  62. }
  63. func (x *User) GetEmail() string {
  64. if x != nil {
  65. return x.Email
  66. }
  67. return ""
  68. }
  69. func (x *User) GetAccount() *serial.TypedMessage {
  70. if x != nil {
  71. return x.Account
  72. }
  73. return nil
  74. }
  75. var File_common_protocol_user_proto protoreflect.FileDescriptor
  76. const file_common_protocol_user_proto_rawDesc = "" +
  77. "\n" +
  78. "\x1acommon/protocol/user.proto\x12\x14xray.common.protocol\x1a!common/serial/typed_message.proto\"n\n" +
  79. "\x04User\x12\x14\n" +
  80. "\x05level\x18\x01 \x01(\rR\x05level\x12\x14\n" +
  81. "\x05email\x18\x02 \x01(\tR\x05email\x12:\n" +
  82. "\aaccount\x18\x03 \x01(\v2 .xray.common.serial.TypedMessageR\aaccountB^\n" +
  83. "\x18com.xray.common.protocolP\x01Z)github.com/xtls/xray-core/common/protocol\xaa\x02\x14Xray.Common.Protocolb\x06proto3"
  84. var (
  85. file_common_protocol_user_proto_rawDescOnce sync.Once
  86. file_common_protocol_user_proto_rawDescData []byte
  87. )
  88. func file_common_protocol_user_proto_rawDescGZIP() []byte {
  89. file_common_protocol_user_proto_rawDescOnce.Do(func() {
  90. 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)))
  91. })
  92. return file_common_protocol_user_proto_rawDescData
  93. }
  94. var file_common_protocol_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  95. var file_common_protocol_user_proto_goTypes = []any{
  96. (*User)(nil), // 0: xray.common.protocol.User
  97. (*serial.TypedMessage)(nil), // 1: xray.common.serial.TypedMessage
  98. }
  99. var file_common_protocol_user_proto_depIdxs = []int32{
  100. 1, // 0: xray.common.protocol.User.account:type_name -> xray.common.serial.TypedMessage
  101. 1, // [1:1] is the sub-list for method output_type
  102. 1, // [1:1] is the sub-list for method input_type
  103. 1, // [1:1] is the sub-list for extension type_name
  104. 1, // [1:1] is the sub-list for extension extendee
  105. 0, // [0:1] is the sub-list for field type_name
  106. }
  107. func init() { file_common_protocol_user_proto_init() }
  108. func file_common_protocol_user_proto_init() {
  109. if File_common_protocol_user_proto != nil {
  110. return
  111. }
  112. type x struct{}
  113. out := protoimpl.TypeBuilder{
  114. File: protoimpl.DescBuilder{
  115. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  116. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_protocol_user_proto_rawDesc), len(file_common_protocol_user_proto_rawDesc)),
  117. NumEnums: 0,
  118. NumMessages: 1,
  119. NumExtensions: 0,
  120. NumServices: 0,
  121. },
  122. GoTypes: file_common_protocol_user_proto_goTypes,
  123. DependencyIndexes: file_common_protocol_user_proto_depIdxs,
  124. MessageInfos: file_common_protocol_user_proto_msgTypes,
  125. }.Build()
  126. File_common_protocol_user_proto = out.File
  127. file_common_protocol_user_proto_goTypes = nil
  128. file_common_protocol_user_proto_depIdxs = nil
  129. }