blob: 4a1ab7fb3de1efa2e296d585d371453d7fa9cf83 [file] [log] [blame]
amit.ghosh258d14c2020-10-02 15:13:38 +02001// 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.
12package protoimpl
13
14import (
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.
21const UnsafeEnabled = impl.UnsafeEnabled
22
23type (
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
44var X impl.Export