Documentation ¶
Overview ¶
Package protoimpl contains the default implementation for messages generated by protoc-gen-go.
WARNING: This package should only ever be imported by generated messages. The compatibility agreement covers nothing except for functionality needed to keep existing generated messages operational. Breakages that occur due to unauthorized usages of this package are not the author's responsibility.
Index ¶
Constants ¶
const Version = 0 // v2.{Version}.x
Version is the current minor version of the package. This is incremented every time the API of this package expands.
Variables ¶
var X impl.Export
Functions ¶
This section is empty.
Types ¶
type EnforceVersion ¶
type EnforceVersion uint
EnforceVersion is used by code generated by protoc-gen-go to statically enforce a minimum version of this package. A compilation failure implies that this package is too old and needs to be updated to a more recent version.
This package can be upgraded by running:
go get -u github.com/golang/protobuf/v2/...
Example usage by generated code:
const _ = protoimpl.EnforceVersion(protoimpl.Version - genVersion)
If genVersion is lower than Version, then this results in a negative integer overflow failure when evaluating the uint constant.
type ExtensionFieldV1 ¶
type ExtensionFieldV1 = impl.ExtensionFieldV1
type ExtensionFields ¶
type ExtensionFields = map[int32]impl.ExtensionFieldV1
TODO: Change these to more efficient data structures.
type FileBuilder ¶
type FileBuilder = fileinit.FileBuilder
type MessageType ¶
type MessageType = impl.MessageType
type UnknownFields ¶
type UnknownFields = []byte