testmsg

package
v0.0.0-...-954f3ff Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_testmsg_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Child

type Child struct {
	Number     *int64        `protobuf:"varint,100,opt,name=number" json:"number,omitempty"`
	Grandchild []*Grandchild `protobuf:"bytes,200,rep,name=grandchild" json:"grandchild,omitempty"`
	Numbers    []int64       `protobuf:"varint,300,rep,name=numbers" json:"numbers,omitempty"`
	After      *bool         `protobuf:"varint,3200,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Child) Descriptor deprecated

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

Deprecated: Use Child.ProtoReflect.Descriptor instead.

func (*Child) GetAfter

func (x *Child) GetAfter() bool

func (*Child) GetGrandchild

func (x *Child) GetGrandchild() []*Grandchild

func (*Child) GetNumber

func (x *Child) GetNumber() int64

func (*Child) GetNumbers

func (x *Child) GetNumbers() []int64

func (*Child) ProtoMessage

func (*Child) ProtoMessage()

func (*Child) ProtoReflect

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

func (*Child) Reset

func (x *Child) Reset()

func (*Child) String

func (x *Child) String() string

type Customer

type Customer struct {
	Id          *int64   `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	Username    *string  `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	Orders      []*Order `protobuf:"bytes,3,rep,name=orders" json:"orders,omitempty"`
	FavoriteIds []int64  `protobuf:"varint,4,rep,packed,name=favorite_ids,json=favoriteIds" json:"favorite_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*Customer) Descriptor deprecated

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

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetFavoriteIds

func (x *Customer) GetFavoriteIds() []int64

func (*Customer) GetId

func (x *Customer) GetId() int64

func (*Customer) GetOrders

func (x *Customer) GetOrders() []*Order

func (*Customer) GetUsername

func (x *Customer) GetUsername() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

type Grandchild

type Grandchild struct {
	Number  *int64  `protobuf:"varint,1000,opt,name=number" json:"number,omitempty"`
	Numbers []int64 `protobuf:"varint,2000,rep,packed,name=numbers" json:"numbers,omitempty"`
	After   *bool   `protobuf:"varint,32000,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Grandchild) Descriptor deprecated

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

Deprecated: Use Grandchild.ProtoReflect.Descriptor instead.

func (*Grandchild) GetAfter

func (x *Grandchild) GetAfter() bool

func (*Grandchild) GetNumber

func (x *Grandchild) GetNumber() int64

func (*Grandchild) GetNumbers

func (x *Grandchild) GetNumbers() []int64

func (*Grandchild) ProtoMessage

func (*Grandchild) ProtoMessage()

func (*Grandchild) ProtoReflect

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

func (*Grandchild) Reset

func (x *Grandchild) Reset()

func (*Grandchild) String

func (x *Grandchild) String() string

type Item

type Item struct {
	Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // a big object
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetId

func (x *Item) GetId() int64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type Order

type Order struct {
	Id    *int64  `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	Open  *bool   `protobuf:"varint,2,req,name=open" json:"open,omitempty"`
	Items []*Item `protobuf:"bytes,3,rep,name=items" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetId

func (x *Order) GetId() int64

func (*Order) GetItems

func (x *Order) GetItems() []*Item

func (*Order) GetOpen

func (x *Order) GetOpen() bool

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type Packed

type Packed struct {
	Flt   []float32 `protobuf:"fixed32,1,rep,packed,name=flt" json:"flt,omitempty"`
	Dbl   []float64 `protobuf:"fixed64,2,rep,packed,name=dbl" json:"dbl,omitempty"`
	I32   []int32   `protobuf:"varint,3,rep,packed,name=i32" json:"i32,omitempty"`
	I64   []int64   `protobuf:"varint,4,rep,packed,name=i64" json:"i64,omitempty"`
	U32   []uint32  `protobuf:"varint,5,rep,packed,name=u32" json:"u32,omitempty"`
	U64   []uint64  `protobuf:"varint,6,rep,packed,name=u64" json:"u64,omitempty"`
	S32   []int32   `protobuf:"zigzag32,7,rep,packed,name=s32" json:"s32,omitempty"`
	S64   []int64   `protobuf:"zigzag64,8,rep,packed,name=s64" json:"s64,omitempty"`
	F32   []uint32  `protobuf:"fixed32,9,rep,packed,name=f32" json:"f32,omitempty"`
	F64   []uint64  `protobuf:"fixed64,10,rep,packed,name=f64" json:"f64,omitempty"`
	Sf32  []int32   `protobuf:"fixed32,11,rep,packed,name=sf32" json:"sf32,omitempty"`
	Sf64  []int64   `protobuf:"fixed64,12,rep,packed,name=sf64" json:"sf64,omitempty"`
	Bool  []bool    `protobuf:"varint,13,rep,packed,name=bool" json:"bool,omitempty"`
	Str   []string  `protobuf:"bytes,14,rep,name=str" json:"str,omitempty"`
	Byte  [][]byte  `protobuf:"bytes,15,rep,name=byte" json:"byte,omitempty"`
	After *bool     `protobuf:"varint,32,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Packed) Descriptor deprecated

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

Deprecated: Use Packed.ProtoReflect.Descriptor instead.

func (*Packed) GetAfter

func (x *Packed) GetAfter() bool

func (*Packed) GetBool

func (x *Packed) GetBool() []bool

func (*Packed) GetByte

func (x *Packed) GetByte() [][]byte

func (*Packed) GetDbl

func (x *Packed) GetDbl() []float64

func (*Packed) GetF32

func (x *Packed) GetF32() []uint32

func (*Packed) GetF64

func (x *Packed) GetF64() []uint64

func (*Packed) GetFlt

func (x *Packed) GetFlt() []float32

func (*Packed) GetI32

func (x *Packed) GetI32() []int32

func (*Packed) GetI64

func (x *Packed) GetI64() []int64

func (*Packed) GetS32

func (x *Packed) GetS32() []int32

func (*Packed) GetS64

func (x *Packed) GetS64() []int64

func (*Packed) GetSf32

func (x *Packed) GetSf32() []int32

func (*Packed) GetSf64

func (x *Packed) GetSf64() []int64

func (*Packed) GetStr

func (x *Packed) GetStr() []string

func (*Packed) GetU32

func (x *Packed) GetU32() []uint32

func (*Packed) GetU64

func (x *Packed) GetU64() []uint64

func (*Packed) ProtoMessage

func (*Packed) ProtoMessage()

func (*Packed) ProtoReflect

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

func (*Packed) Reset

func (x *Packed) Reset()

func (*Packed) String

func (x *Packed) String() string

type Parent

type Parent struct {
	Child *Child `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"`
	After *bool  `protobuf:"varint,32,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Parent) Descriptor deprecated

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

Deprecated: Use Parent.ProtoReflect.Descriptor instead.

func (*Parent) GetAfter

func (x *Parent) GetAfter() bool

func (*Parent) GetChild

func (x *Parent) GetChild() *Child

func (*Parent) ProtoMessage

func (*Parent) ProtoMessage()

func (*Parent) ProtoReflect

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

func (*Parent) Reset

func (x *Parent) Reset()

func (*Parent) String

func (x *Parent) String() string

type Repeated

type Repeated struct {
	Flt   []float32 `protobuf:"fixed32,1,rep,name=flt" json:"flt,omitempty"`
	Dbl   []float64 `protobuf:"fixed64,2,rep,name=dbl" json:"dbl,omitempty"`
	I32   []int32   `protobuf:"varint,3,rep,name=i32" json:"i32,omitempty"`
	I64   []int64   `protobuf:"varint,4,rep,name=i64" json:"i64,omitempty"`
	U32   []uint32  `protobuf:"varint,5,rep,name=u32" json:"u32,omitempty"`
	U64   []uint64  `protobuf:"varint,6,rep,name=u64" json:"u64,omitempty"`
	S32   []int32   `protobuf:"zigzag32,7,rep,name=s32" json:"s32,omitempty"`
	S64   []int64   `protobuf:"zigzag64,8,rep,name=s64" json:"s64,omitempty"`
	F32   []uint32  `protobuf:"fixed32,9,rep,name=f32" json:"f32,omitempty"`
	F64   []uint64  `protobuf:"fixed64,10,rep,name=f64" json:"f64,omitempty"`
	Sf32  []int32   `protobuf:"fixed32,11,rep,name=sf32" json:"sf32,omitempty"`
	Sf64  []int64   `protobuf:"fixed64,12,rep,name=sf64" json:"sf64,omitempty"`
	Bool  []bool    `protobuf:"varint,13,rep,name=bool" json:"bool,omitempty"`
	Str   []string  `protobuf:"bytes,14,rep,name=str" json:"str,omitempty"`
	Byte  [][]byte  `protobuf:"bytes,15,rep,name=byte" json:"byte,omitempty"`
	After *bool     `protobuf:"varint,32,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Repeated) Descriptor deprecated

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

Deprecated: Use Repeated.ProtoReflect.Descriptor instead.

func (*Repeated) GetAfter

func (x *Repeated) GetAfter() bool

func (*Repeated) GetBool

func (x *Repeated) GetBool() []bool

func (*Repeated) GetByte

func (x *Repeated) GetByte() [][]byte

func (*Repeated) GetDbl

func (x *Repeated) GetDbl() []float64

func (*Repeated) GetF32

func (x *Repeated) GetF32() []uint32

func (*Repeated) GetF64

func (x *Repeated) GetF64() []uint64

func (*Repeated) GetFlt

func (x *Repeated) GetFlt() []float32

func (*Repeated) GetI32

func (x *Repeated) GetI32() []int32

func (*Repeated) GetI64

func (x *Repeated) GetI64() []int64

func (*Repeated) GetS32

func (x *Repeated) GetS32() []int32

func (*Repeated) GetS64

func (x *Repeated) GetS64() []int64

func (*Repeated) GetSf32

func (x *Repeated) GetSf32() []int32

func (*Repeated) GetSf64

func (x *Repeated) GetSf64() []int64

func (*Repeated) GetStr

func (x *Repeated) GetStr() []string

func (*Repeated) GetU32

func (x *Repeated) GetU32() []uint32

func (*Repeated) GetU64

func (x *Repeated) GetU64() []uint64

func (*Repeated) ProtoMessage

func (*Repeated) ProtoMessage()

func (*Repeated) ProtoReflect

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

func (*Repeated) Reset

func (x *Repeated) Reset()

func (*Repeated) String

func (x *Repeated) String() string

type Scalar

type Scalar struct {
	Flt   *float32 `protobuf:"fixed32,1,opt,name=flt" json:"flt,omitempty"`
	Dbl   *float64 `protobuf:"fixed64,2,opt,name=dbl" json:"dbl,omitempty"`
	I32   *int32   `protobuf:"varint,3,opt,name=i32" json:"i32,omitempty"`
	I64   *int64   `protobuf:"varint,4,opt,name=i64" json:"i64,omitempty"`
	U32   *uint32  `protobuf:"varint,5,opt,name=u32" json:"u32,omitempty"`
	U64   *uint64  `protobuf:"varint,6,opt,name=u64" json:"u64,omitempty"`
	S32   *int32   `protobuf:"zigzag32,7,opt,name=s32" json:"s32,omitempty"`
	S64   *int64   `protobuf:"zigzag64,8,opt,name=s64" json:"s64,omitempty"`
	F32   *uint32  `protobuf:"fixed32,9,opt,name=f32" json:"f32,omitempty"`
	F64   *uint64  `protobuf:"fixed64,10,opt,name=f64" json:"f64,omitempty"`
	Sf32  *int32   `protobuf:"fixed32,11,opt,name=sf32" json:"sf32,omitempty"`
	Sf64  *int64   `protobuf:"fixed64,12,opt,name=sf64" json:"sf64,omitempty"`
	Bool  *bool    `protobuf:"varint,13,opt,name=bool" json:"bool,omitempty"`
	Str   *string  `protobuf:"bytes,14,opt,name=str" json:"str,omitempty"`
	Byte  []byte   `protobuf:"bytes,15,opt,name=byte" json:"byte,omitempty"`
	After *bool    `protobuf:"varint,32,opt,name=after" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*Scalar) Descriptor deprecated

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

Deprecated: Use Scalar.ProtoReflect.Descriptor instead.

func (*Scalar) GetAfter

func (x *Scalar) GetAfter() bool

func (*Scalar) GetBool

func (x *Scalar) GetBool() bool

func (*Scalar) GetByte

func (x *Scalar) GetByte() []byte

func (*Scalar) GetDbl

func (x *Scalar) GetDbl() float64

func (*Scalar) GetF32

func (x *Scalar) GetF32() uint32

func (*Scalar) GetF64

func (x *Scalar) GetF64() uint64

func (*Scalar) GetFlt

func (x *Scalar) GetFlt() float32

func (*Scalar) GetI32

func (x *Scalar) GetI32() int32

func (*Scalar) GetI64

func (x *Scalar) GetI64() int64

func (*Scalar) GetS32

func (x *Scalar) GetS32() int32

func (*Scalar) GetS64

func (x *Scalar) GetS64() int64

func (*Scalar) GetSf32

func (x *Scalar) GetSf32() int32

func (*Scalar) GetSf64

func (x *Scalar) GetSf64() int64

func (*Scalar) GetStr

func (x *Scalar) GetStr() string

func (*Scalar) GetU32

func (x *Scalar) GetU32() uint32

func (*Scalar) GetU64

func (x *Scalar) GetU64() uint64

func (*Scalar) ProtoMessage

func (*Scalar) ProtoMessage()

func (*Scalar) ProtoReflect

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

func (*Scalar) Reset

func (x *Scalar) Reset()

func (*Scalar) String

func (x *Scalar) String() string

Jump to

Keyboard shortcuts

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