example

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

example/feature_demo/demo_multi_file.proto
example/feature_demo/demo_types.proto
example/feature_demo/demo_service.proto

It has these top-level messages:

ExternalChild
TestTypes
TypeWithID
MultiaccountTypeWithID
MultiaccountTypeWithoutID
APIOnlyType
PrimaryUUIDType
PrimaryStringType
PrimaryIncluded
IntPoint
CreateIntPointRequest
CreateIntPointResponse
ReadIntPointRequest
ReadIntPointResponse
UpdateIntPointRequest
UpdateIntPointResponse
DeleteIntPointRequest
DeleteIntPointResponse
ListIntPointResponse
Something
ListIntPointRequest

Index

Constants

This section is empty.

Variables

View Source
var TestTypesStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "GOOD",
	2: "BAD",
}
View Source
var TestTypesStatus_value = map[string]int32{
	"UNKNOWN": 0,
	"GOOD":    1,
	"BAD":     2,
}

Functions

func DefaultDeleteExternalChild added in v0.9.0

func DefaultDeleteExternalChild(ctx context.Context, in *ExternalChild, db *gorm1.DB) error

func DefaultDeleteIntPoint

func DefaultDeleteIntPoint(ctx context.Context, in *IntPoint, db *gorm1.DB) error

func DefaultDeleteMultiaccountTypeWithID added in v0.2.0

func DefaultDeleteMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm1.DB) error

func DefaultDeletePrimaryStringType added in v0.9.0

func DefaultDeletePrimaryStringType(ctx context.Context, in *PrimaryStringType, db *gorm1.DB) error

func DefaultDeletePrimaryUUIDType added in v0.9.0

func DefaultDeletePrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, db *gorm1.DB) error

func DefaultDeleteTypeWithID

func DefaultDeleteTypeWithID(ctx context.Context, in *TypeWithID, db *gorm1.DB) error

func RegisterIntPointServiceServer added in v0.6.0

func RegisterIntPointServiceServer(s *grpc.Server, srv IntPointServiceServer)

func RegisterIntPointTxnServer added in v0.6.0

func RegisterIntPointTxnServer(s *grpc.Server, srv IntPointTxnServer)

Types

type APIOnlyType added in v0.2.0

type APIOnlyType struct {
	// here the ormable flag is not used, so nothing will be generated for this
	// object at the ORM level, and when this type is used as a field or
	// repeated field in another message that field will be dropped in the Orm
	// model, and would have to be set by hook
	Contents             string   `protobuf:"bytes,1,opt,name=contents" json:"contents,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*APIOnlyType) Descriptor added in v0.2.0

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

func (*APIOnlyType) GetContents added in v0.2.0

func (m *APIOnlyType) GetContents() string

func (*APIOnlyType) ProtoMessage added in v0.2.0

func (*APIOnlyType) ProtoMessage()

func (*APIOnlyType) Reset added in v0.2.0

func (m *APIOnlyType) Reset()

func (*APIOnlyType) String added in v0.2.0

func (m *APIOnlyType) String() string

func (*APIOnlyType) XXX_DiscardUnknown added in v0.6.0

func (m *APIOnlyType) XXX_DiscardUnknown()

func (*APIOnlyType) XXX_Marshal added in v0.6.0

func (m *APIOnlyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIOnlyType) XXX_Merge added in v0.6.0

func (dst *APIOnlyType) XXX_Merge(src proto.Message)

func (*APIOnlyType) XXX_Size added in v0.6.0

func (m *APIOnlyType) XXX_Size() int

func (*APIOnlyType) XXX_Unmarshal added in v0.6.0

func (m *APIOnlyType) XXX_Unmarshal(b []byte) error

type CreateIntPointRequest added in v0.2.0

type CreateIntPointRequest struct {
	// Convention dictates that this field be of the given type, and be
	// named 'payload' in order to autogenerate the handler
	Payload              *IntPoint `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*CreateIntPointRequest) Descriptor added in v0.2.0

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

func (*CreateIntPointRequest) GetPayload added in v0.2.0

func (m *CreateIntPointRequest) GetPayload() *IntPoint

func (*CreateIntPointRequest) ProtoMessage added in v0.2.0

func (*CreateIntPointRequest) ProtoMessage()

func (*CreateIntPointRequest) Reset added in v0.2.0

func (m *CreateIntPointRequest) Reset()

func (*CreateIntPointRequest) String added in v0.2.0

func (m *CreateIntPointRequest) String() string

func (*CreateIntPointRequest) XXX_DiscardUnknown added in v0.6.0

func (m *CreateIntPointRequest) XXX_DiscardUnknown()

func (*CreateIntPointRequest) XXX_Marshal added in v0.6.0

func (m *CreateIntPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateIntPointRequest) XXX_Merge added in v0.6.0

func (dst *CreateIntPointRequest) XXX_Merge(src proto.Message)

func (*CreateIntPointRequest) XXX_Size added in v0.6.0

func (m *CreateIntPointRequest) XXX_Size() int

func (*CreateIntPointRequest) XXX_Unmarshal added in v0.6.0

func (m *CreateIntPointRequest) XXX_Unmarshal(b []byte) error

type CreateIntPointResponse added in v0.2.0

type CreateIntPointResponse struct {
	// Convention also requires that the return type be the same and named 'result'
	Result               *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*CreateIntPointResponse) Descriptor added in v0.2.0

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

func (*CreateIntPointResponse) GetResult added in v0.2.0

func (m *CreateIntPointResponse) GetResult() *IntPoint

func (*CreateIntPointResponse) ProtoMessage added in v0.2.0

func (*CreateIntPointResponse) ProtoMessage()

func (*CreateIntPointResponse) Reset added in v0.2.0

func (m *CreateIntPointResponse) Reset()

func (*CreateIntPointResponse) String added in v0.2.0

func (m *CreateIntPointResponse) String() string

func (*CreateIntPointResponse) XXX_DiscardUnknown added in v0.6.0

func (m *CreateIntPointResponse) XXX_DiscardUnknown()

func (*CreateIntPointResponse) XXX_Marshal added in v0.6.0

func (m *CreateIntPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateIntPointResponse) XXX_Merge added in v0.6.0

func (dst *CreateIntPointResponse) XXX_Merge(src proto.Message)

func (*CreateIntPointResponse) XXX_Size added in v0.6.0

func (m *CreateIntPointResponse) XXX_Size() int

func (*CreateIntPointResponse) XXX_Unmarshal added in v0.6.0

func (m *CreateIntPointResponse) XXX_Unmarshal(b []byte) error

type DeleteIntPointRequest added in v0.2.0

type DeleteIntPointRequest struct {
	// Only the id is needed for a delete request
	Id                   uint32   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteIntPointRequest) Descriptor added in v0.2.0

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

func (*DeleteIntPointRequest) GetId added in v0.2.0

func (m *DeleteIntPointRequest) GetId() uint32

func (*DeleteIntPointRequest) ProtoMessage added in v0.2.0

func (*DeleteIntPointRequest) ProtoMessage()

func (*DeleteIntPointRequest) Reset added in v0.2.0

func (m *DeleteIntPointRequest) Reset()

func (*DeleteIntPointRequest) String added in v0.2.0

func (m *DeleteIntPointRequest) String() string

func (*DeleteIntPointRequest) XXX_DiscardUnknown added in v0.6.0

func (m *DeleteIntPointRequest) XXX_DiscardUnknown()

func (*DeleteIntPointRequest) XXX_Marshal added in v0.6.0

func (m *DeleteIntPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteIntPointRequest) XXX_Merge added in v0.6.0

func (dst *DeleteIntPointRequest) XXX_Merge(src proto.Message)

func (*DeleteIntPointRequest) XXX_Size added in v0.6.0

func (m *DeleteIntPointRequest) XXX_Size() int

func (*DeleteIntPointRequest) XXX_Unmarshal added in v0.6.0

func (m *DeleteIntPointRequest) XXX_Unmarshal(b []byte) error

type DeleteIntPointResponse added in v0.5.0

type DeleteIntPointResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

By convention, on DELETE no response data is given, so either a google.protobuf.empty, or an empty struct is sufficient

func (*DeleteIntPointResponse) Descriptor added in v0.5.0

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

func (*DeleteIntPointResponse) ProtoMessage added in v0.5.0

func (*DeleteIntPointResponse) ProtoMessage()

func (*DeleteIntPointResponse) Reset added in v0.5.0

func (m *DeleteIntPointResponse) Reset()

func (*DeleteIntPointResponse) String added in v0.5.0

func (m *DeleteIntPointResponse) String() string

func (*DeleteIntPointResponse) XXX_DiscardUnknown added in v0.6.0

func (m *DeleteIntPointResponse) XXX_DiscardUnknown()

func (*DeleteIntPointResponse) XXX_Marshal added in v0.6.0

func (m *DeleteIntPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteIntPointResponse) XXX_Merge added in v0.6.0

func (dst *DeleteIntPointResponse) XXX_Merge(src proto.Message)

func (*DeleteIntPointResponse) XXX_Size added in v0.6.0

func (m *DeleteIntPointResponse) XXX_Size() int

func (*DeleteIntPointResponse) XXX_Unmarshal added in v0.6.0

func (m *DeleteIntPointResponse) XXX_Unmarshal(b []byte) error

type ExternalChild added in v0.9.0

type ExternalChild struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func DefaultApplyFieldMaskExternalChild added in v0.9.0

func DefaultApplyFieldMaskExternalChild(ctx context.Context, patchee *ExternalChild, ormObj *ExternalChildORM, patcher *ExternalChild, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*ExternalChild, error)

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

func DefaultCreateExternalChild added in v0.9.0

func DefaultCreateExternalChild(ctx context.Context, in *ExternalChild, db *gorm1.DB) (*ExternalChild, error)

DefaultCreateExternalChild executes a basic gorm create call

func DefaultListExternalChild added in v0.9.0

func DefaultListExternalChild(ctx context.Context, db *gorm1.DB, req interface{}) ([]*ExternalChild, error)

DefaultListExternalChild executes a gorm list call

func DefaultPatchExternalChild added in v0.9.0

func DefaultPatchExternalChild(ctx context.Context, in *ExternalChild, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*ExternalChild, error)

DefaultPatchExternalChild executes a basic gorm update call with patch behavior

func DefaultReadExternalChild added in v0.9.0

func DefaultReadExternalChild(ctx context.Context, in *ExternalChild, db *gorm1.DB) (*ExternalChild, error)

DefaultReadExternalChild executes a basic gorm read call

func DefaultStrictUpdateExternalChild added in v0.9.0

func DefaultStrictUpdateExternalChild(ctx context.Context, in *ExternalChild, db *gorm1.DB) (*ExternalChild, error)

DefaultStrictUpdateExternalChild clears first level 1:many children and then executes a gorm update call

func DefaultUpdateExternalChild added in v0.9.0

func DefaultUpdateExternalChild(ctx context.Context, in *ExternalChild, db *gorm1.DB) (*ExternalChild, error)

DefaultUpdateExternalChild executes a basic gorm update call

func (*ExternalChild) Descriptor added in v0.9.0

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

func (*ExternalChild) GetId added in v0.9.0

func (m *ExternalChild) GetId() string

func (*ExternalChild) ProtoMessage added in v0.9.0

func (*ExternalChild) ProtoMessage()

func (*ExternalChild) Reset added in v0.9.0

func (m *ExternalChild) Reset()

func (*ExternalChild) String added in v0.9.0

func (m *ExternalChild) String() string

func (*ExternalChild) ToORM added in v0.9.0

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

func (*ExternalChild) XXX_DiscardUnknown added in v0.9.0

func (m *ExternalChild) XXX_DiscardUnknown()

func (*ExternalChild) XXX_Marshal added in v0.9.0

func (m *ExternalChild) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExternalChild) XXX_Merge added in v0.9.0

func (dst *ExternalChild) XXX_Merge(src proto.Message)

func (*ExternalChild) XXX_Size added in v0.9.0

func (m *ExternalChild) XXX_Size() int

func (*ExternalChild) XXX_Unmarshal added in v0.9.0

func (m *ExternalChild) XXX_Unmarshal(b []byte) error

type ExternalChildORM added in v0.9.0

type ExternalChildORM struct {
	Id                  string
	PrimaryIncludedId   *go_uuid1.UUID
	PrimaryStringTypeId *string
	PrimaryUUIDTypeId   *go_uuid1.UUID
}

func (ExternalChildORM) TableName added in v0.9.0

func (ExternalChildORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ExternalChildORM) ToPB added in v0.9.0

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 ExternalChildWithAfterToORM added in v0.9.0

type ExternalChildWithAfterToORM interface {
	AfterToORM(context.Context, *ExternalChildORM) error
}

ExternalChildAfterToORM called after default ToORM code

type ExternalChildWithAfterToPB added in v0.9.0

type ExternalChildWithAfterToPB interface {
	AfterToPB(context.Context, *ExternalChild) error
}

ExternalChildAfterToPB called after default ToPB code

type ExternalChildWithBeforePatchSave added in v0.9.1

type ExternalChildWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *ExternalChild, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type ExternalChildWithBeforeToORM added in v0.9.0

type ExternalChildWithBeforeToORM interface {
	BeforeToORM(context.Context, *ExternalChildORM) error
}

ExternalChildBeforeToORM called before default ToORM code

type ExternalChildWithBeforeToPB added in v0.9.0

type ExternalChildWithBeforeToPB interface {
	BeforeToPB(context.Context, *ExternalChild) error
}

ExternalChildBeforeToPB called before default ToPB code

type IntPoint

type IntPoint struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	X                    int32    `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
	Y                    int32    `protobuf:"varint,3,opt,name=y" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IntPoint is a basic message type representing a single cartesian point that we want to store in a database

func DefaultApplyFieldMaskIntPoint added in v0.9.0

func DefaultApplyFieldMaskIntPoint(ctx context.Context, patchee *IntPoint, ormObj *IntPointORM, patcher *IntPoint, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*IntPoint, error)

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

func DefaultCreateIntPoint

func DefaultCreateIntPoint(ctx context.Context, in *IntPoint, db *gorm1.DB) (*IntPoint, error)

DefaultCreateIntPoint executes a basic gorm create call

func DefaultListIntPoint

func DefaultListIntPoint(ctx context.Context, db *gorm1.DB, req interface{}) ([]*IntPoint, error)

DefaultListIntPoint executes a gorm list call

func DefaultPatchIntPoint added in v0.9.0

func DefaultPatchIntPoint(ctx context.Context, in *IntPoint, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*IntPoint, error)

DefaultPatchIntPoint executes a basic gorm update call with patch behavior

func DefaultReadIntPoint

func DefaultReadIntPoint(ctx context.Context, in *IntPoint, db *gorm1.DB) (*IntPoint, error)

DefaultReadIntPoint executes a basic gorm read call

func DefaultStrictUpdateIntPoint

func DefaultStrictUpdateIntPoint(ctx context.Context, in *IntPoint, db *gorm1.DB) (*IntPoint, error)

DefaultStrictUpdateIntPoint clears first level 1:many children and then executes a gorm update call

func DefaultUpdateIntPoint

func DefaultUpdateIntPoint(ctx context.Context, in *IntPoint, db *gorm1.DB) (*IntPoint, error)

DefaultUpdateIntPoint executes a basic gorm update call

func (*IntPoint) Descriptor

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

func (*IntPoint) GetId

func (m *IntPoint) GetId() uint32

func (*IntPoint) GetX

func (m *IntPoint) GetX() int32

func (*IntPoint) GetY

func (m *IntPoint) GetY() int32

func (*IntPoint) ProtoMessage

func (*IntPoint) ProtoMessage()

func (*IntPoint) Reset

func (m *IntPoint) Reset()

func (*IntPoint) String

func (m *IntPoint) String() string

func (*IntPoint) ToORM added in v0.2.1

func (m *IntPoint) ToORM(ctx context.Context) (IntPointORM, 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

func (*IntPoint) XXX_DiscardUnknown added in v0.6.0

func (m *IntPoint) XXX_DiscardUnknown()

func (*IntPoint) XXX_Marshal added in v0.6.0

func (m *IntPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntPoint) XXX_Merge added in v0.6.0

func (dst *IntPoint) XXX_Merge(src proto.Message)

func (*IntPoint) XXX_Size added in v0.6.0

func (m *IntPoint) XXX_Size() int

func (*IntPoint) XXX_Unmarshal added in v0.6.0

func (m *IntPoint) XXX_Unmarshal(b []byte) error

type IntPointORM

type IntPointORM struct {
	Id uint32
	X  int32
	Y  int32
}

func (IntPointORM) TableName

func (IntPointORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*IntPointORM) ToPB added in v0.2.1

func (m *IntPointORM) ToPB(ctx context.Context) (IntPoint, 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 IntPointServiceClient added in v0.6.0

type IntPointServiceClient interface {
	// The convention requires the rpc names have Create/Read/Update/List/Delete
	// as a prefix. The type is inferred from the response (except for delete),
	// so multiple objects can have CURDL handlers in the same service, provided
	// they are given unique suffixes
	Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error)
	Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error)
	Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error)
	List(ctx context.Context, in *ListIntPointRequest, opts ...grpc.CallOption) (*ListIntPointResponse, error)
	Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error)
	// CustomMethod can't be autogenerated as it matches no conventions, it will
	// become a stub
	CustomMethod(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// CreateSomething also doesn't match conventions and will become a stub
	CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error)
}

func NewIntPointServiceClient added in v0.6.0

func NewIntPointServiceClient(cc *grpc.ClientConn) IntPointServiceClient

type IntPointServiceDefaultServer added in v0.6.0

type IntPointServiceDefaultServer struct {
	DB *gorm1.DB
}

func (*IntPointServiceDefaultServer) Create added in v0.6.0

Create ...

func (*IntPointServiceDefaultServer) CreateSomething added in v0.6.0

func (m *IntPointServiceDefaultServer) CreateSomething(ctx context.Context, in *Something) (*Something, error)

CreateSomething ...

func (*IntPointServiceDefaultServer) CustomMethod added in v0.6.0

CustomMethod ...

func (*IntPointServiceDefaultServer) Delete added in v0.6.0

Delete ...

func (*IntPointServiceDefaultServer) List added in v0.6.0

List ...

func (*IntPointServiceDefaultServer) Read added in v0.6.0

Read ...

func (*IntPointServiceDefaultServer) Update added in v0.6.0

Update ...

type IntPointServiceIntPointWithBeforeCreate added in v0.8.0

type IntPointServiceIntPointWithBeforeCreate interface {
	BeforeCreate(context.Context, *CreateIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointServiceIntPointWithBeforeCreate called before DefaultCreateIntPoint in the default Create handler

type IntPointServiceIntPointWithBeforeDelete added in v0.8.0

type IntPointServiceIntPointWithBeforeDelete interface {
	BeforeDelete(context.Context, *DeleteIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointServiceIntPointWithBeforeDelete called before DefaultDeleteIntPoint in the default Delete handler

type IntPointServiceIntPointWithBeforeList added in v0.8.0

type IntPointServiceIntPointWithBeforeList interface {
	BeforeList(context.Context, *ListIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointServiceIntPointWithBeforeList called before DefaultListIntPoint in the default List handler

type IntPointServiceIntPointWithBeforeRead added in v0.8.0

type IntPointServiceIntPointWithBeforeRead interface {
	BeforeRead(context.Context, *ReadIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointServiceIntPointWithBeforeRead called before DefaultReadIntPoint in the default Read handler

type IntPointServiceIntPointWithBeforeUpdate added in v0.8.0

type IntPointServiceIntPointWithBeforeUpdate interface {
	BeforeUpdate(context.Context, *UpdateIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointServiceIntPointWithBeforeUpdate called before DefaultUpdateIntPoint in the default Update handler

type IntPointServiceServer added in v0.6.0

type IntPointServiceServer interface {
	// The convention requires the rpc names have Create/Read/Update/List/Delete
	// as a prefix. The type is inferred from the response (except for delete),
	// so multiple objects can have CURDL handlers in the same service, provided
	// they are given unique suffixes
	Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error)
	Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error)
	Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
	List(context.Context, *ListIntPointRequest) (*ListIntPointResponse, error)
	Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error)
	// CustomMethod can't be autogenerated as it matches no conventions, it will
	// become a stub
	CustomMethod(context.Context, *empty.Empty) (*empty.Empty, error)
	// CreateSomething also doesn't match conventions and will become a stub
	CreateSomething(context.Context, *Something) (*Something, error)
}

type IntPointTxnClient added in v0.6.0

type IntPointTxnClient interface {
	// The convention requires the rpc names have Create/Read/Update/List/Delete
	// as a prefix. The type is inferred from the response (except for delete),
	// so multiple objects can have CURDL handlers in the same service, provided
	// they are given unique suffixes
	Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error)
	Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error)
	Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error)
	List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListIntPointResponse, error)
	Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error)
	// CustomMethod can't be autogenerated as it matches no conventions, it will
	// become a stub
	CustomMethod(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// CreateSomething also doesn't match conventions and will become a stub
	CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error)
}

func NewIntPointTxnClient added in v0.6.0

func NewIntPointTxnClient(cc *grpc.ClientConn) IntPointTxnClient

type IntPointTxnDefaultServer added in v0.6.0

type IntPointTxnDefaultServer struct {
}

func (*IntPointTxnDefaultServer) Create added in v0.6.0

Create ...

func (*IntPointTxnDefaultServer) CreateSomething added in v0.6.0

func (m *IntPointTxnDefaultServer) CreateSomething(ctx context.Context, in *Something) (*Something, error)

CreateSomething ...

func (*IntPointTxnDefaultServer) CustomMethod added in v0.6.0

CustomMethod ...

func (*IntPointTxnDefaultServer) Delete added in v0.6.0

Delete ...

func (*IntPointTxnDefaultServer) List added in v0.6.0

List ...

func (*IntPointTxnDefaultServer) Read added in v0.6.0

Read ...

func (*IntPointTxnDefaultServer) Update added in v0.6.0

Update ...

type IntPointTxnIntPointWithBeforeCreate added in v0.8.0

type IntPointTxnIntPointWithBeforeCreate interface {
	BeforeCreate(context.Context, *CreateIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointTxnIntPointWithBeforeCreate called before DefaultCreateIntPoint in the default Create handler

type IntPointTxnIntPointWithBeforeDelete added in v0.8.0

type IntPointTxnIntPointWithBeforeDelete interface {
	BeforeDelete(context.Context, *DeleteIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointTxnIntPointWithBeforeDelete called before DefaultDeleteIntPoint in the default Delete handler

type IntPointTxnIntPointWithBeforeList added in v0.8.0

type IntPointTxnIntPointWithBeforeList interface {
	BeforeList(context.Context, *google_protobuf2.Empty, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointTxnIntPointWithBeforeList called before DefaultListIntPoint in the default List handler

type IntPointTxnIntPointWithBeforeRead added in v0.8.0

type IntPointTxnIntPointWithBeforeRead interface {
	BeforeRead(context.Context, *ReadIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointTxnIntPointWithBeforeRead called before DefaultReadIntPoint in the default Read handler

type IntPointTxnIntPointWithBeforeUpdate added in v0.8.0

type IntPointTxnIntPointWithBeforeUpdate interface {
	BeforeUpdate(context.Context, *UpdateIntPointRequest, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

IntPointTxnIntPointWithBeforeUpdate called before DefaultUpdateIntPoint in the default Update handler

type IntPointTxnServer added in v0.6.0

type IntPointTxnServer interface {
	// The convention requires the rpc names have Create/Read/Update/List/Delete
	// as a prefix. The type is inferred from the response (except for delete),
	// so multiple objects can have CURDL handlers in the same service, provided
	// they are given unique suffixes
	Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error)
	Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error)
	Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
	List(context.Context, *empty.Empty) (*ListIntPointResponse, error)
	Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error)
	// CustomMethod can't be autogenerated as it matches no conventions, it will
	// become a stub
	CustomMethod(context.Context, *empty.Empty) (*empty.Empty, error)
	// CreateSomething also doesn't match conventions and will become a stub
	CreateSomething(context.Context, *Something) (*Something, error)
}

type IntPointWithAfterToORM added in v0.2.1

type IntPointWithAfterToORM interface {
	AfterToORM(context.Context, *IntPointORM) error
}

IntPointAfterToORM called after default ToORM code

type IntPointWithAfterToPB added in v0.2.1

type IntPointWithAfterToPB interface {
	AfterToPB(context.Context, *IntPoint) error
}

IntPointAfterToPB called after default ToPB code

type IntPointWithBeforePatchSave added in v0.9.1

type IntPointWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *IntPoint, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type IntPointWithBeforeToORM added in v0.2.1

type IntPointWithBeforeToORM interface {
	BeforeToORM(context.Context, *IntPointORM) error
}

IntPointBeforeToORM called before default ToORM code

type IntPointWithBeforeToPB added in v0.2.1

type IntPointWithBeforeToPB interface {
	BeforeToPB(context.Context, *IntPoint) error
}

IntPointBeforeToPB called before default ToPB code

type JoinTable added in v0.7.0

type JoinTable struct {
	TypeWithIDID           uint32
	MultiAccountTypeWithID uint32
}

type ListIntPointRequest added in v0.7.0

type ListIntPointRequest struct {
	Filter               *query.Filtering      `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"`
	OrderBy              *query.Sorting        `protobuf:"bytes,2,opt,name=order_by,json=orderBy" json:"order_by,omitempty"`
	Fields               *query.FieldSelection `protobuf:"bytes,3,opt,name=fields" json:"fields,omitempty"`
	Paging               *query.Pagination     `protobuf:"bytes,4,opt,name=paging" json:"paging,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ListIntPointRequest) Descriptor added in v0.7.0

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

func (*ListIntPointRequest) GetFields added in v0.7.0

func (m *ListIntPointRequest) GetFields() *query.FieldSelection

func (*ListIntPointRequest) GetFilter added in v0.7.0

func (m *ListIntPointRequest) GetFilter() *query.Filtering

func (*ListIntPointRequest) GetOrderBy added in v0.7.0

func (m *ListIntPointRequest) GetOrderBy() *query.Sorting

func (*ListIntPointRequest) GetPaging added in v0.7.0

func (m *ListIntPointRequest) GetPaging() *query.Pagination

func (*ListIntPointRequest) ProtoMessage added in v0.7.0

func (*ListIntPointRequest) ProtoMessage()

func (*ListIntPointRequest) Reset added in v0.7.0

func (m *ListIntPointRequest) Reset()

func (*ListIntPointRequest) String added in v0.7.0

func (m *ListIntPointRequest) String() string

func (*ListIntPointRequest) XXX_DiscardUnknown added in v0.7.0

func (m *ListIntPointRequest) XXX_DiscardUnknown()

func (*ListIntPointRequest) XXX_Marshal added in v0.7.0

func (m *ListIntPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListIntPointRequest) XXX_Merge added in v0.7.0

func (dst *ListIntPointRequest) XXX_Merge(src proto.Message)

func (*ListIntPointRequest) XXX_Size added in v0.7.0

func (m *ListIntPointRequest) XXX_Size() int

func (*ListIntPointRequest) XXX_Unmarshal added in v0.7.0

func (m *ListIntPointRequest) XXX_Unmarshal(b []byte) error

type ListIntPointResponse added in v0.2.0

type ListIntPointResponse struct {
	// Note repeated field and plural name 'results'
	Results              []*IntPoint `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ListIntPointResponse) Descriptor added in v0.2.0

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

func (*ListIntPointResponse) GetResults added in v0.2.0

func (m *ListIntPointResponse) GetResults() []*IntPoint

func (*ListIntPointResponse) ProtoMessage added in v0.2.0

func (*ListIntPointResponse) ProtoMessage()

func (*ListIntPointResponse) Reset added in v0.2.0

func (m *ListIntPointResponse) Reset()

func (*ListIntPointResponse) String added in v0.2.0

func (m *ListIntPointResponse) String() string

func (*ListIntPointResponse) XXX_DiscardUnknown added in v0.6.0

func (m *ListIntPointResponse) XXX_DiscardUnknown()

func (*ListIntPointResponse) XXX_Marshal added in v0.6.0

func (m *ListIntPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListIntPointResponse) XXX_Merge added in v0.6.0

func (dst *ListIntPointResponse) XXX_Merge(src proto.Message)

func (*ListIntPointResponse) XXX_Size added in v0.6.0

func (m *ListIntPointResponse) XXX_Size() int

func (*ListIntPointResponse) XXX_Unmarshal added in v0.6.0

func (m *ListIntPointResponse) XXX_Unmarshal(b []byte) error

type MultiaccountTypeWithID added in v0.2.0

type MultiaccountTypeWithID struct {
	Id                   uint64   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	SomeField            string   `protobuf:"bytes,2,opt,name=some_field,json=someField" json:"some_field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MultiaccountTypeWithID demonstrates the generated multi-account support

func DefaultApplyFieldMaskMultiaccountTypeWithID added in v0.9.0

func DefaultApplyFieldMaskMultiaccountTypeWithID(ctx context.Context, patchee *MultiaccountTypeWithID, ormObj *MultiaccountTypeWithIDORM, patcher *MultiaccountTypeWithID, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*MultiaccountTypeWithID, error)

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

func DefaultCreateMultiaccountTypeWithID added in v0.2.0

func DefaultCreateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm1.DB) (*MultiaccountTypeWithID, error)

DefaultCreateMultiaccountTypeWithID executes a basic gorm create call

func DefaultListMultiaccountTypeWithID added in v0.2.0

func DefaultListMultiaccountTypeWithID(ctx context.Context, db *gorm1.DB, req interface{}) ([]*MultiaccountTypeWithID, error)

DefaultListMultiaccountTypeWithID executes a gorm list call

func DefaultPatchMultiaccountTypeWithID added in v0.9.0

func DefaultPatchMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*MultiaccountTypeWithID, error)

DefaultPatchMultiaccountTypeWithID executes a basic gorm update call with patch behavior

func DefaultReadMultiaccountTypeWithID added in v0.2.0

func DefaultReadMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm1.DB) (*MultiaccountTypeWithID, error)

DefaultReadMultiaccountTypeWithID executes a basic gorm read call

func DefaultStrictUpdateMultiaccountTypeWithID added in v0.2.0

func DefaultStrictUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm1.DB) (*MultiaccountTypeWithID, error)

DefaultStrictUpdateMultiaccountTypeWithID clears first level 1:many children and then executes a gorm update call

func DefaultUpdateMultiaccountTypeWithID added in v0.2.0

func DefaultUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm1.DB) (*MultiaccountTypeWithID, error)

DefaultUpdateMultiaccountTypeWithID executes a basic gorm update call

func (*MultiaccountTypeWithID) Descriptor added in v0.2.0

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

func (*MultiaccountTypeWithID) GetId added in v0.2.0

func (m *MultiaccountTypeWithID) GetId() uint64

func (*MultiaccountTypeWithID) GetSomeField added in v0.2.0

func (m *MultiaccountTypeWithID) GetSomeField() string

func (*MultiaccountTypeWithID) ProtoMessage added in v0.2.0

func (*MultiaccountTypeWithID) ProtoMessage()

func (*MultiaccountTypeWithID) Reset added in v0.2.0

func (m *MultiaccountTypeWithID) Reset()

func (*MultiaccountTypeWithID) String added in v0.2.0

func (m *MultiaccountTypeWithID) String() string

func (*MultiaccountTypeWithID) ToORM added in v0.2.1

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

func (*MultiaccountTypeWithID) XXX_DiscardUnknown added in v0.6.0

func (m *MultiaccountTypeWithID) XXX_DiscardUnknown()

func (*MultiaccountTypeWithID) XXX_Marshal added in v0.6.0

func (m *MultiaccountTypeWithID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiaccountTypeWithID) XXX_Merge added in v0.6.0

func (dst *MultiaccountTypeWithID) XXX_Merge(src proto.Message)

func (*MultiaccountTypeWithID) XXX_Size added in v0.6.0

func (m *MultiaccountTypeWithID) XXX_Size() int

func (*MultiaccountTypeWithID) XXX_Unmarshal added in v0.6.0

func (m *MultiaccountTypeWithID) XXX_Unmarshal(b []byte) error

type MultiaccountTypeWithIDORM added in v0.2.0

type MultiaccountTypeWithIDORM struct {
	AccountID string
	Id        uint64
	SomeField string
}

func (MultiaccountTypeWithIDORM) TableName added in v0.2.0

func (MultiaccountTypeWithIDORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*MultiaccountTypeWithIDORM) ToPB added in v0.2.1

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 MultiaccountTypeWithIDWithAfterToORM added in v0.2.1

type MultiaccountTypeWithIDWithAfterToORM interface {
	AfterToORM(context.Context, *MultiaccountTypeWithIDORM) error
}

MultiaccountTypeWithIDAfterToORM called after default ToORM code

type MultiaccountTypeWithIDWithAfterToPB added in v0.2.1

type MultiaccountTypeWithIDWithAfterToPB interface {
	AfterToPB(context.Context, *MultiaccountTypeWithID) error
}

MultiaccountTypeWithIDAfterToPB called after default ToPB code

type MultiaccountTypeWithIDWithBeforePatchSave added in v0.9.1

type MultiaccountTypeWithIDWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *MultiaccountTypeWithID, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type MultiaccountTypeWithIDWithBeforeToORM added in v0.2.1

type MultiaccountTypeWithIDWithBeforeToORM interface {
	BeforeToORM(context.Context, *MultiaccountTypeWithIDORM) error
}

MultiaccountTypeWithIDBeforeToORM called before default ToORM code

type MultiaccountTypeWithIDWithBeforeToPB added in v0.2.1

type MultiaccountTypeWithIDWithBeforeToPB interface {
	BeforeToPB(context.Context, *MultiaccountTypeWithID) error
}

MultiaccountTypeWithIDBeforeToPB called before default ToPB code

type MultiaccountTypeWithoutID added in v0.2.0

type MultiaccountTypeWithoutID struct {
	SomeField            string   `protobuf:"bytes,1,opt,name=some_field,json=someField" json:"some_field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func DefaultApplyFieldMaskMultiaccountTypeWithoutID added in v0.10.0

func DefaultApplyFieldMaskMultiaccountTypeWithoutID(ctx context.Context, patchee *MultiaccountTypeWithoutID, ormObj *MultiaccountTypeWithoutIDORM, patcher *MultiaccountTypeWithoutID, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*MultiaccountTypeWithoutID, error)

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

func DefaultCreateMultiaccountTypeWithoutID added in v0.2.0

func DefaultCreateMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm1.DB) (*MultiaccountTypeWithoutID, error)

DefaultCreateMultiaccountTypeWithoutID executes a basic gorm create call

func DefaultListMultiaccountTypeWithoutID added in v0.2.0

func DefaultListMultiaccountTypeWithoutID(ctx context.Context, db *gorm1.DB, req interface{}) ([]*MultiaccountTypeWithoutID, error)

DefaultListMultiaccountTypeWithoutID executes a gorm list call

func (*MultiaccountTypeWithoutID) Descriptor added in v0.2.0

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

func (*MultiaccountTypeWithoutID) GetSomeField added in v0.2.0

func (m *MultiaccountTypeWithoutID) GetSomeField() string

func (*MultiaccountTypeWithoutID) ProtoMessage added in v0.2.0

func (*MultiaccountTypeWithoutID) ProtoMessage()

func (*MultiaccountTypeWithoutID) Reset added in v0.2.0

func (m *MultiaccountTypeWithoutID) Reset()

func (*MultiaccountTypeWithoutID) String added in v0.2.0

func (m *MultiaccountTypeWithoutID) String() string

func (*MultiaccountTypeWithoutID) ToORM added in v0.2.1

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

func (*MultiaccountTypeWithoutID) XXX_DiscardUnknown added in v0.6.0

func (m *MultiaccountTypeWithoutID) XXX_DiscardUnknown()

func (*MultiaccountTypeWithoutID) XXX_Marshal added in v0.6.0

func (m *MultiaccountTypeWithoutID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiaccountTypeWithoutID) XXX_Merge added in v0.6.0

func (dst *MultiaccountTypeWithoutID) XXX_Merge(src proto.Message)

func (*MultiaccountTypeWithoutID) XXX_Size added in v0.6.0

func (m *MultiaccountTypeWithoutID) XXX_Size() int

func (*MultiaccountTypeWithoutID) XXX_Unmarshal added in v0.6.0

func (m *MultiaccountTypeWithoutID) XXX_Unmarshal(b []byte) error

type MultiaccountTypeWithoutIDORM added in v0.2.0

type MultiaccountTypeWithoutIDORM struct {
	AccountID string
	SomeField string
}

func (MultiaccountTypeWithoutIDORM) TableName added in v0.2.0

TableName overrides the default tablename generated by GORM

func (*MultiaccountTypeWithoutIDORM) ToPB added in v0.2.1

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 MultiaccountTypeWithoutIDWithAfterToORM added in v0.2.1

type MultiaccountTypeWithoutIDWithAfterToORM interface {
	AfterToORM(context.Context, *MultiaccountTypeWithoutIDORM) error
}

MultiaccountTypeWithoutIDAfterToORM called after default ToORM code

type MultiaccountTypeWithoutIDWithAfterToPB added in v0.2.1

type MultiaccountTypeWithoutIDWithAfterToPB interface {
	AfterToPB(context.Context, *MultiaccountTypeWithoutID) error
}

MultiaccountTypeWithoutIDAfterToPB called after default ToPB code

type MultiaccountTypeWithoutIDWithBeforeToORM added in v0.2.1

type MultiaccountTypeWithoutIDWithBeforeToORM interface {
	BeforeToORM(context.Context, *MultiaccountTypeWithoutIDORM) error
}

MultiaccountTypeWithoutIDBeforeToORM called before default ToORM code

type MultiaccountTypeWithoutIDWithBeforeToPB added in v0.2.1

type MultiaccountTypeWithoutIDWithBeforeToPB interface {
	BeforeToPB(context.Context, *MultiaccountTypeWithoutID) error
}

MultiaccountTypeWithoutIDBeforeToPB called before default ToPB code

type PrimaryIncluded added in v0.9.1

type PrimaryIncluded struct {
	Child                *ExternalChild `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func DefaultApplyFieldMaskPrimaryIncluded added in v0.10.0

func DefaultApplyFieldMaskPrimaryIncluded(ctx context.Context, patchee *PrimaryIncluded, ormObj *PrimaryIncludedORM, patcher *PrimaryIncluded, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*PrimaryIncluded, error)

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

func DefaultCreatePrimaryIncluded added in v0.9.1

func DefaultCreatePrimaryIncluded(ctx context.Context, in *PrimaryIncluded, db *gorm1.DB) (*PrimaryIncluded, error)

DefaultCreatePrimaryIncluded executes a basic gorm create call

func DefaultListPrimaryIncluded added in v0.9.1

func DefaultListPrimaryIncluded(ctx context.Context, db *gorm1.DB, req interface{}) ([]*PrimaryIncluded, error)

DefaultListPrimaryIncluded executes a gorm list call

func (*PrimaryIncluded) Descriptor added in v0.9.1

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

func (*PrimaryIncluded) GetChild added in v0.9.1

func (m *PrimaryIncluded) GetChild() *ExternalChild

func (*PrimaryIncluded) ProtoMessage added in v0.9.1

func (*PrimaryIncluded) ProtoMessage()

func (*PrimaryIncluded) Reset added in v0.9.1

func (m *PrimaryIncluded) Reset()

func (*PrimaryIncluded) String added in v0.9.1

func (m *PrimaryIncluded) String() string

func (*PrimaryIncluded) ToORM added in v0.9.1

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

func (*PrimaryIncluded) XXX_DiscardUnknown added in v0.9.1

func (m *PrimaryIncluded) XXX_DiscardUnknown()

func (*PrimaryIncluded) XXX_Marshal added in v0.9.1

func (m *PrimaryIncluded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrimaryIncluded) XXX_Merge added in v0.9.1

func (dst *PrimaryIncluded) XXX_Merge(src proto.Message)

func (*PrimaryIncluded) XXX_Size added in v0.9.1

func (m *PrimaryIncluded) XXX_Size() int

func (*PrimaryIncluded) XXX_Unmarshal added in v0.9.1

func (m *PrimaryIncluded) XXX_Unmarshal(b []byte) error

type PrimaryIncludedORM added in v0.9.1

type PrimaryIncludedORM struct {
	Child *ExternalChildORM `gorm:"foreignkey:PrimaryIncludedId;association_foreignkey:Id"`
	Id    go_uuid1.UUID
}

func (PrimaryIncludedORM) TableName added in v0.9.1

func (PrimaryIncludedORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*PrimaryIncludedORM) ToPB added in v0.9.1

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 PrimaryIncludedWithAfterToORM added in v0.9.1

type PrimaryIncludedWithAfterToORM interface {
	AfterToORM(context.Context, *PrimaryIncludedORM) error
}

PrimaryIncludedAfterToORM called after default ToORM code

type PrimaryIncludedWithAfterToPB added in v0.9.1

type PrimaryIncludedWithAfterToPB interface {
	AfterToPB(context.Context, *PrimaryIncluded) error
}

PrimaryIncludedAfterToPB called after default ToPB code

type PrimaryIncludedWithBeforeToORM added in v0.9.1

type PrimaryIncludedWithBeforeToORM interface {
	BeforeToORM(context.Context, *PrimaryIncludedORM) error
}

PrimaryIncludedBeforeToORM called before default ToORM code

type PrimaryIncludedWithBeforeToPB added in v0.9.1

type PrimaryIncludedWithBeforeToPB interface {
	BeforeToPB(context.Context, *PrimaryIncluded) error
}

PrimaryIncludedBeforeToPB called before default ToPB code

type PrimaryStringType added in v0.9.0

type PrimaryStringType struct {
	Id                   string         `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Child                *ExternalChild `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func DefaultApplyFieldMaskPrimaryStringType added in v0.9.0

func DefaultApplyFieldMaskPrimaryStringType(ctx context.Context, patchee *PrimaryStringType, ormObj *PrimaryStringTypeORM, patcher *PrimaryStringType, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*PrimaryStringType, error)

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

func DefaultCreatePrimaryStringType added in v0.9.0

func DefaultCreatePrimaryStringType(ctx context.Context, in *PrimaryStringType, db *gorm1.DB) (*PrimaryStringType, error)

DefaultCreatePrimaryStringType executes a basic gorm create call

func DefaultListPrimaryStringType added in v0.9.0

func DefaultListPrimaryStringType(ctx context.Context, db *gorm1.DB, req interface{}) ([]*PrimaryStringType, error)

DefaultListPrimaryStringType executes a gorm list call

func DefaultPatchPrimaryStringType added in v0.9.0

func DefaultPatchPrimaryStringType(ctx context.Context, in *PrimaryStringType, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*PrimaryStringType, error)

DefaultPatchPrimaryStringType executes a basic gorm update call with patch behavior

func DefaultReadPrimaryStringType added in v0.9.0

func DefaultReadPrimaryStringType(ctx context.Context, in *PrimaryStringType, db *gorm1.DB) (*PrimaryStringType, error)

DefaultReadPrimaryStringType executes a basic gorm read call

func DefaultStrictUpdatePrimaryStringType added in v0.9.0

func DefaultStrictUpdatePrimaryStringType(ctx context.Context, in *PrimaryStringType, db *gorm1.DB) (*PrimaryStringType, error)

DefaultStrictUpdatePrimaryStringType clears first level 1:many children and then executes a gorm update call

func DefaultUpdatePrimaryStringType added in v0.9.0

func DefaultUpdatePrimaryStringType(ctx context.Context, in *PrimaryStringType, db *gorm1.DB) (*PrimaryStringType, error)

DefaultUpdatePrimaryStringType executes a basic gorm update call

func (*PrimaryStringType) Descriptor added in v0.9.0

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

func (*PrimaryStringType) GetChild added in v0.9.0

func (m *PrimaryStringType) GetChild() *ExternalChild

func (*PrimaryStringType) GetId added in v0.9.0

func (m *PrimaryStringType) GetId() string

func (*PrimaryStringType) ProtoMessage added in v0.9.0

func (*PrimaryStringType) ProtoMessage()

func (*PrimaryStringType) Reset added in v0.9.0

func (m *PrimaryStringType) Reset()

func (*PrimaryStringType) String added in v0.9.0

func (m *PrimaryStringType) String() string

func (*PrimaryStringType) ToORM added in v0.9.0

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

func (*PrimaryStringType) XXX_DiscardUnknown added in v0.9.0

func (m *PrimaryStringType) XXX_DiscardUnknown()

func (*PrimaryStringType) XXX_Marshal added in v0.9.0

func (m *PrimaryStringType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrimaryStringType) XXX_Merge added in v0.9.0

func (dst *PrimaryStringType) XXX_Merge(src proto.Message)

func (*PrimaryStringType) XXX_Size added in v0.9.0

func (m *PrimaryStringType) XXX_Size() int

func (*PrimaryStringType) XXX_Unmarshal added in v0.9.0

func (m *PrimaryStringType) XXX_Unmarshal(b []byte) error

type PrimaryStringTypeORM added in v0.9.0

type PrimaryStringTypeORM struct {
	Child *ExternalChildORM `gorm:"foreignkey:PrimaryStringTypeId;association_foreignkey:Id"`
	Id    string
}

func (PrimaryStringTypeORM) TableName added in v0.9.0

func (PrimaryStringTypeORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*PrimaryStringTypeORM) ToPB added in v0.9.0

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 PrimaryStringTypeWithAfterToORM added in v0.9.0

type PrimaryStringTypeWithAfterToORM interface {
	AfterToORM(context.Context, *PrimaryStringTypeORM) error
}

PrimaryStringTypeAfterToORM called after default ToORM code

type PrimaryStringTypeWithAfterToPB added in v0.9.0

type PrimaryStringTypeWithAfterToPB interface {
	AfterToPB(context.Context, *PrimaryStringType) error
}

PrimaryStringTypeAfterToPB called after default ToPB code

type PrimaryStringTypeWithBeforePatchSave added in v0.9.1

type PrimaryStringTypeWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *PrimaryStringType, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type PrimaryStringTypeWithBeforeToORM added in v0.9.0

type PrimaryStringTypeWithBeforeToORM interface {
	BeforeToORM(context.Context, *PrimaryStringTypeORM) error
}

PrimaryStringTypeBeforeToORM called before default ToORM code

type PrimaryStringTypeWithBeforeToPB added in v0.9.0

type PrimaryStringTypeWithBeforeToPB interface {
	BeforeToPB(context.Context, *PrimaryStringType) error
}

PrimaryStringTypeBeforeToPB called before default ToPB code

type PrimaryUUIDType added in v0.9.0

type PrimaryUUIDType struct {
	Id                   *types.UUIDValue `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Child                *ExternalChild   `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func DefaultApplyFieldMaskPrimaryUUIDType added in v0.9.0

func DefaultApplyFieldMaskPrimaryUUIDType(ctx context.Context, patchee *PrimaryUUIDType, ormObj *PrimaryUUIDTypeORM, patcher *PrimaryUUIDType, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*PrimaryUUIDType, error)

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

func DefaultCreatePrimaryUUIDType added in v0.9.0

func DefaultCreatePrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, db *gorm1.DB) (*PrimaryUUIDType, error)

DefaultCreatePrimaryUUIDType executes a basic gorm create call

func DefaultListPrimaryUUIDType added in v0.9.0

func DefaultListPrimaryUUIDType(ctx context.Context, db *gorm1.DB, req interface{}) ([]*PrimaryUUIDType, error)

DefaultListPrimaryUUIDType executes a gorm list call

func DefaultPatchPrimaryUUIDType added in v0.9.0

func DefaultPatchPrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*PrimaryUUIDType, error)

DefaultPatchPrimaryUUIDType executes a basic gorm update call with patch behavior

func DefaultReadPrimaryUUIDType added in v0.9.0

func DefaultReadPrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, db *gorm1.DB) (*PrimaryUUIDType, error)

DefaultReadPrimaryUUIDType executes a basic gorm read call

func DefaultStrictUpdatePrimaryUUIDType added in v0.9.0

func DefaultStrictUpdatePrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, db *gorm1.DB) (*PrimaryUUIDType, error)

DefaultStrictUpdatePrimaryUUIDType clears first level 1:many children and then executes a gorm update call

func DefaultUpdatePrimaryUUIDType added in v0.9.0

func DefaultUpdatePrimaryUUIDType(ctx context.Context, in *PrimaryUUIDType, db *gorm1.DB) (*PrimaryUUIDType, error)

DefaultUpdatePrimaryUUIDType executes a basic gorm update call

func (*PrimaryUUIDType) Descriptor added in v0.9.0

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

func (*PrimaryUUIDType) GetChild added in v0.9.0

func (m *PrimaryUUIDType) GetChild() *ExternalChild

func (*PrimaryUUIDType) GetId added in v0.9.0

func (m *PrimaryUUIDType) GetId() *types.UUIDValue

func (*PrimaryUUIDType) ProtoMessage added in v0.9.0

func (*PrimaryUUIDType) ProtoMessage()

func (*PrimaryUUIDType) Reset added in v0.9.0

func (m *PrimaryUUIDType) Reset()

func (*PrimaryUUIDType) String added in v0.9.0

func (m *PrimaryUUIDType) String() string

func (*PrimaryUUIDType) ToORM added in v0.9.0

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

func (*PrimaryUUIDType) XXX_DiscardUnknown added in v0.9.0

func (m *PrimaryUUIDType) XXX_DiscardUnknown()

func (*PrimaryUUIDType) XXX_Marshal added in v0.9.0

func (m *PrimaryUUIDType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrimaryUUIDType) XXX_Merge added in v0.9.0

func (dst *PrimaryUUIDType) XXX_Merge(src proto.Message)

func (*PrimaryUUIDType) XXX_Size added in v0.9.0

func (m *PrimaryUUIDType) XXX_Size() int

func (*PrimaryUUIDType) XXX_Unmarshal added in v0.9.0

func (m *PrimaryUUIDType) XXX_Unmarshal(b []byte) error

type PrimaryUUIDTypeORM added in v0.9.0

type PrimaryUUIDTypeORM struct {
	Child *ExternalChildORM `gorm:"foreignkey:PrimaryUUIDTypeId;association_foreignkey:Id"`
	Id    *go_uuid1.UUID    `gorm:"type:uuid"`
}

func (PrimaryUUIDTypeORM) TableName added in v0.9.0

func (PrimaryUUIDTypeORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*PrimaryUUIDTypeORM) ToPB added in v0.9.0

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 PrimaryUUIDTypeWithAfterToORM added in v0.9.0

type PrimaryUUIDTypeWithAfterToORM interface {
	AfterToORM(context.Context, *PrimaryUUIDTypeORM) error
}

PrimaryUUIDTypeAfterToORM called after default ToORM code

type PrimaryUUIDTypeWithAfterToPB added in v0.9.0

type PrimaryUUIDTypeWithAfterToPB interface {
	AfterToPB(context.Context, *PrimaryUUIDType) error
}

PrimaryUUIDTypeAfterToPB called after default ToPB code

type PrimaryUUIDTypeWithBeforePatchSave added in v0.9.1

type PrimaryUUIDTypeWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *PrimaryUUIDType, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type PrimaryUUIDTypeWithBeforeToORM added in v0.9.0

type PrimaryUUIDTypeWithBeforeToORM interface {
	BeforeToORM(context.Context, *PrimaryUUIDTypeORM) error
}

PrimaryUUIDTypeBeforeToORM called before default ToORM code

type PrimaryUUIDTypeWithBeforeToPB added in v0.9.0

type PrimaryUUIDTypeWithBeforeToPB interface {
	BeforeToPB(context.Context, *PrimaryUUIDType) error
}

PrimaryUUIDTypeBeforeToPB called before default ToPB code

type ReadIntPointRequest added in v0.2.0

type ReadIntPointRequest struct {
	// For a read request, the id field is the only to be specified
	Id                   uint32   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReadIntPointRequest) Descriptor added in v0.2.0

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

func (*ReadIntPointRequest) GetId added in v0.2.0

func (m *ReadIntPointRequest) GetId() uint32

func (*ReadIntPointRequest) ProtoMessage added in v0.2.0

func (*ReadIntPointRequest) ProtoMessage()

func (*ReadIntPointRequest) Reset added in v0.2.0

func (m *ReadIntPointRequest) Reset()

func (*ReadIntPointRequest) String added in v0.2.0

func (m *ReadIntPointRequest) String() string

func (*ReadIntPointRequest) XXX_DiscardUnknown added in v0.6.0

func (m *ReadIntPointRequest) XXX_DiscardUnknown()

func (*ReadIntPointRequest) XXX_Marshal added in v0.6.0

func (m *ReadIntPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadIntPointRequest) XXX_Merge added in v0.6.0

func (dst *ReadIntPointRequest) XXX_Merge(src proto.Message)

func (*ReadIntPointRequest) XXX_Size added in v0.6.0

func (m *ReadIntPointRequest) XXX_Size() int

func (*ReadIntPointRequest) XXX_Unmarshal added in v0.6.0

func (m *ReadIntPointRequest) XXX_Unmarshal(b []byte) error

type ReadIntPointResponse added in v0.2.0

type ReadIntPointResponse struct {
	// Again the type with 'result' name
	Result               *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ReadIntPointResponse) Descriptor added in v0.2.0

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

func (*ReadIntPointResponse) GetResult added in v0.2.0

func (m *ReadIntPointResponse) GetResult() *IntPoint

func (*ReadIntPointResponse) ProtoMessage added in v0.2.0

func (*ReadIntPointResponse) ProtoMessage()

func (*ReadIntPointResponse) Reset added in v0.2.0

func (m *ReadIntPointResponse) Reset()

func (*ReadIntPointResponse) String added in v0.2.0

func (m *ReadIntPointResponse) String() string

func (*ReadIntPointResponse) XXX_DiscardUnknown added in v0.6.0

func (m *ReadIntPointResponse) XXX_DiscardUnknown()

func (*ReadIntPointResponse) XXX_Marshal added in v0.6.0

func (m *ReadIntPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReadIntPointResponse) XXX_Merge added in v0.6.0

func (dst *ReadIntPointResponse) XXX_Merge(src proto.Message)

func (*ReadIntPointResponse) XXX_Size added in v0.6.0

func (m *ReadIntPointResponse) XXX_Size() int

func (*ReadIntPointResponse) XXX_Unmarshal added in v0.6.0

func (m *ReadIntPointResponse) XXX_Unmarshal(b []byte) error

type Something added in v0.2.0

type Something struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A dummy type to demo an rpc that can't be autogenerated

func (*Something) Descriptor added in v0.2.0

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

func (*Something) ProtoMessage added in v0.2.0

func (*Something) ProtoMessage()

func (*Something) Reset added in v0.2.0

func (m *Something) Reset()

func (*Something) String added in v0.2.0

func (m *Something) String() string

func (*Something) XXX_DiscardUnknown added in v0.6.0

func (m *Something) XXX_DiscardUnknown()

func (*Something) XXX_Marshal added in v0.6.0

func (m *Something) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Something) XXX_Merge added in v0.6.0

func (dst *Something) XXX_Merge(src proto.Message)

func (*Something) XXX_Size added in v0.6.0

func (m *Something) XXX_Size() int

func (*Something) XXX_Unmarshal added in v0.6.0

func (m *Something) XXX_Unmarshal(b []byte) error

type TestTypes

type TestTypes struct {
	// the (gorm.field).drop option allows for setting a field to be API only
	ApiOnlyString string `protobuf:"bytes,1,opt,name=api_only_string,json=apiOnlyString" json:"api_only_string,omitempty"`
	// repeated raw types are currently unsupported, so this field will be dropped
	// at the ORM level
	Numbers []int32 `protobuf:"varint,2,rep,packed,name=numbers" json:"numbers,omitempty"`
	// a StringValue represents a Nullable string
	OptionalString *wrappers.StringValue `protobuf:"bytes,3,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
	BecomesInt     TestTypesStatus       `protobuf:"varint,4,opt,name=becomes_int,json=becomesInt,enum=example.TestTypesStatus" json:"becomes_int,omitempty"`
	// The Empty type serves no purpose outside of rpc calls and is dropped
	// automatically from objects
	Nothingness *empty.Empty `protobuf:"bytes,5,opt,name=nothingness" json:"nothingness,omitempty"`
	// The UUID custom type should act like a StringValue at the API level, but is
	// automatically converted to and from a uuid.UUID (github.com/satori/go.uuid)
	Uuid *types.UUID `protobuf:"bytes,6,opt,name=uuid" json:"uuid,omitempty"`
	// Timestamps convert to golang's time.Time type, and created_at and
	// updated_at values are automatically filled by GORM
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	// This represents a foreign key to the 'type_with_id' type for associations
	// This could be hidden from the API (or soon autogenerated).
	TypeWithIdId uint32 `protobuf:"varint,8,opt,name=type_with_id_id,json=typeWithIdId" json:"type_with_id_id,omitempty"`
	// This is an arbitrary JSON string that is marshalled and unmarshalled
	// specially in grpc-gateway as a JSON object
	JsonField *types.JSONValue `protobuf:"bytes,9,opt,name=json_field,json=jsonField" json:"json_field,omitempty"`
	// The UUIDValue custom type should act like a StringValue at the API level, but is
	// automatically converted to and from a *uuid.UUID (github.com/satori/go.uuid)
	NullableUuid         *types.UUIDValue `protobuf:"bytes,10,opt,name=nullable_uuid,json=nullableUuid" json:"nullable_uuid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

test_types is a message that includes a representative sample of the available types

func DefaultApplyFieldMaskTestTypes added in v0.10.0

func DefaultApplyFieldMaskTestTypes(ctx context.Context, patchee *TestTypes, ormObj *TestTypesORM, patcher *TestTypes, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*TestTypes, error)

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

func DefaultCreateTestTypes

func DefaultCreateTestTypes(ctx context.Context, in *TestTypes, db *gorm1.DB) (*TestTypes, error)

DefaultCreateTestTypes executes a basic gorm create call

func DefaultListTestTypes

func DefaultListTestTypes(ctx context.Context, db *gorm1.DB, req interface{}) ([]*TestTypes, error)

DefaultListTestTypes executes a gorm list call

func (*TestTypes) Descriptor

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

func (*TestTypes) GetApiOnlyString

func (m *TestTypes) GetApiOnlyString() string

func (*TestTypes) GetBecomesInt

func (m *TestTypes) GetBecomesInt() TestTypesStatus

func (*TestTypes) GetCreatedAt

func (m *TestTypes) GetCreatedAt() *timestamp.Timestamp

func (*TestTypes) GetJsonField added in v0.5.0

func (m *TestTypes) GetJsonField() *types.JSONValue

func (*TestTypes) GetNothingness

func (m *TestTypes) GetNothingness() *empty.Empty

func (*TestTypes) GetNullableUuid added in v0.5.1

func (m *TestTypes) GetNullableUuid() *types.UUIDValue

func (*TestTypes) GetNumbers

func (m *TestTypes) GetNumbers() []int32

func (*TestTypes) GetOptionalString

func (m *TestTypes) GetOptionalString() *wrappers.StringValue

func (*TestTypes) GetTypeWithIdId added in v0.2.0

func (m *TestTypes) GetTypeWithIdId() uint32

func (*TestTypes) GetUuid

func (m *TestTypes) GetUuid() *types.UUID

func (*TestTypes) ProtoMessage

func (*TestTypes) ProtoMessage()

func (*TestTypes) Reset

func (m *TestTypes) Reset()

func (*TestTypes) String

func (m *TestTypes) String() string

func (*TestTypes) ToORM added in v0.2.1

func (m *TestTypes) ToORM(ctx context.Context) (TestTypesORM, 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

func (*TestTypes) XXX_DiscardUnknown added in v0.6.0

func (m *TestTypes) XXX_DiscardUnknown()

func (*TestTypes) XXX_Marshal added in v0.6.0

func (m *TestTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestTypes) XXX_Merge added in v0.6.0

func (dst *TestTypes) XXX_Merge(src proto.Message)

func (*TestTypes) XXX_Size added in v0.6.0

func (m *TestTypes) XXX_Size() int

func (*TestTypes) XXX_Unmarshal added in v0.6.0

func (m *TestTypes) XXX_Unmarshal(b []byte) error

type TestTypesORM

type TestTypesORM struct {
	ANestedObjectTypeWithIDId *uint32
	Array                     pq1.StringArray
	Array2                    pq1.StringArray
	BecomesInt                string
	CreatedAt                 time.Time
	JsonField                 *postgres1.Jsonb `gorm:"type:jsonb"`
	NullableUuid              *go_uuid1.UUID   `gorm:"type:uuid"`
	OptionalString            *string
	ThingsTypeWithIDId        *uint32
	TypeWithIdId              uint32
	Uuid                      go_uuid1.UUID `gorm:"type:uuid"`
}

func (TestTypesORM) TableName

func (TestTypesORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TestTypesORM) ToPB added in v0.2.1

func (m *TestTypesORM) ToPB(ctx context.Context) (TestTypes, 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 TestTypesStatus

type TestTypesStatus int32

enums are mapped to the their underlying numeric value in the db. This is practical from an API perspective, but tougher for debugging. Strings with validation constraints can be used instead if desired

const (
	TestTypes_UNKNOWN TestTypesStatus = 0
	TestTypes_GOOD    TestTypesStatus = 1
	TestTypes_BAD     TestTypesStatus = 2
)

func (TestTypesStatus) EnumDescriptor

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

func (TestTypesStatus) String

func (x TestTypesStatus) String() string

type TestTypesWithAfterToORM added in v0.2.1

type TestTypesWithAfterToORM interface {
	AfterToORM(context.Context, *TestTypesORM) error
}

TestTypesAfterToORM called after default ToORM code

type TestTypesWithAfterToPB added in v0.2.1

type TestTypesWithAfterToPB interface {
	AfterToPB(context.Context, *TestTypes) error
}

TestTypesAfterToPB called after default ToPB code

type TestTypesWithBeforeToORM added in v0.2.1

type TestTypesWithBeforeToORM interface {
	BeforeToORM(context.Context, *TestTypesORM) error
}

TestTypesBeforeToORM called before default ToORM code

type TestTypesWithBeforeToPB added in v0.2.1

type TestTypesWithBeforeToPB interface {
	BeforeToPB(context.Context, *TestTypes) error
}

TestTypesBeforeToPB called before default ToPB code

type TypeWithID added in v0.2.0

type TypeWithID struct {
	// any field named 'id' is assumed by gorm to be the primary key for the
	// object.
	Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The field option also allows arbitrary tag setting, such as informing
	// gorm of a primary key, different column names or different types in the db
	Ip string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"`
	// A default has-many relationship, will error on generation if no FK field,
	// convention {typename}_id, is present. These FK fields will be automatically
	// populated on create and update.
	Things []*TestTypes `protobuf:"bytes,3,rep,name=things" json:"things,omitempty"`
	// A default has-one relationship, will error as above
	ANestedObject *TestTypes `protobuf:"bytes,4,opt,name=a_nested_object,json=aNestedObject" json:"a_nested_object,omitempty"`
	// An in-package and cross-package imported type (in-package can use any
	// association type, cross-package is limited to belongs_to and many_to_many)
	Point                *IntPoint        `protobuf:"bytes,5,opt,name=point" json:"point,omitempty"`
	User                 *user.User       `protobuf:"bytes,6,opt,name=user" json:"user,omitempty"`
	Address              *types.InetValue `protobuf:"bytes,7,opt,name=address" json:"address,omitempty"`
	MultiaccountTypeIds  []uint32         `protobuf:"varint,8,rep,packed,name=multiaccount_type_ids,json=multiaccountTypeIds" json:"multiaccount_type_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

TypeWithID demonstrates some basic assocation behavior

func DefaultApplyFieldMaskTypeWithID added in v0.9.0

func DefaultApplyFieldMaskTypeWithID(ctx context.Context, patchee *TypeWithID, ormObj *TypeWithIDORM, patcher *TypeWithID, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*TypeWithID, error)

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

func DefaultCreateTypeWithID

func DefaultCreateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm1.DB) (*TypeWithID, error)

DefaultCreateTypeWithID executes a basic gorm create call

func DefaultListTypeWithID added in v0.2.0

func DefaultListTypeWithID(ctx context.Context, db *gorm1.DB, req interface{}) ([]*TypeWithID, error)

DefaultListTypeWithID executes a gorm list call

func DefaultPatchTypeWithID added in v0.9.0

func DefaultPatchTypeWithID(ctx context.Context, in *TypeWithID, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*TypeWithID, error)

DefaultPatchTypeWithID executes a basic gorm update call with patch behavior

func DefaultReadTypeWithID

func DefaultReadTypeWithID(ctx context.Context, in *TypeWithID, db *gorm1.DB) (*TypeWithID, error)

DefaultReadTypeWithID executes a basic gorm read call

func DefaultStrictUpdateTypeWithID

func DefaultStrictUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm1.DB) (*TypeWithID, error)

DefaultStrictUpdateTypeWithID clears first level 1:many children and then executes a gorm update call

func DefaultUpdateTypeWithID

func DefaultUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm1.DB) (*TypeWithID, error)

DefaultUpdateTypeWithID executes a basic gorm update call

func (*TypeWithID) AfterToORM added in v0.7.0

func (pb *TypeWithID) AfterToORM(ctx context.Context, orm *TypeWithIDORM) error

func (*TypeWithID) Descriptor added in v0.2.0

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

func (*TypeWithID) GetANestedObject added in v0.2.0

func (m *TypeWithID) GetANestedObject() *TestTypes

func (*TypeWithID) GetAddress added in v0.6.0

func (m *TypeWithID) GetAddress() *types.InetValue

func (*TypeWithID) GetId added in v0.2.0

func (m *TypeWithID) GetId() uint32

func (*TypeWithID) GetIp added in v0.2.0

func (m *TypeWithID) GetIp() string

func (*TypeWithID) GetMultiaccountTypeIds added in v0.7.0

func (m *TypeWithID) GetMultiaccountTypeIds() []uint32

func (*TypeWithID) GetPoint added in v0.6.0

func (m *TypeWithID) GetPoint() *IntPoint

func (*TypeWithID) GetThings added in v0.2.0

func (m *TypeWithID) GetThings() []*TestTypes

func (*TypeWithID) GetUser added in v0.6.0

func (m *TypeWithID) GetUser() *user.User

func (*TypeWithID) ProtoMessage added in v0.2.0

func (*TypeWithID) ProtoMessage()

func (*TypeWithID) Reset added in v0.2.0

func (m *TypeWithID) Reset()

func (*TypeWithID) String added in v0.2.0

func (m *TypeWithID) String() string

func (*TypeWithID) ToORM added in v0.2.1

func (m *TypeWithID) ToORM(ctx context.Context) (TypeWithIDORM, 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

func (*TypeWithID) XXX_DiscardUnknown added in v0.6.0

func (m *TypeWithID) XXX_DiscardUnknown()

func (*TypeWithID) XXX_Marshal added in v0.6.0

func (m *TypeWithID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TypeWithID) XXX_Merge added in v0.6.0

func (dst *TypeWithID) XXX_Merge(src proto.Message)

func (*TypeWithID) XXX_Size added in v0.6.0

func (m *TypeWithID) XXX_Size() int

func (*TypeWithID) XXX_Unmarshal added in v0.6.0

func (m *TypeWithID) XXX_Unmarshal(b []byte) error

type TypeWithIDORM

type TypeWithIDORM struct {
	ANestedObject     *TestTypesORM `gorm:"foreignkey:ANestedObjectTypeWithIDId;association_foreignkey:Id"`
	Address           *types1.Inet  `gorm:"type:inet"`
	Id                uint32
	IntPointId        *uint32
	Ip                string          `gorm:"column:ip_addr"`
	MultiAccountTypes []*JoinTable    `gorm:"foreignkey:TypeWithIDID"`
	Point             *IntPointORM    `gorm:"foreignkey:IntPointId;association_foreignkey:Id"`
	SecretInt         int32           `gorm:"-"`
	Things            []*TestTypesORM `gorm:"foreignkey:ThingsTypeWithIDId;association_foreignkey:Id"`
	User              *user.UserORM   `gorm:"foreignkey:UserId;association_foreignkey:Id"`
	UserId            *string
}

func (*TypeWithIDORM) AfterToPB added in v0.7.0

func (orm *TypeWithIDORM) AfterToPB(ctx context.Context, pb *TypeWithID) error

func (TypeWithIDORM) TableName

func (TypeWithIDORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TypeWithIDORM) ToPB added in v0.2.1

func (m *TypeWithIDORM) ToPB(ctx context.Context) (TypeWithID, 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 TypeWithIDWithAfterToORM added in v0.2.1

type TypeWithIDWithAfterToORM interface {
	AfterToORM(context.Context, *TypeWithIDORM) error
}

TypeWithIDAfterToORM called after default ToORM code

type TypeWithIDWithAfterToPB added in v0.2.1

type TypeWithIDWithAfterToPB interface {
	AfterToPB(context.Context, *TypeWithID) error
}

TypeWithIDAfterToPB called after default ToPB code

type TypeWithIDWithBeforePatchSave added in v0.9.1

type TypeWithIDWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *TypeWithID, *field_mask1.FieldMask, *gorm1.DB) (context.Context, *gorm1.DB, error)
}

type TypeWithIDWithBeforeToORM added in v0.2.1

type TypeWithIDWithBeforeToORM interface {
	BeforeToORM(context.Context, *TypeWithIDORM) error
}

TypeWithIDBeforeToORM called before default ToORM code

type TypeWithIDWithBeforeToPB added in v0.2.1

type TypeWithIDWithBeforeToPB interface {
	BeforeToPB(context.Context, *TypeWithID) error
}

TypeWithIDBeforeToPB called before default ToPB code

type UpdateIntPointRequest added in v0.2.0

type UpdateIntPointRequest struct {
	Payload              *IntPoint             `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
	GerogeriGegege       *field_mask.FieldMask `protobuf:"bytes,2,opt,name=gerogeri_gegege,json=gerogeriGegege" json:"gerogeri_gegege,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*UpdateIntPointRequest) Descriptor added in v0.2.0

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

func (*UpdateIntPointRequest) GetGerogeriGegege added in v0.9.0

func (m *UpdateIntPointRequest) GetGerogeriGegege() *field_mask.FieldMask

func (*UpdateIntPointRequest) GetPayload added in v0.2.0

func (m *UpdateIntPointRequest) GetPayload() *IntPoint

func (*UpdateIntPointRequest) ProtoMessage added in v0.2.0

func (*UpdateIntPointRequest) ProtoMessage()

func (*UpdateIntPointRequest) Reset added in v0.2.0

func (m *UpdateIntPointRequest) Reset()

func (*UpdateIntPointRequest) String added in v0.2.0

func (m *UpdateIntPointRequest) String() string

func (*UpdateIntPointRequest) XXX_DiscardUnknown added in v0.6.0

func (m *UpdateIntPointRequest) XXX_DiscardUnknown()

func (*UpdateIntPointRequest) XXX_Marshal added in v0.6.0

func (m *UpdateIntPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateIntPointRequest) XXX_Merge added in v0.6.0

func (dst *UpdateIntPointRequest) XXX_Merge(src proto.Message)

func (*UpdateIntPointRequest) XXX_Size added in v0.6.0

func (m *UpdateIntPointRequest) XXX_Size() int

func (*UpdateIntPointRequest) XXX_Unmarshal added in v0.6.0

func (m *UpdateIntPointRequest) XXX_Unmarshal(b []byte) error

type UpdateIntPointResponse added in v0.2.0

type UpdateIntPointResponse struct {
	Result               *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*UpdateIntPointResponse) Descriptor added in v0.2.0

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

func (*UpdateIntPointResponse) GetResult added in v0.2.0

func (m *UpdateIntPointResponse) GetResult() *IntPoint

func (*UpdateIntPointResponse) ProtoMessage added in v0.2.0

func (*UpdateIntPointResponse) ProtoMessage()

func (*UpdateIntPointResponse) Reset added in v0.2.0

func (m *UpdateIntPointResponse) Reset()

func (*UpdateIntPointResponse) String added in v0.2.0

func (m *UpdateIntPointResponse) String() string

func (*UpdateIntPointResponse) XXX_DiscardUnknown added in v0.6.0

func (m *UpdateIntPointResponse) XXX_DiscardUnknown()

func (*UpdateIntPointResponse) XXX_Marshal added in v0.6.0

func (m *UpdateIntPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateIntPointResponse) XXX_Merge added in v0.6.0

func (dst *UpdateIntPointResponse) XXX_Merge(src proto.Message)

func (*UpdateIntPointResponse) XXX_Size added in v0.6.0

func (m *UpdateIntPointResponse) XXX_Size() int

func (*UpdateIntPointResponse) XXX_Unmarshal added in v0.6.0

func (m *UpdateIntPointResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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