protobuf: google.golang.org/protobuf/internal/protolegacy Index | Files

package protolegacy

import "google.golang.org/protobuf/internal/protolegacy"

Package protolegacy is a stub version of the v1 proto package to satisfy internal/testprotos/legacy dependencies.

Index

Package Files

proto.go

Constants

const (
    ProtoPackageIsVersion1 = true
    ProtoPackageIsVersion2 = true
    ProtoPackageIsVersion3 = true
)
const (
    WireVarint     = 0
    WireFixed32    = 5
    WireFixed64    = 1
    WireBytes      = 2
    WireStartGroup = 3
    WireEndGroup   = 4
)

Variables

var ErrInternalBadWireType = errors.New("not implemented")

func CompactTextString Uses

func CompactTextString(Message) string

func DecodeVarint Uses

func DecodeVarint([]byte) (uint64, int)

func EncodeVarint Uses

func EncodeVarint(uint64) []byte

func EnumName Uses

func EnumName(map[int32]string, int32) string

func Marshal Uses

func Marshal(Message) ([]byte, error)

func RegisterEnum Uses

func RegisterEnum(string, map[int32]string, map[string]int32)

func RegisterExtension Uses

func RegisterExtension(d *ExtensionDesc)

func RegisterFile Uses

func RegisterFile(s string, d []byte)

func RegisterMapType Uses

func RegisterMapType(interface{}, string)

func RegisterType Uses

func RegisterType(m Message, s string)

func Size Uses

func Size(Message) int

func SizeVarint Uses

func SizeVarint(uint64) int

func Unmarshal Uses

func Unmarshal([]byte, Message) error

func UnmarshalJSONEnum Uses

func UnmarshalJSONEnum(map[string]int32, []byte, string) (int32, error)

type Buffer Uses

type Buffer struct{}

func (*Buffer) DecodeFixed32 Uses

func (*Buffer) DecodeFixed32() (uint64, error)

func (*Buffer) DecodeFixed64 Uses

func (*Buffer) DecodeFixed64() (uint64, error)

func (*Buffer) DecodeGroup Uses

func (*Buffer) DecodeGroup(Message) error

func (*Buffer) DecodeMessage Uses

func (*Buffer) DecodeMessage(Message) error

func (*Buffer) DecodeRawBytes Uses

func (*Buffer) DecodeRawBytes(bool) ([]byte, error)

func (*Buffer) DecodeStringBytes Uses

func (*Buffer) DecodeStringBytes() (string, error)

func (*Buffer) DecodeVarint Uses

func (*Buffer) DecodeVarint() (uint64, error)

func (*Buffer) DecodeZigzag32 Uses

func (*Buffer) DecodeZigzag32() (uint64, error)

func (*Buffer) DecodeZigzag64 Uses

func (*Buffer) DecodeZigzag64() (uint64, error)

func (*Buffer) EncodeFixed32 Uses

func (*Buffer) EncodeFixed32(uint64) error

func (*Buffer) EncodeFixed64 Uses

func (*Buffer) EncodeFixed64(uint64) error

func (*Buffer) EncodeMessage Uses

func (*Buffer) EncodeMessage(Message) error

func (*Buffer) EncodeRawBytes Uses

func (*Buffer) EncodeRawBytes([]byte) error

func (*Buffer) EncodeStringBytes Uses

func (*Buffer) EncodeStringBytes(string) error

func (*Buffer) EncodeVarint Uses

func (*Buffer) EncodeVarint(uint64) error

func (*Buffer) EncodeZigzag32 Uses

func (*Buffer) EncodeZigzag32(uint64) error

func (*Buffer) EncodeZigzag64 Uses

func (*Buffer) EncodeZigzag64(uint64) error

func (*Buffer) Marshal Uses

func (*Buffer) Marshal(Message) error

func (*Buffer) Unmarshal Uses

func (*Buffer) Unmarshal(Message) error

type Extension Uses

type Extension = protoimpl.ExtensionFieldV1

type ExtensionDesc Uses

type ExtensionDesc = protoimpl.ExtensionInfo

type ExtensionRange Uses

type ExtensionRange = protoiface.ExtensionRangeV1

type InternalMessageInfo Uses

type InternalMessageInfo struct{}

func (*InternalMessageInfo) DiscardUnknown Uses

func (*InternalMessageInfo) DiscardUnknown(Message)

func (*InternalMessageInfo) Marshal Uses

func (*InternalMessageInfo) Marshal([]byte, Message, bool) ([]byte, error)

func (*InternalMessageInfo) Merge Uses

func (*InternalMessageInfo) Merge(Message, Message)

func (*InternalMessageInfo) Size Uses

func (*InternalMessageInfo) Size(Message) int

func (*InternalMessageInfo) Unmarshal Uses

func (*InternalMessageInfo) Unmarshal(Message, []byte) error

type Message Uses

type Message = protoiface.MessageV1

type XXX_InternalExtensions Uses

type XXX_InternalExtensions = protoimpl.ExtensionFields

Package protolegacy imports 9 packages (graph) and is imported by 22 packages. Updated 2020-10-22. Refresh now. Tools for package owners.