-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate unrecognized option to plugin + tests with protoc
- Loading branch information
Showing
14 changed files
with
225 additions
and
38 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
10 changes: 10 additions & 0 deletions
10
...patibility-tests/src/main/proto/squareup/proto2/kotlin/unrecognized_constant/easter.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,10 @@ | ||
syntax = "proto2"; | ||
package squareup.proto2.kotlin.unrecognized_constant; | ||
|
||
import "squareup/proto3/kotlin/unrecognized_constant/easter.proto"; | ||
|
||
// Proto2 message with a proto3 enum. | ||
message Easter { | ||
optional squareup.proto3.kotlin.unrecognized_constant.EasterAnimal optional_easter_animal = 2; | ||
required squareup.proto3.kotlin.unrecognized_constant.EasterAnimal required_easter_animal = 3; | ||
} |
14 changes: 14 additions & 0 deletions
14
...patibility-tests/src/main/proto/squareup/proto3/kotlin/unrecognized_constant/easter.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,14 @@ | ||
syntax = "proto3"; | ||
package squareup.proto3.kotlin.unrecognized_constant; | ||
|
||
// Proto3 message with a proto3 enum. | ||
message Easter { | ||
optional EasterAnimal optional_easter_animal = 2; | ||
EasterAnimal identity_easter_animal = 3; | ||
} | ||
|
||
enum EasterAnimal { | ||
EASTER_ANIMAL_DEFAULT = 0; | ||
BUNNY = 1; | ||
HEN = 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
Oops, something went wrong.