source: code/trunk/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go@ 822

Last change on this file since 822 was 822, checked in by yakumo.izuru, 22 months ago

Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 1.4 KB
Line 
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.
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
Note: See TracBrowser for help on using the repository browser.