gogopb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 5 Imported by: 0

README

protoc ./model.proto --gofast_out=./

Documentation

Overview

Package gogopb is a generated protocol buffer package.

It is generated from these files:

model.proto

It has these top-level messages:

Object

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModel   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Object

type Object 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 float32  `protobuf:"fixed32,3,opt,name=C,proto3" json:"C,omitempty"`
	D float64  `protobuf:"fixed64,4,opt,name=D,proto3" json:"D,omitempty"`
	E string   `protobuf:"bytes,5,opt,name=E,proto3" json:"E,omitempty"`
	F bool     `protobuf:"varint,6,opt,name=F,proto3" json:"F,omitempty"`
	G []byte   `protobuf:"bytes,7,opt,name=G,proto3" json:"G,omitempty"`
	H [][]byte `protobuf:"bytes,8,rep,name=H" json:"H,omitempty"`
}

func (*Object) Descriptor

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

func (*Object) GetA

func (m *Object) GetA() uint32

func (*Object) GetB

func (m *Object) GetB() uint64

func (*Object) GetC

func (m *Object) GetC() float32

func (*Object) GetD

func (m *Object) GetD() float64

func (*Object) GetE

func (m *Object) GetE() string

func (*Object) GetF

func (m *Object) GetF() bool

func (*Object) GetG

func (m *Object) GetG() []byte

func (*Object) GetH

func (m *Object) GetH() [][]byte

func (*Object) Marshal

func (m *Object) Marshal() (dAtA []byte, err error)

func (*Object) MarshalTo

func (m *Object) MarshalTo(dAtA []byte) (int, error)

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) Size

func (m *Object) Size() (n int)

func (*Object) String

func (m *Object) String() string

func (*Object) Unmarshal

func (m *Object) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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