123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.30.0
- // protoc v3.17.3
- // source: common/user/user.proto
- package user
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type UserStatus int32
- const (
- UserStatus_USER_STATUS_UNDEFINED UserStatus = 0
- UserStatus_USER_STATUS_ENABLED UserStatus = 1
- UserStatus_USER_STATUS_DISABLED UserStatus = 2
- )
- // Enum value maps for UserStatus.
- var (
- UserStatus_name = map[int32]string{
- 0: "USER_STATUS_UNDEFINED",
- 1: "USER_STATUS_ENABLED",
- 2: "USER_STATUS_DISABLED",
- }
- UserStatus_value = map[string]int32{
- "USER_STATUS_UNDEFINED": 0,
- "USER_STATUS_ENABLED": 1,
- "USER_STATUS_DISABLED": 2,
- }
- )
- func (x UserStatus) Enum() *UserStatus {
- p := new(UserStatus)
- *p = x
- return p
- }
- func (x UserStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (UserStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_common_user_user_proto_enumTypes[0].Descriptor()
- }
- func (UserStatus) Type() protoreflect.EnumType {
- return &file_common_user_user_proto_enumTypes[0]
- }
- func (x UserStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use UserStatus.Descriptor instead.
- func (UserStatus) EnumDescriptor() ([]byte, []int) {
- return file_common_user_user_proto_rawDescGZIP(), []int{0}
- }
- type UserBody struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Body *UserBaseBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
- }
- func (x *UserBody) Reset() {
- *x = UserBody{}
- if protoimpl.UnsafeEnabled {
- mi := &file_common_user_user_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserBody) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserBody) ProtoMessage() {}
- func (x *UserBody) ProtoReflect() protoreflect.Message {
- mi := &file_common_user_user_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserBody.ProtoReflect.Descriptor instead.
- func (*UserBody) Descriptor() ([]byte, []int) {
- return file_common_user_user_proto_rawDescGZIP(), []int{0}
- }
- func (x *UserBody) GetId() uint32 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *UserBody) GetBody() *UserBaseBody {
- if x != nil {
- return x.Body
- }
- return nil
- }
- type UserBaseBody struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Status UserStatus `protobuf:"varint,1,opt,name=status,proto3,enum=user.UserStatus" json:"status,omitempty"`
- }
- func (x *UserBaseBody) Reset() {
- *x = UserBaseBody{}
- if protoimpl.UnsafeEnabled {
- mi := &file_common_user_user_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UserBaseBody) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UserBaseBody) ProtoMessage() {}
- func (x *UserBaseBody) ProtoReflect() protoreflect.Message {
- mi := &file_common_user_user_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use UserBaseBody.ProtoReflect.Descriptor instead.
- func (*UserBaseBody) Descriptor() ([]byte, []int) {
- return file_common_user_user_proto_rawDescGZIP(), []int{1}
- }
- func (x *UserBaseBody) GetStatus() UserStatus {
- if x != nil {
- return x.Status
- }
- return UserStatus_USER_STATUS_UNDEFINED
- }
- var File_common_user_user_proto protoreflect.FileDescriptor
- var file_common_user_user_proto_rawDesc = []byte{
- 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73,
- 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x42,
- 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x62, 0x6f,
- 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
- 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f,
- 0x64, 0x79, 0x22, 0x38, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f,
- 0x64, 0x79, 0x12, 0x28, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x5a, 0x0a, 0x0a,
- 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53,
- 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49,
- 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54,
- 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x18,
- 0x0a, 0x14, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49,
- 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x42, 0x3a, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
- 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x2e, 0x74, 0x74, 0x6d, 0x79, 0x6c, 0x69, 0x66, 0x65,
- 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x7a, 0x65, 0x75, 0x73, 0x7a, 0x68, 0x61, 0x6f, 0x2f, 0x74, 0x79,
- 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b,
- 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_common_user_user_proto_rawDescOnce sync.Once
- file_common_user_user_proto_rawDescData = file_common_user_user_proto_rawDesc
- )
- func file_common_user_user_proto_rawDescGZIP() []byte {
- file_common_user_user_proto_rawDescOnce.Do(func() {
- file_common_user_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_user_user_proto_rawDescData)
- })
- return file_common_user_user_proto_rawDescData
- }
- var file_common_user_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_common_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_common_user_user_proto_goTypes = []interface{}{
- (UserStatus)(0), // 0: user.UserStatus
- (*UserBody)(nil), // 1: user.UserBody
- (*UserBaseBody)(nil), // 2: user.UserBaseBody
- }
- var file_common_user_user_proto_depIdxs = []int32{
- 2, // 0: user.UserBody.body:type_name -> user.UserBaseBody
- 0, // 1: user.UserBaseBody.status:type_name -> user.UserStatus
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_common_user_user_proto_init() }
- func file_common_user_user_proto_init() {
- if File_common_user_user_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_common_user_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserBody); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_common_user_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UserBaseBody); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_common_user_user_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_common_user_user_proto_goTypes,
- DependencyIndexes: file_common_user_user_proto_depIdxs,
- EnumInfos: file_common_user_user_proto_enumTypes,
- MessageInfos: file_common_user_user_proto_msgTypes,
- }.Build()
- File_common_user_user_proto = out.File
- file_common_user_user_proto_rawDesc = nil
- file_common_user_user_proto_goTypes = nil
- file_common_user_user_proto_depIdxs = nil
- }
|