fieldmask

package
v1.15.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldMask

type FieldMask map[string]FieldMask

func New

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

func (f FieldMask) Active() bool

Active checks 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).

Jump to

Keyboard shortcuts

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