user.pb.go 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: common/protocol/user.proto
  6. package protocol
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. serial "github.com/xtls/xray-core/common/serial"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  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
  32. // the proxies.
  33. Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  34. }
  35. func (x *User) Reset() {
  36. *x = User{}
  37. if protoimpl.UnsafeEnabled {
  38. mi := &file_common_protocol_user_proto_msgTypes[0]
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. ms.StoreMessageInfo(mi)
  41. }
  42. }
  43. func (x *User) String() string {
  44. return protoimpl.X.MessageStringOf(x)
  45. }
  46. func (*User) ProtoMessage() {}
  47. func (x *User) ProtoReflect() protoreflect.Message {
  48. mi := &file_common_protocol_user_proto_msgTypes[0]
  49. if protoimpl.UnsafeEnabled && x != nil {
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. if ms.LoadMessageInfo() == nil {
  52. ms.StoreMessageInfo(mi)
  53. }
  54. return ms
  55. }
  56. return mi.MessageOf(x)
  57. }
  58. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  59. func (*User) Descriptor() ([]byte, []int) {
  60. return file_common_protocol_user_proto_rawDescGZIP(), []int{0}
  61. }
  62. func (x *User) GetLevel() uint32 {
  63. if x != nil {
  64. return x.Level
  65. }
  66. return 0
  67. }
  68. func (x *User) GetEmail() string {
  69. if x != nil {
  70. return x.Email
  71. }
  72. return ""
  73. }
  74. func (x *User) GetAccount() *serial.TypedMessage {
  75. if x != nil {
  76. return x.Account
  77. }
  78. return nil
  79. }
  80. var File_common_protocol_user_proto protoreflect.FileDescriptor
  81. var file_common_protocol_user_proto_rawDesc = []byte{
  82. 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  83. 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x78, 0x72,
  84. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  85. 0x6f, 0x6c, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61,
  86. 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  87. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a,
  88. 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65,
  89. 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01,
  90. 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x63,
  91. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  92. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  93. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x61, 0x63,
  94. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61,
  95. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  96. 0x6c, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  97. 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63,
  98. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02,
  99. 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f,
  100. 0x74, 0x6f, 0x63, 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: xray.common.protocol.User
  115. (*serial.TypedMessage)(nil), // 1: xray.common.serial.TypedMessage
  116. }
  117. var file_common_protocol_user_proto_depIdxs = []int32{
  118. 1, // 0: xray.common.protocol.User.account:type_name -> xray.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. }