diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-01-31 17:22:33 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-01-31 17:22:33 +0300 |
commit | 52be5dbdd420165c68e7e90ba8f1d2f00da041f6 (patch) | |
tree | 5d47f5b2ff4e6a7c8e75d33931a1e683949b7229 /vendor/google.golang.org/protobuf/protoadapt/convert.go | |
parent | ea57c8867ceca391357c3c5ffcc5ba6738b49adc (diff) | |
parent | 809f0cf2fdfddfbeacc2256ffdbaaf5808ce5ed4 (diff) | |
download | ydb-52be5dbdd420165c68e7e90ba8f1d2f00da041f6.tar.gz |
Merge branch 'mergelibs12' into main
Diffstat (limited to 'vendor/google.golang.org/protobuf/protoadapt/convert.go')
-rw-r--r-- | vendor/google.golang.org/protobuf/protoadapt/convert.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/google.golang.org/protobuf/protoadapt/convert.go b/vendor/google.golang.org/protobuf/protoadapt/convert.go index ce172386bf..ea276d15a0 100644 --- a/vendor/google.golang.org/protobuf/protoadapt/convert.go +++ b/vendor/google.golang.org/protobuf/protoadapt/convert.go @@ -11,21 +11,21 @@ import ( "google.golang.org/protobuf/runtime/protoimpl" ) -// MessageV1 is the original "github.com/golang/protobuf/proto".Message type. +// MessageV1 is the original [github.com/golang/protobuf/proto.Message] type. type MessageV1 = protoiface.MessageV1 -// MessageV2 is the Message type used by the current google.golang.org/protobuf -// module, adding support for reflection. +// MessageV2 is the [google.golang.org/protobuf/proto.Message] type used by the +// current [google.golang.org/protobuf] module, adding support for reflection. type MessageV2 = proto.Message // MessageV1Of converts a v2 message to a v1 message. // It returns nil if m is nil. -func MessageV1Of(m MessageV2) protoiface.MessageV1 { +func MessageV1Of(m MessageV2) MessageV1 { return protoimpl.X.ProtoMessageV1Of(m) } // MessageV2Of converts a v1 message to a v2 message. // It returns nil if m is nil. -func MessageV2Of(m MessageV1) proto.Message { +func MessageV2Of(m MessageV1) MessageV2 { return protoimpl.X.ProtoMessageV2Of(m) } |