blob: de7f2be7db8187fb833cf05d4777bfccc2a09f6b [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 Neile89e6242019-05-13 23:55:40 -07008 "google.golang.org/protobuf/internal/errors"
9 "google.golang.org/protobuf/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)")