Elia Battiston | be9edc1 | 2022-03-09 11:35:58 +0100 | [diff] [blame] | 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 | |
| 5 | // Package protoimpl contains the default implementation for messages |
| 6 | // generated by protoc-gen-go. |
| 7 | // |
| 8 | // WARNING: This package should only ever be imported by generated messages. |
| 9 | // The compatibility agreement covers nothing except for functionality needed |
| 10 | // to keep existing generated messages operational. Breakages that occur due |
| 11 | // to unauthorized usages of this package are not the author's responsibility. |
| 12 | package protoimpl |
| 13 | |
| 14 | import ( |
| 15 | "google.golang.org/protobuf/internal/filedesc" |
| 16 | "google.golang.org/protobuf/internal/filetype" |
| 17 | "google.golang.org/protobuf/internal/impl" |
| 18 | ) |
| 19 | |
| 20 | // UnsafeEnabled specifies whether package unsafe can be used. |
| 21 | const UnsafeEnabled = impl.UnsafeEnabled |
| 22 | |
| 23 | type ( |
| 24 | // Types used by generated code in init functions. |
| 25 | DescBuilder = filedesc.Builder |
| 26 | TypeBuilder = filetype.Builder |
| 27 | |
| 28 | // Types used by generated code to implement EnumType, MessageType, and ExtensionType. |
| 29 | EnumInfo = impl.EnumInfo |
| 30 | MessageInfo = impl.MessageInfo |
| 31 | ExtensionInfo = impl.ExtensionInfo |
| 32 | |
| 33 | // Types embedded in generated messages. |
| 34 | MessageState = impl.MessageState |
| 35 | SizeCache = impl.SizeCache |
| 36 | WeakFields = impl.WeakFields |
| 37 | UnknownFields = impl.UnknownFields |
| 38 | ExtensionFields = impl.ExtensionFields |
| 39 | ExtensionFieldV1 = impl.ExtensionField |
| 40 | |
| 41 | Pointer = impl.Pointer |
| 42 | ) |
| 43 | |
| 44 | var X impl.Export |