user

package
v0.0.0-...-5529361 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_user_user_proto protoreflect.FileDescriptor

Functions

func DefaultDeleteAddress

func DefaultDeleteAddress(ctx context.Context, in *Address, db *gorm.DB) error

func DefaultDeleteAddressSet

func DefaultDeleteAddressSet(ctx context.Context, in []*Address, db *gorm.DB) error

func DefaultDeleteCreditCard

func DefaultDeleteCreditCard(ctx context.Context, in *CreditCard, db *gorm.DB) error

func DefaultDeleteCreditCardSet

func DefaultDeleteCreditCardSet(ctx context.Context, in []*CreditCard, db *gorm.DB) error

func DefaultDeleteDepartment

func DefaultDeleteDepartment(ctx context.Context, in *Department, db *gorm.DB) error

func DefaultDeleteEmail

func DefaultDeleteEmail(ctx context.Context, in *Email, db *gorm.DB) error

func DefaultDeleteEmailSet

func DefaultDeleteEmailSet(ctx context.Context, in []*Email, db *gorm.DB) error

func DefaultDeleteLanguage

func DefaultDeleteLanguage(ctx context.Context, in *Language, db *gorm.DB) error

func DefaultDeleteLanguageSet

func DefaultDeleteLanguageSet(ctx context.Context, in []*Language, db *gorm.DB) error

func DefaultDeleteTask

func DefaultDeleteTask(ctx context.Context, in *Task, db *gorm.DB) error

func DefaultDeleteTaskSet

func DefaultDeleteTaskSet(ctx context.Context, in []*Task, db *gorm.DB) error

func DefaultDeleteUser

func DefaultDeleteUser(ctx context.Context, in *User, db *gorm.DB) error

func DefaultDeleteUserSet

func DefaultDeleteUserSet(ctx context.Context, in []*User, db *gorm.DB) error

Types

type Address

type Address struct {
	Id         *resource.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address_1  string               `protobuf:"bytes,2,opt,name=address_1,json=address1,proto3" json:"address_1,omitempty"`
	Address_2  *string              `protobuf:"bytes,3,opt,name=address_2,json=address2,proto3,oneof" json:"address_2,omitempty"`
	Post       string               `protobuf:"bytes,4,opt,name=post,proto3" json:"post,omitempty"`
	External   *resource.Identifier `protobuf:"bytes,5,opt,name=external,proto3" json:"external,omitempty"`
	ImplicitFk *resource.Identifier `protobuf:"bytes,6,opt,name=implicit_fk,json=implicitFk,proto3" json:"implicit_fk,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskAddress

func DefaultApplyFieldMaskAddress(ctx context.Context, patchee *Address, patcher *Address, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Address, error)

DefaultApplyFieldMaskAddress patches an pbObject with patcher according to a field mask.

func DefaultCreateAddress

func DefaultCreateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultCreateAddress executes a basic gorm create call

func DefaultListAddress

func DefaultListAddress(ctx context.Context, db *gorm.DB) ([]*Address, error)

DefaultListAddress executes a gorm list call

func DefaultPatchAddress

func DefaultPatchAddress(ctx context.Context, in *Address, updateMask *field_mask.FieldMask, db *gorm.DB) (*Address, error)

DefaultPatchAddress executes a basic gorm update call with patch behavior

func DefaultPatchSetAddress

func DefaultPatchSetAddress(ctx context.Context, objects []*Address, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Address, error)

DefaultPatchSetAddress executes a bulk gorm update call with patch behavior

func DefaultReadAddress

func DefaultReadAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

func DefaultStrictUpdateAddress

func DefaultStrictUpdateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultStrictUpdateAddress clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress_1

func (x *Address) GetAddress_1() string

func (*Address) GetAddress_2

func (x *Address) GetAddress_2() string

func (*Address) GetExternal

func (x *Address) GetExternal() *resource.Identifier

func (*Address) GetId

func (x *Address) GetId() *resource.Identifier

func (*Address) GetImplicitFk

func (x *Address) GetImplicitFk() *resource.Identifier

func (*Address) GetPost

func (x *Address) GetPost() 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

func (*Address) ToORM

func (m *Address) ToORM(ctx context.Context) (AddressORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type AddressORM

type AddressORM struct {
	AccountID     string
	Address_1     string
	Address_2     *string
	CompartmentID string
	External      []byte  `gorm:"type:jsonb"`
	Id            int64   `gorm:"type:integer;primaryKey"`
	ImplicitFk    *string `gorm:"type:text"`
	Post          string
}

func (AddressORM) TableName

func (AddressORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*AddressORM) ToPB

func (m *AddressORM) ToPB(ctx context.Context) (Address, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type AddressORMWithAfterCreate_

type AddressORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterDeleteSet

type AddressORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Address, *gorm.DB) error
}

type AddressORMWithAfterDelete_

type AddressORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterListFind

type AddressORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]AddressORM) error
}

type AddressORMWithAfterReadFind

type AddressORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type AddressORMWithAfterStrictUpdateSave

type AddressORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type AddressORMWithBeforeCreate_

type AddressORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDeleteSet

type AddressORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Address, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDelete_

type AddressORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListApplyQuery

type AddressORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListFind

type AddressORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadApplyQuery

type AddressORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadFind

type AddressORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateCleanup

type AddressORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateSave

type AddressORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressWithAfterPatchSave

type AddressWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) error
}

type AddressWithAfterToORM

type AddressWithAfterToORM interface {
	AfterToORM(context.Context, *AddressORM) error
}

AddressAfterToORM called after default ToORM code

type AddressWithAfterToPB

type AddressWithAfterToPB interface {
	AfterToPB(context.Context, *Address) error
}

AddressAfterToPB called after default ToPB code

type AddressWithBeforePatchApplyFieldMask

type AddressWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchRead

type AddressWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchSave

type AddressWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforeToORM

type AddressWithBeforeToORM interface {
	BeforeToORM(context.Context, *AddressORM) error
}

AddressBeforeToORM called before default ToORM code

type AddressWithBeforeToPB

type AddressWithBeforeToPB interface {
	BeforeToPB(context.Context, *Address) error
}

AddressBeforeToPB called before default ToPB code

type CreditCard

type CreditCard struct {
	Id        *resource.Identifier   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Number    string                 `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"`
	UserId    *resource.Identifier   `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskCreditCard

func DefaultApplyFieldMaskCreditCard(ctx context.Context, patchee *CreditCard, patcher *CreditCard, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*CreditCard, error)

DefaultApplyFieldMaskCreditCard patches an pbObject with patcher according to a field mask.

func DefaultCreateCreditCard

func DefaultCreateCreditCard(ctx context.Context, in *CreditCard, db *gorm.DB) (*CreditCard, error)

DefaultCreateCreditCard executes a basic gorm create call

func DefaultListCreditCard

func DefaultListCreditCard(ctx context.Context, db *gorm.DB) ([]*CreditCard, error)

DefaultListCreditCard executes a gorm list call

func DefaultPatchCreditCard

func DefaultPatchCreditCard(ctx context.Context, in *CreditCard, updateMask *field_mask.FieldMask, db *gorm.DB) (*CreditCard, error)

DefaultPatchCreditCard executes a basic gorm update call with patch behavior

func DefaultPatchSetCreditCard

func DefaultPatchSetCreditCard(ctx context.Context, objects []*CreditCard, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*CreditCard, error)

DefaultPatchSetCreditCard executes a bulk gorm update call with patch behavior

func DefaultReadCreditCard

func DefaultReadCreditCard(ctx context.Context, in *CreditCard, db *gorm.DB) (*CreditCard, error)

func DefaultStrictUpdateCreditCard

func DefaultStrictUpdateCreditCard(ctx context.Context, in *CreditCard, db *gorm.DB) (*CreditCard, error)

DefaultStrictUpdateCreditCard clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*CreditCard) Descriptor deprecated

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

Deprecated: Use CreditCard.ProtoReflect.Descriptor instead.

func (*CreditCard) GetCreatedAt

func (x *CreditCard) GetCreatedAt() *timestamppb.Timestamp

func (*CreditCard) GetId

func (x *CreditCard) GetId() *resource.Identifier

func (*CreditCard) GetNumber

func (x *CreditCard) GetNumber() string

func (*CreditCard) GetUpdatedAt

func (x *CreditCard) GetUpdatedAt() *timestamppb.Timestamp

func (*CreditCard) GetUserId

func (x *CreditCard) GetUserId() *resource.Identifier

func (*CreditCard) ProtoMessage

func (*CreditCard) ProtoMessage()

func (*CreditCard) ProtoReflect

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

func (*CreditCard) Reset

func (x *CreditCard) Reset()

func (*CreditCard) String

func (x *CreditCard) String() string

func (*CreditCard) ToORM

func (m *CreditCard) ToORM(ctx context.Context) (CreditCardORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type CreditCardORM

type CreditCardORM struct {
	AccountID     string
	CompartmentID string
	CreatedAt     *time.Time
	Id            int64 `gorm:"type:integer;primaryKey"`
	Number        string
	UpdatedAt     *time.Time
	UserId        *string
}

func (CreditCardORM) TableName

func (CreditCardORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*CreditCardORM) ToPB

func (m *CreditCardORM) ToPB(ctx context.Context) (CreditCard, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type CreditCardORMWithAfterCreate_

type CreditCardORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type CreditCardORMWithAfterDeleteSet

type CreditCardORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*CreditCard, *gorm.DB) error
}

type CreditCardORMWithAfterDelete_

type CreditCardORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type CreditCardORMWithAfterListFind

type CreditCardORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]CreditCardORM) error
}

type CreditCardORMWithAfterReadFind

type CreditCardORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type CreditCardORMWithAfterStrictUpdateSave

type CreditCardORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type CreditCardORMWithBeforeCreate_

type CreditCardORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeDeleteSet

type CreditCardORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*CreditCard, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeDelete_

type CreditCardORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeListApplyQuery

type CreditCardORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeListFind

type CreditCardORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeReadApplyQuery

type CreditCardORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeReadFind

type CreditCardORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeStrictUpdateCleanup

type CreditCardORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardORMWithBeforeStrictUpdateSave

type CreditCardORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type CreditCardWithAfterPatchSave

type CreditCardWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *CreditCard, *field_mask.FieldMask, *gorm.DB) error
}

type CreditCardWithAfterToORM

type CreditCardWithAfterToORM interface {
	AfterToORM(context.Context, *CreditCardORM) error
}

CreditCardAfterToORM called after default ToORM code

type CreditCardWithAfterToPB

type CreditCardWithAfterToPB interface {
	AfterToPB(context.Context, *CreditCard) error
}

CreditCardAfterToPB called after default ToPB code

type CreditCardWithBeforePatchApplyFieldMask

type CreditCardWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *CreditCard, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type CreditCardWithBeforePatchRead

type CreditCardWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *CreditCard, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type CreditCardWithBeforePatchSave

type CreditCardWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *CreditCard, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type CreditCardWithBeforeToORM

type CreditCardWithBeforeToORM interface {
	BeforeToORM(context.Context, *CreditCardORM) error
}

CreditCardBeforeToORM called before default ToORM code

type CreditCardWithBeforeToPB

type CreditCardWithBeforeToPB interface {
	BeforeToPB(context.Context, *CreditCard) error
}

CreditCardBeforeToPB called before default ToPB code

type Department

type Department struct {

	// department name and id are composite primary keys
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id   int64  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Department added example for composite primary keys

func DefaultApplyFieldMaskDepartment

func DefaultApplyFieldMaskDepartment(ctx context.Context, patchee *Department, patcher *Department, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Department, error)

DefaultApplyFieldMaskDepartment patches an pbObject with patcher according to a field mask.

func DefaultCreateDepartment

func DefaultCreateDepartment(ctx context.Context, in *Department, db *gorm.DB) (*Department, error)

DefaultCreateDepartment executes a basic gorm create call

func DefaultListDepartment

func DefaultListDepartment(ctx context.Context, db *gorm.DB) ([]*Department, error)

DefaultListDepartment executes a gorm list call

func DefaultReadDepartment

func DefaultReadDepartment(ctx context.Context, in *Department, db *gorm.DB) (*Department, error)

func (*Department) Descriptor deprecated

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

Deprecated: Use Department.ProtoReflect.Descriptor instead.

func (*Department) GetId

func (x *Department) GetId() int64

func (*Department) GetName

func (x *Department) GetName() string

func (*Department) ProtoMessage

func (*Department) ProtoMessage()

func (*Department) ProtoReflect

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

func (*Department) Reset

func (x *Department) Reset()

func (*Department) String

func (x *Department) String() string

func (*Department) ToORM

func (m *Department) ToORM(ctx context.Context) (DepartmentORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type DepartmentORM

type DepartmentORM struct {
	Id     int64  `gorm:"primaryKey"`
	Name   string `gorm:"primaryKey"`
	UserId *string
}

func (DepartmentORM) TableName

func (DepartmentORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*DepartmentORM) ToPB

func (m *DepartmentORM) ToPB(ctx context.Context) (Department, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type DepartmentORMWithAfterCreate_

type DepartmentORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type DepartmentORMWithAfterDelete_

type DepartmentORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type DepartmentORMWithAfterListFind

type DepartmentORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]DepartmentORM) error
}

type DepartmentORMWithAfterReadFind

type DepartmentORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type DepartmentORMWithBeforeCreate_

type DepartmentORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentORMWithBeforeDelete_

type DepartmentORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentORMWithBeforeListApplyQuery

type DepartmentORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentORMWithBeforeListFind

type DepartmentORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentORMWithBeforeReadApplyQuery

type DepartmentORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentORMWithBeforeReadFind

type DepartmentORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DepartmentWithAfterToORM

type DepartmentWithAfterToORM interface {
	AfterToORM(context.Context, *DepartmentORM) error
}

DepartmentAfterToORM called after default ToORM code

type DepartmentWithAfterToPB

type DepartmentWithAfterToPB interface {
	AfterToPB(context.Context, *Department) error
}

DepartmentAfterToPB called after default ToPB code

type DepartmentWithBeforeToORM

type DepartmentWithBeforeToORM interface {
	BeforeToORM(context.Context, *DepartmentORM) error
}

DepartmentBeforeToORM called before default ToORM code

type DepartmentWithBeforeToPB

type DepartmentWithBeforeToPB interface {
	BeforeToPB(context.Context, *Department) error
}

DepartmentBeforeToPB called before default ToPB code

type Email

type Email struct {
	Id              *resource.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email           string               `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Subscribed      bool                 `protobuf:"varint,3,opt,name=subscribed,proto3" json:"subscribed,omitempty"`
	UserId          *resource.Identifier `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ExternalNotNull *resource.Identifier `protobuf:"bytes,5,opt,name=external_not_null,json=externalNotNull,proto3" json:"external_not_null,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskEmail

func DefaultApplyFieldMaskEmail(ctx context.Context, patchee *Email, patcher *Email, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Email, error)

DefaultApplyFieldMaskEmail patches an pbObject with patcher according to a field mask.

func DefaultCreateEmail

func DefaultCreateEmail(ctx context.Context, in *Email, db *gorm.DB) (*Email, error)

DefaultCreateEmail executes a basic gorm create call

func DefaultListEmail

func DefaultListEmail(ctx context.Context, db *gorm.DB) ([]*Email, error)

DefaultListEmail executes a gorm list call

func DefaultPatchEmail

func DefaultPatchEmail(ctx context.Context, in *Email, updateMask *field_mask.FieldMask, db *gorm.DB) (*Email, error)

DefaultPatchEmail executes a basic gorm update call with patch behavior

func DefaultPatchSetEmail

func DefaultPatchSetEmail(ctx context.Context, objects []*Email, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Email, error)

DefaultPatchSetEmail executes a bulk gorm update call with patch behavior

func DefaultReadEmail

func DefaultReadEmail(ctx context.Context, in *Email, db *gorm.DB) (*Email, error)

func DefaultStrictUpdateEmail

func DefaultStrictUpdateEmail(ctx context.Context, in *Email, db *gorm.DB) (*Email, error)

DefaultStrictUpdateEmail clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Email) Descriptor deprecated

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

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetEmail

func (x *Email) GetEmail() string

func (*Email) GetExternalNotNull

func (x *Email) GetExternalNotNull() *resource.Identifier

func (*Email) GetId

func (x *Email) GetId() *resource.Identifier

func (*Email) GetSubscribed

func (x *Email) GetSubscribed() bool

func (*Email) GetUserId

func (x *Email) GetUserId() *resource.Identifier

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

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

func (*Email) Reset

func (x *Email) Reset()

func (*Email) String

func (x *Email) String() string

func (*Email) ToORM

func (m *Email) ToORM(ctx context.Context) (EmailORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type EmailORM

type EmailORM struct {
	AccountID       string
	CompartmentID   string
	Email           string
	ExternalNotNull string `gorm:"type:uuid;not null"`
	Id              string `gorm:"type:uuid;primaryKey"`
	Subscribed      bool
	UserId          *string
}

func (EmailORM) TableName

func (EmailORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*EmailORM) ToPB

func (m *EmailORM) ToPB(ctx context.Context) (Email, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type EmailORMWithAfterCreate_

type EmailORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type EmailORMWithAfterDeleteSet

type EmailORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Email, *gorm.DB) error
}

type EmailORMWithAfterDelete_

type EmailORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type EmailORMWithAfterListFind

type EmailORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]EmailORM) error
}

type EmailORMWithAfterReadFind

type EmailORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type EmailORMWithAfterStrictUpdateSave

type EmailORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type EmailORMWithBeforeCreate_

type EmailORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeDeleteSet

type EmailORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Email, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeDelete_

type EmailORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeListApplyQuery

type EmailORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeListFind

type EmailORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeReadApplyQuery

type EmailORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeReadFind

type EmailORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeStrictUpdateCleanup

type EmailORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailORMWithBeforeStrictUpdateSave

type EmailORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type EmailWithAfterPatchSave

type EmailWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Email, *field_mask.FieldMask, *gorm.DB) error
}

type EmailWithAfterToORM

type EmailWithAfterToORM interface {
	AfterToORM(context.Context, *EmailORM) error
}

EmailAfterToORM called after default ToORM code

type EmailWithAfterToPB

type EmailWithAfterToPB interface {
	AfterToPB(context.Context, *Email) error
}

EmailAfterToPB called after default ToPB code

type EmailWithBeforePatchApplyFieldMask

type EmailWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Email, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type EmailWithBeforePatchRead

type EmailWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Email, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type EmailWithBeforePatchSave

type EmailWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Email, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type EmailWithBeforeToORM

type EmailWithBeforeToORM interface {
	BeforeToORM(context.Context, *EmailORM) error
}

EmailBeforeToORM called before default ToORM code

type EmailWithBeforeToPB

type EmailWithBeforeToPB interface {
	BeforeToPB(context.Context, *Email) error
}

EmailBeforeToPB called before default ToPB code

type Language

type Language struct {
	Id          *resource.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Code        string               `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	ExternalInt *resource.Identifier `protobuf:"bytes,4,opt,name=external_int,json=externalInt,proto3" json:"external_int,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskLanguage

func DefaultApplyFieldMaskLanguage(ctx context.Context, patchee *Language, patcher *Language, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Language, error)

DefaultApplyFieldMaskLanguage patches an pbObject with patcher according to a field mask.

func DefaultCreateLanguage

func DefaultCreateLanguage(ctx context.Context, in *Language, db *gorm.DB) (*Language, error)

DefaultCreateLanguage executes a basic gorm create call

func DefaultListLanguage

func DefaultListLanguage(ctx context.Context, db *gorm.DB) ([]*Language, error)

DefaultListLanguage executes a gorm list call

func DefaultPatchLanguage

func DefaultPatchLanguage(ctx context.Context, in *Language, updateMask *field_mask.FieldMask, db *gorm.DB) (*Language, error)

DefaultPatchLanguage executes a basic gorm update call with patch behavior

func DefaultPatchSetLanguage

func DefaultPatchSetLanguage(ctx context.Context, objects []*Language, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Language, error)

DefaultPatchSetLanguage executes a bulk gorm update call with patch behavior

func DefaultReadLanguage

func DefaultReadLanguage(ctx context.Context, in *Language, db *gorm.DB) (*Language, error)

func DefaultStrictUpdateLanguage

func DefaultStrictUpdateLanguage(ctx context.Context, in *Language, db *gorm.DB) (*Language, error)

DefaultStrictUpdateLanguage clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Language) Descriptor deprecated

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

Deprecated: Use Language.ProtoReflect.Descriptor instead.

func (*Language) GetCode

func (x *Language) GetCode() string

func (*Language) GetExternalInt

func (x *Language) GetExternalInt() *resource.Identifier

func (*Language) GetId

func (x *Language) GetId() *resource.Identifier

func (*Language) GetName

func (x *Language) GetName() string

func (*Language) ProtoMessage

func (*Language) ProtoMessage()

func (*Language) ProtoReflect

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

func (*Language) Reset

func (x *Language) Reset()

func (*Language) String

func (x *Language) String() string

func (*Language) ToORM

func (m *Language) ToORM(ctx context.Context) (LanguageORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type LanguageORM

type LanguageORM struct {
	AccountID     string
	Code          string
	CompartmentID string
	ExternalInt   *int64 `gorm:"type:integer"`
	Id            int64  `gorm:"type:integer;primaryKey"`
	Name          string
}

func (LanguageORM) TableName

func (LanguageORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*LanguageORM) ToPB

func (m *LanguageORM) ToPB(ctx context.Context) (Language, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type LanguageORMWithAfterCreate_

type LanguageORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type LanguageORMWithAfterDeleteSet

type LanguageORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Language, *gorm.DB) error
}

type LanguageORMWithAfterDelete_

type LanguageORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type LanguageORMWithAfterListFind

type LanguageORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]LanguageORM) error
}

type LanguageORMWithAfterReadFind

type LanguageORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type LanguageORMWithAfterStrictUpdateSave

type LanguageORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type LanguageORMWithBeforeCreate_

type LanguageORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeDeleteSet

type LanguageORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Language, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeDelete_

type LanguageORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeListApplyQuery

type LanguageORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeListFind

type LanguageORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeReadApplyQuery

type LanguageORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeReadFind

type LanguageORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeStrictUpdateCleanup

type LanguageORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageORMWithBeforeStrictUpdateSave

type LanguageORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type LanguageWithAfterPatchSave

type LanguageWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Language, *field_mask.FieldMask, *gorm.DB) error
}

type LanguageWithAfterToORM

type LanguageWithAfterToORM interface {
	AfterToORM(context.Context, *LanguageORM) error
}

LanguageAfterToORM called after default ToORM code

type LanguageWithAfterToPB

type LanguageWithAfterToPB interface {
	AfterToPB(context.Context, *Language) error
}

LanguageAfterToPB called after default ToPB code

type LanguageWithBeforePatchApplyFieldMask

type LanguageWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Language, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type LanguageWithBeforePatchRead

type LanguageWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Language, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type LanguageWithBeforePatchSave

type LanguageWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Language, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type LanguageWithBeforeToORM

type LanguageWithBeforeToORM interface {
	BeforeToORM(context.Context, *LanguageORM) error
}

LanguageBeforeToORM called before default ToORM code

type LanguageWithBeforeToPB

type LanguageWithBeforeToPB interface {
	BeforeToPB(context.Context, *Language) error
}

LanguageBeforeToPB called before default ToPB code

type Task

type Task struct {
	Name        string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Priority    int64   `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	Id          *string `protobuf:"bytes,4,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskTask

func DefaultApplyFieldMaskTask(ctx context.Context, patchee *Task, patcher *Task, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Task, error)

DefaultApplyFieldMaskTask patches an pbObject with patcher according to a field mask.

func DefaultCreateTask

func DefaultCreateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

DefaultCreateTask executes a basic gorm create call

func DefaultListTask

func DefaultListTask(ctx context.Context, db *gorm.DB) ([]*Task, error)

DefaultListTask executes a gorm list call

func DefaultPatchSetTask

func DefaultPatchSetTask(ctx context.Context, objects []*Task, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Task, error)

DefaultPatchSetTask executes a bulk gorm update call with patch behavior

func DefaultPatchTask

func DefaultPatchTask(ctx context.Context, in *Task, updateMask *field_mask.FieldMask, db *gorm.DB) (*Task, error)

DefaultPatchTask executes a basic gorm update call with patch behavior

func DefaultReadTask

func DefaultReadTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

func DefaultStrictUpdateTask

func DefaultStrictUpdateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

DefaultStrictUpdateTask clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetPriority

func (x *Task) GetPriority() int64

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) ToORM

func (m *Task) ToORM(ctx context.Context) (TaskORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type TaskORM

type TaskORM struct {
	AccountID     string
	CompartmentID string
	Description   string
	Id            *string
	Name          string
	Priority      int64
	UserId        string `gorm:"not null"`
}

func (TaskORM) TableName

func (TaskORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TaskORM) ToPB

func (m *TaskORM) ToPB(ctx context.Context) (Task, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TaskORMWithAfterCreate_

type TaskORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TaskORMWithAfterDeleteSet

type TaskORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Task, *gorm.DB) error
}

type TaskORMWithAfterDelete_

type TaskORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TaskORMWithAfterListFind

type TaskORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TaskORM) error
}

type TaskORMWithAfterReadFind

type TaskORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TaskORMWithAfterStrictUpdateSave

type TaskORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TaskORMWithBeforeCreate_

type TaskORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeDeleteSet

type TaskORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Task, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeDelete_

type TaskORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeListApplyQuery

type TaskORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeListFind

type TaskORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeReadApplyQuery

type TaskORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeReadFind

type TaskORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeStrictUpdateCleanup

type TaskORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeStrictUpdateSave

type TaskORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskWithAfterPatchSave

type TaskWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) error
}

type TaskWithAfterToORM

type TaskWithAfterToORM interface {
	AfterToORM(context.Context, *TaskORM) error
}

TaskAfterToORM called after default ToORM code

type TaskWithAfterToPB

type TaskWithAfterToPB interface {
	AfterToPB(context.Context, *Task) error
}

TaskAfterToPB called after default ToPB code

type TaskWithBeforePatchApplyFieldMask

type TaskWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforePatchRead

type TaskWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforePatchSave

type TaskWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforeToORM

type TaskWithBeforeToORM interface {
	BeforeToORM(context.Context, *TaskORM) error
}

TaskBeforeToORM called before default ToORM code

type TaskWithBeforeToPB

type TaskWithBeforeToPB interface {
	BeforeToPB(context.Context, *Task) error
}

TaskBeforeToPB called before default ToPB code

type User

type User struct {
	Id                *resource.Identifier   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt         *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt         *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Birthday          *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Age               uint32                 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` // synthetic field
	Num               uint32                 `protobuf:"varint,6,opt,name=num,proto3" json:"num,omitempty"`
	CreditCard        *CreditCard            `protobuf:"bytes,7,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` // has one
	Emails            []*Email               `protobuf:"bytes,8,rep,name=emails,proto3" json:"emails,omitempty"`                           // has many
	Tasks             []*Task                `protobuf:"bytes,9,rep,name=tasks,proto3" json:"tasks,omitempty"`
	BillingAddress    *Address               `protobuf:"bytes,10,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"`
	ShippingAddress   *Address               `protobuf:"bytes,11,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"`
	Languages         []*Language            `protobuf:"bytes,12,rep,name=languages,proto3" json:"languages,omitempty"`
	Friends           []*User                `protobuf:"bytes,13,rep,name=friends,proto3" json:"friends,omitempty"`
	ShippingAddressId *resource.Identifier   `protobuf:"bytes,14,opt,name=shipping_address_id,json=shippingAddressId,proto3" json:"shipping_address_id,omitempty"`
	ExternalUuid      *resource.Identifier   `protobuf:"bytes,15,opt,name=external_uuid,json=externalUuid,proto3" json:"external_uuid,omitempty"`
	Department        *Department            `protobuf:"bytes,16,opt,name=department,proto3" json:"department,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskUser

func DefaultApplyFieldMaskUser(ctx context.Context, patchee *User, patcher *User, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*User, error)

DefaultApplyFieldMaskUser patches an pbObject with patcher according to a field mask.

func DefaultCreateUser

func DefaultCreateUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)

DefaultCreateUser executes a basic gorm create call

func DefaultListUser

func DefaultListUser(ctx context.Context, db *gorm.DB) ([]*User, error)

DefaultListUser executes a gorm list call

func DefaultPatchSetUser

func DefaultPatchSetUser(ctx context.Context, objects []*User, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*User, error)

DefaultPatchSetUser executes a bulk gorm update call with patch behavior

func DefaultPatchUser

func DefaultPatchUser(ctx context.Context, in *User, updateMask *field_mask.FieldMask, db *gorm.DB) (*User, error)

DefaultPatchUser executes a basic gorm update call with patch behavior

func DefaultReadUser

func DefaultReadUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)

func DefaultStrictUpdateUser

func DefaultStrictUpdateUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)

DefaultStrictUpdateUser clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAge

func (x *User) GetAge() uint32

func (*User) GetBillingAddress

func (x *User) GetBillingAddress() *Address

func (*User) GetBirthday

func (x *User) GetBirthday() *timestamppb.Timestamp

func (*User) GetCreatedAt

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

func (*User) GetCreditCard

func (x *User) GetCreditCard() *CreditCard

func (*User) GetDepartment

func (x *User) GetDepartment() *Department

func (*User) GetEmails

func (x *User) GetEmails() []*Email

func (*User) GetExternalUuid

func (x *User) GetExternalUuid() *resource.Identifier

func (*User) GetFriends

func (x *User) GetFriends() []*User

func (*User) GetId

func (x *User) GetId() *resource.Identifier

func (*User) GetLanguages

func (x *User) GetLanguages() []*Language

func (*User) GetNum

func (x *User) GetNum() uint32

func (*User) GetShippingAddress

func (x *User) GetShippingAddress() *Address

func (*User) GetShippingAddressId

func (x *User) GetShippingAddressId() *resource.Identifier

func (*User) GetTasks

func (x *User) GetTasks() []*Task

func (*User) GetUpdatedAt

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

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

func (m *User) ToORM(ctx context.Context) (UserORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type UserORM

type UserORM struct {
	AccountID         string
	BillingAddress    *AddressORM `gorm:"foreignKey:BillingAddressId;references:Id"`
	BillingAddressId  *int64
	Birthday          *time.Time
	CompartmentID     string
	CreatedAt         *time.Time
	CreditCard        *CreditCardORM `gorm:"foreignKey:UserId;references:Id"`
	Department        *DepartmentORM `gorm:"foreignKey:UserId;references:Id"`
	Emails            []*EmailORM    `gorm:"foreignKey:UserId;references:Id"`
	ExternalUuid      *string        `gorm:"type:uuid"`
	Friends           []*UserORM     `gorm:"foreignKey:Id;references:Id;many2many:user_friends;joinForeignKey:UserId;joinReferences:FriendId"`
	Id                string         `gorm:"type:uuid;primaryKey"`
	Languages         []*LanguageORM `gorm:"foreignKey:Id;references:Id;many2many:user_languages;joinForeignKey:UserId;joinReferences:LanguageId"`
	Num               uint32
	ShippingAddress   *AddressORM `gorm:"foreignKey:ShippingAddressId;references:Id"`
	ShippingAddressId *int64
	Tasks             []*TaskORM `gorm:"foreignKey:UserId;references:Id" atlas:"position:Priority"`
	UpdatedAt         *time.Time
}

func (*UserORM) AfterToPB

func (m *UserORM) AfterToPB(ctx context.Context, user *User) error

AfterToPB implements the posthook interface for the User type. This allows us to customize conversion behavior. In this example, we set the User's Age based on the Birthday, instead of storing it separately in the DB

func (UserORM) TableName

func (UserORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*UserORM) ToPB

func (m *UserORM) ToPB(ctx context.Context) (User, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type UserORMWithAfterCreate_

type UserORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type UserORMWithAfterDeleteSet

type UserORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*User, *gorm.DB) error
}

type UserORMWithAfterDelete_

type UserORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type UserORMWithAfterListFind

type UserORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]UserORM) error
}

type UserORMWithAfterReadFind

type UserORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type UserORMWithAfterStrictUpdateSave

type UserORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type UserORMWithBeforeCreate_

type UserORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeDeleteSet

type UserORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*User, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeDelete_

type UserORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeListApplyQuery

type UserORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeListFind

type UserORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeReadApplyQuery

type UserORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeReadFind

type UserORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeStrictUpdateCleanup

type UserORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserORMWithBeforeStrictUpdateSave

type UserORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type UserWithAfterPatchSave

type UserWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *User, *field_mask.FieldMask, *gorm.DB) error
}

type UserWithAfterToORM

type UserWithAfterToORM interface {
	AfterToORM(context.Context, *UserORM) error
}

UserAfterToORM called after default ToORM code

type UserWithAfterToPB

type UserWithAfterToPB interface {
	AfterToPB(context.Context, *User) error
}

UserAfterToPB called after default ToPB code

type UserWithBeforePatchApplyFieldMask

type UserWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *User, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type UserWithBeforePatchRead

type UserWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *User, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type UserWithBeforePatchSave

type UserWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *User, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type UserWithBeforeToORM

type UserWithBeforeToORM interface {
	BeforeToORM(context.Context, *UserORM) error
}

UserBeforeToORM called before default ToORM code

type UserWithBeforeToPB

type UserWithBeforeToPB interface {
	BeforeToPB(context.Context, *User) error
}

UserBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

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