Versions in this module Expand all Collapse all v1 v1.26.0 Jan 20, 2021 Changes in this version + const ProtoPackageIsVersion1 + const ProtoPackageIsVersion2 + const ProtoPackageIsVersion3 + const WireBytes + const WireEndGroup + const WireFixed32 + const WireFixed64 + const WireStartGroup + const WireVarint + var ErrInternalBadWireType = errors.New("not implemented") + func CompactTextString(Message) string + func DecodeVarint([]byte) (uint64, int) + func EncodeVarint(uint64) []byte + func EnumName(map[int32]string, int32) string + func Marshal(Message) ([]byte, error) + func RegisterEnum(string, map[int32]string, map[string]int32) + func RegisterExtension(d *ExtensionDesc) + func RegisterFile(s string, d []byte) + func RegisterMapType(interface{}, string) + func RegisterType(m Message, s string) + func Size(Message) int + func SizeVarint(uint64) int + func Unmarshal([]byte, Message) error + func UnmarshalJSONEnum(map[string]int32, []byte, string) (int32, error) + type Buffer struct + func (*Buffer) DecodeFixed32() (uint64, error) + func (*Buffer) DecodeFixed64() (uint64, error) + func (*Buffer) DecodeGroup(Message) error + func (*Buffer) DecodeMessage(Message) error + func (*Buffer) DecodeRawBytes(bool) ([]byte, error) + func (*Buffer) DecodeStringBytes() (string, error) + func (*Buffer) DecodeVarint() (uint64, error) + func (*Buffer) DecodeZigzag32() (uint64, error) + func (*Buffer) DecodeZigzag64() (uint64, error) + func (*Buffer) EncodeFixed32(uint64) error + func (*Buffer) EncodeFixed64(uint64) error + func (*Buffer) EncodeMessage(Message) error + func (*Buffer) EncodeRawBytes([]byte) error + func (*Buffer) EncodeStringBytes(string) error + func (*Buffer) EncodeVarint(uint64) error + func (*Buffer) EncodeZigzag32(uint64) error + func (*Buffer) EncodeZigzag64(uint64) error + func (*Buffer) Marshal(Message) error + func (*Buffer) Unmarshal(Message) error + type Extension = protoimpl.ExtensionFieldV1 + type ExtensionDesc = protoimpl.ExtensionInfo + type ExtensionRange = protoiface.ExtensionRangeV1 + type InternalMessageInfo struct + func (*InternalMessageInfo) DiscardUnknown(Message) + func (*InternalMessageInfo) Marshal([]byte, Message, bool) ([]byte, error) + func (*InternalMessageInfo) Merge(Message, Message) + func (*InternalMessageInfo) Size(Message) int + func (*InternalMessageInfo) Unmarshal(Message, []byte) error + type Message = protoiface.MessageV1 + type XXX_InternalExtensions = protoimpl.ExtensionFields