package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

Clone uses proto.Clone to return a deep copy of pb.
Marshal encodes pb into the wire format and returns the resulting byte slice.
MarshalTo encodes pb into the wire format and writes the result into the provided byte slice, returning the number of bytes written.
MarshalToSizedBuffer encodes pb into the wire format and writes the result into the provided byte slice, returning the number of bytes written.
RegisterUnclonableType registers a type as not being allowed for cloning.
TODOMarshal is a short-term workaround for the linter in order to use the latest protobuf package.
TODOUnmarshal is a short-term workaround for the linter in order to use the latest protobuf package.
Unmarshal parses the protocol buffer representation in buf and places the decoded result in pb.

# Structs

ProtoPb is a gwruntime.Marshaler that uses github.com/gogo/protobuf/proto.

# Interfaces

Message extends the proto.Message interface with the MarshalTo and Size methods we tell gogoproto to generate for us.

# Type aliases

JSONPb is a gwruntime.Marshaler that uses github.com/gogo/protobuf/jsonpb.