Joe Tsai | f9123a3 | 2018-11-30 09:04:58 +0000 | [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 | |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 14 | import ( |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 15 | "google.golang.org/protobuf/internal/filedesc" |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 16 | "google.golang.org/protobuf/internal/filetype" |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 17 | "google.golang.org/protobuf/internal/impl" |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 18 | ) |
Joe Tsai | f9123a3 | 2018-11-30 09:04:58 +0000 | [diff] [blame] | 19 | |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 20 | // UnsafeEnabled specifies whether package unsafe can be used. |
| 21 | const UnsafeEnabled = impl.UnsafeEnabled |
| 22 | |
Joe Tsai | e1f8d50 | 2018-11-26 18:55:29 -0800 | [diff] [blame] | 23 | type ( |
Joe Tsai | 52ec175 | 2019-08-05 15:49:29 -0700 | [diff] [blame] | 24 | DescBuilder = filedesc.Builder |
| 25 | TypeBuilder = filetype.Builder |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 26 | Pointer = impl.Pointer |
Joe Tsai | 378c132 | 2019-04-25 23:48:08 -0700 | [diff] [blame] | 27 | MessageInfo = impl.MessageInfo |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 28 | MessageState = impl.MessageState |
Joe Tsai | 378c132 | 2019-04-25 23:48:08 -0700 | [diff] [blame] | 29 | SizeCache = impl.SizeCache |
Joe Tsai | 3d8e369 | 2019-04-08 13:52:14 -0700 | [diff] [blame] | 30 | WeakFields = impl.WeakFields |
Joe Tsai | 378c132 | 2019-04-25 23:48:08 -0700 | [diff] [blame] | 31 | UnknownFields = impl.UnknownFields |
| 32 | ExtensionFields = impl.ExtensionFields |
Joe Tsai | 89d4963 | 2019-06-04 16:20:00 -0700 | [diff] [blame] | 33 | ExtensionFieldV1 = impl.ExtensionField |
Joe Tsai | e1f8d50 | 2018-11-26 18:55:29 -0800 | [diff] [blame] | 34 | ) |
Joe Tsai | 58b42d8 | 2019-05-22 16:27:51 -0400 | [diff] [blame] | 35 | |
| 36 | var X impl.Export |