123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715 |
- // 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 `user_setting.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 UserPreferences {
- // message fields
- pub user_id: ::std::string::String,
- pub appearance_setting: ::protobuf::SingularPtrField<AppearanceSettings>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a UserPreferences {
- fn default() -> &'a UserPreferences {
- <UserPreferences as ::protobuf::Message>::default_instance()
- }
- }
- impl UserPreferences {
- pub fn new() -> UserPreferences {
- ::std::default::Default::default()
- }
- // string user_id = 1;
- pub fn get_user_id(&self) -> &str {
- &self.user_id
- }
- pub fn clear_user_id(&mut self) {
- self.user_id.clear();
- }
- // Param is passed by value, moved
- pub fn set_user_id(&mut self, v: ::std::string::String) {
- self.user_id = v;
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_user_id(&mut self) -> &mut ::std::string::String {
- &mut self.user_id
- }
- // Take field
- pub fn take_user_id(&mut self) -> ::std::string::String {
- ::std::mem::replace(&mut self.user_id, ::std::string::String::new())
- }
- // .AppearanceSettings appearance_setting = 2;
- pub fn get_appearance_setting(&self) -> &AppearanceSettings {
- self.appearance_setting.as_ref().unwrap_or_else(|| <AppearanceSettings as ::protobuf::Message>::default_instance())
- }
- pub fn clear_appearance_setting(&mut self) {
- self.appearance_setting.clear();
- }
- pub fn has_appearance_setting(&self) -> bool {
- self.appearance_setting.is_some()
- }
- // Param is passed by value, moved
- pub fn set_appearance_setting(&mut self, v: AppearanceSettings) {
- self.appearance_setting = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_appearance_setting(&mut self) -> &mut AppearanceSettings {
- if self.appearance_setting.is_none() {
- self.appearance_setting.set_default();
- }
- self.appearance_setting.as_mut().unwrap()
- }
- // Take field
- pub fn take_appearance_setting(&mut self) -> AppearanceSettings {
- self.appearance_setting.take().unwrap_or_else(|| AppearanceSettings::new())
- }
- }
- impl ::protobuf::Message for UserPreferences {
- fn is_initialized(&self) -> bool {
- for v in &self.appearance_setting {
- 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_singular_proto3_string_into(wire_type, is, &mut self.user_id)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.appearance_setting)?;
- },
- _ => {
- ::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.user_id.is_empty() {
- my_size += ::protobuf::rt::string_size(1, &self.user_id);
- }
- if let Some(ref v) = self.appearance_setting.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- 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.user_id.is_empty() {
- os.write_string(1, &self.user_id)?;
- }
- if let Some(ref v) = self.appearance_setting.as_ref() {
- os.write_tag(2, ::protobuf::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) -> &::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() -> UserPreferences {
- UserPreferences::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>(
- "user_id",
- |m: &UserPreferences| { &m.user_id },
- |m: &mut UserPreferences| { &mut m.user_id },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AppearanceSettings>>(
- "appearance_setting",
- |m: &UserPreferences| { &m.appearance_setting },
- |m: &mut UserPreferences| { &mut m.appearance_setting },
- ));
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<UserPreferences>(
- "UserPreferences",
- fields,
- file_descriptor_proto()
- )
- })
- }
- fn default_instance() -> &'static UserPreferences {
- static instance: ::protobuf::rt::LazyV2<UserPreferences> = ::protobuf::rt::LazyV2::INIT;
- instance.get(UserPreferences::new)
- }
- }
- impl ::protobuf::Clear for UserPreferences {
- fn clear(&mut self) {
- self.user_id.clear();
- self.appearance_setting.clear();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for UserPreferences {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for UserPreferences {
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
- ::protobuf::reflect::ReflectValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct AppearanceSettings {
- // message fields
- pub theme: ::std::string::String,
- pub locale: ::protobuf::SingularPtrField<LocaleSettings>,
- pub reset_as_default: bool,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a AppearanceSettings {
- fn default() -> &'a AppearanceSettings {
- <AppearanceSettings as ::protobuf::Message>::default_instance()
- }
- }
- impl AppearanceSettings {
- pub fn new() -> AppearanceSettings {
- ::std::default::Default::default()
- }
- // string theme = 1;
- pub fn get_theme(&self) -> &str {
- &self.theme
- }
- pub fn clear_theme(&mut self) {
- self.theme.clear();
- }
- // Param is passed by value, moved
- pub fn set_theme(&mut self, v: ::std::string::String) {
- self.theme = v;
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_theme(&mut self) -> &mut ::std::string::String {
- &mut self.theme
- }
- // Take field
- pub fn take_theme(&mut self) -> ::std::string::String {
- ::std::mem::replace(&mut self.theme, ::std::string::String::new())
- }
- // .LocaleSettings locale = 2;
- pub fn get_locale(&self) -> &LocaleSettings {
- self.locale.as_ref().unwrap_or_else(|| <LocaleSettings as ::protobuf::Message>::default_instance())
- }
- pub fn clear_locale(&mut self) {
- self.locale.clear();
- }
- pub fn has_locale(&self) -> bool {
- self.locale.is_some()
- }
- // Param is passed by value, moved
- pub fn set_locale(&mut self, v: LocaleSettings) {
- self.locale = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_locale(&mut self) -> &mut LocaleSettings {
- if self.locale.is_none() {
- self.locale.set_default();
- }
- self.locale.as_mut().unwrap()
- }
- // Take field
- pub fn take_locale(&mut self) -> LocaleSettings {
- self.locale.take().unwrap_or_else(|| LocaleSettings::new())
- }
- // bool reset_as_default = 3;
- pub fn get_reset_as_default(&self) -> bool {
- self.reset_as_default
- }
- pub fn clear_reset_as_default(&mut self) {
- self.reset_as_default = false;
- }
- // Param is passed by value, moved
- pub fn set_reset_as_default(&mut self, v: bool) {
- self.reset_as_default = v;
- }
- }
- impl ::protobuf::Message for AppearanceSettings {
- fn is_initialized(&self) -> bool {
- for v in &self.locale {
- 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_singular_proto3_string_into(wire_type, is, &mut self.theme)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.locale)?;
- },
- 3 => {
- 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.reset_as_default = 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.theme.is_empty() {
- my_size += ::protobuf::rt::string_size(1, &self.theme);
- }
- if let Some(ref v) = self.locale.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if self.reset_as_default != 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.theme.is_empty() {
- os.write_string(1, &self.theme)?;
- }
- if let Some(ref v) = self.locale.as_ref() {
- os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if self.reset_as_default != false {
- os.write_bool(3, self.reset_as_default)?;
- }
- 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() -> AppearanceSettings {
- AppearanceSettings::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>(
- "theme",
- |m: &AppearanceSettings| { &m.theme },
- |m: &mut AppearanceSettings| { &mut m.theme },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LocaleSettings>>(
- "locale",
- |m: &AppearanceSettings| { &m.locale },
- |m: &mut AppearanceSettings| { &mut m.locale },
- ));
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "reset_as_default",
- |m: &AppearanceSettings| { &m.reset_as_default },
- |m: &mut AppearanceSettings| { &mut m.reset_as_default },
- ));
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<AppearanceSettings>(
- "AppearanceSettings",
- fields,
- file_descriptor_proto()
- )
- })
- }
- fn default_instance() -> &'static AppearanceSettings {
- static instance: ::protobuf::rt::LazyV2<AppearanceSettings> = ::protobuf::rt::LazyV2::INIT;
- instance.get(AppearanceSettings::new)
- }
- }
- impl ::protobuf::Clear for AppearanceSettings {
- fn clear(&mut self) {
- self.theme.clear();
- self.locale.clear();
- self.reset_as_default = false;
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for AppearanceSettings {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for AppearanceSettings {
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
- ::protobuf::reflect::ReflectValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LocaleSettings {
- // message fields
- pub language_code: ::std::string::String,
- pub country_code: ::std::string::String,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a LocaleSettings {
- fn default() -> &'a LocaleSettings {
- <LocaleSettings as ::protobuf::Message>::default_instance()
- }
- }
- impl LocaleSettings {
- pub fn new() -> LocaleSettings {
- ::std::default::Default::default()
- }
- // string language_code = 1;
- pub fn get_language_code(&self) -> &str {
- &self.language_code
- }
- pub fn clear_language_code(&mut self) {
- self.language_code.clear();
- }
- // Param is passed by value, moved
- pub fn set_language_code(&mut self, v: ::std::string::String) {
- self.language_code = v;
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_language_code(&mut self) -> &mut ::std::string::String {
- &mut self.language_code
- }
- // Take field
- pub fn take_language_code(&mut self) -> ::std::string::String {
- ::std::mem::replace(&mut self.language_code, ::std::string::String::new())
- }
- // string country_code = 2;
- pub fn get_country_code(&self) -> &str {
- &self.country_code
- }
- pub fn clear_country_code(&mut self) {
- self.country_code.clear();
- }
- // Param is passed by value, moved
- pub fn set_country_code(&mut self, v: ::std::string::String) {
- self.country_code = v;
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_country_code(&mut self) -> &mut ::std::string::String {
- &mut self.country_code
- }
- // Take field
- pub fn take_country_code(&mut self) -> ::std::string::String {
- ::std::mem::replace(&mut self.country_code, ::std::string::String::new())
- }
- }
- impl ::protobuf::Message for LocaleSettings {
- 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.language_code)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.country_code)?;
- },
- _ => {
- ::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.language_code.is_empty() {
- my_size += ::protobuf::rt::string_size(1, &self.language_code);
- }
- if !self.country_code.is_empty() {
- my_size += ::protobuf::rt::string_size(2, &self.country_code);
- }
- 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.language_code.is_empty() {
- os.write_string(1, &self.language_code)?;
- }
- if !self.country_code.is_empty() {
- os.write_string(2, &self.country_code)?;
- }
- 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() -> LocaleSettings {
- LocaleSettings::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>(
- "language_code",
- |m: &LocaleSettings| { &m.language_code },
- |m: &mut LocaleSettings| { &mut m.language_code },
- ));
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "country_code",
- |m: &LocaleSettings| { &m.country_code },
- |m: &mut LocaleSettings| { &mut m.country_code },
- ));
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<LocaleSettings>(
- "LocaleSettings",
- fields,
- file_descriptor_proto()
- )
- })
- }
- fn default_instance() -> &'static LocaleSettings {
- static instance: ::protobuf::rt::LazyV2<LocaleSettings> = ::protobuf::rt::LazyV2::INIT;
- instance.get(LocaleSettings::new)
- }
- }
- impl ::protobuf::Clear for LocaleSettings {
- fn clear(&mut self) {
- self.language_code.clear();
- self.country_code.clear();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LocaleSettings {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LocaleSettings {
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
- ::protobuf::reflect::ReflectValueRef::Message(self)
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x12user_setting.proto\"n\n\x0fUserPreferences\x12\x17\n\x07user_id\
- \x18\x01\x20\x01(\tR\x06userId\x12B\n\x12appearance_setting\x18\x02\x20\
- \x01(\x0b2\x13.AppearanceSettingsR\x11appearanceSetting\"}\n\x12Appearan\
- ceSettings\x12\x14\n\x05theme\x18\x01\x20\x01(\tR\x05theme\x12'\n\x06loc\
- ale\x18\x02\x20\x01(\x0b2\x0f.LocaleSettingsR\x06locale\x12(\n\x10reset_\
- as_default\x18\x03\x20\x01(\x08R\x0eresetAsDefault\"X\n\x0eLocaleSetting\
- s\x12#\n\rlanguage_code\x18\x01\x20\x01(\tR\x0clanguageCode\x12!\n\x0cco\
- untry_code\x18\x02\x20\x01(\tR\x0bcountryCodeb\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()
- })
- }
|