123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761 |
- // This file is generated by rust-protobuf 2.8.2. Do not edit
- // @generated
- // https://github.com/Manishearth/rust-clippy/issues/702
- #![allow(unknown_lints)]
- #![allow(clippy::all)]
- #![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(unsafe_code)]
- #![allow(unused_imports)]
- #![allow(unused_results)]
- //! Generated file from `playlist4issues.proto`
- use protobuf::Message as Message_imported_for_functions;
- use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
- /// Generated files are compatible only with the same version
- /// of protobuf runtime.
- const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_8_2;
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientIssue {
- // message fields
- level: ::std::option::Option<ClientIssue_Level>,
- code: ::std::option::Option<ClientIssue_Code>,
- repeatCount: ::std::option::Option<i32>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a ClientIssue {
- fn default() -> &'a ClientIssue {
- <ClientIssue as ::protobuf::Message>::default_instance()
- }
- }
- impl ClientIssue {
- pub fn new() -> ClientIssue {
- ::std::default::Default::default()
- }
- // optional .ClientIssue.Level level = 1;
- pub fn get_level(&self) -> ClientIssue_Level {
- self.level.unwrap_or(ClientIssue_Level::LEVEL_UNKNOWN)
- }
- pub fn clear_level(&mut self) {
- self.level = ::std::option::Option::None;
- }
- pub fn has_level(&self) -> bool {
- self.level.is_some()
- }
- // Param is passed by value, moved
- pub fn set_level(&mut self, v: ClientIssue_Level) {
- self.level = ::std::option::Option::Some(v);
- }
- // optional .ClientIssue.Code code = 2;
- pub fn get_code(&self) -> ClientIssue_Code {
- self.code.unwrap_or(ClientIssue_Code::CODE_UNKNOWN)
- }
- pub fn clear_code(&mut self) {
- self.code = ::std::option::Option::None;
- }
- pub fn has_code(&self) -> bool {
- self.code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_code(&mut self, v: ClientIssue_Code) {
- self.code = ::std::option::Option::Some(v);
- }
- // optional int32 repeatCount = 3;
- pub fn get_repeatCount(&self) -> i32 {
- self.repeatCount.unwrap_or(0)
- }
- pub fn clear_repeatCount(&mut self) {
- self.repeatCount = ::std::option::Option::None;
- }
- pub fn has_repeatCount(&self) -> bool {
- self.repeatCount.is_some()
- }
- // Param is passed by value, moved
- pub fn set_repeatCount(&mut self, v: i32) {
- self.repeatCount = ::std::option::Option::Some(v);
- }
- }
- impl ::protobuf::Message for ClientIssue {
- 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_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.level, 1, &mut self.unknown_fields)?
- },
- 2 => {
- ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 2, &mut self.unknown_fields)?
- },
- 3 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.repeatCount = ::std::option::Option::Some(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 let Some(v) = self.level {
- my_size += ::protobuf::rt::enum_size(1, v);
- }
- if let Some(v) = self.code {
- my_size += ::protobuf::rt::enum_size(2, v);
- }
- if let Some(v) = self.repeatCount {
- my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
- }
- 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 let Some(v) = self.level {
- os.write_enum(1, v.value())?;
- }
- if let Some(v) = self.code {
- os.write_enum(2, v.value())?;
- }
- if let Some(v) = self.repeatCount {
- os.write_int32(3, v)?;
- }
- 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: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ClientIssue {
- ClientIssue::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>>(
- "level",
- |m: &ClientIssue| { &m.level },
- |m: &mut ClientIssue| { &mut m.level },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>>(
- "code",
- |m: &ClientIssue| { &m.code },
- |m: &mut ClientIssue| { &mut m.code },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "repeatCount",
- |m: &ClientIssue| { &m.repeatCount },
- |m: &mut ClientIssue| { &mut m.repeatCount },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientIssue>(
- "ClientIssue",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ClientIssue {
- static mut instance: ::protobuf::lazy::Lazy<ClientIssue> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientIssue,
- };
- unsafe {
- instance.get(ClientIssue::new)
- }
- }
- }
- impl ::protobuf::Clear for ClientIssue {
- fn clear(&mut self) {
- self.level = ::std::option::Option::None;
- self.code = ::std::option::Option::None;
- self.repeatCount = ::std::option::Option::None;
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientIssue {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientIssue {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ClientIssue_Level {
- LEVEL_UNKNOWN = 0,
- LEVEL_DEBUG = 1,
- LEVEL_INFO = 2,
- LEVEL_NOTICE = 3,
- LEVEL_WARNING = 4,
- LEVEL_ERROR = 5,
- }
- impl ::protobuf::ProtobufEnum for ClientIssue_Level {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ClientIssue_Level> {
- match value {
- 0 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_UNKNOWN),
- 1 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_DEBUG),
- 2 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_INFO),
- 3 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_NOTICE),
- 4 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_WARNING),
- 5 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_ERROR),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ClientIssue_Level] = &[
- ClientIssue_Level::LEVEL_UNKNOWN,
- ClientIssue_Level::LEVEL_DEBUG,
- ClientIssue_Level::LEVEL_INFO,
- ClientIssue_Level::LEVEL_NOTICE,
- ClientIssue_Level::LEVEL_WARNING,
- ClientIssue_Level::LEVEL_ERROR,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ClientIssue_Level", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ClientIssue_Level {
- }
- impl ::std::default::Default for ClientIssue_Level {
- fn default() -> Self {
- ClientIssue_Level::LEVEL_UNKNOWN
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientIssue_Level {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ClientIssue_Code {
- CODE_UNKNOWN = 0,
- CODE_INDEX_OUT_OF_BOUNDS = 1,
- CODE_VERSION_MISMATCH = 2,
- CODE_CACHED_CHANGE = 3,
- CODE_OFFLINE_CHANGE = 4,
- CODE_CONCURRENT_CHANGE = 5,
- }
- impl ::protobuf::ProtobufEnum for ClientIssue_Code {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ClientIssue_Code> {
- match value {
- 0 => ::std::option::Option::Some(ClientIssue_Code::CODE_UNKNOWN),
- 1 => ::std::option::Option::Some(ClientIssue_Code::CODE_INDEX_OUT_OF_BOUNDS),
- 2 => ::std::option::Option::Some(ClientIssue_Code::CODE_VERSION_MISMATCH),
- 3 => ::std::option::Option::Some(ClientIssue_Code::CODE_CACHED_CHANGE),
- 4 => ::std::option::Option::Some(ClientIssue_Code::CODE_OFFLINE_CHANGE),
- 5 => ::std::option::Option::Some(ClientIssue_Code::CODE_CONCURRENT_CHANGE),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ClientIssue_Code] = &[
- ClientIssue_Code::CODE_UNKNOWN,
- ClientIssue_Code::CODE_INDEX_OUT_OF_BOUNDS,
- ClientIssue_Code::CODE_VERSION_MISMATCH,
- ClientIssue_Code::CODE_CACHED_CHANGE,
- ClientIssue_Code::CODE_OFFLINE_CHANGE,
- ClientIssue_Code::CODE_CONCURRENT_CHANGE,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ClientIssue_Code", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ClientIssue_Code {
- }
- impl ::std::default::Default for ClientIssue_Code {
- fn default() -> Self {
- ClientIssue_Code::CODE_UNKNOWN
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientIssue_Code {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientResolveAction {
- // message fields
- code: ::std::option::Option<ClientResolveAction_Code>,
- initiator: ::std::option::Option<ClientResolveAction_Initiator>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a ClientResolveAction {
- fn default() -> &'a ClientResolveAction {
- <ClientResolveAction as ::protobuf::Message>::default_instance()
- }
- }
- impl ClientResolveAction {
- pub fn new() -> ClientResolveAction {
- ::std::default::Default::default()
- }
- // optional .ClientResolveAction.Code code = 1;
- pub fn get_code(&self) -> ClientResolveAction_Code {
- self.code.unwrap_or(ClientResolveAction_Code::CODE_UNKNOWN)
- }
- pub fn clear_code(&mut self) {
- self.code = ::std::option::Option::None;
- }
- pub fn has_code(&self) -> bool {
- self.code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_code(&mut self, v: ClientResolveAction_Code) {
- self.code = ::std::option::Option::Some(v);
- }
- // optional .ClientResolveAction.Initiator initiator = 2;
- pub fn get_initiator(&self) -> ClientResolveAction_Initiator {
- self.initiator.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN)
- }
- pub fn clear_initiator(&mut self) {
- self.initiator = ::std::option::Option::None;
- }
- pub fn has_initiator(&self) -> bool {
- self.initiator.is_some()
- }
- // Param is passed by value, moved
- pub fn set_initiator(&mut self, v: ClientResolveAction_Initiator) {
- self.initiator = ::std::option::Option::Some(v);
- }
- }
- impl ::protobuf::Message for ClientResolveAction {
- 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_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)?
- },
- 2 => {
- ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.initiator, 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 let Some(v) = self.code {
- my_size += ::protobuf::rt::enum_size(1, v);
- }
- if let Some(v) = self.initiator {
- my_size += ::protobuf::rt::enum_size(2, v);
- }
- 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 let Some(v) = self.code {
- os.write_enum(1, v.value())?;
- }
- if let Some(v) = self.initiator {
- os.write_enum(2, v.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) -> &::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: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ClientResolveAction {
- ClientResolveAction::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>>(
- "code",
- |m: &ClientResolveAction| { &m.code },
- |m: &mut ClientResolveAction| { &mut m.code },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>>(
- "initiator",
- |m: &ClientResolveAction| { &m.initiator },
- |m: &mut ClientResolveAction| { &mut m.initiator },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientResolveAction>(
- "ClientResolveAction",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ClientResolveAction {
- static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientResolveAction,
- };
- unsafe {
- instance.get(ClientResolveAction::new)
- }
- }
- }
- impl ::protobuf::Clear for ClientResolveAction {
- fn clear(&mut self) {
- self.code = ::std::option::Option::None;
- self.initiator = ::std::option::Option::None;
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientResolveAction {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientResolveAction {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ClientResolveAction_Code {
- CODE_UNKNOWN = 0,
- CODE_NO_ACTION = 1,
- CODE_RETRY = 2,
- CODE_RELOAD = 3,
- CODE_DISCARD_LOCAL_CHANGES = 4,
- CODE_SEND_DUMP = 5,
- CODE_DISPLAY_ERROR_MESSAGE = 6,
- }
- impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ClientResolveAction_Code> {
- match value {
- 0 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_UNKNOWN),
- 1 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_NO_ACTION),
- 2 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_RETRY),
- 3 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_RELOAD),
- 4 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES),
- 5 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_SEND_DUMP),
- 6 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ClientResolveAction_Code] = &[
- ClientResolveAction_Code::CODE_UNKNOWN,
- ClientResolveAction_Code::CODE_NO_ACTION,
- ClientResolveAction_Code::CODE_RETRY,
- ClientResolveAction_Code::CODE_RELOAD,
- ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES,
- ClientResolveAction_Code::CODE_SEND_DUMP,
- ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ClientResolveAction_Code", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ClientResolveAction_Code {
- }
- impl ::std::default::Default for ClientResolveAction_Code {
- fn default() -> Self {
- ClientResolveAction_Code::CODE_UNKNOWN
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Code {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ClientResolveAction_Initiator {
- INITIATOR_UNKNOWN = 0,
- INITIATOR_SERVER = 1,
- INITIATOR_CLIENT = 2,
- }
- impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ClientResolveAction_Initiator> {
- match value {
- 0 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_UNKNOWN),
- 1 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_SERVER),
- 2 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_CLIENT),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ClientResolveAction_Initiator] = &[
- ClientResolveAction_Initiator::INITIATOR_UNKNOWN,
- ClientResolveAction_Initiator::INITIATOR_SERVER,
- ClientResolveAction_Initiator::INITIATOR_CLIENT,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ClientResolveAction_Initiator", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ClientResolveAction_Initiator {
- }
- impl ::std::default::Default for ClientResolveAction_Initiator {
- fn default() -> Self {
- ClientResolveAction_Initiator::INITIATOR_UNKNOWN
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Initiator {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x15playlist4issues.proto\x12\0\"\x86\x03\n\x0bClientIssue\x12#\n\x05l\
- evel\x18\x01\x20\x01(\x0e2\x12.ClientIssue.LevelB\0\x12!\n\x04code\x18\
- \x02\x20\x01(\x0e2\x11.ClientIssue.CodeB\0\x12\x15\n\x0brepeatCount\x18\
- \x03\x20\x01(\x05B\0\"s\n\x05Level\x12\x11\n\rLEVEL_UNKNOWN\x10\0\x12\
- \x0f\n\x0bLEVEL_DEBUG\x10\x01\x12\x0e\n\nLEVEL_INFO\x10\x02\x12\x10\n\
- \x0cLEVEL_NOTICE\x10\x03\x12\x11\n\rLEVEL_WARNING\x10\x04\x12\x0f\n\x0bL\
- EVEL_ERROR\x10\x05\x1a\0\"\xa0\x01\n\x04Code\x12\x10\n\x0cCODE_UNKNOWN\
- \x10\0\x12\x1c\n\x18CODE_INDEX_OUT_OF_BOUNDS\x10\x01\x12\x19\n\x15CODE_V\
- ERSION_MISMATCH\x10\x02\x12\x16\n\x12CODE_CACHED_CHANGE\x10\x03\x12\x17\
- \n\x13CODE_OFFLINE_CHANGE\x10\x04\x12\x1a\n\x16CODE_CONCURRENT_CHANGE\
- \x10\x05\x1a\0:\0\"\xef\x02\n\x13ClientResolveAction\x12)\n\x04code\x18\
- \x01\x20\x01(\x0e2\x19.ClientResolveAction.CodeB\0\x123\n\tinitiator\x18\
- \x02\x20\x01(\x0e2\x1e.ClientResolveAction.InitiatorB\0\"\xa3\x01\n\x04C\
- ode\x12\x10\n\x0cCODE_UNKNOWN\x10\0\x12\x12\n\x0eCODE_NO_ACTION\x10\x01\
- \x12\x0e\n\nCODE_RETRY\x10\x02\x12\x0f\n\x0bCODE_RELOAD\x10\x03\x12\x1e\
- \n\x1aCODE_DISCARD_LOCAL_CHANGES\x10\x04\x12\x12\n\x0eCODE_SEND_DUMP\x10\
- \x05\x12\x1e\n\x1aCODE_DISPLAY_ERROR_MESSAGE\x10\x06\x1a\0\"P\n\tInitiat\
- or\x12\x15\n\x11INITIATOR_UNKNOWN\x10\0\x12\x14\n\x10INITIATOR_SERVER\
- \x10\x01\x12\x14\n\x10INITIATOR_CLIENT\x10\x02\x1a\0:\0B\0b\x06proto2\
- ";
- static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
- };
- fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
- ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
- }
- pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
- unsafe {
- file_descriptor_proto_lazy.get(|| {
- parse_descriptor_proto()
- })
- }
- }
|