protoadapt

package
v1.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause Imports: 3 Imported by: 52

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

func MessageV1Of(m MessageV2) MessageV1

MessageV1Of converts a v2 message to a v1 message. It returns nil if m is nil.

type MessageV2

type MessageV2 = proto.Message

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

func MessageV2Of(m MessageV1) MessageV2

MessageV2Of converts a v1 message to a v2 message. It returns nil if m is nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL