person

package
v0.0.0-...-753c707 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_person_v1_person_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

type Address struct {
	Street  string `protobuf:"bytes,1,opt,name=street,proto3" json:"street,omitempty"`
	Town    string `protobuf:"bytes,2,opt,name=town,proto3" json:"town,omitempty"`
	Lga     string `protobuf:"bytes,3,opt,name=lga,proto3" json:"lga,omitempty"`
	State   string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetLga

func (x *Address) GetLga() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetStreet

func (x *Address) GetStreet() string

func (*Address) GetTown

func (x *Address) GetTown() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type Credential

type Credential struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

func (*Credential) Descriptor() ([]byte, []int)

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetCategory

func (x *Credential) GetCategory() string

func (*Credential) GetPassword

func (x *Credential) GetPassword() string

func (*Credential) GetToken

func (x *Credential) GetToken() string

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type Person

type Person struct {
	XId        string        `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"`
	AccountId  string        `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Profile    *Profile      `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
	Credential []*Credential `protobuf:"bytes,4,rep,name=credential,proto3" json:"credential,omitempty"`
	StaffId    bool          `protobuf:"varint,5,opt,name=staff_id,json=staffId,proto3" json:"staff_id,omitempty"`
	// contains filtered or unexported fields
}

func NewPerson

func NewPerson() Person

func (*Person) Descriptor deprecated

func (*Person) Descriptor() ([]byte, []int)

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAccountId

func (x *Person) GetAccountId() string

func (*Person) GetCredential

func (x *Person) GetCredential() []*Credential

func (*Person) GetProfile

func (x *Person) GetProfile() *Profile

func (*Person) GetStaffId

func (x *Person) GetStaffId() bool

func (*Person) GetXId

func (x *Person) GetXId() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

func (*Person) ToJson

func (s *Person) ToJson() (any, error)

type PersonOption

type PersonOption struct {
}

type Profile

type Profile struct {
	LastName         string   `protobuf:"bytes,1,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	FirstName        string   `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	PhoneNumber      string   `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	NationalIdentity string   `protobuf:"bytes,4,opt,name=national_identity,json=nationalIdentity,proto3" json:"national_identity,omitempty"`
	Address          *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

func (*Profile) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAddress

func (x *Profile) GetAddress() *Address

func (*Profile) GetFirstName

func (x *Profile) GetFirstName() string

func (*Profile) GetLastName

func (x *Profile) GetLastName() string

func (*Profile) GetNationalIdentity

func (x *Profile) GetNationalIdentity() string

func (*Profile) GetPhoneNumber

func (x *Profile) GetPhoneNumber() string

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

Jump to

Keyboard shortcuts

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