Skip to content

Commit

Permalink
proto: add ProtoPackageIsVersion4
Browse files Browse the repository at this point in the history
Change-Id: I73a3da6d46e82c4c996ad9360e5b602efbbbcc83
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/218938
Reviewed-by: Damien Neil <dneil@google.com>
  • Loading branch information
dsnet committed Feb 11, 2020
1 parent cc376d7 commit f5a698d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions proto/deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ import (
"strconv"
)

// Deprecated: Do not use.
const (
ProtoPackageIsVersion1 = true
ProtoPackageIsVersion2 = true
ProtoPackageIsVersion3 = true
)

var (
// Deprecated: No longer returned.
ErrNil = errors.New("proto: Marshal called with nil")
Expand Down
7 changes: 7 additions & 0 deletions proto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ import (
"google.golang.org/protobuf/runtime/protoimpl"
)

const (
ProtoPackageIsVersion1 = true
ProtoPackageIsVersion2 = true
ProtoPackageIsVersion3 = true
ProtoPackageIsVersion4 = true
)

// Message is a protocol buffer message.
type Message = protoiface.MessageV1

Expand Down

0 comments on commit f5a698d

Please sign in to comment.