Skip to content

Commit f5a698d

Browse files
committed
proto: add ProtoPackageIsVersion4
Change-Id: I73a3da6d46e82c4c996ad9360e5b602efbbbcc83 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/218938 Reviewed-by: Damien Neil <[email protected]>
1 parent cc376d7 commit f5a698d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

proto/deprecated.go

-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ import (
1111
"strconv"
1212
)
1313

14-
// Deprecated: Do not use.
15-
const (
16-
ProtoPackageIsVersion1 = true
17-
ProtoPackageIsVersion2 = true
18-
ProtoPackageIsVersion3 = true
19-
)
20-
2114
var (
2215
// Deprecated: No longer returned.
2316
ErrNil = errors.New("proto: Marshal called with nil")

proto/proto.go

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ import (
1919
"google.golang.org/protobuf/runtime/protoimpl"
2020
)
2121

22+
const (
23+
ProtoPackageIsVersion1 = true
24+
ProtoPackageIsVersion2 = true
25+
ProtoPackageIsVersion3 = true
26+
ProtoPackageIsVersion4 = true
27+
)
28+
2229
// Message is a protocol buffer message.
2330
type Message = protoiface.MessageV1
2431

0 commit comments

Comments
 (0)