No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

21 líneas
523 B

  1. // 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. // The protoreflect build tag disables use of fast-path methods.
  5. //go:build !protoreflect
  6. // +build !protoreflect
  7. package proto
  8. import (
  9. "google.golang.org/protobuf/reflect/protoreflect"
  10. "google.golang.org/protobuf/runtime/protoiface"
  11. )
  12. const hasProtoMethods = true
  13. func protoMethods(m protoreflect.Message) *protoiface.Methods {
  14. return m.ProtoMethods()
  15. }