2019-04-05 14:33:10 -07:00
|
|
|
// Copyright 2019 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.
|
|
|
|
|
|
|
|
// The protoreflect build tag disables use of fast-path methods.
|
2021-12-06 14:18:55 -08:00
|
|
|
//go:build !protoreflect
|
2019-04-05 14:33:10 -07:00
|
|
|
// +build !protoreflect
|
|
|
|
|
|
|
|
package proto
|
|
|
|
|
2019-07-10 23:14:31 -07:00
|
|
|
import (
|
|
|
|
"google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
"google.golang.org/protobuf/runtime/protoiface"
|
|
|
|
)
|
2019-04-05 14:33:10 -07:00
|
|
|
|
2019-09-14 18:22:59 -07:00
|
|
|
const hasProtoMethods = true
|
|
|
|
|
2019-07-10 23:14:31 -07:00
|
|
|
func protoMethods(m protoreflect.Message) *protoiface.Methods {
|
2020-01-21 11:27:51 -08:00
|
|
|
return m.ProtoMethods()
|
2019-04-05 14:33:10 -07:00
|
|
|
}
|