package protoadapt
import "google.golang.org/protobuf/protoadapt"
Package protoadapt bridges the original and new proto APIs.
Index ¶
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.
Source Files ¶
convert.go
- Version
- v1.36.5 (latest)
- Published
- Feb 6, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 hours ago –
Tools for package owners.