Skip to content

Commit 9ec241e

Browse files
Deprecate google.protobuf.Method.syntax and google.protobuf.Method.edition
The existence of these fields is inconsistent with `google.protobuf.Type` and `google.protobuf.Field`. Additionally most tooling has never set these fields, resulting in `SYNTAX_PROTO2` methods being part of `SYNTAX_PROTO3` APIs, which is not possible. PiperOrigin-RevId: 784569981
1 parent d4283a6 commit 9ec241e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎src/google/protobuf/api.proto‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,16 @@ message Method {
129129
repeated Option options = 6;
130130

131131
// The source syntax of this method.
132-
Syntax syntax = 7;
132+
//
133+
// This field should be ignored, instead the syntax should be inherited from
134+
// Api. This is similar to Field and EnumValue.
135+
Syntax syntax = 7 [deprecated = true];
133136

134137
// The source edition string, only valid when syntax is SYNTAX_EDITIONS.
135-
string edition = 8;
138+
//
139+
// This field should be ignored, instead the edition should be inherited from
140+
// Api. This is similar to Field and EnumValue.
141+
string edition = 8 [deprecated = true];
136142
}
137143

138144
// Declares an API Interface to be included in this interface. The including

0 commit comments

Comments
 (0)