fields

package
v0.0.0-...-6134019 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeImpliedFieldMask

func ComputeImpliedFieldMask(ctx context.Context, req proto.Message) []string

ComputeImpliedFieldMask computes the implied field mask when it is omitted. According to AIP 134: this is "equivalent to all fields that are populated (have a non-empty value)." https://google.aip.dev/134

func ComputeWeakEtag

func ComputeWeakEtag(obj proto.Message) string

ComputeWeakEtag computes the etag of the proto object with weak indicator.

func UpdateByFieldMask

func UpdateByFieldMask(original, update proto.Message, updatePaths []string) error

UpdateByFieldMask updates the `original` Message with the `update` Message value in the given `updatePaths` fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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