-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable editions support for Java Lite.
java_features.proto and descriptor.proto should now both be included in the Java Lite and Kotlin Lite maven releases. Fixes #7331 PiperOrigin-RevId: 618251348
- Loading branch information
1 parent
d452a16
commit 500c953
Showing
48 changed files
with
1,377 additions
and
776 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,11 @@ | |
|
||
// Author: [email protected] (Phil Bogle) | ||
|
||
syntax = "proto2"; | ||
edition = "2023"; | ||
|
||
package protobuf_unittest.lite_equals_and_hash; | ||
|
||
option features.utf8_validation = NONE; | ||
|
||
message TestOneofEquals { | ||
oneof oneof_field { | ||
|
@@ -20,41 +21,46 @@ message TestOneofEquals { | |
} | ||
|
||
message Foo { | ||
optional int32 value = 1; | ||
int32 value = 1; | ||
repeated Bar bar = 2; | ||
map<string, string> my_map = 3; | ||
|
||
oneof Single { | ||
sint64 sint64 = 4; | ||
// LINT: ALLOW_GROUPS | ||
group MyGroup = 5 { | ||
optional int32 value = 1; | ||
} | ||
MyGroup mygroup = 5 [features.message_encoding = DELIMITED]; | ||
} | ||
|
||
// LINT: ALLOW_GROUPS | ||
message MyGroup { | ||
int32 value = 1; | ||
} | ||
|
||
extensions 100 to max; | ||
} | ||
|
||
message Bar { | ||
extend Foo { | ||
optional Bar foo_ext = 100; | ||
Bar foo_ext = 100; | ||
} | ||
|
||
optional string name = 1; | ||
string name = 1; | ||
} | ||
|
||
message BarPrime { | ||
optional string name = 1; | ||
string name = 1; | ||
} | ||
|
||
message Empty {} | ||
|
||
extend Foo { | ||
optional int32 varint = 101; | ||
optional fixed32 fixed32 = 102; | ||
optional fixed64 fixed64 = 103; | ||
optional group MyGroup = 104 { | ||
optional string group_value = 1; | ||
} | ||
int32 varint = 101; | ||
fixed32 fixed32 = 102; | ||
fixed64 fixed64 = 103; | ||
MyGroup mygroup = 104 [features.message_encoding = DELIMITED]; | ||
} | ||
|
||
message MyGroup { | ||
string group_value = 1; | ||
} | ||
|
||
message TestRecursiveOneof { | ||
|
Oops, something went wrong.