blob: d6c06ccf38385a135735dd88bb90ec1b021da215 [file] [log] [blame]
// This file is generated by rust-protobuf 2.22.0. Do not edit
// @generated
// https://github.com/rust-lang/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_imports)]
#![allow(unused_results)]
//! Generated file from `google/protobuf/type.proto`
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct Type {
// message fields
pub name: ::std::string::String,
pub fields: crate::RepeatedField<Field>,
pub oneofs: crate::RepeatedField<::std::string::String>,
pub options: crate::RepeatedField<Option>,
pub source_context: crate::SingularPtrField<crate::well_known_types::SourceContext>,
pub syntax: Syntax,
// special fields
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: crate::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: crate::CachedSize,
}
impl<'a> ::std::default::Default for &'a Type {
fn default() -> &'a Type {
<Type as crate::Message>::default_instance()
}
}
impl Type {
pub fn new() -> Type {
::std::default::Default::default()
}
// string name = 1;
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
// repeated .google.protobuf.Field fields = 2;
pub fn get_fields(&self) -> &[Field] {
&self.fields
}
pub fn clear_fields(&mut self) {
self.fields.clear();
}
// Param is passed by value, moved
pub fn set_fields(&mut self, v: crate::RepeatedField<Field>) {
self.fields = v;
}
// Mutable pointer to the field.
pub fn mut_fields(&mut self) -> &mut crate::RepeatedField<Field> {
&mut self.fields
}
// Take field
pub fn take_fields(&mut self) -> crate::RepeatedField<Field> {
::std::mem::replace(&mut self.fields, crate::RepeatedField::new())
}
// repeated string oneofs = 3;
pub fn get_oneofs(&self) -> &[::std::string::String] {
&self.oneofs
}
pub fn clear_oneofs(&mut self) {
self.oneofs.clear();
}
// Param is passed by value, moved
pub fn set_oneofs(&mut self, v: crate::RepeatedField<::std::string::String>) {
self.oneofs = v;
}
// Mutable pointer to the field.
pub fn mut_oneofs(&mut self) -> &mut crate::RepeatedField<::std::string::String> {
&mut self.oneofs
}
// Take field
pub fn take_oneofs(&mut self) -> crate::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.oneofs, crate::RepeatedField::new())
}
// repeated .google.protobuf.Option options = 4;
pub fn get_options(&self) -> &[Option] {
&self.options
}
pub fn clear_options(&mut self) {
self.options.clear();
}
// Param is passed by value, moved
pub fn set_options(&mut self, v: crate::RepeatedField<Option>) {
self.options = v;
}
// Mutable pointer to the field.
pub fn mut_options(&mut self) -> &mut crate::RepeatedField<Option> {
&mut self.options
}
// Take field
pub fn take_options(&mut self) -> crate::RepeatedField<Option> {
::std::mem::replace(&mut self.options, crate::RepeatedField::new())
}
// .google.protobuf.SourceContext source_context = 5;
pub fn get_source_context(&self) -> &crate::well_known_types::SourceContext {
self.source_context.as_ref().unwrap_or_else(|| <crate::well_known_types::SourceContext as crate::Message>::default_instance())
}
pub fn clear_source_context(&mut self) {
self.source_context.clear();
}
pub fn has_source_context(&self) -> bool {
self.source_context.is_some()
}
// Param is passed by value, moved
pub fn set_source_context(&mut self, v: crate::well_known_types::SourceContext) {
self.source_context = crate::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_source_context(&mut self) -> &mut crate::well_known_types::SourceContext {
if self.source_context.is_none() {
self.source_context.set_default();
}
self.source_context.as_mut().unwrap()
}
// Take field
pub fn take_source_context(&mut self) -> crate::well_known_types::SourceContext {
self.source_context.take().unwrap_or_else(|| crate::well_known_types::SourceContext::new())
}
// .google.protobuf.Syntax syntax = 6;
pub fn get_syntax(&self) -> Syntax {
self.syntax
}
pub fn clear_syntax(&mut self) {
self.syntax = Syntax::SYNTAX_PROTO2;
}
// Param is passed by value, moved
pub fn set_syntax(&mut self, v: Syntax) {
self.syntax = v;
}
}
impl crate::Message for Type {
fn is_initialized(&self) -> bool {
for v in &self.fields {
if !v.is_initialized() {
return false;
}
};
for v in &self.options {
if !v.is_initialized() {
return false;
}
};
for v in &self.source_context {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?;
},
3 => {
crate::rt::read_repeated_string_into(wire_type, is, &mut self.oneofs)?;
},
4 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
},
5 => {
crate::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?;
},
6 => {
crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 6, &mut self.unknown_fields)?
},
_ => {
crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += crate::rt::string_size(1, &self.name);
}
for value in &self.fields {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.oneofs {
my_size += crate::rt::string_size(3, &value);
};
for value in &self.options {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
if let Some(ref v) = self.source_context.as_ref() {
let len = v.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
}
if self.syntax != Syntax::SYNTAX_PROTO2 {
my_size += crate::rt::enum_size(6, self.syntax);
}
my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
for v in &self.fields {
os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
for v in &self.oneofs {
os.write_string(3, &v)?;
};
for v in &self.options {
os.write_tag(4, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if let Some(ref v) = self.source_context.as_ref() {
os.write_tag(5, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.syntax != Syntax::SYNTAX_PROTO2 {
os.write_enum(6, crate::ProtobufEnum::value(&self.syntax))?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &crate::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Type {
Type::new()
}
fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"name",
|m: &Type| { &m.name },
|m: &mut Type| { &mut m.name },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<Field>>(
"fields",
|m: &Type| { &m.fields },
|m: &mut Type| { &mut m.fields },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeString>(
"oneofs",
|m: &Type| { &m.oneofs },
|m: &mut Type| { &mut m.oneofs },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<Option>>(
"options",
|m: &Type| { &m.options },
|m: &mut Type| { &mut m.options },
));
fields.push(crate::reflect::accessor::make_singular_ptr_field_accessor::<_, crate::types::ProtobufTypeMessage<crate::well_known_types::SourceContext>>(
"source_context",
|m: &Type| { &m.source_context },
|m: &mut Type| { &mut m.source_context },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeEnum<Syntax>>(
"syntax",
|m: &Type| { &m.syntax },
|m: &mut Type| { &mut m.syntax },
));
crate::reflect::MessageDescriptor::new_pb_name::<Type>(
"Type",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Type {
static instance: crate::rt::LazyV2<Type> = crate::rt::LazyV2::INIT;
instance.get(Type::new)
}
}
impl crate::Clear for Type {
fn clear(&mut self) {
self.name.clear();
self.fields.clear();
self.oneofs.clear();
self.options.clear();
self.source_context.clear();
self.syntax = Syntax::SYNTAX_PROTO2;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Type {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
crate::text_format::fmt(self, f)
}
}
impl crate::reflect::ProtobufValue for Type {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct Field {
// message fields
pub kind: Field_Kind,
pub cardinality: Field_Cardinality,
pub number: i32,
pub name: ::std::string::String,
pub type_url: ::std::string::String,
pub oneof_index: i32,
pub packed: bool,
pub options: crate::RepeatedField<Option>,
pub json_name: ::std::string::String,
pub default_value: ::std::string::String,
// special fields
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: crate::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: crate::CachedSize,
}
impl<'a> ::std::default::Default for &'a Field {
fn default() -> &'a Field {
<Field as crate::Message>::default_instance()
}
}
impl Field {
pub fn new() -> Field {
::std::default::Default::default()
}
// .google.protobuf.Field.Kind kind = 1;
pub fn get_kind(&self) -> Field_Kind {
self.kind
}
pub fn clear_kind(&mut self) {
self.kind = Field_Kind::TYPE_UNKNOWN;
}
// Param is passed by value, moved
pub fn set_kind(&mut self, v: Field_Kind) {
self.kind = v;
}
// .google.protobuf.Field.Cardinality cardinality = 2;
pub fn get_cardinality(&self) -> Field_Cardinality {
self.cardinality
}
pub fn clear_cardinality(&mut self) {
self.cardinality = Field_Cardinality::CARDINALITY_UNKNOWN;
}
// Param is passed by value, moved
pub fn set_cardinality(&mut self, v: Field_Cardinality) {
self.cardinality = v;
}
// int32 number = 3;
pub fn get_number(&self) -> i32 {
self.number
}
pub fn clear_number(&mut self) {
self.number = 0;
}
// Param is passed by value, moved
pub fn set_number(&mut self, v: i32) {
self.number = v;
}
// string name = 4;
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
// string type_url = 6;
pub fn get_type_url(&self) -> &str {
&self.type_url
}
pub fn clear_type_url(&mut self) {
self.type_url.clear();
}
// Param is passed by value, moved
pub fn set_type_url(&mut self, v: ::std::string::String) {
self.type_url = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_type_url(&mut self) -> &mut ::std::string::String {
&mut self.type_url
}
// Take field
pub fn take_type_url(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.type_url, ::std::string::String::new())
}
// int32 oneof_index = 7;
pub fn get_oneof_index(&self) -> i32 {
self.oneof_index
}
pub fn clear_oneof_index(&mut self) {
self.oneof_index = 0;
}
// Param is passed by value, moved
pub fn set_oneof_index(&mut self, v: i32) {
self.oneof_index = v;
}
// bool packed = 8;
pub fn get_packed(&self) -> bool {
self.packed
}
pub fn clear_packed(&mut self) {
self.packed = false;
}
// Param is passed by value, moved
pub fn set_packed(&mut self, v: bool) {
self.packed = v;
}
// repeated .google.protobuf.Option options = 9;
pub fn get_options(&self) -> &[Option] {
&self.options
}
pub fn clear_options(&mut self) {
self.options.clear();
}
// Param is passed by value, moved
pub fn set_options(&mut self, v: crate::RepeatedField<Option>) {
self.options = v;
}
// Mutable pointer to the field.
pub fn mut_options(&mut self) -> &mut crate::RepeatedField<Option> {
&mut self.options
}
// Take field
pub fn take_options(&mut self) -> crate::RepeatedField<Option> {
::std::mem::replace(&mut self.options, crate::RepeatedField::new())
}
// string json_name = 10;
pub fn get_json_name(&self) -> &str {
&self.json_name
}
pub fn clear_json_name(&mut self) {
self.json_name.clear();
}
// Param is passed by value, moved
pub fn set_json_name(&mut self, v: ::std::string::String) {
self.json_name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_json_name(&mut self) -> &mut ::std::string::String {
&mut self.json_name
}
// Take field
pub fn take_json_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.json_name, ::std::string::String::new())
}
// string default_value = 11;
pub fn get_default_value(&self) -> &str {
&self.default_value
}
pub fn clear_default_value(&mut self) {
self.default_value.clear();
}
// Param is passed by value, moved
pub fn set_default_value(&mut self, v: ::std::string::String) {
self.default_value = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_default_value(&mut self) -> &mut ::std::string::String {
&mut self.default_value
}
// Take field
pub fn take_default_value(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.default_value, ::std::string::String::new())
}
}
impl crate::Message for Field {
fn is_initialized(&self) -> bool {
for v in &self.options {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 1, &mut self.unknown_fields)?
},
2 => {
crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.cardinality, 2, &mut self.unknown_fields)?
},
3 => {
if wire_type != crate::wire_format::WireTypeVarint {
return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.number = tmp;
},
4 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
6 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_url)?;
},
7 => {
if wire_type != crate::wire_format::WireTypeVarint {
return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.oneof_index = tmp;
},
8 => {
if wire_type != crate::wire_format::WireTypeVarint {
return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_bool()?;
self.packed = tmp;
},
9 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
},
10 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.json_name)?;
},
11 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.default_value)?;
},
_ => {
crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.kind != Field_Kind::TYPE_UNKNOWN {
my_size += crate::rt::enum_size(1, self.kind);
}
if self.cardinality != Field_Cardinality::CARDINALITY_UNKNOWN {
my_size += crate::rt::enum_size(2, self.cardinality);
}
if self.number != 0 {
my_size += crate::rt::value_size(3, self.number, crate::wire_format::WireTypeVarint);
}
if !self.name.is_empty() {
my_size += crate::rt::string_size(4, &self.name);
}
if !self.type_url.is_empty() {
my_size += crate::rt::string_size(6, &self.type_url);
}
if self.oneof_index != 0 {
my_size += crate::rt::value_size(7, self.oneof_index, crate::wire_format::WireTypeVarint);
}
if self.packed != false {
my_size += 2;
}
for value in &self.options {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
if !self.json_name.is_empty() {
my_size += crate::rt::string_size(10, &self.json_name);
}
if !self.default_value.is_empty() {
my_size += crate::rt::string_size(11, &self.default_value);
}
my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
if self.kind != Field_Kind::TYPE_UNKNOWN {
os.write_enum(1, crate::ProtobufEnum::value(&self.kind))?;
}
if self.cardinality != Field_Cardinality::CARDINALITY_UNKNOWN {
os.write_enum(2, crate::ProtobufEnum::value(&self.cardinality))?;
}
if self.number != 0 {
os.write_int32(3, self.number)?;
}
if !self.name.is_empty() {
os.write_string(4, &self.name)?;
}
if !self.type_url.is_empty() {
os.write_string(6, &self.type_url)?;
}
if self.oneof_index != 0 {
os.write_int32(7, self.oneof_index)?;
}
if self.packed != false {
os.write_bool(8, self.packed)?;
}
for v in &self.options {
os.write_tag(9, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if !self.json_name.is_empty() {
os.write_string(10, &self.json_name)?;
}
if !self.default_value.is_empty() {
os.write_string(11, &self.default_value)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &crate::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Field {
Field::new()
}
fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeEnum<Field_Kind>>(
"kind",
|m: &Field| { &m.kind },
|m: &mut Field| { &mut m.kind },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeEnum<Field_Cardinality>>(
"cardinality",
|m: &Field| { &m.cardinality },
|m: &mut Field| { &mut m.cardinality },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt32>(
"number",
|m: &Field| { &m.number },
|m: &mut Field| { &mut m.number },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"name",
|m: &Field| { &m.name },
|m: &mut Field| { &mut m.name },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"type_url",
|m: &Field| { &m.type_url },
|m: &mut Field| { &mut m.type_url },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt32>(
"oneof_index",
|m: &Field| { &m.oneof_index },
|m: &mut Field| { &mut m.oneof_index },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeBool>(
"packed",
|m: &Field| { &m.packed },
|m: &mut Field| { &mut m.packed },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<Option>>(
"options",
|m: &Field| { &m.options },
|m: &mut Field| { &mut m.options },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"json_name",
|m: &Field| { &m.json_name },
|m: &mut Field| { &mut m.json_name },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"default_value",
|m: &Field| { &m.default_value },
|m: &mut Field| { &mut m.default_value },
));
crate::reflect::MessageDescriptor::new_pb_name::<Field>(
"Field",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Field {
static instance: crate::rt::LazyV2<Field> = crate::rt::LazyV2::INIT;
instance.get(Field::new)
}
}
impl crate::Clear for Field {
fn clear(&mut self) {
self.kind = Field_Kind::TYPE_UNKNOWN;
self.cardinality = Field_Cardinality::CARDINALITY_UNKNOWN;
self.number = 0;
self.name.clear();
self.type_url.clear();
self.oneof_index = 0;
self.packed = false;
self.options.clear();
self.json_name.clear();
self.default_value.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Field {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
crate::text_format::fmt(self, f)
}
}
impl crate::reflect::ProtobufValue for Field {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub enum Field_Kind {
TYPE_UNKNOWN = 0,
TYPE_DOUBLE = 1,
TYPE_FLOAT = 2,
TYPE_INT64 = 3,
TYPE_UINT64 = 4,
TYPE_INT32 = 5,
TYPE_FIXED64 = 6,
TYPE_FIXED32 = 7,
TYPE_BOOL = 8,
TYPE_STRING = 9,
TYPE_GROUP = 10,
TYPE_MESSAGE = 11,
TYPE_BYTES = 12,
TYPE_UINT32 = 13,
TYPE_ENUM = 14,
TYPE_SFIXED32 = 15,
TYPE_SFIXED64 = 16,
TYPE_SINT32 = 17,
TYPE_SINT64 = 18,
}
impl crate::ProtobufEnum for Field_Kind {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Field_Kind> {
match value {
0 => ::std::option::Option::Some(Field_Kind::TYPE_UNKNOWN),
1 => ::std::option::Option::Some(Field_Kind::TYPE_DOUBLE),
2 => ::std::option::Option::Some(Field_Kind::TYPE_FLOAT),
3 => ::std::option::Option::Some(Field_Kind::TYPE_INT64),
4 => ::std::option::Option::Some(Field_Kind::TYPE_UINT64),
5 => ::std::option::Option::Some(Field_Kind::TYPE_INT32),
6 => ::std::option::Option::Some(Field_Kind::TYPE_FIXED64),
7 => ::std::option::Option::Some(Field_Kind::TYPE_FIXED32),
8 => ::std::option::Option::Some(Field_Kind::TYPE_BOOL),
9 => ::std::option::Option::Some(Field_Kind::TYPE_STRING),
10 => ::std::option::Option::Some(Field_Kind::TYPE_GROUP),
11 => ::std::option::Option::Some(Field_Kind::TYPE_MESSAGE),
12 => ::std::option::Option::Some(Field_Kind::TYPE_BYTES),
13 => ::std::option::Option::Some(Field_Kind::TYPE_UINT32),
14 => ::std::option::Option::Some(Field_Kind::TYPE_ENUM),
15 => ::std::option::Option::Some(Field_Kind::TYPE_SFIXED32),
16 => ::std::option::Option::Some(Field_Kind::TYPE_SFIXED64),
17 => ::std::option::Option::Some(Field_Kind::TYPE_SINT32),
18 => ::std::option::Option::Some(Field_Kind::TYPE_SINT64),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Field_Kind] = &[
Field_Kind::TYPE_UNKNOWN,
Field_Kind::TYPE_DOUBLE,
Field_Kind::TYPE_FLOAT,
Field_Kind::TYPE_INT64,
Field_Kind::TYPE_UINT64,
Field_Kind::TYPE_INT32,
Field_Kind::TYPE_FIXED64,
Field_Kind::TYPE_FIXED32,
Field_Kind::TYPE_BOOL,
Field_Kind::TYPE_STRING,
Field_Kind::TYPE_GROUP,
Field_Kind::TYPE_MESSAGE,
Field_Kind::TYPE_BYTES,
Field_Kind::TYPE_UINT32,
Field_Kind::TYPE_ENUM,
Field_Kind::TYPE_SFIXED32,
Field_Kind::TYPE_SFIXED64,
Field_Kind::TYPE_SINT32,
Field_Kind::TYPE_SINT64,
];
values
}
fn enum_descriptor_static() -> &'static crate::reflect::EnumDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::EnumDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
crate::reflect::EnumDescriptor::new_pb_name::<Field_Kind>("Field.Kind", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for Field_Kind {
}
impl ::std::default::Default for Field_Kind {
fn default() -> Self {
Field_Kind::TYPE_UNKNOWN
}
}
impl crate::reflect::ProtobufValue for Field_Kind {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self))
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub enum Field_Cardinality {
CARDINALITY_UNKNOWN = 0,
CARDINALITY_OPTIONAL = 1,
CARDINALITY_REQUIRED = 2,
CARDINALITY_REPEATED = 3,
}
impl crate::ProtobufEnum for Field_Cardinality {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Field_Cardinality> {
match value {
0 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_UNKNOWN),
1 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_OPTIONAL),
2 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_REQUIRED),
3 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_REPEATED),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Field_Cardinality] = &[
Field_Cardinality::CARDINALITY_UNKNOWN,
Field_Cardinality::CARDINALITY_OPTIONAL,
Field_Cardinality::CARDINALITY_REQUIRED,
Field_Cardinality::CARDINALITY_REPEATED,
];
values
}
fn enum_descriptor_static() -> &'static crate::reflect::EnumDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::EnumDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
crate::reflect::EnumDescriptor::new_pb_name::<Field_Cardinality>("Field.Cardinality", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for Field_Cardinality {
}
impl ::std::default::Default for Field_Cardinality {
fn default() -> Self {
Field_Cardinality::CARDINALITY_UNKNOWN
}
}
impl crate::reflect::ProtobufValue for Field_Cardinality {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self))
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct Enum {
// message fields
pub name: ::std::string::String,
pub enumvalue: crate::RepeatedField<EnumValue>,
pub options: crate::RepeatedField<Option>,
pub source_context: crate::SingularPtrField<crate::well_known_types::SourceContext>,
pub syntax: Syntax,
// special fields
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: crate::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: crate::CachedSize,
}
impl<'a> ::std::default::Default for &'a Enum {
fn default() -> &'a Enum {
<Enum as crate::Message>::default_instance()
}
}
impl Enum {
pub fn new() -> Enum {
::std::default::Default::default()
}
// string name = 1;
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
// repeated .google.protobuf.EnumValue enumvalue = 2;
pub fn get_enumvalue(&self) -> &[EnumValue] {
&self.enumvalue
}
pub fn clear_enumvalue(&mut self) {
self.enumvalue.clear();
}
// Param is passed by value, moved
pub fn set_enumvalue(&mut self, v: crate::RepeatedField<EnumValue>) {
self.enumvalue = v;
}
// Mutable pointer to the field.
pub fn mut_enumvalue(&mut self) -> &mut crate::RepeatedField<EnumValue> {
&mut self.enumvalue
}
// Take field
pub fn take_enumvalue(&mut self) -> crate::RepeatedField<EnumValue> {
::std::mem::replace(&mut self.enumvalue, crate::RepeatedField::new())
}
// repeated .google.protobuf.Option options = 3;
pub fn get_options(&self) -> &[Option] {
&self.options
}
pub fn clear_options(&mut self) {
self.options.clear();
}
// Param is passed by value, moved
pub fn set_options(&mut self, v: crate::RepeatedField<Option>) {
self.options = v;
}
// Mutable pointer to the field.
pub fn mut_options(&mut self) -> &mut crate::RepeatedField<Option> {
&mut self.options
}
// Take field
pub fn take_options(&mut self) -> crate::RepeatedField<Option> {
::std::mem::replace(&mut self.options, crate::RepeatedField::new())
}
// .google.protobuf.SourceContext source_context = 4;
pub fn get_source_context(&self) -> &crate::well_known_types::SourceContext {
self.source_context.as_ref().unwrap_or_else(|| <crate::well_known_types::SourceContext as crate::Message>::default_instance())
}
pub fn clear_source_context(&mut self) {
self.source_context.clear();
}
pub fn has_source_context(&self) -> bool {
self.source_context.is_some()
}
// Param is passed by value, moved
pub fn set_source_context(&mut self, v: crate::well_known_types::SourceContext) {
self.source_context = crate::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_source_context(&mut self) -> &mut crate::well_known_types::SourceContext {
if self.source_context.is_none() {
self.source_context.set_default();
}
self.source_context.as_mut().unwrap()
}
// Take field
pub fn take_source_context(&mut self) -> crate::well_known_types::SourceContext {
self.source_context.take().unwrap_or_else(|| crate::well_known_types::SourceContext::new())
}
// .google.protobuf.Syntax syntax = 5;
pub fn get_syntax(&self) -> Syntax {
self.syntax
}
pub fn clear_syntax(&mut self) {
self.syntax = Syntax::SYNTAX_PROTO2;
}
// Param is passed by value, moved
pub fn set_syntax(&mut self, v: Syntax) {
self.syntax = v;
}
}
impl crate::Message for Enum {
fn is_initialized(&self) -> bool {
for v in &self.enumvalue {
if !v.is_initialized() {
return false;
}
};
for v in &self.options {
if !v.is_initialized() {
return false;
}
};
for v in &self.source_context {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.enumvalue)?;
},
3 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
},
4 => {
crate::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?;
},
5 => {
crate::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 5, &mut self.unknown_fields)?
},
_ => {
crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += crate::rt::string_size(1, &self.name);
}
for value in &self.enumvalue {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.options {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
if let Some(ref v) = self.source_context.as_ref() {
let len = v.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
}
if self.syntax != Syntax::SYNTAX_PROTO2 {
my_size += crate::rt::enum_size(5, self.syntax);
}
my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
for v in &self.enumvalue {
os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
for v in &self.options {
os.write_tag(3, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
if let Some(ref v) = self.source_context.as_ref() {
os.write_tag(4, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.syntax != Syntax::SYNTAX_PROTO2 {
os.write_enum(5, crate::ProtobufEnum::value(&self.syntax))?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &crate::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Enum {
Enum::new()
}
fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"name",
|m: &Enum| { &m.name },
|m: &mut Enum| { &mut m.name },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<EnumValue>>(
"enumvalue",
|m: &Enum| { &m.enumvalue },
|m: &mut Enum| { &mut m.enumvalue },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<Option>>(
"options",
|m: &Enum| { &m.options },
|m: &mut Enum| { &mut m.options },
));
fields.push(crate::reflect::accessor::make_singular_ptr_field_accessor::<_, crate::types::ProtobufTypeMessage<crate::well_known_types::SourceContext>>(
"source_context",
|m: &Enum| { &m.source_context },
|m: &mut Enum| { &mut m.source_context },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeEnum<Syntax>>(
"syntax",
|m: &Enum| { &m.syntax },
|m: &mut Enum| { &mut m.syntax },
));
crate::reflect::MessageDescriptor::new_pb_name::<Enum>(
"Enum",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Enum {
static instance: crate::rt::LazyV2<Enum> = crate::rt::LazyV2::INIT;
instance.get(Enum::new)
}
}
impl crate::Clear for Enum {
fn clear(&mut self) {
self.name.clear();
self.enumvalue.clear();
self.options.clear();
self.source_context.clear();
self.syntax = Syntax::SYNTAX_PROTO2;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Enum {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
crate::text_format::fmt(self, f)
}
}
impl crate::reflect::ProtobufValue for Enum {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct EnumValue {
// message fields
pub name: ::std::string::String,
pub number: i32,
pub options: crate::RepeatedField<Option>,
// special fields
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: crate::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: crate::CachedSize,
}
impl<'a> ::std::default::Default for &'a EnumValue {
fn default() -> &'a EnumValue {
<EnumValue as crate::Message>::default_instance()
}
}
impl EnumValue {
pub fn new() -> EnumValue {
::std::default::Default::default()
}
// string name = 1;
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
// int32 number = 2;
pub fn get_number(&self) -> i32 {
self.number
}
pub fn clear_number(&mut self) {
self.number = 0;
}
// Param is passed by value, moved
pub fn set_number(&mut self, v: i32) {
self.number = v;
}
// repeated .google.protobuf.Option options = 3;
pub fn get_options(&self) -> &[Option] {
&self.options
}
pub fn clear_options(&mut self) {
self.options.clear();
}
// Param is passed by value, moved
pub fn set_options(&mut self, v: crate::RepeatedField<Option>) {
self.options = v;
}
// Mutable pointer to the field.
pub fn mut_options(&mut self) -> &mut crate::RepeatedField<Option> {
&mut self.options
}
// Take field
pub fn take_options(&mut self) -> crate::RepeatedField<Option> {
::std::mem::replace(&mut self.options, crate::RepeatedField::new())
}
}
impl crate::Message for EnumValue {
fn is_initialized(&self) -> bool {
for v in &self.options {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
if wire_type != crate::wire_format::WireTypeVarint {
return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.number = tmp;
},
3 => {
crate::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
},
_ => {
crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += crate::rt::string_size(1, &self.name);
}
if self.number != 0 {
my_size += crate::rt::value_size(2, self.number, crate::wire_format::WireTypeVarint);
}
for value in &self.options {
let len = value.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
};
my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if self.number != 0 {
os.write_int32(2, self.number)?;
}
for v in &self.options {
os.write_tag(3, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &crate::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> EnumValue {
EnumValue::new()
}
fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"name",
|m: &EnumValue| { &m.name },
|m: &mut EnumValue| { &mut m.name },
));
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt32>(
"number",
|m: &EnumValue| { &m.number },
|m: &mut EnumValue| { &mut m.number },
));
fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufTypeMessage<Option>>(
"options",
|m: &EnumValue| { &m.options },
|m: &mut EnumValue| { &mut m.options },
));
crate::reflect::MessageDescriptor::new_pb_name::<EnumValue>(
"EnumValue",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static EnumValue {
static instance: crate::rt::LazyV2<EnumValue> = crate::rt::LazyV2::INIT;
instance.get(EnumValue::new)
}
}
impl crate::Clear for EnumValue {
fn clear(&mut self) {
self.name.clear();
self.number = 0;
self.options.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for EnumValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
crate::text_format::fmt(self, f)
}
}
impl crate::reflect::ProtobufValue for EnumValue {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub struct Option {
// message fields
pub name: ::std::string::String,
pub value: crate::SingularPtrField<crate::well_known_types::Any>,
// special fields
#[cfg_attr(feature = "with-serde", serde(skip))]
pub unknown_fields: crate::UnknownFields,
#[cfg_attr(feature = "with-serde", serde(skip))]
pub cached_size: crate::CachedSize,
}
impl<'a> ::std::default::Default for &'a Option {
fn default() -> &'a Option {
<Option as crate::Message>::default_instance()
}
}
impl Option {
pub fn new() -> Option {
::std::default::Default::default()
}
// string name = 1;
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
// .google.protobuf.Any value = 2;
pub fn get_value(&self) -> &crate::well_known_types::Any {
self.value.as_ref().unwrap_or_else(|| <crate::well_known_types::Any as crate::Message>::default_instance())
}
pub fn clear_value(&mut self) {
self.value.clear();
}
pub fn has_value(&self) -> bool {
self.value.is_some()
}
// Param is passed by value, moved
pub fn set_value(&mut self, v: crate::well_known_types::Any) {
self.value = crate::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_value(&mut self) -> &mut crate::well_known_types::Any {
if self.value.is_none() {
self.value.set_default();
}
self.value.as_mut().unwrap()
}
// Take field
pub fn take_value(&mut self) -> crate::well_known_types::Any {
self.value.take().unwrap_or_else(|| crate::well_known_types::Any::new())
}
}
impl crate::Message for Option {
fn is_initialized(&self) -> bool {
for v in &self.value {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
},
2 => {
crate::rt::read_singular_message_into(wire_type, is, &mut self.value)?;
},
_ => {
crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.name.is_empty() {
my_size += crate::rt::string_size(1, &self.name);
}
if let Some(ref v) = self.value.as_ref() {
let len = v.compute_size();
my_size += 1 + crate::rt::compute_raw_varint32_size(len) + len;
}
my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
if !self.name.is_empty() {
os.write_string(1, &self.name)?;
}
if let Some(ref v) = self.value.as_ref() {
os.write_tag(2, crate::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &crate::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Option {
Option::new()
}
fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
"name",
|m: &Option| { &m.name },
|m: &mut Option| { &mut m.name },
));
fields.push(crate::reflect::accessor::make_singular_ptr_field_accessor::<_, crate::types::ProtobufTypeMessage<crate::well_known_types::Any>>(
"value",
|m: &Option| { &m.value },
|m: &mut Option| { &mut m.value },
));
crate::reflect::MessageDescriptor::new_pb_name::<Option>(
"Option",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Option {
static instance: crate::rt::LazyV2<Option> = crate::rt::LazyV2::INIT;
instance.get(Option::new)
}
}
impl crate::Clear for Option {
fn clear(&mut self) {
self.name.clear();
self.value.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Option {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
crate::text_format::fmt(self, f)
}
}
impl crate::reflect::ProtobufValue for Option {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
pub enum Syntax {
SYNTAX_PROTO2 = 0,
SYNTAX_PROTO3 = 1,
}
impl crate::ProtobufEnum for Syntax {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Syntax> {
match value {
0 => ::std::option::Option::Some(Syntax::SYNTAX_PROTO2),
1 => ::std::option::Option::Some(Syntax::SYNTAX_PROTO3),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Syntax] = &[
Syntax::SYNTAX_PROTO2,
Syntax::SYNTAX_PROTO3,
];
values
}
fn enum_descriptor_static() -> &'static crate::reflect::EnumDescriptor {
static descriptor: crate::rt::LazyV2<crate::reflect::EnumDescriptor> = crate::rt::LazyV2::INIT;
descriptor.get(|| {
crate::reflect::EnumDescriptor::new_pb_name::<Syntax>("Syntax", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for Syntax {
}
impl ::std::default::Default for Syntax {
fn default() -> Self {
Syntax::SYNTAX_PROTO2
}
}
impl crate::reflect::ProtobufValue for Syntax {
fn as_ref(&self) -> crate::reflect::ReflectValueRef {
crate::reflect::ReflectValueRef::Enum(crate::ProtobufEnum::descriptor(self))
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x1agoogle/protobuf/type.proto\x12\x0fgoogle.protobuf\x1a\x19google/pr\
otobuf/any.proto\x1a$google/protobuf/source_context.proto\"\x8d\x02\n\
\x04Type\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12.\n\x06fields\
\x18\x02\x20\x03(\x0b2\x16.google.protobuf.FieldR\x06fields\x12\x16\n\
\x06oneofs\x18\x03\x20\x03(\tR\x06oneofs\x121\n\x07options\x18\x04\x20\
\x03(\x0b2\x17.google.protobuf.OptionR\x07options\x12E\n\x0esource_conte\
xt\x18\x05\x20\x01(\x0b2\x1e.google.protobuf.SourceContextR\rsourceConte\
xt\x12/\n\x06syntax\x18\x06\x20\x01(\x0e2\x17.google.protobuf.SyntaxR\
\x06syntax\"\xb4\x06\n\x05Field\x12/\n\x04kind\x18\x01\x20\x01(\x0e2\x1b\
.google.protobuf.Field.KindR\x04kind\x12D\n\x0bcardinality\x18\x02\x20\
\x01(\x0e2\".google.protobuf.Field.CardinalityR\x0bcardinality\x12\x16\n\
\x06number\x18\x03\x20\x01(\x05R\x06number\x12\x12\n\x04name\x18\x04\x20\
\x01(\tR\x04name\x12\x19\n\x08type_url\x18\x06\x20\x01(\tR\x07typeUrl\
\x12\x1f\n\x0boneof_index\x18\x07\x20\x01(\x05R\noneofIndex\x12\x16\n\
\x06packed\x18\x08\x20\x01(\x08R\x06packed\x121\n\x07options\x18\t\x20\
\x03(\x0b2\x17.google.protobuf.OptionR\x07options\x12\x1b\n\tjson_name\
\x18\n\x20\x01(\tR\x08jsonName\x12#\n\rdefault_value\x18\x0b\x20\x01(\tR\
\x0cdefaultValue\"\xc8\x02\n\x04Kind\x12\x10\n\x0cTYPE_UNKNOWN\x10\0\x12\
\x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nT\
YPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\
\x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\
\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\
\nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYT\
ES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\
\x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\
\x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"t\n\x0bCardina\
lity\x12\x17\n\x13CARDINALITY_UNKNOWN\x10\0\x12\x18\n\x14CARDINALITY_OPT\
IONAL\x10\x01\x12\x18\n\x14CARDINALITY_REQUIRED\x10\x02\x12\x18\n\x14CAR\
DINALITY_REPEATED\x10\x03\"\xff\x01\n\x04Enum\x12\x12\n\x04name\x18\x01\
\x20\x01(\tR\x04name\x128\n\tenumvalue\x18\x02\x20\x03(\x0b2\x1a.google.\
protobuf.EnumValueR\tenumvalue\x121\n\x07options\x18\x03\x20\x03(\x0b2\
\x17.google.protobuf.OptionR\x07options\x12E\n\x0esource_context\x18\x04\
\x20\x01(\x0b2\x1e.google.protobuf.SourceContextR\rsourceContext\x12/\n\
\x06syntax\x18\x05\x20\x01(\x0e2\x17.google.protobuf.SyntaxR\x06syntax\"\
j\n\tEnumValue\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\
\x06number\x18\x02\x20\x01(\x05R\x06number\x121\n\x07options\x18\x03\x20\
\x03(\x0b2\x17.google.protobuf.OptionR\x07options\"H\n\x06Option\x12\x12\
\n\x04name\x18\x01\x20\x01(\tR\x04name\x12*\n\x05value\x18\x02\x20\x01(\
\x0b2\x14.google.protobuf.AnyR\x05value*.\n\x06Syntax\x12\x11\n\rSYNTAX_\
PROTO2\x10\0\x12\x11\n\rSYNTAX_PROTO3\x10\x01B{\n\x13com.google.protobuf\
B\tTypeProtoP\x01Z-google.golang.org/protobuf/types/known/typepb\xf8\x01\
\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesJ\xc38\n\
\x07\x12\x05\x1e\0\xba\x01\x01\n\xcc\x0c\n\x01\x0c\x12\x03\x1e\0\x122\
\xc1\x0c\x20Protocol\x20Buffers\x20-\x20Google's\x20data\x20interchange\
\x20format\n\x20Copyright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\
\x20reserved.\n\x20https://developers.google.com/protocol-buffers/\n\n\
\x20Redistribution\x20and\x20use\x20in\x20source\x20and\x20binary\x20for\
ms,\x20with\x20or\x20without\n\x20modification,\x20are\x20permitted\x20p\
rovided\x20that\x20the\x20following\x20conditions\x20are\n\x20met:\n\n\
\x20\x20\x20\x20\x20*\x20Redistributions\x20of\x20source\x20code\x20must\
\x20retain\x20the\x20above\x20copyright\n\x20notice,\x20this\x20list\x20\
of\x20conditions\x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\
\x20\x20*\x20Redistributions\x20in\x20binary\x20form\x20must\x20reproduc\
e\x20the\x20above\n\x20copyright\x20notice,\x20this\x20list\x20of\x20con\
ditions\x20and\x20the\x20following\x20disclaimer\n\x20in\x20the\x20docum\
entation\x20and/or\x20other\x20materials\x20provided\x20with\x20the\n\
\x20distribution.\n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\
\x20Google\x20Inc.\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\
\x20may\x20be\x20used\x20to\x20endorse\x20or\x20promote\x20products\x20d\
erived\x20from\n\x20this\x20software\x20without\x20specific\x20prior\x20\
written\x20permission.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\
\x20THE\x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\
\x20AND\x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\
\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\
\x20MERCHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PUR\
POSE\x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYR\
IGHT\n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20D\
IRECT,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20\
CONSEQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO\
,\x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\
\x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRU\
PTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIA\
BILITY,\x20WHETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20T\
ORT\n\x20(INCLUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\
\x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\
\x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20D\
AMAGE.\n\n\x08\n\x01\x02\x12\x03\x20\0\x18\n\t\n\x02\x03\0\x12\x03\"\0#\
\n\t\n\x02\x03\x01\x12\x03#\0.\n\x08\n\x01\x08\x12\x03%\0;\n\t\n\x02\x08\
%\x12\x03%\0;\n\x08\n\x01\x08\x12\x03&\0\x1f\n\t\n\x02\x08\x1f\x12\x03&\
\0\x1f\n\x08\n\x01\x08\x12\x03'\0,\n\t\n\x02\x08\x01\x12\x03'\0,\n\x08\n\
\x01\x08\x12\x03(\0*\n\t\n\x02\x08\x08\x12\x03(\0*\n\x08\n\x01\x08\x12\
\x03)\0\"\n\t\n\x02\x08\n\x12\x03)\0\"\n\x08\n\x01\x08\x12\x03*\0!\n\t\n\
\x02\x08$\x12\x03*\0!\n\x08\n\x01\x08\x12\x03+\0D\n\t\n\x02\x08\x0b\x12\
\x03+\0D\n-\n\x02\x04\0\x12\x04.\0;\x01\x1a!\x20A\x20protocol\x20buffer\
\x20message\x20type.\n\n\n\n\x03\x04\0\x01\x12\x03.\x08\x0c\n0\n\x04\x04\
\0\x02\0\x12\x030\x02\x12\x1a#\x20The\x20fully\x20qualified\x20message\
\x20name.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x030\x02\x08\n\x0c\n\x05\x04\
\0\x02\0\x01\x12\x030\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x030\x10\x11\n\
\"\n\x04\x04\0\x02\x01\x12\x032\x02\x1c\x1a\x15\x20The\x20list\x20of\x20\
fields.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x032\x02\n\n\x0c\n\x05\x04\0\
\x02\x01\x06\x12\x032\x0b\x10\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x032\x11\
\x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x032\x1a\x1b\nO\n\x04\x04\0\x02\
\x02\x12\x034\x02\x1d\x1aB\x20The\x20list\x20of\x20types\x20appearing\
\x20in\x20`oneof`\x20definitions\x20in\x20this\x20type.\n\n\x0c\n\x05\
\x04\0\x02\x02\x04\x12\x034\x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x034\
\x0b\x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x034\x12\x18\n\x0c\n\x05\x04\
\0\x02\x02\x03\x12\x034\x1b\x1c\n+\n\x04\x04\0\x02\x03\x12\x036\x02\x1e\
\x1a\x1e\x20The\x20protocol\x20buffer\x20options.\n\n\x0c\n\x05\x04\0\
\x02\x03\x04\x12\x036\x02\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x036\x0b\
\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x036\x12\x19\n\x0c\n\x05\x04\0\
\x02\x03\x03\x12\x036\x1c\x1d\n\"\n\x04\x04\0\x02\x04\x12\x038\x02#\x1a\
\x15\x20The\x20source\x20context.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\
\x038\x02\x0f\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x038\x10\x1e\n\x0c\n\x05\
\x04\0\x02\x04\x03\x12\x038!\"\n!\n\x04\x04\0\x02\x05\x12\x03:\x02\x14\
\x1a\x14\x20The\x20source\x20syntax.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\
\x03:\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03:\t\x0f\n\x0c\n\x05\
\x04\0\x02\x05\x03\x12\x03:\x12\x13\n0\n\x02\x04\x01\x12\x05>\0\x8b\x01\
\x01\x1a#\x20A\x20single\x20field\x20of\x20a\x20message\x20type.\n\n\n\n\
\x03\x04\x01\x01\x12\x03>\x08\r\n\"\n\x04\x04\x01\x04\0\x12\x04@\x02g\
\x03\x1a\x14\x20Basic\x20field\x20types.\n\n\x0c\n\x05\x04\x01\x04\0\x01\
\x12\x03@\x07\x0b\n$\n\x06\x04\x01\x04\0\x02\0\x12\x03B\x04\x15\x1a\x15\
\x20Field\x20type\x20unknown.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\
\x03B\x04\x10\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03B\x13\x14\n#\n\
\x06\x04\x01\x04\0\x02\x01\x12\x03D\x04\x14\x1a\x14\x20Field\x20type\x20\
double.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03D\x04\x0f\n\x0e\n\
\x07\x04\x01\x04\0\x02\x01\x02\x12\x03D\x12\x13\n\"\n\x06\x04\x01\x04\0\
\x02\x02\x12\x03F\x04\x13\x1a\x13\x20Field\x20type\x20float.\n\n\x0e\n\
\x07\x04\x01\x04\0\x02\x02\x01\x12\x03F\x04\x0e\n\x0e\n\x07\x04\x01\x04\
\0\x02\x02\x02\x12\x03F\x11\x12\n\"\n\x06\x04\x01\x04\0\x02\x03\x12\x03H\
\x04\x13\x1a\x13\x20Field\x20type\x20int64.\n\n\x0e\n\x07\x04\x01\x04\0\
\x02\x03\x01\x12\x03H\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\
\x03H\x11\x12\n#\n\x06\x04\x01\x04\0\x02\x04\x12\x03J\x04\x14\x1a\x14\
\x20Field\x20type\x20uint64.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\x12\
\x03J\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03J\x12\x13\n\"\
\n\x06\x04\x01\x04\0\x02\x05\x12\x03L\x04\x13\x1a\x13\x20Field\x20type\
\x20int32.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x01\x12\x03L\x04\x0e\n\
\x0e\n\x07\x04\x01\x04\0\x02\x05\x02\x12\x03L\x11\x12\n$\n\x06\x04\x01\
\x04\0\x02\x06\x12\x03N\x04\x15\x1a\x15\x20Field\x20type\x20fixed64.\n\n\
\x0e\n\x07\x04\x01\x04\0\x02\x06\x01\x12\x03N\x04\x10\n\x0e\n\x07\x04\
\x01\x04\0\x02\x06\x02\x12\x03N\x13\x14\n$\n\x06\x04\x01\x04\0\x02\x07\
\x12\x03P\x04\x15\x1a\x15\x20Field\x20type\x20fixed32.\n\n\x0e\n\x07\x04\
\x01\x04\0\x02\x07\x01\x12\x03P\x04\x10\n\x0e\n\x07\x04\x01\x04\0\x02\
\x07\x02\x12\x03P\x13\x14\n!\n\x06\x04\x01\x04\0\x02\x08\x12\x03R\x04\
\x12\x1a\x12\x20Field\x20type\x20bool.\n\n\x0e\n\x07\x04\x01\x04\0\x02\
\x08\x01\x12\x03R\x04\r\n\x0e\n\x07\x04\x01\x04\0\x02\x08\x02\x12\x03R\
\x10\x11\n#\n\x06\x04\x01\x04\0\x02\t\x12\x03T\x04\x14\x1a\x14\x20Field\
\x20type\x20string.\n\n\x0e\n\x07\x04\x01\x04\0\x02\t\x01\x12\x03T\x04\
\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\t\x02\x12\x03T\x12\x13\nF\n\x06\x04\
\x01\x04\0\x02\n\x12\x03V\x04\x14\x1a7\x20Field\x20type\x20group.\x20Pro\
to2\x20syntax\x20only,\x20and\x20deprecated.\n\n\x0e\n\x07\x04\x01\x04\0\
\x02\n\x01\x12\x03V\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\n\x02\x12\x03V\
\x11\x13\n$\n\x06\x04\x01\x04\0\x02\x0b\x12\x03X\x04\x16\x1a\x15\x20Fiel\
d\x20type\x20message.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x0b\x01\x12\x03X\
\x04\x10\n\x0e\n\x07\x04\x01\x04\0\x02\x0b\x02\x12\x03X\x13\x15\n\"\n\
\x06\x04\x01\x04\0\x02\x0c\x12\x03Z\x04\x14\x1a\x13\x20Field\x20type\x20\
bytes.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x0c\x01\x12\x03Z\x04\x0e\n\x0e\n\
\x07\x04\x01\x04\0\x02\x0c\x02\x12\x03Z\x11\x13\n#\n\x06\x04\x01\x04\0\
\x02\r\x12\x03\\\x04\x15\x1a\x14\x20Field\x20type\x20uint32.\n\n\x0e\n\
\x07\x04\x01\x04\0\x02\r\x01\x12\x03\\\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\
\x02\r\x02\x12\x03\\\x12\x14\n!\n\x06\x04\x01\x04\0\x02\x0e\x12\x03^\x04\
\x13\x1a\x12\x20Field\x20type\x20enum.\n\n\x0e\n\x07\x04\x01\x04\0\x02\
\x0e\x01\x12\x03^\x04\r\n\x0e\n\x07\x04\x01\x04\0\x02\x0e\x02\x12\x03^\
\x10\x12\n%\n\x06\x04\x01\x04\0\x02\x0f\x12\x03`\x04\x17\x1a\x16\x20Fiel\
d\x20type\x20sfixed32.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x0f\x01\x12\x03`\
\x04\x11\n\x0e\n\x07\x04\x01\x04\0\x02\x0f\x02\x12\x03`\x14\x16\n%\n\x06\
\x04\x01\x04\0\x02\x10\x12\x03b\x04\x17\x1a\x16\x20Field\x20type\x20sfix\
ed64.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x10\x01\x12\x03b\x04\x11\n\x0e\n\
\x07\x04\x01\x04\0\x02\x10\x02\x12\x03b\x14\x16\n#\n\x06\x04\x01\x04\0\
\x02\x11\x12\x03d\x04\x15\x1a\x14\x20Field\x20type\x20sint32.\n\n\x0e\n\
\x07\x04\x01\x04\0\x02\x11\x01\x12\x03d\x04\x0f\n\x0e\n\x07\x04\x01\x04\
\0\x02\x11\x02\x12\x03d\x12\x14\n#\n\x06\x04\x01\x04\0\x02\x12\x12\x03f\
\x04\x15\x1a\x14\x20Field\x20type\x20sint64.\n\n\x0e\n\x07\x04\x01\x04\0\
\x02\x12\x01\x12\x03f\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x12\x02\x12\
\x03f\x12\x14\nC\n\x04\x04\x01\x04\x01\x12\x04j\x02s\x03\x1a5\x20Whether\
\x20a\x20field\x20is\x20optional,\x20required,\x20or\x20repeated.\n\n\
\x0c\n\x05\x04\x01\x04\x01\x01\x12\x03j\x07\x12\n5\n\x06\x04\x01\x04\x01\
\x02\0\x12\x03l\x04\x1c\x1a&\x20For\x20fields\x20with\x20unknown\x20card\
inality.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x01\x12\x03l\x04\x17\n\x0e\
\n\x07\x04\x01\x04\x01\x02\0\x02\x12\x03l\x1a\x1b\n%\n\x06\x04\x01\x04\
\x01\x02\x01\x12\x03n\x04\x1d\x1a\x16\x20For\x20optional\x20fields.\n\n\
\x0e\n\x07\x04\x01\x04\x01\x02\x01\x01\x12\x03n\x04\x18\n\x0e\n\x07\x04\
\x01\x04\x01\x02\x01\x02\x12\x03n\x1b\x1c\n9\n\x06\x04\x01\x04\x01\x02\
\x02\x12\x03p\x04\x1d\x1a*\x20For\x20required\x20fields.\x20Proto2\x20sy\
ntax\x20only.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x02\x01\x12\x03p\x04\x18\
\n\x0e\n\x07\x04\x01\x04\x01\x02\x02\x02\x12\x03p\x1b\x1c\n%\n\x06\x04\
\x01\x04\x01\x02\x03\x12\x03r\x04\x1d\x1a\x16\x20For\x20repeated\x20fiel\
ds.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x03\x01\x12\x03r\x04\x18\n\x0e\n\
\x07\x04\x01\x04\x01\x02\x03\x02\x12\x03r\x1b\x1c\n\x1e\n\x04\x04\x01\
\x02\0\x12\x03v\x02\x10\x1a\x11\x20The\x20field\x20type.\n\n\x0c\n\x05\
\x04\x01\x02\0\x06\x12\x03v\x02\x06\n\x0c\n\x05\x04\x01\x02\0\x01\x12\
\x03v\x07\x0b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03v\x0e\x0f\n%\n\x04\
\x04\x01\x02\x01\x12\x03x\x02\x1e\x1a\x18\x20The\x20field\x20cardinality\
.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03x\x02\r\n\x0c\n\x05\x04\x01\
\x02\x01\x01\x12\x03x\x0e\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03x\
\x1c\x1d\n\x20\n\x04\x04\x01\x02\x02\x12\x03z\x02\x13\x1a\x13\x20The\x20\
field\x20number.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03z\x02\x07\n\
\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03z\x08\x0e\n\x0c\n\x05\x04\x01\x02\
\x02\x03\x12\x03z\x11\x12\n\x1e\n\x04\x04\x01\x02\x03\x12\x03|\x02\x12\
\x1a\x11\x20The\x20field\x20name.\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\
\x03|\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03|\t\r\n\x0c\n\x05\
\x04\x01\x02\x03\x03\x12\x03|\x10\x11\n\x96\x01\n\x04\x04\x01\x02\x04\
\x12\x03\x7f\x02\x16\x1a\x88\x01\x20The\x20field\x20type\x20URL,\x20with\
out\x20the\x20scheme,\x20for\x20message\x20or\x20enumeration\n\x20types.\