|
@@ -1,1656 +0,0 @@
|
|
|
-// This file is generated by rust-protobuf 2.25.2. 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 `type_options.proto`
|
|
|
-
|
|
|
-/// Generated files are compatible only with the same version
|
|
|
-/// of protobuf runtime.
|
|
|
-// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct RichTextDescription {
|
|
|
- // message fields
|
|
|
- pub format: ::std::string::String,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a RichTextDescription {
|
|
|
- fn default() -> &'a RichTextDescription {
|
|
|
- <RichTextDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl RichTextDescription {
|
|
|
- pub fn new() -> RichTextDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // string format = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_format(&self) -> &str {
|
|
|
- &self.format
|
|
|
- }
|
|
|
- pub fn clear_format(&mut self) {
|
|
|
- self.format.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_format(&mut self, v: ::std::string::String) {
|
|
|
- self.format = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- // If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_format(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.format
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_format(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.format, ::std::string::String::new())
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for RichTextDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.format)?;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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.format.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(1, &self.format);
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- if !self.format.is_empty() {
|
|
|
- os.write_string(1, &self.format)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> RichTextDescription {
|
|
|
- RichTextDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "format",
|
|
|
- |m: &RichTextDescription| { &m.format },
|
|
|
- |m: &mut RichTextDescription| { &mut m.format },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RichTextDescription>(
|
|
|
- "RichTextDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static RichTextDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<RichTextDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(RichTextDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for RichTextDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.format.clear();
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for RichTextDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for RichTextDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct CheckboxDescription {
|
|
|
- // message fields
|
|
|
- pub is_selected: bool,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a CheckboxDescription {
|
|
|
- fn default() -> &'a CheckboxDescription {
|
|
|
- <CheckboxDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl CheckboxDescription {
|
|
|
- pub fn new() -> CheckboxDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // bool is_selected = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_is_selected(&self) -> bool {
|
|
|
- self.is_selected
|
|
|
- }
|
|
|
- pub fn clear_is_selected(&mut self) {
|
|
|
- self.is_selected = false;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_is_selected(&mut self, v: bool) {
|
|
|
- self.is_selected = v;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for CheckboxDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_bool()?;
|
|
|
- self.is_selected = tmp;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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.is_selected != false {
|
|
|
- my_size += 2;
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- if self.is_selected != false {
|
|
|
- os.write_bool(1, self.is_selected)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> CheckboxDescription {
|
|
|
- CheckboxDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
|
|
|
- "is_selected",
|
|
|
- |m: &CheckboxDescription| { &m.is_selected },
|
|
|
- |m: &mut CheckboxDescription| { &mut m.is_selected },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<CheckboxDescription>(
|
|
|
- "CheckboxDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static CheckboxDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<CheckboxDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(CheckboxDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for CheckboxDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.is_selected = false;
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for CheckboxDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for CheckboxDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct DateDescription {
|
|
|
- // message fields
|
|
|
- pub date_format: DateFormat,
|
|
|
- pub time_format: TimeFormat,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a DateDescription {
|
|
|
- fn default() -> &'a DateDescription {
|
|
|
- <DateDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl DateDescription {
|
|
|
- pub fn new() -> DateDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // .DateFormat date_format = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_date_format(&self) -> DateFormat {
|
|
|
- self.date_format
|
|
|
- }
|
|
|
- pub fn clear_date_format(&mut self) {
|
|
|
- self.date_format = DateFormat::Local;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_date_format(&mut self, v: DateFormat) {
|
|
|
- self.date_format = v;
|
|
|
- }
|
|
|
-
|
|
|
- // .TimeFormat time_format = 2;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_time_format(&self) -> TimeFormat {
|
|
|
- self.time_format
|
|
|
- }
|
|
|
- pub fn clear_time_format(&mut self) {
|
|
|
- self.time_format = TimeFormat::TwelveHour;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_time_format(&mut self, v: TimeFormat) {
|
|
|
- self.time_format = v;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for DateDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.date_format, 1, &mut self.unknown_fields)?
|
|
|
- },
|
|
|
- 2 => {
|
|
|
- ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.time_format, 2, &mut self.unknown_fields)?
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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.date_format != DateFormat::Local {
|
|
|
- my_size += ::protobuf::rt::enum_size(1, self.date_format);
|
|
|
- }
|
|
|
- if self.time_format != TimeFormat::TwelveHour {
|
|
|
- my_size += ::protobuf::rt::enum_size(2, self.time_format);
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- if self.date_format != DateFormat::Local {
|
|
|
- os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.date_format))?;
|
|
|
- }
|
|
|
- if self.time_format != TimeFormat::TwelveHour {
|
|
|
- os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.time_format))?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> DateDescription {
|
|
|
- DateDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<DateFormat>>(
|
|
|
- "date_format",
|
|
|
- |m: &DateDescription| { &m.date_format },
|
|
|
- |m: &mut DateDescription| { &mut m.date_format },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<TimeFormat>>(
|
|
|
- "time_format",
|
|
|
- |m: &DateDescription| { &m.time_format },
|
|
|
- |m: &mut DateDescription| { &mut m.time_format },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<DateDescription>(
|
|
|
- "DateDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static DateDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<DateDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(DateDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for DateDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.date_format = DateFormat::Local;
|
|
|
- self.time_format = TimeFormat::TwelveHour;
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for DateDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for DateDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct SingleSelectDescription {
|
|
|
- // message fields
|
|
|
- pub options: ::protobuf::RepeatedField<SelectOption>,
|
|
|
- pub disable_color: bool,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a SingleSelectDescription {
|
|
|
- fn default() -> &'a SingleSelectDescription {
|
|
|
- <SingleSelectDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl SingleSelectDescription {
|
|
|
- pub fn new() -> SingleSelectDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // repeated .SelectOption options = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_options(&self) -> &[SelectOption] {
|
|
|
- &self.options
|
|
|
- }
|
|
|
- pub fn clear_options(&mut self) {
|
|
|
- self.options.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_options(&mut self, v: ::protobuf::RepeatedField<SelectOption>) {
|
|
|
- self.options = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<SelectOption> {
|
|
|
- &mut self.options
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_options(&mut self) -> ::protobuf::RepeatedField<SelectOption> {
|
|
|
- ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
|
|
|
- }
|
|
|
-
|
|
|
- // bool disable_color = 2;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_disable_color(&self) -> bool {
|
|
|
- self.disable_color
|
|
|
- }
|
|
|
- pub fn clear_disable_color(&mut self) {
|
|
|
- self.disable_color = false;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_disable_color(&mut self, v: bool) {
|
|
|
- self.disable_color = v;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for SingleSelectDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- for v in &self.options {
|
|
|
- if !v.is_initialized() {
|
|
|
- return false;
|
|
|
- }
|
|
|
- };
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
|
|
|
- },
|
|
|
- 2 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_bool()?;
|
|
|
- self.disable_color = tmp;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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;
|
|
|
- for value in &self.options {
|
|
|
- let len = value.compute_size();
|
|
|
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
- };
|
|
|
- if self.disable_color != false {
|
|
|
- my_size += 2;
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- for v in &self.options {
|
|
|
- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
- os.write_raw_varint32(v.get_cached_size())?;
|
|
|
- v.write_to_with_cached_sizes(os)?;
|
|
|
- };
|
|
|
- if self.disable_color != false {
|
|
|
- os.write_bool(2, self.disable_color)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> SingleSelectDescription {
|
|
|
- SingleSelectDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SelectOption>>(
|
|
|
- "options",
|
|
|
- |m: &SingleSelectDescription| { &m.options },
|
|
|
- |m: &mut SingleSelectDescription| { &mut m.options },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
|
|
|
- "disable_color",
|
|
|
- |m: &SingleSelectDescription| { &m.disable_color },
|
|
|
- |m: &mut SingleSelectDescription| { &mut m.disable_color },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<SingleSelectDescription>(
|
|
|
- "SingleSelectDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static SingleSelectDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<SingleSelectDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(SingleSelectDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for SingleSelectDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.options.clear();
|
|
|
- self.disable_color = false;
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for SingleSelectDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for SingleSelectDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct MultiSelectDescription {
|
|
|
- // message fields
|
|
|
- pub options: ::protobuf::RepeatedField<SelectOption>,
|
|
|
- pub disable_color: bool,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a MultiSelectDescription {
|
|
|
- fn default() -> &'a MultiSelectDescription {
|
|
|
- <MultiSelectDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl MultiSelectDescription {
|
|
|
- pub fn new() -> MultiSelectDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // repeated .SelectOption options = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_options(&self) -> &[SelectOption] {
|
|
|
- &self.options
|
|
|
- }
|
|
|
- pub fn clear_options(&mut self) {
|
|
|
- self.options.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_options(&mut self, v: ::protobuf::RepeatedField<SelectOption>) {
|
|
|
- self.options = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<SelectOption> {
|
|
|
- &mut self.options
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_options(&mut self) -> ::protobuf::RepeatedField<SelectOption> {
|
|
|
- ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
|
|
|
- }
|
|
|
-
|
|
|
- // bool disable_color = 2;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_disable_color(&self) -> bool {
|
|
|
- self.disable_color
|
|
|
- }
|
|
|
- pub fn clear_disable_color(&mut self) {
|
|
|
- self.disable_color = false;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_disable_color(&mut self, v: bool) {
|
|
|
- self.disable_color = v;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for MultiSelectDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- for v in &self.options {
|
|
|
- if !v.is_initialized() {
|
|
|
- return false;
|
|
|
- }
|
|
|
- };
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
|
|
|
- },
|
|
|
- 2 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_bool()?;
|
|
|
- self.disable_color = tmp;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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;
|
|
|
- for value in &self.options {
|
|
|
- let len = value.compute_size();
|
|
|
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
- };
|
|
|
- if self.disable_color != false {
|
|
|
- my_size += 2;
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- for v in &self.options {
|
|
|
- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
- os.write_raw_varint32(v.get_cached_size())?;
|
|
|
- v.write_to_with_cached_sizes(os)?;
|
|
|
- };
|
|
|
- if self.disable_color != false {
|
|
|
- os.write_bool(2, self.disable_color)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> MultiSelectDescription {
|
|
|
- MultiSelectDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SelectOption>>(
|
|
|
- "options",
|
|
|
- |m: &MultiSelectDescription| { &m.options },
|
|
|
- |m: &mut MultiSelectDescription| { &mut m.options },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
|
|
|
- "disable_color",
|
|
|
- |m: &MultiSelectDescription| { &m.disable_color },
|
|
|
- |m: &mut MultiSelectDescription| { &mut m.disable_color },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<MultiSelectDescription>(
|
|
|
- "MultiSelectDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static MultiSelectDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<MultiSelectDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(MultiSelectDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for MultiSelectDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.options.clear();
|
|
|
- self.disable_color = false;
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for MultiSelectDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for MultiSelectDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct SelectOption {
|
|
|
- // message fields
|
|
|
- pub id: ::std::string::String,
|
|
|
- pub name: ::std::string::String,
|
|
|
- pub color: ::std::string::String,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a SelectOption {
|
|
|
- fn default() -> &'a SelectOption {
|
|
|
- <SelectOption as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl SelectOption {
|
|
|
- pub fn new() -> SelectOption {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // string id = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_id(&self) -> &str {
|
|
|
- &self.id
|
|
|
- }
|
|
|
- pub fn clear_id(&mut self) {
|
|
|
- self.id.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_id(&mut self, v: ::std::string::String) {
|
|
|
- self.id = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- // If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_id(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.id
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_id(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.id, ::std::string::String::new())
|
|
|
- }
|
|
|
-
|
|
|
- // string name = 2;
|
|
|
-
|
|
|
-
|
|
|
- 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 color = 3;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_color(&self) -> &str {
|
|
|
- &self.color
|
|
|
- }
|
|
|
- pub fn clear_color(&mut self) {
|
|
|
- self.color.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_color(&mut self, v: ::std::string::String) {
|
|
|
- self.color = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- // If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_color(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.color
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_color(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.color, ::std::string::String::new())
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for SelectOption {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
|
|
|
- },
|
|
|
- 2 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
|
|
|
- },
|
|
|
- 3 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.color)?;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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.id.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
|
- }
|
|
|
- if !self.name.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(2, &self.name);
|
|
|
- }
|
|
|
- if !self.color.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(3, &self.color);
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- if !self.id.is_empty() {
|
|
|
- os.write_string(1, &self.id)?;
|
|
|
- }
|
|
|
- if !self.name.is_empty() {
|
|
|
- os.write_string(2, &self.name)?;
|
|
|
- }
|
|
|
- if !self.color.is_empty() {
|
|
|
- os.write_string(3, &self.color)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> SelectOption {
|
|
|
- SelectOption::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "id",
|
|
|
- |m: &SelectOption| { &m.id },
|
|
|
- |m: &mut SelectOption| { &mut m.id },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "name",
|
|
|
- |m: &SelectOption| { &m.name },
|
|
|
- |m: &mut SelectOption| { &mut m.name },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "color",
|
|
|
- |m: &SelectOption| { &m.color },
|
|
|
- |m: &mut SelectOption| { &mut m.color },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<SelectOption>(
|
|
|
- "SelectOption",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static SelectOption {
|
|
|
- static instance: ::protobuf::rt::LazyV2<SelectOption> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(SelectOption::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for SelectOption {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.id.clear();
|
|
|
- self.name.clear();
|
|
|
- self.color.clear();
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for SelectOption {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for SelectOption {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct NumberDescription {
|
|
|
- // message fields
|
|
|
- pub money: MoneySymbol,
|
|
|
- pub scale: u32,
|
|
|
- pub symbol: ::std::string::String,
|
|
|
- pub sign_positive: bool,
|
|
|
- pub name: ::std::string::String,
|
|
|
- // special fields
|
|
|
- pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
- pub cached_size: ::protobuf::CachedSize,
|
|
|
-}
|
|
|
-
|
|
|
-impl<'a> ::std::default::Default for &'a NumberDescription {
|
|
|
- fn default() -> &'a NumberDescription {
|
|
|
- <NumberDescription as ::protobuf::Message>::default_instance()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl NumberDescription {
|
|
|
- pub fn new() -> NumberDescription {
|
|
|
- ::std::default::Default::default()
|
|
|
- }
|
|
|
-
|
|
|
- // .MoneySymbol money = 1;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_money(&self) -> MoneySymbol {
|
|
|
- self.money
|
|
|
- }
|
|
|
- pub fn clear_money(&mut self) {
|
|
|
- self.money = MoneySymbol::CNY;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_money(&mut self, v: MoneySymbol) {
|
|
|
- self.money = v;
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 scale = 2;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_scale(&self) -> u32 {
|
|
|
- self.scale
|
|
|
- }
|
|
|
- pub fn clear_scale(&mut self) {
|
|
|
- self.scale = 0;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_scale(&mut self, v: u32) {
|
|
|
- self.scale = v;
|
|
|
- }
|
|
|
-
|
|
|
- // string symbol = 3;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_symbol(&self) -> &str {
|
|
|
- &self.symbol
|
|
|
- }
|
|
|
- pub fn clear_symbol(&mut self) {
|
|
|
- self.symbol.clear();
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_symbol(&mut self, v: ::std::string::String) {
|
|
|
- self.symbol = v;
|
|
|
- }
|
|
|
-
|
|
|
- // Mutable pointer to the field.
|
|
|
- // If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_symbol(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.symbol
|
|
|
- }
|
|
|
-
|
|
|
- // Take field
|
|
|
- pub fn take_symbol(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.symbol, ::std::string::String::new())
|
|
|
- }
|
|
|
-
|
|
|
- // bool sign_positive = 4;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_sign_positive(&self) -> bool {
|
|
|
- self.sign_positive
|
|
|
- }
|
|
|
- pub fn clear_sign_positive(&mut self) {
|
|
|
- self.sign_positive = false;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_sign_positive(&mut self, v: bool) {
|
|
|
- self.sign_positive = v;
|
|
|
- }
|
|
|
-
|
|
|
- // string name = 5;
|
|
|
-
|
|
|
-
|
|
|
- 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())
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Message for NumberDescription {
|
|
|
- fn is_initialized(&self) -> bool {
|
|
|
- true
|
|
|
- }
|
|
|
-
|
|
|
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- while !is.eof()? {
|
|
|
- let (field_number, wire_type) = is.read_tag_unpack()?;
|
|
|
- match field_number {
|
|
|
- 1 => {
|
|
|
- ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.money, 1, &mut self.unknown_fields)?
|
|
|
- },
|
|
|
- 2 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_uint32()?;
|
|
|
- self.scale = tmp;
|
|
|
- },
|
|
|
- 3 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.symbol)?;
|
|
|
- },
|
|
|
- 4 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_bool()?;
|
|
|
- self.sign_positive = tmp;
|
|
|
- },
|
|
|
- 5 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
|
|
|
- },
|
|
|
- _ => {
|
|
|
- ::protobuf::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.money != MoneySymbol::CNY {
|
|
|
- my_size += ::protobuf::rt::enum_size(1, self.money);
|
|
|
- }
|
|
|
- if self.scale != 0 {
|
|
|
- my_size += ::protobuf::rt::value_size(2, self.scale, ::protobuf::wire_format::WireTypeVarint);
|
|
|
- }
|
|
|
- if !self.symbol.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(3, &self.symbol);
|
|
|
- }
|
|
|
- if self.sign_positive != false {
|
|
|
- my_size += 2;
|
|
|
- }
|
|
|
- if !self.name.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(5, &self.name);
|
|
|
- }
|
|
|
- my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
|
|
|
- if self.money != MoneySymbol::CNY {
|
|
|
- os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.money))?;
|
|
|
- }
|
|
|
- if self.scale != 0 {
|
|
|
- os.write_uint32(2, self.scale)?;
|
|
|
- }
|
|
|
- if !self.symbol.is_empty() {
|
|
|
- os.write_string(3, &self.symbol)?;
|
|
|
- }
|
|
|
- if self.sign_positive != false {
|
|
|
- os.write_bool(4, self.sign_positive)?;
|
|
|
- }
|
|
|
- if !self.name.is_empty() {
|
|
|
- os.write_string(5, &self.name)?;
|
|
|
- }
|
|
|
- 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) -> &::protobuf::UnknownFields {
|
|
|
- &self.unknown_fields
|
|
|
- }
|
|
|
-
|
|
|
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::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 ::protobuf::reflect::MessageDescriptor {
|
|
|
- Self::descriptor_static()
|
|
|
- }
|
|
|
-
|
|
|
- fn new() -> NumberDescription {
|
|
|
- NumberDescription::new()
|
|
|
- }
|
|
|
-
|
|
|
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- let mut fields = ::std::vec::Vec::new();
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MoneySymbol>>(
|
|
|
- "money",
|
|
|
- |m: &NumberDescription| { &m.money },
|
|
|
- |m: &mut NumberDescription| { &mut m.money },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
|
|
|
- "scale",
|
|
|
- |m: &NumberDescription| { &m.scale },
|
|
|
- |m: &mut NumberDescription| { &mut m.scale },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "symbol",
|
|
|
- |m: &NumberDescription| { &m.symbol },
|
|
|
- |m: &mut NumberDescription| { &mut m.symbol },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
|
|
|
- "sign_positive",
|
|
|
- |m: &NumberDescription| { &m.sign_positive },
|
|
|
- |m: &mut NumberDescription| { &mut m.sign_positive },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "name",
|
|
|
- |m: &NumberDescription| { &m.name },
|
|
|
- |m: &mut NumberDescription| { &mut m.name },
|
|
|
- ));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<NumberDescription>(
|
|
|
- "NumberDescription",
|
|
|
- fields,
|
|
|
- file_descriptor_proto()
|
|
|
- )
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- fn default_instance() -> &'static NumberDescription {
|
|
|
- static instance: ::protobuf::rt::LazyV2<NumberDescription> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(NumberDescription::new)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::Clear for NumberDescription {
|
|
|
- fn clear(&mut self) {
|
|
|
- self.money = MoneySymbol::CNY;
|
|
|
- self.scale = 0;
|
|
|
- self.symbol.clear();
|
|
|
- self.sign_positive = false;
|
|
|
- self.name.clear();
|
|
|
- self.unknown_fields.clear();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::fmt::Debug for NumberDescription {
|
|
|
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
- ::protobuf::text_format::fmt(self, f)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for NumberDescription {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(Clone,PartialEq,Eq,Debug,Hash)]
|
|
|
-pub enum DateFormat {
|
|
|
- Local = 0,
|
|
|
- US = 1,
|
|
|
- ISO = 2,
|
|
|
- Friendly = 3,
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::ProtobufEnum for DateFormat {
|
|
|
- fn value(&self) -> i32 {
|
|
|
- *self as i32
|
|
|
- }
|
|
|
-
|
|
|
- fn from_i32(value: i32) -> ::std::option::Option<DateFormat> {
|
|
|
- match value {
|
|
|
- 0 => ::std::option::Option::Some(DateFormat::Local),
|
|
|
- 1 => ::std::option::Option::Some(DateFormat::US),
|
|
|
- 2 => ::std::option::Option::Some(DateFormat::ISO),
|
|
|
- 3 => ::std::option::Option::Some(DateFormat::Friendly),
|
|
|
- _ => ::std::option::Option::None
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- fn values() -> &'static [Self] {
|
|
|
- static values: &'static [DateFormat] = &[
|
|
|
- DateFormat::Local,
|
|
|
- DateFormat::US,
|
|
|
- DateFormat::ISO,
|
|
|
- DateFormat::Friendly,
|
|
|
- ];
|
|
|
- values
|
|
|
- }
|
|
|
-
|
|
|
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- ::protobuf::reflect::EnumDescriptor::new_pb_name::<DateFormat>("DateFormat", file_descriptor_proto())
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::marker::Copy for DateFormat {
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::default::Default for DateFormat {
|
|
|
- fn default() -> Self {
|
|
|
- DateFormat::Local
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for DateFormat {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(Clone,PartialEq,Eq,Debug,Hash)]
|
|
|
-pub enum TimeFormat {
|
|
|
- TwelveHour = 0,
|
|
|
- TwentyFourHour = 1,
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::ProtobufEnum for TimeFormat {
|
|
|
- fn value(&self) -> i32 {
|
|
|
- *self as i32
|
|
|
- }
|
|
|
-
|
|
|
- fn from_i32(value: i32) -> ::std::option::Option<TimeFormat> {
|
|
|
- match value {
|
|
|
- 0 => ::std::option::Option::Some(TimeFormat::TwelveHour),
|
|
|
- 1 => ::std::option::Option::Some(TimeFormat::TwentyFourHour),
|
|
|
- _ => ::std::option::Option::None
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- fn values() -> &'static [Self] {
|
|
|
- static values: &'static [TimeFormat] = &[
|
|
|
- TimeFormat::TwelveHour,
|
|
|
- TimeFormat::TwentyFourHour,
|
|
|
- ];
|
|
|
- values
|
|
|
- }
|
|
|
-
|
|
|
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- ::protobuf::reflect::EnumDescriptor::new_pb_name::<TimeFormat>("TimeFormat", file_descriptor_proto())
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::marker::Copy for TimeFormat {
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::default::Default for TimeFormat {
|
|
|
- fn default() -> Self {
|
|
|
- TimeFormat::TwelveHour
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for TimeFormat {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(Clone,PartialEq,Eq,Debug,Hash)]
|
|
|
-pub enum MoneySymbol {
|
|
|
- CNY = 0,
|
|
|
- EUR = 1,
|
|
|
- USD = 2,
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::ProtobufEnum for MoneySymbol {
|
|
|
- fn value(&self) -> i32 {
|
|
|
- *self as i32
|
|
|
- }
|
|
|
-
|
|
|
- fn from_i32(value: i32) -> ::std::option::Option<MoneySymbol> {
|
|
|
- match value {
|
|
|
- 0 => ::std::option::Option::Some(MoneySymbol::CNY),
|
|
|
- 1 => ::std::option::Option::Some(MoneySymbol::EUR),
|
|
|
- 2 => ::std::option::Option::Some(MoneySymbol::USD),
|
|
|
- _ => ::std::option::Option::None
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- fn values() -> &'static [Self] {
|
|
|
- static values: &'static [MoneySymbol] = &[
|
|
|
- MoneySymbol::CNY,
|
|
|
- MoneySymbol::EUR,
|
|
|
- MoneySymbol::USD,
|
|
|
- ];
|
|
|
- values
|
|
|
- }
|
|
|
-
|
|
|
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- descriptor.get(|| {
|
|
|
- ::protobuf::reflect::EnumDescriptor::new_pb_name::<MoneySymbol>("MoneySymbol", file_descriptor_proto())
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::marker::Copy for MoneySymbol {
|
|
|
-}
|
|
|
-
|
|
|
-impl ::std::default::Default for MoneySymbol {
|
|
|
- fn default() -> Self {
|
|
|
- MoneySymbol::CNY
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-impl ::protobuf::reflect::ProtobufValue for MoneySymbol {
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
- ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
- \n\x12type_options.proto\"-\n\x13RichTextDescription\x12\x16\n\x06format\
|
|
|
- \x18\x01\x20\x01(\tR\x06format\"6\n\x13CheckboxDescription\x12\x1f\n\x0b\
|
|
|
- is_selected\x18\x01\x20\x01(\x08R\nisSelected\"m\n\x0fDateDescription\
|
|
|
- \x12,\n\x0bdate_format\x18\x01\x20\x01(\x0e2\x0b.DateFormatR\ndateFormat\
|
|
|
- \x12,\n\x0btime_format\x18\x02\x20\x01(\x0e2\x0b.TimeFormatR\ntimeFormat\
|
|
|
- \"g\n\x17SingleSelectDescription\x12'\n\x07options\x18\x01\x20\x03(\x0b2\
|
|
|
- \r.SelectOptionR\x07options\x12#\n\rdisable_color\x18\x02\x20\x01(\x08R\
|
|
|
- \x0cdisableColor\"f\n\x16MultiSelectDescription\x12'\n\x07options\x18\
|
|
|
- \x01\x20\x03(\x0b2\r.SelectOptionR\x07options\x12#\n\rdisable_color\x18\
|
|
|
- \x02\x20\x01(\x08R\x0cdisableColor\"H\n\x0cSelectOption\x12\x0e\n\x02id\
|
|
|
- \x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\
|
|
|
- \x12\x14\n\x05color\x18\x03\x20\x01(\tR\x05color\"\x9e\x01\n\x11NumberDe\
|
|
|
- scription\x12\"\n\x05money\x18\x01\x20\x01(\x0e2\x0c.MoneySymbolR\x05mon\
|
|
|
- ey\x12\x14\n\x05scale\x18\x02\x20\x01(\rR\x05scale\x12\x16\n\x06symbol\
|
|
|
- \x18\x03\x20\x01(\tR\x06symbol\x12#\n\rsign_positive\x18\x04\x20\x01(\
|
|
|
- \x08R\x0csignPositive\x12\x12\n\x04name\x18\x05\x20\x01(\tR\x04name*6\n\
|
|
|
- \nDateFormat\x12\t\n\x05Local\x10\0\x12\x06\n\x02US\x10\x01\x12\x07\n\
|
|
|
- \x03ISO\x10\x02\x12\x0c\n\x08Friendly\x10\x03*0\n\nTimeFormat\x12\x0e\n\
|
|
|
- \nTwelveHour\x10\0\x12\x12\n\x0eTwentyFourHour\x10\x01*(\n\x0bMoneySymbo\
|
|
|
- l\x12\x07\n\x03CNY\x10\0\x12\x07\n\x03EUR\x10\x01\x12\x07\n\x03USD\x10\
|
|
|
- \x02b\x06proto3\
|
|
|
-";
|
|
|
-
|
|
|
-static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|
|
|
-
|
|
|
-fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
|
|
|
- ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
|
-}
|
|
|
-
|
|
|
-pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
|
- file_descriptor_proto_lazy.get(|| {
|
|
|
- parse_descriptor_proto()
|
|
|
- })
|
|
|
-}
|