protoimpl

package
v2.0.0-...-d24bc72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

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

View Source
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

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 SizeCache

type SizeCache = int32

type UnknownFields

type UnknownFields = []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL