Documentation ¶
Overview ¶
Package fieldmask provides primitives for implementing AIP field mask functionality.
This package only provides primitives not already provided by the package google.golang.org/protobuf/types/known/fieldmaskpb.
See: https://google.aip.dev/134 (Standard methods: Update) See: https://google.aip.dev/157 (Partial responses)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateTopLevelFields ¶
func UpdateTopLevelFields(mask *fieldmaskpb.FieldMask, dst, src proto.Message)
UpdateTopLevelFields updates the top-level fields in dst with values from src according to the provided field mask.
Nested messages are copied by reference from src to dst. If no update mask is provided, only non-zero values of src are copied to dst. If the special value "*" is provided as the field mask, a full replacement of all fields in dst is done.
See: https://google.aip.dev/134 (Standard methods: Update).
Types ¶
This section is empty.