blob: 61349f47eb730acea8ed58dbc5b765c8ed73de24 [file] [log] [blame]
Damien Neilcc2b0782019-04-05 14:33:10 -07001// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// The protoreflect build tag disables use of fast-path methods.
6// +build !protoreflect
7
8package proto
9
Damien Neile89e6242019-05-13 23:55:40 -070010import "google.golang.org/protobuf/runtime/protoiface"
Damien Neilcc2b0782019-04-05 14:33:10 -070011
12func protoMethods(m Message) *protoiface.Methods {
13 if x, ok := m.(protoiface.Methoder); ok {
14 return x.XXX_Methods()
15 }
16 return nil
17}