Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldMask ¶
func New ¶
func New(fm *fieldmaskpb.FieldMask) (FieldMask, error)
New constructs a tree filter based on validated and normalized field mask fm. Use Active() to check if applying a filter will have any effect.
func (FieldMask) Alloc ¶
func (f FieldMask) Alloc(src protoreflect.Message)
Alloc creates all nested protoreflect.Message fields to avoid allocation later.
func (FieldMask) Copy ¶
func (f FieldMask) Copy(dst, src protoreflect.Message)
Copy sets fields in dst to values from src based on filter. It has no effect when called on an empty filter (dst remains unchanged).
Click to show internal directories.
Click to hide internal directories.