entitiesv1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAge

func (x *Profile) GetAge() uint32

func (*Profile) GetAvatar

func (x *Profile) GetAvatar() string

func (*Profile) GetBirthday

func (x *Profile) GetBirthday() *timestamp.Timestamp

func (*Profile) GetCreatedAt

func (x *Profile) GetCreatedAt() *timestamp.Timestamp

func (*Profile) GetDeletedAt

func (x *Profile) GetDeletedAt() *timestamp.Timestamp

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) GetTz

func (x *Profile) GetTz() string

func (*Profile) GetUpdatedAt

func (x *Profile) GetUpdatedAt() *timestamp.Timestamp

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

func (x *Profile) ProtoReflect() protoreflect.Message

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

func (*Profile) Validate

func (m *Profile) Validate() error

Validate is disabled for Profile. This method will always return nil.

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) Enum

func (Profile_GenderType) EnumDescriptor deprecated

func (Profile_GenderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Profile_GenderType.Descriptor instead.

func (Profile_GenderType) Number

func (Profile_GenderType) String

func (x Profile_GenderType) String() string

func (Profile_GenderType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetDeletedAt

func (x *User) GetDeletedAt() *timestamp.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetId

func (x *User) GetId() *wrappers.StringValue

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() *wrappers.StringValue

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate is disabled for User. This method will always return nil.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL