repeated

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_repeated_proto protoreflect.FileDescriptor

Functions

func BarToBSON

func BarToBSON(msg *Bar) bson.M

func FooToBSON

func FooToBSON(msg *Foo) bson.M

func RepeatedMessageToBSON

func RepeatedMessageToBSON(msg *RepeatedMessage) bson.M

func RepeatedMessage_Bars_ArrayToBSON

func RepeatedMessage_Bars_ArrayToBSON(values []*Bar) bson.A

func RepeatedMessage_Foos_ArrayToBSON

func RepeatedMessage_Foos_ArrayToBSON(values []*Foo) bson.A

func RepeatedMessage_Tests_ArrayToBSON

func RepeatedMessage_Tests_ArrayToBSON(values []string) bson.A

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 RepeatedMessage

type RepeatedMessage struct {
	Tests []string `protobuf:"bytes,1,rep,name=tests,proto3" json:"tests,omitempty"`
	Foos  []*Foo   `protobuf:"bytes,2,rep,name=foos,proto3" json:"foos,omitempty"`
	Bars  []*Bar   `protobuf:"bytes,3,rep,name=bars,proto3" json:"bars,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedMessage) Descriptor deprecated

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

Deprecated: Use RepeatedMessage.ProtoReflect.Descriptor instead.

func (*RepeatedMessage) GetBars

func (x *RepeatedMessage) GetBars() []*Bar

func (*RepeatedMessage) GetFoos

func (x *RepeatedMessage) GetFoos() []*Foo

func (*RepeatedMessage) GetTests

func (x *RepeatedMessage) GetTests() []string

func (*RepeatedMessage) ProtoMessage

func (*RepeatedMessage) ProtoMessage()

func (*RepeatedMessage) ProtoReflect

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

func (*RepeatedMessage) Reset

func (x *RepeatedMessage) Reset()

func (*RepeatedMessage) String

func (x *RepeatedMessage) String() string

Jump to

Keyboard shortcuts

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