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