properties_alt.go 694 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2010 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. // +build !use_golang_protobuf_v1
  5. package proto
  6. import (
  7. "reflect"
  8. "github.com/golang/protobuf/internal/proto"
  9. )
  10. // Constants that identify the encoding of a value on the wire.
  11. const (
  12. WireVarint = 0
  13. WireFixed64 = 1
  14. WireBytes = 2
  15. WireStartGroup = 3
  16. WireEndGroup = 4
  17. WireFixed32 = 5
  18. )
  19. type (
  20. Properties = proto.Properties
  21. StructProperties = proto.StructProperties
  22. OneofProperties = proto.OneofProperties
  23. )
  24. func GetProperties(t reflect.Type) *StructProperties {
  25. return proto.GetProperties(t)
  26. }