memo

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memo

type Memo struct {
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" firestore:"createTime"`
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty" firestore:"updateTime"`
	Message    string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty" firestore:"message"`
	CreatedBy  string                 `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty" firestore:"createdBy"`
	// contains filtered or unexported fields
}

Memo

func (*Memo) Clone

func (o *Memo) Clone() *Memo

func (*Memo) CloneRaw

func (o *Memo) CloneRaw() gotenobject.GotenObjectExt

func (*Memo) Descriptor

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

Deprecated, Use Memo.ProtoReflect.Descriptor instead.

func (*Memo) GetCreateTime

func (m *Memo) GetCreateTime() *timestamppb.Timestamp

func (*Memo) GetCreatedBy

func (m *Memo) GetCreatedBy() string

func (*Memo) GetMessage

func (m *Memo) GetMessage() string

func (*Memo) GetUpdateTime

func (m *Memo) GetUpdateTime() *timestamppb.Timestamp

func (*Memo) GotenMessage

func (*Memo) GotenMessage()

func (*Memo) GotenObjectExt

func (o *Memo) GotenObjectExt()

func (*Memo) GotenValidate

func (obj *Memo) GotenValidate() error

func (*Memo) MakeDiffFieldMask

func (o *Memo) MakeDiffFieldMask(other *Memo) *Memo_FieldMask

func (*Memo) MakeFullFieldMask

func (o *Memo) MakeFullFieldMask() *Memo_FieldMask

func (*Memo) MakeRawDiffFieldMask

func (o *Memo) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask

func (*Memo) MakeRawFullFieldMask

func (o *Memo) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Memo) Marshal

func (m *Memo) Marshal() ([]byte, error)

func (*Memo) MarshalJSON

func (m *Memo) MarshalJSON() ([]byte, error)

func (*Memo) Merge

func (o *Memo) Merge(source *Memo)

func (*Memo) MergeRaw

func (o *Memo) MergeRaw(source gotenobject.GotenObjectExt)

func (*Memo) ProtoMessage

func (*Memo) ProtoMessage()

func (*Memo) ProtoReflect

func (m *Memo) ProtoReflect() preflect.Message

func (*Memo) Reset

func (m *Memo) Reset()

func (*Memo) SetCreateTime

func (m *Memo) SetCreateTime(fv *timestamppb.Timestamp)

func (*Memo) SetCreatedBy

func (m *Memo) SetCreatedBy(fv string)

func (*Memo) SetMessage

func (m *Memo) SetMessage(fv string)

func (*Memo) SetUpdateTime

func (m *Memo) SetUpdateTime(fv *timestamppb.Timestamp)

func (*Memo) String

func (m *Memo) String() string

func (*Memo) Unmarshal

func (m *Memo) Unmarshal(b []byte) error

func (*Memo) UnmarshalJSON

func (m *Memo) UnmarshalJSON(data []byte) error

type MemoFieldPathBuilder

type MemoFieldPathBuilder struct{}

func NewMemoFieldPathBuilder

func NewMemoFieldPathBuilder() MemoFieldPathBuilder

func (MemoFieldPathBuilder) CreateTime

func (MemoFieldPathBuilder) CreatedBy

func (MemoFieldPathBuilder) Message

func (MemoFieldPathBuilder) UpdateTime

type MemoPathSelectorCreateTime

type MemoPathSelectorCreateTime struct{}

func (MemoPathSelectorCreateTime) FieldPath

func (MemoPathSelectorCreateTime) WithArrayOfValues

func (MemoPathSelectorCreateTime) WithValue

type MemoPathSelectorCreatedBy

type MemoPathSelectorCreatedBy struct{}

func (MemoPathSelectorCreatedBy) FieldPath

func (MemoPathSelectorCreatedBy) WithArrayOfValues

func (MemoPathSelectorCreatedBy) WithValue

type MemoPathSelectorMessage

type MemoPathSelectorMessage struct{}

func (MemoPathSelectorMessage) FieldPath

func (MemoPathSelectorMessage) WithArrayOfValues

func (MemoPathSelectorMessage) WithValue

type MemoPathSelectorUpdateTime

type MemoPathSelectorUpdateTime struct{}

func (MemoPathSelectorUpdateTime) FieldPath

func (MemoPathSelectorUpdateTime) WithArrayOfValues

func (MemoPathSelectorUpdateTime) WithValue

type Memo_FieldMask

type Memo_FieldMask struct {
	Paths []Memo_FieldPath
}

func FullMemo_FieldMask

func FullMemo_FieldMask() *Memo_FieldMask

func (*Memo_FieldMask) AppendPath

func (fieldMask *Memo_FieldMask) AppendPath(path Memo_FieldPath)

func (*Memo_FieldMask) AppendRawPath

func (fieldMask *Memo_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Memo_FieldMask) DecodeFirestore

func (fieldMask *Memo_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Memo_FieldMask) EncodeFirestore

func (fieldMask *Memo_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Memo_FieldMask) FilterInputFields

func (fieldMask *Memo_FieldMask) FilterInputFields() *Memo_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Memo_FieldMask) FromProtoFieldMask

func (fieldMask *Memo_FieldMask) FromProtoFieldMask(protoFieldMask *googlefieldmaskpb.FieldMask) error

func (*Memo_FieldMask) GetPaths

func (fieldMask *Memo_FieldMask) GetPaths() []Memo_FieldPath

func (*Memo_FieldMask) GetRawPaths

func (fieldMask *Memo_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Memo_FieldMask) IsFull

func (fieldMask *Memo_FieldMask) IsFull() bool

func (Memo_FieldMask) Marshal

func (fieldMask Memo_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Memo_FieldMask) MarshalJSON

func (fieldMask Memo_FieldMask) MarshalJSON() ([]byte, error)

func (*Memo_FieldMask) PathsCount

func (fieldMask *Memo_FieldMask) PathsCount() int

func (*Memo_FieldMask) Project

func (fieldMask *Memo_FieldMask) Project(source *Memo) *Memo

func (*Memo_FieldMask) ProjectRaw

func (fieldMask *Memo_FieldMask) ProjectRaw(source gotenobject.GotenObjectExt) gotenobject.GotenObjectExt

func (*Memo_FieldMask) ProtoMessage

func (fieldMask *Memo_FieldMask) ProtoMessage()

func (*Memo_FieldMask) ProtoReflect

func (fieldMask *Memo_FieldMask) ProtoReflect() preflect.Message

func (*Memo_FieldMask) Reset

func (fieldMask *Memo_FieldMask) Reset()

func (*Memo_FieldMask) Set

func (fieldMask *Memo_FieldMask) Set(target, source *Memo)

func (*Memo_FieldMask) SetFromCliFlag

func (fieldMask *Memo_FieldMask) SetFromCliFlag(raw string) error

func (*Memo_FieldMask) SetRaw

func (fieldMask *Memo_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Memo_FieldMask) Size

func (fieldMask *Memo_FieldMask) Size() int

func (*Memo_FieldMask) String

func (fieldMask *Memo_FieldMask) String() string

func (*Memo_FieldMask) Subtract

func (fieldMask *Memo_FieldMask) Subtract(other *Memo_FieldMask) *Memo_FieldMask

func (*Memo_FieldMask) SubtractRaw

func (fieldMask *Memo_FieldMask) SubtractRaw(other gotenobject.FieldMask) gotenobject.FieldMask

func (*Memo_FieldMask) ToProtoFieldMask

func (fieldMask *Memo_FieldMask) ToProtoFieldMask() *googlefieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Memo_FieldMask) Unmarshal

func (fieldMask *Memo_FieldMask) Unmarshal(data []byte) error

func (*Memo_FieldMask) UnmarshalJSON

func (fieldMask *Memo_FieldMask) UnmarshalJSON(data []byte) error

type Memo_FieldPath

type Memo_FieldPath interface {
	gotenobject.FieldPath
	Selector() Memo_FieldPathSelector
	Get(source *Memo) []interface{}
	GetSingle(source *Memo) (interface{}, bool)
	ClearValue(item *Memo)

	// Those methods build corresponding Memo_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) Memo_FieldPathValue
	WithIArrayOfValues(values interface{}) Memo_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) Memo_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func BuildMemo_FieldPath

func BuildMemo_FieldPath(fp gotenobject.RawFieldPath) (Memo_FieldPath, error)

func MustParseMemo_FieldPath

func MustParseMemo_FieldPath(rawField string) Memo_FieldPath

func ParseMemo_FieldPath

func ParseMemo_FieldPath(rawField string) (Memo_FieldPath, error)

type Memo_FieldPathArrayItemValue

type Memo_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Memo_FieldPath
	ContainsValue(*Memo) bool
}

Memo_FieldPathArrayItemValue allows storing single item in Path-specific values for Memo according to their type Present only for array (repeated) types.

func MustParseMemo_FieldPathArrayItemValue

func MustParseMemo_FieldPathArrayItemValue(pathStr, valueStr string) Memo_FieldPathArrayItemValue

func ParseMemo_FieldPathArrayItemValue

func ParseMemo_FieldPathArrayItemValue(pathStr, valueStr string) (Memo_FieldPathArrayItemValue, error)

ParseMemo_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Memo_FieldPathArrayOfValues

type Memo_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Memo_FieldPath
}

Memo_FieldPathArrayOfValues allows storing slice of values for Memo fields according to their type

func MustParseMemo_FieldPathArrayOfValues

func MustParseMemo_FieldPathArrayOfValues(pathStr, valuesStr string) Memo_FieldPathArrayOfValues

func ParseMemo_FieldPathArrayOfValues

func ParseMemo_FieldPathArrayOfValues(pathStr, valuesStr string) (Memo_FieldPathArrayOfValues, error)

type Memo_FieldPathSelector

type Memo_FieldPathSelector int32
const (
	Memo_FieldPathSelectorCreateTime Memo_FieldPathSelector = 0
	Memo_FieldPathSelectorUpdateTime Memo_FieldPathSelector = 1
	Memo_FieldPathSelectorMessage    Memo_FieldPathSelector = 2
	Memo_FieldPathSelectorCreatedBy  Memo_FieldPathSelector = 3
)

func (Memo_FieldPathSelector) String

func (s Memo_FieldPathSelector) String() string

type Memo_FieldPathValue

type Memo_FieldPathValue interface {
	Memo_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Memo)
	CompareWith(*Memo) (cmp int, comparable bool)
}

Memo_FieldPathValue allows storing values for Memo fields according to their type

func MustParseMemo_FieldPathValue

func MustParseMemo_FieldPathValue(pathStr, valueStr string) Memo_FieldPathValue

func ParseMemo_FieldPathValue

func ParseMemo_FieldPathValue(pathStr, valueStr string) (Memo_FieldPathValue, error)

type Memo_FieldTerminalPath

type Memo_FieldTerminalPath struct {
	// contains filtered or unexported fields
}

func (*Memo_FieldTerminalPath) ClearValue

func (fp *Memo_FieldTerminalPath) ClearValue(item *Memo)

func (*Memo_FieldTerminalPath) ClearValueRaw

func (fp *Memo_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*Memo_FieldTerminalPath) Get

func (fp *Memo_FieldTerminalPath) Get(source *Memo) (values []interface{})

Get returns all values pointed by specific field from source Memo

func (*Memo_FieldTerminalPath) GetDefault

func (fp *Memo_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Memo_FieldTerminalPath) GetRaw

func (fp *Memo_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*Memo_FieldTerminalPath) GetSingle

func (fp *Memo_FieldTerminalPath) GetSingle(source *Memo) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Memo

func (*Memo_FieldTerminalPath) GetSingleRaw

func (fp *Memo_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Memo_FieldTerminalPath) IsLeaf

func (fp *Memo_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Memo_FieldTerminalPath) JSONString

func (fp *Memo_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Memo_FieldTerminalPath) Selector

func (*Memo_FieldTerminalPath) SplitIntoTerminalIPaths

func (fp *Memo_FieldTerminalPath) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*Memo_FieldTerminalPath) String

func (fp *Memo_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Memo_FieldTerminalPath) WithIArrayItemValue

func (fp *Memo_FieldTerminalPath) WithIArrayItemValue(value interface{}) Memo_FieldPathArrayItemValue

func (*Memo_FieldTerminalPath) WithIArrayOfValues

func (fp *Memo_FieldTerminalPath) WithIArrayOfValues(values interface{}) Memo_FieldPathArrayOfValues

func (*Memo_FieldTerminalPath) WithIValue

func (fp *Memo_FieldTerminalPath) WithIValue(value interface{}) Memo_FieldPathValue

func (*Memo_FieldTerminalPath) WithRawIArrayItemValue

func (fp *Memo_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Memo_FieldTerminalPath) WithRawIArrayOfValues

func (fp *Memo_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Memo_FieldTerminalPath) WithRawIValue

func (fp *Memo_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Memo_FieldTerminalPathArrayItemValue

type Memo_FieldTerminalPathArrayItemValue struct {
	Memo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Memo_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Memo_FieldTerminalPathArrayItemValue) ContainsValue(source *Memo) bool

Contains returns a boolean indicating if value that is being held is present in given 'Memo'

func (*Memo_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *Memo_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Memo as interface{}

func (*Memo_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Memo_FieldTerminalPathArrayItemValue) GetSingle(source *Memo) (interface{}, bool)

func (*Memo_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *Memo_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type Memo_FieldTerminalPathArrayOfValues

type Memo_FieldTerminalPathArrayOfValues struct {
	Memo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Memo_FieldTerminalPathArrayOfValues) AsCreateTimeArrayOfValues

func (fpaov *Memo_FieldTerminalPathArrayOfValues) AsCreateTimeArrayOfValues() ([]*timestamppb.Timestamp, bool)

func (*Memo_FieldTerminalPathArrayOfValues) AsCreatedByArrayOfValues

func (fpaov *Memo_FieldTerminalPathArrayOfValues) AsCreatedByArrayOfValues() ([]string, bool)

func (*Memo_FieldTerminalPathArrayOfValues) AsMessageArrayOfValues

func (fpaov *Memo_FieldTerminalPathArrayOfValues) AsMessageArrayOfValues() ([]string, bool)

func (*Memo_FieldTerminalPathArrayOfValues) AsUpdateTimeArrayOfValues

func (fpaov *Memo_FieldTerminalPathArrayOfValues) AsUpdateTimeArrayOfValues() ([]*timestamppb.Timestamp, bool)

func (*Memo_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *Memo_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type Memo_FieldTerminalPathValue

type Memo_FieldTerminalPathValue struct {
	Memo_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Memo_FieldTerminalPathValue) AsCreateTimeValue

func (fpv *Memo_FieldTerminalPathValue) AsCreateTimeValue() (*timestamppb.Timestamp, bool)

func (*Memo_FieldTerminalPathValue) AsCreatedByValue

func (fpv *Memo_FieldTerminalPathValue) AsCreatedByValue() (string, bool)

func (*Memo_FieldTerminalPathValue) AsMessageValue

func (fpv *Memo_FieldTerminalPathValue) AsMessageValue() (string, bool)

func (*Memo_FieldTerminalPathValue) AsUpdateTimeValue

func (fpv *Memo_FieldTerminalPathValue) AsUpdateTimeValue() (*timestamppb.Timestamp, bool)

func (*Memo_FieldTerminalPathValue) CompareWith

func (fpv *Memo_FieldTerminalPathValue) CompareWith(source *Memo) (int, bool)

CompareWith compares value in the 'Memo_FieldTerminalPathValue' with the value under path in 'Memo'.

func (*Memo_FieldTerminalPathValue) CompareWithRaw

func (fpv *Memo_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Memo_FieldTerminalPathValue) GetRawValue

func (fpv *Memo_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'Memo' as interface{}

func (*Memo_FieldTerminalPathValue) SetTo

func (fpv *Memo_FieldTerminalPathValue) SetTo(target **Memo)

SetTo stores value for selected field for object Memo

func (*Memo_FieldTerminalPathValue) SetToRaw

func (fpv *Memo_FieldTerminalPathValue) SetToRaw(target proto.Message)

Jump to

Keyboard shortcuts

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