mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 18:52:11 +00:00
c097745c38
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
32 lines
1 KiB
Go
32 lines
1 KiB
Go
// Copyright 2023 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package protoadapt bridges the original and new proto APIs.
|
|
package protoadapt
|
|
|
|
import (
|
|
"google.golang.org/protobuf/proto"
|
|
"google.golang.org/protobuf/runtime/protoiface"
|
|
"google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
// MessageV1 is the original [github.com/golang/protobuf/proto.Message] type.
|
|
type MessageV1 = protoiface.MessageV1
|
|
|
|
// 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) 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) MessageV2 {
|
|
return protoimpl.X.ProtoMessageV2Of(m)
|
|
}
|