.github
alerting
client
config
core
docs
example
jsonpath
k8s
k8stest
metric
pattern
security
static
vendor
cloud.google.com
github.com
golang.org
google.golang.org
appengine
protobuf
encoding
internal
proto
checkinit.go
decode.go
decode_gen.go
doc.go
encode.go
encode_gen.go
equal.go
extension.go
merge.go
messageset.go
proto.go
proto_methods.go
proto_reflect.go
reset.go
size.go
size_gen.go
wrappers.go
reflect
runtime
types
AUTHORS
CONTRIBUTORS
LICENSE
PATENTS
gopkg.in
k8s.io
sigs.k8s.io
modules.txt
watchdog
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE.md
README.md
config.yaml
go.mod
go.sum
gzip.go
main.go
20 lines
498 B
Go
20 lines
498 B
Go
// 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.
|
|
// +build !protoreflect
|
|
|
|
package proto
|
|
|
|
import (
|
|
"google.golang.org/protobuf/reflect/protoreflect"
|
|
"google.golang.org/protobuf/runtime/protoiface"
|
|
)
|
|
|
|
const hasProtoMethods = true
|
|
|
|
func protoMethods(m protoreflect.Message) *protoiface.Methods {
|
|
return m.ProtoMethods()
|
|
}
|