impl.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // Types used by generated code in init functions.
  21. DescBuilder = filedesc.Builder
  22. TypeBuilder = filetype.Builder
  23. // Types used by generated code to implement EnumType, MessageType, and ExtensionType.
  24. EnumInfo = impl.EnumInfo
  25. MessageInfo = impl.MessageInfo
  26. ExtensionInfo = impl.ExtensionInfo
  27. // Types embedded in generated messages.
  28. MessageState = impl.MessageState
  29. SizeCache = impl.SizeCache
  30. WeakFields = impl.WeakFields
  31. UnknownFields = impl.UnknownFields
  32. ExtensionFields = impl.ExtensionFields
  33. ExtensionFieldV1 = impl.ExtensionField
  34. Pointer = impl.Pointer
  35. )
  36. var X impl.Export