Skip to content

Commit

Permalink
Add nested groups to proto2 and optional fields to proto3 test protos (
Browse files Browse the repository at this point in the history
  • Loading branch information
l46kok committed Aug 21, 2024
1 parent a3ab50d commit e363cad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proto/test/v1/proto2/test_all_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ message TestAllTypes {
bool oneof_bool = 402;
}

optional group NestedGroup = 403 {
optional int32 single_id = 404;
optional string single_name = 405;
}

extensions 1000 to max;
}

Expand Down
2 changes: 2 additions & 0 deletions proto/test/v1/proto3/test_all_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ message TestAllTypes {
bool single_bool = 13;
string single_string = 14;
bytes single_bytes = 15;
optional bool optional_bool = 16;
optional bool optional_string = 17;

// Wellknown.
google.protobuf.Any single_any = 100;
Expand Down

0 comments on commit e363cad

Please sign in to comment.