-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from yoheimuta/support-editions
Protobuf Editions Support
- Loading branch information
Showing
16 changed files
with
149 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
edition = "2023"; | ||
import public "other.proto"; | ||
option java_package = "com.example.foo"; | ||
enum EnumAllowingAlias { | ||
option allow_alias = true; | ||
EAA_UNSPECIFIED = 0; | ||
EAA_STARTED = 1; | ||
EAA_RUNNING = 1; | ||
EAA_FINISHED = 2 [(custom_option) = "hello world"]; | ||
} | ||
message Outer { | ||
option (my_option).a = true; | ||
message Inner { // Level 2 | ||
int64 ival = 1 [features.field_presence = LEGACY_REQUIRED]; | ||
} | ||
repeated Inner inner_message = 2; | ||
EnumAllowingAlias enum_field = 3; | ||
map<int32, string> my_map = 4; | ||
extensions 20 to 30; | ||
reserved reserved_field; | ||
} | ||
message Foo { | ||
message GroupMessage { | ||
bool a = 1; | ||
} | ||
GroupMessage groupmessage = 2 [features.message_encoding = DELIMITED]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
edition = "2023"; | ||
|
||
message Outer { | ||
option (my_option).a = true; | ||
// inner is an inner message. | ||
message Inner { // Level 2 | ||
int64 ival = 1; | ||
} | ||
repeated Inner inner_messages = 2; | ||
} | ||
|
||
package my.package; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
edition = "2023"; | ||
|
||
package my.package; | ||
|
||
message Outer { | ||
option (my_option).a = true; | ||
// inner is an inner message. | ||
message Inner { // Level 2 | ||
int64 ival = 1; | ||
} | ||
repeated Inner inner_messages = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters