Documentation ¶
Overview ¶
Package protoadapt bridges the original and new proto APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageV1 ¶
type MessageV1 = protoiface.MessageV1
MessageV1 is the original github.com/golang/protobuf/proto.Message type.
func MessageV1Of ¶
MessageV1Of converts a v2 message to a v1 message. It returns nil if m is nil.
type MessageV2 ¶
MessageV2 is the google.golang.org/protobuf/proto.Message type used by the current google.golang.org/protobuf module, adding support for reflection.
func MessageV2Of ¶
MessageV2Of converts a v1 message to a v2 message. It returns nil if m is nil.
Click to show internal directories.
Click to hide internal directories.