Documentation ¶
Index ¶
- Variables
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetAge() uint32
- func (x *Profile) GetAvatar() string
- func (x *Profile) GetBirthday() *timestamp.Timestamp
- func (x *Profile) GetCreatedAt() *timestamp.Timestamp
- func (x *Profile) GetDeletedAt() *timestamp.Timestamp
- func (x *Profile) GetGender() Profile_GenderType
- func (x *Profile) GetId() *wrappers.StringValue
- func (x *Profile) GetPreferredTheme() *wrappers.StringValue
- func (x *Profile) GetTz() string
- func (x *Profile) GetUpdatedAt() *timestamp.Timestamp
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- func (m *Profile) Validate() error
- type ProfileValidationError
- type Profile_GenderType
- func (Profile_GenderType) Descriptor() protoreflect.EnumDescriptor
- func (x Profile_GenderType) Enum() *Profile_GenderType
- func (Profile_GenderType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Profile_GenderType) Number() protoreflect.EnumNumber
- func (x Profile_GenderType) String() string
- func (Profile_GenderType) Type() protoreflect.EnumType
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamp.Timestamp
- func (x *User) GetDeletedAt() *timestamp.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetFirstName() string
- func (x *User) GetId() *wrappers.StringValue
- func (x *User) GetLastName() string
- func (x *User) GetProfile() *Profile
- func (x *User) GetUpdatedAt() *timestamp.Timestamp
- func (x *User) GetUsername() *wrappers.StringValue
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Profile_GenderType_name = map[int32]string{ 0: "GENDER_TYPE_UNSPECIFIED", 1: "GENDER_TYPE_MALE", 2: "GENDER_TYPE_FEMALE", } Profile_GenderType_value = map[string]int32{ "GENDER_TYPE_UNSPECIFIED": 0, "GENDER_TYPE_MALE": 1, "GENDER_TYPE_FEMALE": 2, } )
Enum value maps for Profile_GenderType.
var File_mkit_service_account_entities_v1_entities_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // primary key CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Tz string `protobuf:"bytes,5,opt,name=tz,proto3" json:"tz,omitempty"` // *time.Location? Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` Gender Profile_GenderType `protobuf:"varint,7,opt,name=gender,proto3,enum=mkit.service.account.entities.v1.Profile_GenderType" json:"gender,omitempty"` Birthday *timestamp.Timestamp `protobuf:"bytes,8,opt,name=birthday,proto3" json:"birthday,omitempty"` Age uint32 `protobuf:"varint,9,opt,name=age,proto3" json:"age,omitempty"` // synthetic field PreferredTheme *wrappers.StringValue `protobuf:"bytes,10,opt,name=preferred_theme,json=preferredTheme,proto3" json:"preferred_theme,omitempty"` // contains filtered or unexported fields }
Profile Entity
func (*Profile) Descriptor
deprecated
func (*Profile) GetBirthday ¶
func (*Profile) GetCreatedAt ¶
func (*Profile) GetDeletedAt ¶
func (*Profile) GetGender ¶
func (x *Profile) GetGender() Profile_GenderType
func (*Profile) GetId ¶
func (x *Profile) GetId() *wrappers.StringValue
func (*Profile) GetPreferredTheme ¶
func (x *Profile) GetPreferredTheme() *wrappers.StringValue
func (*Profile) GetUpdatedAt ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileValidationError ¶
type ProfileValidationError struct {
// contains filtered or unexported fields
}
ProfileValidationError is the validation error returned by Profile.Validate if the designated constraints aren't met.
func (ProfileValidationError) Cause ¶
func (e ProfileValidationError) Cause() error
Cause function returns cause value.
func (ProfileValidationError) Error ¶
func (e ProfileValidationError) Error() string
Error satisfies the builtin error interface
func (ProfileValidationError) ErrorName ¶
func (e ProfileValidationError) ErrorName() string
ErrorName returns error name.
func (ProfileValidationError) Field ¶
func (e ProfileValidationError) Field() string
Field function returns field value.
func (ProfileValidationError) Key ¶
func (e ProfileValidationError) Key() bool
Key function returns key value.
func (ProfileValidationError) Reason ¶
func (e ProfileValidationError) Reason() string
Reason function returns reason value.
type Profile_GenderType ¶
type Profile_GenderType int32
const ( Profile_GENDER_TYPE_UNSPECIFIED Profile_GenderType = 0 Profile_GENDER_TYPE_MALE Profile_GenderType = 1 Profile_GENDER_TYPE_FEMALE Profile_GenderType = 2 )
func (Profile_GenderType) Descriptor ¶
func (Profile_GenderType) Descriptor() protoreflect.EnumDescriptor
func (Profile_GenderType) Enum ¶
func (x Profile_GenderType) Enum() *Profile_GenderType
func (Profile_GenderType) EnumDescriptor
deprecated
func (Profile_GenderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Profile_GenderType.Descriptor instead.
func (Profile_GenderType) Number ¶
func (x Profile_GenderType) Number() protoreflect.EnumNumber
func (Profile_GenderType) String ¶
func (x Profile_GenderType) String() string
func (Profile_GenderType) Type ¶
func (Profile_GenderType) Type() protoreflect.EnumType
type User ¶
type User struct { Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // primary key CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Username *wrappers.StringValue `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"` FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` Profile *Profile `protobuf:"bytes,11,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
User Entity
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetDeletedAt ¶
func (*User) GetFirstName ¶
func (*User) GetId ¶
func (x *User) GetId() *wrappers.StringValue
func (*User) GetLastName ¶
func (*User) GetProfile ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (x *User) GetUsername() *wrappers.StringValue
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.