blob: da2a22c1de5705e24c59db0d19019bddff9e5a8e [file] [log] [blame]
Herbie Ongcddf8192018-11-28 18:25:20 -08001// 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
5package proto
6
Damien Neil0d3e8cc2019-04-01 13:31:55 -07007import (
Damien Neil96c229a2019-04-03 12:17:24 -07008 "github.com/golang/protobuf/v2/internal/errors"
Damien Neil0d3e8cc2019-04-01 13:31:55 -07009 "github.com/golang/protobuf/v2/reflect/protoreflect"
Damien Neil0d3e8cc2019-04-01 13:31:55 -070010)
Herbie Ongcddf8192018-11-28 18:25:20 -080011
12// Message is the top-level interface that all messages must implement.
13type Message = protoreflect.ProtoMessage
Damien Neil0d3e8cc2019-04-01 13:31:55 -070014
15// errInternalNoFast indicates that fast-path operations are not available for a message.
Damien Neil96c229a2019-04-03 12:17:24 -070016var errInternalNoFast = errors.New("BUG: internal error (errInternalNoFast)")