blob: 465e057b323869192ced12c31922992cd2a1cdc6 [file] [log] [blame]
Naveen Sampath04696f72022-06-13 15:19:14 +05301// 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.
Akash Reddy Kankanala105581b2024-09-11 05:20:38 +05306//go:build !protoreflect
Naveen Sampath04696f72022-06-13 15:19:14 +05307// +build !protoreflect
8
9package proto
10
11import (
12 "google.golang.org/protobuf/reflect/protoreflect"
13 "google.golang.org/protobuf/runtime/protoiface"
14)
15
16const hasProtoMethods = true
17
18func protoMethods(m protoreflect.Message) *protoiface.Methods {
19 return m.ProtoMethods()
20}