fieldmask

package
v0.0.0-...-1a384c3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "USER",
		2: "ADMIN",
		3: "USER_ADMIN",
		4: "INNER",
		5: "USER_INNER",
		6: "ADMIN_INNER",
		7: "PUBLIC",
	}
	Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"USER":                   1,
		"ADMIN":                  2,
		"USER_ADMIN":             3,
		"INNER":                  4,
		"USER_INNER":             5,
		"ADMIN_INNER":            6,
		"PUBLIC":                 7,
	}
)

Enum value maps for Visibility.

View Source
var (
	// optional hyfco.fieldmask.Visibility fv = 3430001;
	E_Fv = &file_field_mask_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_field_mask_proto protoreflect.FileDescriptor

Functions

func Filter

func Filter(pb proto.Message, vf Visibility)

Filter clears every field that not visibility.

Types

type Visibility

type Visibility int32
const (
	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
	Visibility_USER                   Visibility = 1
	Visibility_ADMIN                  Visibility = 2
	Visibility_USER_ADMIN             Visibility = 3
	Visibility_INNER                  Visibility = 4
	Visibility_USER_INNER             Visibility = 5
	Visibility_ADMIN_INNER            Visibility = 6
	Visibility_PUBLIC                 Visibility = 7
)

func (Visibility) Descriptor

func (Visibility) Descriptor() protoreflect.EnumDescriptor

func (Visibility) Enum

func (x Visibility) Enum() *Visibility

func (Visibility) EnumDescriptor deprecated

func (Visibility) EnumDescriptor() ([]byte, []int)

Deprecated: Use Visibility.Descriptor instead.

func (Visibility) Number

func (x Visibility) Number() protoreflect.EnumNumber

func (Visibility) String

func (x Visibility) String() string

func (Visibility) Type

Jump to

Keyboard shortcuts

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