impl.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. Pointer = impl.Pointer
  23. MessageInfo = impl.MessageInfo
  24. MessageState = impl.MessageState
  25. SizeCache = impl.SizeCache
  26. WeakFields = impl.WeakFields
  27. UnknownFields = impl.UnknownFields
  28. ExtensionFields = impl.ExtensionFields
  29. ExtensionFieldV1 = impl.ExtensionField
  30. )
  31. var X impl.Export