betterfieldmask

package module
v0.0.0-...-de3872c Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 9 Imported by: 0

README

DO NOT USE THIS (yet)

It's just a prototype atm

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto protoreflect.FileDescriptor
View Source
var File_fieldmask_proto protoreflect.FileDescriptor

Functions

func Update

func Update[T proto.Message](old, update T, updateMask *fieldmaskpb.FieldMask) T

Types

type Example

type Example struct {
	SomeString      string `protobuf:"bytes,1,opt,name=some_string,json=someString,proto3" json:"some_string,omitempty"`
	SomeOtherString string `protobuf:"bytes,2,opt,name=some_other_string,json=someOtherString,proto3" json:"some_other_string,omitempty"`
	// contains filtered or unexported fields
}

func (*Example) Descriptor deprecated

func (*Example) Descriptor() ([]byte, []int)

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetSomeOtherString

func (x *Example) GetSomeOtherString() string

func (*Example) GetSomeString

func (x *Example) GetSomeString() string

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) ProtoReflect

func (x *Example) ProtoReflect() protoreflect.Message

func (*Example) Reset

func (x *Example) Reset()

func (*Example) String

func (x *Example) String() string

type FieldMask

type FieldMask struct {
	Paths string `protobuf:"bytes,1,opt,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldMask) Descriptor deprecated

func (*FieldMask) Descriptor() ([]byte, []int)

Deprecated: Use FieldMask.ProtoReflect.Descriptor instead.

func (*FieldMask) GetPaths

func (x *FieldMask) GetPaths() string

func (*FieldMask) ProtoMessage

func (*FieldMask) ProtoMessage()

func (*FieldMask) ProtoReflect

func (x *FieldMask) ProtoReflect() protoreflect.Message

func (*FieldMask) Reset

func (x *FieldMask) Reset()

func (*FieldMask) String

func (x *FieldMask) String() string

type TestRoot

type TestRoot struct {
	Nested *TestRoot_Nested `protobuf:"bytes,1,opt,name=nested,proto3" json:"nested,omitempty"`
	// contains filtered or unexported fields
}

func (*TestRoot) Descriptor deprecated

func (*TestRoot) Descriptor() ([]byte, []int)

Deprecated: Use TestRoot.ProtoReflect.Descriptor instead.

func (*TestRoot) GetNested

func (x *TestRoot) GetNested() *TestRoot_Nested

func (*TestRoot) ProtoMessage

func (*TestRoot) ProtoMessage()

func (*TestRoot) ProtoReflect

func (x *TestRoot) ProtoReflect() protoreflect.Message

func (*TestRoot) Reset

func (x *TestRoot) Reset()

func (*TestRoot) String

func (x *TestRoot) String() string

type TestRoot_Nested

type TestRoot_Nested struct {
	Example            *Example          `protobuf:"bytes,1,opt,name=example,proto3" json:"example,omitempty"`
	SomeString         string            `protobuf:"bytes,2,opt,name=some_string,json=someString,proto3" json:"some_string,omitempty"`
	SomeRepeatedString []string          `protobuf:"bytes,3,rep,name=some_repeated_string,json=someRepeatedString,proto3" json:"some_repeated_string,omitempty"`
	StringMap          map[string]string `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestRoot_Nested) Descriptor deprecated

func (*TestRoot_Nested) Descriptor() ([]byte, []int)

Deprecated: Use TestRoot_Nested.ProtoReflect.Descriptor instead.

func (*TestRoot_Nested) GetExample

func (x *TestRoot_Nested) GetExample() *Example

func (*TestRoot_Nested) GetSomeRepeatedString

func (x *TestRoot_Nested) GetSomeRepeatedString() []string

func (*TestRoot_Nested) GetSomeString

func (x *TestRoot_Nested) GetSomeString() string

func (*TestRoot_Nested) GetStringMap

func (x *TestRoot_Nested) GetStringMap() map[string]string

func (*TestRoot_Nested) ProtoMessage

func (*TestRoot_Nested) ProtoMessage()

func (*TestRoot_Nested) ProtoReflect

func (x *TestRoot_Nested) ProtoReflect() protoreflect.Message

func (*TestRoot_Nested) Reset

func (x *TestRoot_Nested) Reset()

func (*TestRoot_Nested) String

func (x *TestRoot_Nested) String() string

Jump to

Keyboard shortcuts

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