Skip to content

Commit

Permalink
add unknown_fields support to descriptor options
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Jul 15, 2020
1 parent 488beaa commit b0b20b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions prost-types/src/protobuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ pub struct FileOptions {
/// See the documentation for the "Options" section above.
#[prost(message, repeated, tag="999")]
pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>,

#[prost(unknown_fields)]
pub protobuf_unknown_fields: Vec<::prost::UnknownField>,
}
pub mod file_options {
/// Generated classes can be optimized for speed or code size.
Expand Down Expand Up @@ -492,6 +495,9 @@ pub struct MessageOptions {
/// The parser stores options it doesn't recognize here. See above.
#[prost(message, repeated, tag="999")]
pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>,

#[prost(unknown_fields)]
pub protobuf_unknown_fields: Vec<::prost::UnknownField>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FieldOptions {
Expand Down Expand Up @@ -634,6 +640,9 @@ pub struct ServiceOptions {
/// The parser stores options it doesn't recognize here. See above.
#[prost(message, repeated, tag="999")]
pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>,

#[prost(unknown_fields)]
pub protobuf_unknown_fields: Vec<::prost::UnknownField>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MethodOptions {
Expand All @@ -653,6 +662,9 @@ pub struct MethodOptions {
/// The parser stores options it doesn't recognize here. See above.
#[prost(message, repeated, tag="999")]
pub uninterpreted_option: ::std::vec::Vec<UninterpretedOption>,

#[prost(unknown_fields)]
pub protobuf_unknown_fields: Vec<::prost::UnknownField>,
}
pub mod method_options {
/// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
Expand Down

0 comments on commit b0b20b4

Please sign in to comment.