blob: b419ff6853e2589a5005a375f45d17c8c8a7b3bb [file] [log] [blame]
Joe Tsaif9123a32018-11-30 09:04:58 +00001// 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
Damien Neil8012b442019-01-18 09:32:24 -080014import (
Joe Tsaid8881392019-06-06 13:01:53 -070015 "google.golang.org/protobuf/internal/filedesc"
Joe Tsaid8881392019-06-06 13:01:53 -070016 "google.golang.org/protobuf/internal/filetype"
Damien Neile89e6242019-05-13 23:55:40 -070017 "google.golang.org/protobuf/internal/impl"
Damien Neil8012b442019-01-18 09:32:24 -080018)
Joe Tsaif9123a32018-11-30 09:04:58 +000019
Joe Tsaic0e4bb22019-07-06 13:05:11 -070020// UnsafeEnabled specifies whether package unsafe can be used.
21const UnsafeEnabled = impl.UnsafeEnabled
22
Joe Tsaie1f8d502018-11-26 18:55:29 -080023type (
Joe Tsai52ec1752019-08-05 15:49:29 -070024 DescBuilder = filedesc.Builder
25 TypeBuilder = filetype.Builder
Joe Tsai82760ce2019-06-20 03:09:57 -070026 Pointer = impl.Pointer
Joe Tsai378c1322019-04-25 23:48:08 -070027 MessageInfo = impl.MessageInfo
Joe Tsai82760ce2019-06-20 03:09:57 -070028 MessageState = impl.MessageState
Joe Tsai378c1322019-04-25 23:48:08 -070029 SizeCache = impl.SizeCache
Joe Tsai3d8e3692019-04-08 13:52:14 -070030 WeakFields = impl.WeakFields
Joe Tsai378c1322019-04-25 23:48:08 -070031 UnknownFields = impl.UnknownFields
32 ExtensionFields = impl.ExtensionFields
Joe Tsai89d49632019-06-04 16:20:00 -070033 ExtensionFieldV1 = impl.ExtensionField
Joe Tsaie1f8d502018-11-26 18:55:29 -080034)
Joe Tsai58b42d82019-05-22 16:27:51 -040035
36var X impl.Export