Documentation ¶
Index ¶
- Variables
- type List
- type ProtocTester
- type Sub
- type Test
- func (*Test) Descriptor() ([]byte, []int)deprecated
- func (x *Test) GetA() uint32
- func (x *Test) GetB() uint64
- func (x *Test) GetC() int32
- func (x *Test) GetD() int64
- func (x *Test) GetE() int32
- func (x *Test) GetF() int64
- func (x *Test) GetG() uint32
- func (x *Test) GetH() uint64
- func (x *Test) GetI() float32
- func (x *Test) GetJ() float64
- func (x *Test) GetK() []byte
- func (x *Test) GetL() string
- func (x *Test) GetM() []uint64
- func (x *Test) GetN() *Sub
- func (x *Test) GetO() *List
- func (x *Test) GetP() []int32
- func (x *Test) GetQ() []*Sub
- func (x *Test) GetR() uint32
- func (x *Test) GetS() []byte
- func (x *Test) GetT() []float32
- func (x *Test) GetU() []float64
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (x *Test) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct { Z []int32 `protobuf:"zigzag32,1,rep,packed,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
func (*List) Descriptor
deprecated
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type ProtocTester ¶ added in v0.2.0
type ProtocTester struct {
// contains filtered or unexported fields
}
ProtocTester mimicks the program in pbf_test.go using Go code generated by protoc and protoc-gen-go.
type Sub ¶
type Sub struct { X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Sub) Descriptor
deprecated
func (*Sub) ProtoMessage ¶
func (*Sub) ProtoMessage()
func (*Sub) ProtoReflect ¶
func (x *Sub) ProtoReflect() protoreflect.Message
type Test ¶
type Test struct { A uint32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B uint64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` C int32 `protobuf:"varint,3,opt,name=c,proto3" json:"c,omitempty"` D int64 `protobuf:"varint,4,opt,name=d,proto3" json:"d,omitempty"` E int32 `protobuf:"zigzag32,5,opt,name=e,proto3" json:"e,omitempty"` F int64 `protobuf:"zigzag64,6,opt,name=f,proto3" json:"f,omitempty"` G uint32 `protobuf:"fixed32,7,opt,name=g,proto3" json:"g,omitempty"` H uint64 `protobuf:"fixed64,8,opt,name=h,proto3" json:"h,omitempty"` I float32 `protobuf:"fixed32,9,opt,name=i,proto3" json:"i,omitempty"` J float64 `protobuf:"fixed64,10,opt,name=j,proto3" json:"j,omitempty"` K []byte `protobuf:"bytes,11,opt,name=k,proto3" json:"k,omitempty"` L string `protobuf:"bytes,12,opt,name=l,proto3" json:"l,omitempty"` M []uint64 `protobuf:"varint,13,rep,packed,name=m,proto3" json:"m,omitempty"` N *Sub `protobuf:"bytes,14,opt,name=n,proto3" json:"n,omitempty"` O *List `protobuf:"bytes,15,opt,name=o,proto3" json:"o,omitempty"` P []int32 `protobuf:"zigzag32,16,rep,name=p,proto3" json:"p,omitempty"` Q []*Sub `protobuf:"bytes,17,rep,name=q,proto3" json:"q,omitempty"` R uint32 `protobuf:"varint,18,opt,name=r,proto3" json:"r,omitempty"` S []byte `protobuf:"bytes,19,opt,name=s,proto3" json:"s,omitempty"` T []float32 `protobuf:"fixed32,20,rep,packed,name=t,proto3" json:"t,omitempty"` U []float64 `protobuf:"fixed64,21,rep,packed,name=u,proto3" json:"u,omitempty"` // contains filtered or unexported fields }
func (*Test) Descriptor
deprecated
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.