user.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v3.17.3
  5. // source: common/user/user.proto
  6. package user
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type UserStatus int32
  20. const (
  21. UserStatus_USER_STATUS_UNDEFINED UserStatus = 0
  22. UserStatus_USER_STATUS_ENABLED UserStatus = 1
  23. UserStatus_USER_STATUS_DISABLED UserStatus = 2
  24. )
  25. // Enum value maps for UserStatus.
  26. var (
  27. UserStatus_name = map[int32]string{
  28. 0: "USER_STATUS_UNDEFINED",
  29. 1: "USER_STATUS_ENABLED",
  30. 2: "USER_STATUS_DISABLED",
  31. }
  32. UserStatus_value = map[string]int32{
  33. "USER_STATUS_UNDEFINED": 0,
  34. "USER_STATUS_ENABLED": 1,
  35. "USER_STATUS_DISABLED": 2,
  36. }
  37. )
  38. func (x UserStatus) Enum() *UserStatus {
  39. p := new(UserStatus)
  40. *p = x
  41. return p
  42. }
  43. func (x UserStatus) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (UserStatus) Descriptor() protoreflect.EnumDescriptor {
  47. return file_common_user_user_proto_enumTypes[0].Descriptor()
  48. }
  49. func (UserStatus) Type() protoreflect.EnumType {
  50. return &file_common_user_user_proto_enumTypes[0]
  51. }
  52. func (x UserStatus) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use UserStatus.Descriptor instead.
  56. func (UserStatus) EnumDescriptor() ([]byte, []int) {
  57. return file_common_user_user_proto_rawDescGZIP(), []int{0}
  58. }
  59. type UserBody struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  64. Body *UserBaseBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
  65. }
  66. func (x *UserBody) Reset() {
  67. *x = UserBody{}
  68. if protoimpl.UnsafeEnabled {
  69. mi := &file_common_user_user_proto_msgTypes[0]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. }
  74. func (x *UserBody) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*UserBody) ProtoMessage() {}
  78. func (x *UserBody) ProtoReflect() protoreflect.Message {
  79. mi := &file_common_user_user_proto_msgTypes[0]
  80. if protoimpl.UnsafeEnabled && x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use UserBody.ProtoReflect.Descriptor instead.
  90. func (*UserBody) Descriptor() ([]byte, []int) {
  91. return file_common_user_user_proto_rawDescGZIP(), []int{0}
  92. }
  93. func (x *UserBody) GetId() uint32 {
  94. if x != nil {
  95. return x.Id
  96. }
  97. return 0
  98. }
  99. func (x *UserBody) GetBody() *UserBaseBody {
  100. if x != nil {
  101. return x.Body
  102. }
  103. return nil
  104. }
  105. type UserBaseBody struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Status UserStatus `protobuf:"varint,1,opt,name=status,proto3,enum=user.UserStatus" json:"status,omitempty"`
  110. }
  111. func (x *UserBaseBody) Reset() {
  112. *x = UserBaseBody{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_common_user_user_proto_msgTypes[1]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *UserBaseBody) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*UserBaseBody) ProtoMessage() {}
  123. func (x *UserBaseBody) ProtoReflect() protoreflect.Message {
  124. mi := &file_common_user_user_proto_msgTypes[1]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use UserBaseBody.ProtoReflect.Descriptor instead.
  135. func (*UserBaseBody) Descriptor() ([]byte, []int) {
  136. return file_common_user_user_proto_rawDescGZIP(), []int{1}
  137. }
  138. func (x *UserBaseBody) GetStatus() UserStatus {
  139. if x != nil {
  140. return x.Status
  141. }
  142. return UserStatus_USER_STATUS_UNDEFINED
  143. }
  144. var File_common_user_user_proto protoreflect.FileDescriptor
  145. var file_common_user_user_proto_rawDesc = []byte{
  146. 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73,
  147. 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x42,
  148. 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  149. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x62, 0x6f,
  150. 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
  151. 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f,
  152. 0x64, 0x79, 0x22, 0x38, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f,
  153. 0x64, 0x79, 0x12, 0x28, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
  154. 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74,
  155. 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x5a, 0x0a, 0x0a,
  156. 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53,
  157. 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49,
  158. 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54,
  159. 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x18,
  160. 0x0a, 0x14, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49,
  161. 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x42, 0x3a, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
  162. 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x2e, 0x74, 0x74, 0x6d, 0x79, 0x6c, 0x69, 0x66, 0x65,
  163. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x7a, 0x65, 0x75, 0x73, 0x7a, 0x68, 0x61, 0x6f, 0x2f, 0x74, 0x79,
  164. 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b,
  165. 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  166. }
  167. var (
  168. file_common_user_user_proto_rawDescOnce sync.Once
  169. file_common_user_user_proto_rawDescData = file_common_user_user_proto_rawDesc
  170. )
  171. func file_common_user_user_proto_rawDescGZIP() []byte {
  172. file_common_user_user_proto_rawDescOnce.Do(func() {
  173. file_common_user_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_user_user_proto_rawDescData)
  174. })
  175. return file_common_user_user_proto_rawDescData
  176. }
  177. var file_common_user_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  178. var file_common_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  179. var file_common_user_user_proto_goTypes = []interface{}{
  180. (UserStatus)(0), // 0: user.UserStatus
  181. (*UserBody)(nil), // 1: user.UserBody
  182. (*UserBaseBody)(nil), // 2: user.UserBaseBody
  183. }
  184. var file_common_user_user_proto_depIdxs = []int32{
  185. 2, // 0: user.UserBody.body:type_name -> user.UserBaseBody
  186. 0, // 1: user.UserBaseBody.status:type_name -> user.UserStatus
  187. 2, // [2:2] is the sub-list for method output_type
  188. 2, // [2:2] is the sub-list for method input_type
  189. 2, // [2:2] is the sub-list for extension type_name
  190. 2, // [2:2] is the sub-list for extension extendee
  191. 0, // [0:2] is the sub-list for field type_name
  192. }
  193. func init() { file_common_user_user_proto_init() }
  194. func file_common_user_user_proto_init() {
  195. if File_common_user_user_proto != nil {
  196. return
  197. }
  198. if !protoimpl.UnsafeEnabled {
  199. file_common_user_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  200. switch v := v.(*UserBody); i {
  201. case 0:
  202. return &v.state
  203. case 1:
  204. return &v.sizeCache
  205. case 2:
  206. return &v.unknownFields
  207. default:
  208. return nil
  209. }
  210. }
  211. file_common_user_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  212. switch v := v.(*UserBaseBody); i {
  213. case 0:
  214. return &v.state
  215. case 1:
  216. return &v.sizeCache
  217. case 2:
  218. return &v.unknownFields
  219. default:
  220. return nil
  221. }
  222. }
  223. }
  224. type x struct{}
  225. out := protoimpl.TypeBuilder{
  226. File: protoimpl.DescBuilder{
  227. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  228. RawDescriptor: file_common_user_user_proto_rawDesc,
  229. NumEnums: 1,
  230. NumMessages: 2,
  231. NumExtensions: 0,
  232. NumServices: 0,
  233. },
  234. GoTypes: file_common_user_user_proto_goTypes,
  235. DependencyIndexes: file_common_user_user_proto_depIdxs,
  236. EnumInfos: file_common_user_user_proto_enumTypes,
  237. MessageInfos: file_common_user_user_proto_msgTypes,
  238. }.Build()
  239. File_common_user_user_proto = out.File
  240. file_common_user_user_proto_rawDesc = nil
  241. file_common_user_user_proto_goTypes = nil
  242. file_common_user_user_proto_depIdxs = nil
  243. }