-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the new proto3 field presence feature #34
- Loading branch information
1 parent
9c2d0c9
commit a4e6e74
Showing
10 changed files
with
3,115 additions
and
53 deletions.
There are no files selected for viewing
2,615 changes: 2,615 additions & 0 deletions
2,615
jvm-test-types/src/main/java/pbandk/testpb/Proto3Presence.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
protoc-gen-pbandk/lib/src/jvmTest/resources/protos/proto_3_presence.proto
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,23 @@ | ||
syntax = "proto3"; | ||
package pbandk.testpb; | ||
|
||
message Proto3PresenceMessage {} | ||
|
||
enum Proto3PresenceEnum { | ||
PROTO3_PRESENCE_ENUM_UNSPECIFIED = 0; | ||
} | ||
|
||
message Proto3PresenceMain { | ||
optional Proto3PresenceMessage optional_message = 1; | ||
Proto3PresenceMessage message = 2; | ||
optional string optional_string = 3; | ||
string string = 4; | ||
optional int32 optional_int = 5; | ||
int32 int = 6; | ||
optional Proto3PresenceEnum optional_enum = 7; | ||
Proto3PresenceEnum enum = 8; | ||
oneof one_of { | ||
string one_of_string = 9; | ||
int32 one_of_int = 10; | ||
} | ||
} |
Oops, something went wrong.