11// This file is @generated by prost-build.
22/// The version number of protocol compiler.
33#[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
4+ #[ cfg_attr( feature = "serde" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
45#[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
56pub struct Version {
67 #[ prost( int32, optional, tag = "1" ) ]
@@ -16,6 +17,7 @@ pub struct Version {
1617}
1718/// An encoded CodeGeneratorRequest is written to the plugin's stdin.
1819#[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
20+ #[ cfg_attr( feature = "serde" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
1921#[ derive( Clone , PartialEq , :: prost:: Message ) ]
2022pub struct CodeGeneratorRequest {
2123 /// The .proto files that were explicitly listed on the command-line. The
@@ -48,6 +50,7 @@ pub struct CodeGeneratorRequest {
4850}
4951/// The plugin writes an encoded CodeGeneratorResponse to stdout.
5052#[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
53+ #[ cfg_attr( feature = "serde" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
5154#[ derive( Clone , PartialEq , :: prost:: Message ) ]
5255pub struct CodeGeneratorResponse {
5356 /// Error message. If non-empty, code generation failed. The plugin process
@@ -71,6 +74,7 @@ pub struct CodeGeneratorResponse {
7174pub mod code_generator_response {
7275 /// Represents a single generated file.
7376 #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
77+ #[ cfg_attr( feature = "serde" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
7478 #[ derive( Clone , PartialEq , :: prost:: Message ) ]
7579 pub struct File {
7680 /// The file name, relative to the output directory. The name must not
@@ -136,6 +140,7 @@ pub mod code_generator_response {
136140 }
137141 /// Sync with code_generator.h.
138142 #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
143+ #[ cfg_attr( feature = "serde" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
139144 #[ derive(
140145 Clone ,
141146 Copy ,
0 commit comments