blob: 1fec109f5809e1fe2d92a86ee34103d7b8f72d3e [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 Neil01b51b42020-01-17 13:40:51 -08008 "google.golang.org/protobuf/internal/errors"
Damien Neile89e6242019-05-13 23:55:40 -07009 "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 Neil01b51b42020-01-17 13:40:51 -080014
15// Error matches all errors produced by packages in the protobuf module.
16//
17// That is, errors.Is(err, Error) reports whether an error is produced
18// by this module.
19var Error error
20
21func init() {
22 Error = errors.Error
23}