impl.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2018 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. // Package protoimpl contains the default implementation for messages
  5. // generated by protoc-gen-go.
  6. //
  7. // WARNING: This package should only ever be imported by generated messages.
  8. // The compatibility agreement covers nothing except for functionality needed
  9. // to keep existing generated messages operational. Breakages that occur due
  10. // to unauthorized usages of this package are not the author's responsibility.
  11. package protoimpl
  12. import (
  13. "google.golang.org/protobuf/internal/filedesc"
  14. "google.golang.org/protobuf/internal/filetype"
  15. "google.golang.org/protobuf/internal/impl"
  16. )
  17. // UnsafeEnabled specifies whether package unsafe can be used.
  18. const UnsafeEnabled = impl.UnsafeEnabled
  19. type (
  20. DescBuilder = filedesc.Builder
  21. TypeBuilder = filetype.Builder
  22. EnumInfo = filetype.EnumInfo
  23. Pointer = impl.Pointer
  24. MessageInfo = impl.MessageInfo
  25. MessageState = impl.MessageState
  26. SizeCache = impl.SizeCache
  27. WeakFields = impl.WeakFields
  28. UnknownFields = impl.UnknownFields
  29. ExtensionFields = impl.ExtensionFields
  30. ExtensionFieldV1 = impl.ExtensionField
  31. )
  32. var X impl.Export