nested

package
v0.0.0-...-0901214 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nested_proto protoreflect.FileDescriptor

Functions

func BarToBSON

func BarToBSON(msg *Bar) bson.M

func FooToBSON

func FooToBSON(msg *Foo) bson.M

func NestedMessageToBSON

func NestedMessageToBSON(msg *NestedMessage) bson.M

Types

type Bar

type Bar struct {
	Foo *Foo `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	// contains filtered or unexported fields
}

func (*Bar) Descriptor deprecated

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

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetFoo

func (x *Bar) GetFoo() *Foo

func (*Bar) ProtoMessage

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect

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

func (*Bar) Reset

func (x *Bar) Reset()

func (*Bar) String

func (x *Bar) String() string

type Foo

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

func (*Foo) Descriptor deprecated

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

Deprecated: Use Foo.ProtoReflect.Descriptor instead.

func (*Foo) GetText

func (x *Foo) GetText() string

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) ProtoReflect

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

func (*Foo) Reset

func (x *Foo) Reset()

func (*Foo) String

func (x *Foo) String() string

type NestedMessage

type NestedMessage struct {
	Foo *Foo `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	Bar *Bar `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
	// contains filtered or unexported fields
}

TODO(dape): Add support to message defined in messages (if/when needed?)

func (*NestedMessage) Descriptor deprecated

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

Deprecated: Use NestedMessage.ProtoReflect.Descriptor instead.

func (*NestedMessage) GetBar

func (x *NestedMessage) GetBar() *Bar

func (*NestedMessage) GetFoo

func (x *NestedMessage) GetFoo() *Foo

func (*NestedMessage) ProtoMessage

func (*NestedMessage) ProtoMessage()

func (*NestedMessage) ProtoReflect

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

func (*NestedMessage) Reset

func (x *NestedMessage) Reset()

func (*NestedMessage) String

func (x *NestedMessage) String() string

Jump to

Keyboard shortcuts

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