Documentation ¶
Index ¶
- Variables
- func BarToBSON(msg *Bar) bson.M
- func FooToBSON(msg *Foo) bson.M
- func NestedMessageToBSON(msg *NestedMessage) bson.M
- type Bar
- type Foo
- type NestedMessage
- func (*NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *NestedMessage) GetBar() *Bar
- func (x *NestedMessage) GetFoo() *Foo
- func (*NestedMessage) ProtoMessage()
- func (x *NestedMessage) ProtoReflect() protoreflect.Message
- func (x *NestedMessage) Reset()
- func (x *NestedMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_nested_proto protoreflect.FileDescriptor
Functions ¶
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) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) ProtoReflect ¶
func (x *Bar) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.