playlist4issues.rs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. // This file is generated by rust-protobuf 2.8.2. Do not edit
  2. // @generated
  3. // https://github.com/Manishearth/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy::all)]
  6. #![cfg_attr(rustfmt, rustfmt_skip)]
  7. #![allow(box_pointers)]
  8. #![allow(dead_code)]
  9. #![allow(missing_docs)]
  10. #![allow(non_camel_case_types)]
  11. #![allow(non_snake_case)]
  12. #![allow(non_upper_case_globals)]
  13. #![allow(trivial_casts)]
  14. #![allow(unsafe_code)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. //! Generated file from `playlist4issues.proto`
  18. use protobuf::Message as Message_imported_for_functions;
  19. use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
  20. /// Generated files are compatible only with the same version
  21. /// of protobuf runtime.
  22. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_8_2;
  23. #[derive(PartialEq,Clone,Default)]
  24. pub struct ClientIssue {
  25. // message fields
  26. level: ::std::option::Option<ClientIssue_Level>,
  27. code: ::std::option::Option<ClientIssue_Code>,
  28. repeatCount: ::std::option::Option<i32>,
  29. // special fields
  30. pub unknown_fields: ::protobuf::UnknownFields,
  31. pub cached_size: ::protobuf::CachedSize,
  32. }
  33. impl<'a> ::std::default::Default for &'a ClientIssue {
  34. fn default() -> &'a ClientIssue {
  35. <ClientIssue as ::protobuf::Message>::default_instance()
  36. }
  37. }
  38. impl ClientIssue {
  39. pub fn new() -> ClientIssue {
  40. ::std::default::Default::default()
  41. }
  42. // optional .ClientIssue.Level level = 1;
  43. pub fn get_level(&self) -> ClientIssue_Level {
  44. self.level.unwrap_or(ClientIssue_Level::LEVEL_UNKNOWN)
  45. }
  46. pub fn clear_level(&mut self) {
  47. self.level = ::std::option::Option::None;
  48. }
  49. pub fn has_level(&self) -> bool {
  50. self.level.is_some()
  51. }
  52. // Param is passed by value, moved
  53. pub fn set_level(&mut self, v: ClientIssue_Level) {
  54. self.level = ::std::option::Option::Some(v);
  55. }
  56. // optional .ClientIssue.Code code = 2;
  57. pub fn get_code(&self) -> ClientIssue_Code {
  58. self.code.unwrap_or(ClientIssue_Code::CODE_UNKNOWN)
  59. }
  60. pub fn clear_code(&mut self) {
  61. self.code = ::std::option::Option::None;
  62. }
  63. pub fn has_code(&self) -> bool {
  64. self.code.is_some()
  65. }
  66. // Param is passed by value, moved
  67. pub fn set_code(&mut self, v: ClientIssue_Code) {
  68. self.code = ::std::option::Option::Some(v);
  69. }
  70. // optional int32 repeatCount = 3;
  71. pub fn get_repeatCount(&self) -> i32 {
  72. self.repeatCount.unwrap_or(0)
  73. }
  74. pub fn clear_repeatCount(&mut self) {
  75. self.repeatCount = ::std::option::Option::None;
  76. }
  77. pub fn has_repeatCount(&self) -> bool {
  78. self.repeatCount.is_some()
  79. }
  80. // Param is passed by value, moved
  81. pub fn set_repeatCount(&mut self, v: i32) {
  82. self.repeatCount = ::std::option::Option::Some(v);
  83. }
  84. }
  85. impl ::protobuf::Message for ClientIssue {
  86. fn is_initialized(&self) -> bool {
  87. true
  88. }
  89. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  90. while !is.eof()? {
  91. let (field_number, wire_type) = is.read_tag_unpack()?;
  92. match field_number {
  93. 1 => {
  94. ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.level, 1, &mut self.unknown_fields)?
  95. },
  96. 2 => {
  97. ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 2, &mut self.unknown_fields)?
  98. },
  99. 3 => {
  100. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  101. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  102. }
  103. let tmp = is.read_int32()?;
  104. self.repeatCount = ::std::option::Option::Some(tmp);
  105. },
  106. _ => {
  107. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  108. },
  109. };
  110. }
  111. ::std::result::Result::Ok(())
  112. }
  113. // Compute sizes of nested messages
  114. #[allow(unused_variables)]
  115. fn compute_size(&self) -> u32 {
  116. let mut my_size = 0;
  117. if let Some(v) = self.level {
  118. my_size += ::protobuf::rt::enum_size(1, v);
  119. }
  120. if let Some(v) = self.code {
  121. my_size += ::protobuf::rt::enum_size(2, v);
  122. }
  123. if let Some(v) = self.repeatCount {
  124. my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
  125. }
  126. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  127. self.cached_size.set(my_size);
  128. my_size
  129. }
  130. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  131. if let Some(v) = self.level {
  132. os.write_enum(1, v.value())?;
  133. }
  134. if let Some(v) = self.code {
  135. os.write_enum(2, v.value())?;
  136. }
  137. if let Some(v) = self.repeatCount {
  138. os.write_int32(3, v)?;
  139. }
  140. os.write_unknown_fields(self.get_unknown_fields())?;
  141. ::std::result::Result::Ok(())
  142. }
  143. fn get_cached_size(&self) -> u32 {
  144. self.cached_size.get()
  145. }
  146. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  147. &self.unknown_fields
  148. }
  149. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  150. &mut self.unknown_fields
  151. }
  152. fn as_any(&self) -> &dyn (::std::any::Any) {
  153. self as &dyn (::std::any::Any)
  154. }
  155. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  156. self as &mut dyn (::std::any::Any)
  157. }
  158. fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  159. self
  160. }
  161. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  162. Self::descriptor_static()
  163. }
  164. fn new() -> ClientIssue {
  165. ClientIssue::new()
  166. }
  167. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  168. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  169. lock: ::protobuf::lazy::ONCE_INIT,
  170. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  171. };
  172. unsafe {
  173. descriptor.get(|| {
  174. let mut fields = ::std::vec::Vec::new();
  175. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Level>>(
  176. "level",
  177. |m: &ClientIssue| { &m.level },
  178. |m: &mut ClientIssue| { &mut m.level },
  179. ));
  180. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientIssue_Code>>(
  181. "code",
  182. |m: &ClientIssue| { &m.code },
  183. |m: &mut ClientIssue| { &mut m.code },
  184. ));
  185. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  186. "repeatCount",
  187. |m: &ClientIssue| { &m.repeatCount },
  188. |m: &mut ClientIssue| { &mut m.repeatCount },
  189. ));
  190. ::protobuf::reflect::MessageDescriptor::new::<ClientIssue>(
  191. "ClientIssue",
  192. fields,
  193. file_descriptor_proto()
  194. )
  195. })
  196. }
  197. }
  198. fn default_instance() -> &'static ClientIssue {
  199. static mut instance: ::protobuf::lazy::Lazy<ClientIssue> = ::protobuf::lazy::Lazy {
  200. lock: ::protobuf::lazy::ONCE_INIT,
  201. ptr: 0 as *const ClientIssue,
  202. };
  203. unsafe {
  204. instance.get(ClientIssue::new)
  205. }
  206. }
  207. }
  208. impl ::protobuf::Clear for ClientIssue {
  209. fn clear(&mut self) {
  210. self.level = ::std::option::Option::None;
  211. self.code = ::std::option::Option::None;
  212. self.repeatCount = ::std::option::Option::None;
  213. self.unknown_fields.clear();
  214. }
  215. }
  216. impl ::std::fmt::Debug for ClientIssue {
  217. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  218. ::protobuf::text_format::fmt(self, f)
  219. }
  220. }
  221. impl ::protobuf::reflect::ProtobufValue for ClientIssue {
  222. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  223. ::protobuf::reflect::ProtobufValueRef::Message(self)
  224. }
  225. }
  226. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  227. pub enum ClientIssue_Level {
  228. LEVEL_UNKNOWN = 0,
  229. LEVEL_DEBUG = 1,
  230. LEVEL_INFO = 2,
  231. LEVEL_NOTICE = 3,
  232. LEVEL_WARNING = 4,
  233. LEVEL_ERROR = 5,
  234. }
  235. impl ::protobuf::ProtobufEnum for ClientIssue_Level {
  236. fn value(&self) -> i32 {
  237. *self as i32
  238. }
  239. fn from_i32(value: i32) -> ::std::option::Option<ClientIssue_Level> {
  240. match value {
  241. 0 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_UNKNOWN),
  242. 1 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_DEBUG),
  243. 2 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_INFO),
  244. 3 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_NOTICE),
  245. 4 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_WARNING),
  246. 5 => ::std::option::Option::Some(ClientIssue_Level::LEVEL_ERROR),
  247. _ => ::std::option::Option::None
  248. }
  249. }
  250. fn values() -> &'static [Self] {
  251. static values: &'static [ClientIssue_Level] = &[
  252. ClientIssue_Level::LEVEL_UNKNOWN,
  253. ClientIssue_Level::LEVEL_DEBUG,
  254. ClientIssue_Level::LEVEL_INFO,
  255. ClientIssue_Level::LEVEL_NOTICE,
  256. ClientIssue_Level::LEVEL_WARNING,
  257. ClientIssue_Level::LEVEL_ERROR,
  258. ];
  259. values
  260. }
  261. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  262. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  263. lock: ::protobuf::lazy::ONCE_INIT,
  264. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  265. };
  266. unsafe {
  267. descriptor.get(|| {
  268. ::protobuf::reflect::EnumDescriptor::new("ClientIssue_Level", file_descriptor_proto())
  269. })
  270. }
  271. }
  272. }
  273. impl ::std::marker::Copy for ClientIssue_Level {
  274. }
  275. impl ::std::default::Default for ClientIssue_Level {
  276. fn default() -> Self {
  277. ClientIssue_Level::LEVEL_UNKNOWN
  278. }
  279. }
  280. impl ::protobuf::reflect::ProtobufValue for ClientIssue_Level {
  281. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  282. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  283. }
  284. }
  285. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  286. pub enum ClientIssue_Code {
  287. CODE_UNKNOWN = 0,
  288. CODE_INDEX_OUT_OF_BOUNDS = 1,
  289. CODE_VERSION_MISMATCH = 2,
  290. CODE_CACHED_CHANGE = 3,
  291. CODE_OFFLINE_CHANGE = 4,
  292. CODE_CONCURRENT_CHANGE = 5,
  293. }
  294. impl ::protobuf::ProtobufEnum for ClientIssue_Code {
  295. fn value(&self) -> i32 {
  296. *self as i32
  297. }
  298. fn from_i32(value: i32) -> ::std::option::Option<ClientIssue_Code> {
  299. match value {
  300. 0 => ::std::option::Option::Some(ClientIssue_Code::CODE_UNKNOWN),
  301. 1 => ::std::option::Option::Some(ClientIssue_Code::CODE_INDEX_OUT_OF_BOUNDS),
  302. 2 => ::std::option::Option::Some(ClientIssue_Code::CODE_VERSION_MISMATCH),
  303. 3 => ::std::option::Option::Some(ClientIssue_Code::CODE_CACHED_CHANGE),
  304. 4 => ::std::option::Option::Some(ClientIssue_Code::CODE_OFFLINE_CHANGE),
  305. 5 => ::std::option::Option::Some(ClientIssue_Code::CODE_CONCURRENT_CHANGE),
  306. _ => ::std::option::Option::None
  307. }
  308. }
  309. fn values() -> &'static [Self] {
  310. static values: &'static [ClientIssue_Code] = &[
  311. ClientIssue_Code::CODE_UNKNOWN,
  312. ClientIssue_Code::CODE_INDEX_OUT_OF_BOUNDS,
  313. ClientIssue_Code::CODE_VERSION_MISMATCH,
  314. ClientIssue_Code::CODE_CACHED_CHANGE,
  315. ClientIssue_Code::CODE_OFFLINE_CHANGE,
  316. ClientIssue_Code::CODE_CONCURRENT_CHANGE,
  317. ];
  318. values
  319. }
  320. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  321. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  322. lock: ::protobuf::lazy::ONCE_INIT,
  323. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  324. };
  325. unsafe {
  326. descriptor.get(|| {
  327. ::protobuf::reflect::EnumDescriptor::new("ClientIssue_Code", file_descriptor_proto())
  328. })
  329. }
  330. }
  331. }
  332. impl ::std::marker::Copy for ClientIssue_Code {
  333. }
  334. impl ::std::default::Default for ClientIssue_Code {
  335. fn default() -> Self {
  336. ClientIssue_Code::CODE_UNKNOWN
  337. }
  338. }
  339. impl ::protobuf::reflect::ProtobufValue for ClientIssue_Code {
  340. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  341. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  342. }
  343. }
  344. #[derive(PartialEq,Clone,Default)]
  345. pub struct ClientResolveAction {
  346. // message fields
  347. code: ::std::option::Option<ClientResolveAction_Code>,
  348. initiator: ::std::option::Option<ClientResolveAction_Initiator>,
  349. // special fields
  350. pub unknown_fields: ::protobuf::UnknownFields,
  351. pub cached_size: ::protobuf::CachedSize,
  352. }
  353. impl<'a> ::std::default::Default for &'a ClientResolveAction {
  354. fn default() -> &'a ClientResolveAction {
  355. <ClientResolveAction as ::protobuf::Message>::default_instance()
  356. }
  357. }
  358. impl ClientResolveAction {
  359. pub fn new() -> ClientResolveAction {
  360. ::std::default::Default::default()
  361. }
  362. // optional .ClientResolveAction.Code code = 1;
  363. pub fn get_code(&self) -> ClientResolveAction_Code {
  364. self.code.unwrap_or(ClientResolveAction_Code::CODE_UNKNOWN)
  365. }
  366. pub fn clear_code(&mut self) {
  367. self.code = ::std::option::Option::None;
  368. }
  369. pub fn has_code(&self) -> bool {
  370. self.code.is_some()
  371. }
  372. // Param is passed by value, moved
  373. pub fn set_code(&mut self, v: ClientResolveAction_Code) {
  374. self.code = ::std::option::Option::Some(v);
  375. }
  376. // optional .ClientResolveAction.Initiator initiator = 2;
  377. pub fn get_initiator(&self) -> ClientResolveAction_Initiator {
  378. self.initiator.unwrap_or(ClientResolveAction_Initiator::INITIATOR_UNKNOWN)
  379. }
  380. pub fn clear_initiator(&mut self) {
  381. self.initiator = ::std::option::Option::None;
  382. }
  383. pub fn has_initiator(&self) -> bool {
  384. self.initiator.is_some()
  385. }
  386. // Param is passed by value, moved
  387. pub fn set_initiator(&mut self, v: ClientResolveAction_Initiator) {
  388. self.initiator = ::std::option::Option::Some(v);
  389. }
  390. }
  391. impl ::protobuf::Message for ClientResolveAction {
  392. fn is_initialized(&self) -> bool {
  393. true
  394. }
  395. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  396. while !is.eof()? {
  397. let (field_number, wire_type) = is.read_tag_unpack()?;
  398. match field_number {
  399. 1 => {
  400. ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)?
  401. },
  402. 2 => {
  403. ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.initiator, 2, &mut self.unknown_fields)?
  404. },
  405. _ => {
  406. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  407. },
  408. };
  409. }
  410. ::std::result::Result::Ok(())
  411. }
  412. // Compute sizes of nested messages
  413. #[allow(unused_variables)]
  414. fn compute_size(&self) -> u32 {
  415. let mut my_size = 0;
  416. if let Some(v) = self.code {
  417. my_size += ::protobuf::rt::enum_size(1, v);
  418. }
  419. if let Some(v) = self.initiator {
  420. my_size += ::protobuf::rt::enum_size(2, v);
  421. }
  422. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  423. self.cached_size.set(my_size);
  424. my_size
  425. }
  426. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  427. if let Some(v) = self.code {
  428. os.write_enum(1, v.value())?;
  429. }
  430. if let Some(v) = self.initiator {
  431. os.write_enum(2, v.value())?;
  432. }
  433. os.write_unknown_fields(self.get_unknown_fields())?;
  434. ::std::result::Result::Ok(())
  435. }
  436. fn get_cached_size(&self) -> u32 {
  437. self.cached_size.get()
  438. }
  439. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  440. &self.unknown_fields
  441. }
  442. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  443. &mut self.unknown_fields
  444. }
  445. fn as_any(&self) -> &dyn (::std::any::Any) {
  446. self as &dyn (::std::any::Any)
  447. }
  448. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  449. self as &mut dyn (::std::any::Any)
  450. }
  451. fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  452. self
  453. }
  454. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  455. Self::descriptor_static()
  456. }
  457. fn new() -> ClientResolveAction {
  458. ClientResolveAction::new()
  459. }
  460. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  461. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  462. lock: ::protobuf::lazy::ONCE_INIT,
  463. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  464. };
  465. unsafe {
  466. descriptor.get(|| {
  467. let mut fields = ::std::vec::Vec::new();
  468. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Code>>(
  469. "code",
  470. |m: &ClientResolveAction| { &m.code },
  471. |m: &mut ClientResolveAction| { &mut m.code },
  472. ));
  473. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ClientResolveAction_Initiator>>(
  474. "initiator",
  475. |m: &ClientResolveAction| { &m.initiator },
  476. |m: &mut ClientResolveAction| { &mut m.initiator },
  477. ));
  478. ::protobuf::reflect::MessageDescriptor::new::<ClientResolveAction>(
  479. "ClientResolveAction",
  480. fields,
  481. file_descriptor_proto()
  482. )
  483. })
  484. }
  485. }
  486. fn default_instance() -> &'static ClientResolveAction {
  487. static mut instance: ::protobuf::lazy::Lazy<ClientResolveAction> = ::protobuf::lazy::Lazy {
  488. lock: ::protobuf::lazy::ONCE_INIT,
  489. ptr: 0 as *const ClientResolveAction,
  490. };
  491. unsafe {
  492. instance.get(ClientResolveAction::new)
  493. }
  494. }
  495. }
  496. impl ::protobuf::Clear for ClientResolveAction {
  497. fn clear(&mut self) {
  498. self.code = ::std::option::Option::None;
  499. self.initiator = ::std::option::Option::None;
  500. self.unknown_fields.clear();
  501. }
  502. }
  503. impl ::std::fmt::Debug for ClientResolveAction {
  504. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  505. ::protobuf::text_format::fmt(self, f)
  506. }
  507. }
  508. impl ::protobuf::reflect::ProtobufValue for ClientResolveAction {
  509. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  510. ::protobuf::reflect::ProtobufValueRef::Message(self)
  511. }
  512. }
  513. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  514. pub enum ClientResolveAction_Code {
  515. CODE_UNKNOWN = 0,
  516. CODE_NO_ACTION = 1,
  517. CODE_RETRY = 2,
  518. CODE_RELOAD = 3,
  519. CODE_DISCARD_LOCAL_CHANGES = 4,
  520. CODE_SEND_DUMP = 5,
  521. CODE_DISPLAY_ERROR_MESSAGE = 6,
  522. }
  523. impl ::protobuf::ProtobufEnum for ClientResolveAction_Code {
  524. fn value(&self) -> i32 {
  525. *self as i32
  526. }
  527. fn from_i32(value: i32) -> ::std::option::Option<ClientResolveAction_Code> {
  528. match value {
  529. 0 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_UNKNOWN),
  530. 1 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_NO_ACTION),
  531. 2 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_RETRY),
  532. 3 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_RELOAD),
  533. 4 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES),
  534. 5 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_SEND_DUMP),
  535. 6 => ::std::option::Option::Some(ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE),
  536. _ => ::std::option::Option::None
  537. }
  538. }
  539. fn values() -> &'static [Self] {
  540. static values: &'static [ClientResolveAction_Code] = &[
  541. ClientResolveAction_Code::CODE_UNKNOWN,
  542. ClientResolveAction_Code::CODE_NO_ACTION,
  543. ClientResolveAction_Code::CODE_RETRY,
  544. ClientResolveAction_Code::CODE_RELOAD,
  545. ClientResolveAction_Code::CODE_DISCARD_LOCAL_CHANGES,
  546. ClientResolveAction_Code::CODE_SEND_DUMP,
  547. ClientResolveAction_Code::CODE_DISPLAY_ERROR_MESSAGE,
  548. ];
  549. values
  550. }
  551. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  552. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  553. lock: ::protobuf::lazy::ONCE_INIT,
  554. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  555. };
  556. unsafe {
  557. descriptor.get(|| {
  558. ::protobuf::reflect::EnumDescriptor::new("ClientResolveAction_Code", file_descriptor_proto())
  559. })
  560. }
  561. }
  562. }
  563. impl ::std::marker::Copy for ClientResolveAction_Code {
  564. }
  565. impl ::std::default::Default for ClientResolveAction_Code {
  566. fn default() -> Self {
  567. ClientResolveAction_Code::CODE_UNKNOWN
  568. }
  569. }
  570. impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Code {
  571. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  572. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  573. }
  574. }
  575. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  576. pub enum ClientResolveAction_Initiator {
  577. INITIATOR_UNKNOWN = 0,
  578. INITIATOR_SERVER = 1,
  579. INITIATOR_CLIENT = 2,
  580. }
  581. impl ::protobuf::ProtobufEnum for ClientResolveAction_Initiator {
  582. fn value(&self) -> i32 {
  583. *self as i32
  584. }
  585. fn from_i32(value: i32) -> ::std::option::Option<ClientResolveAction_Initiator> {
  586. match value {
  587. 0 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_UNKNOWN),
  588. 1 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_SERVER),
  589. 2 => ::std::option::Option::Some(ClientResolveAction_Initiator::INITIATOR_CLIENT),
  590. _ => ::std::option::Option::None
  591. }
  592. }
  593. fn values() -> &'static [Self] {
  594. static values: &'static [ClientResolveAction_Initiator] = &[
  595. ClientResolveAction_Initiator::INITIATOR_UNKNOWN,
  596. ClientResolveAction_Initiator::INITIATOR_SERVER,
  597. ClientResolveAction_Initiator::INITIATOR_CLIENT,
  598. ];
  599. values
  600. }
  601. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  602. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  603. lock: ::protobuf::lazy::ONCE_INIT,
  604. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  605. };
  606. unsafe {
  607. descriptor.get(|| {
  608. ::protobuf::reflect::EnumDescriptor::new("ClientResolveAction_Initiator", file_descriptor_proto())
  609. })
  610. }
  611. }
  612. }
  613. impl ::std::marker::Copy for ClientResolveAction_Initiator {
  614. }
  615. impl ::std::default::Default for ClientResolveAction_Initiator {
  616. fn default() -> Self {
  617. ClientResolveAction_Initiator::INITIATOR_UNKNOWN
  618. }
  619. }
  620. impl ::protobuf::reflect::ProtobufValue for ClientResolveAction_Initiator {
  621. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  622. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  623. }
  624. }
  625. static file_descriptor_proto_data: &'static [u8] = b"\
  626. \n\x15playlist4issues.proto\x12\0\"\x86\x03\n\x0bClientIssue\x12#\n\x05l\
  627. evel\x18\x01\x20\x01(\x0e2\x12.ClientIssue.LevelB\0\x12!\n\x04code\x18\
  628. \x02\x20\x01(\x0e2\x11.ClientIssue.CodeB\0\x12\x15\n\x0brepeatCount\x18\
  629. \x03\x20\x01(\x05B\0\"s\n\x05Level\x12\x11\n\rLEVEL_UNKNOWN\x10\0\x12\
  630. \x0f\n\x0bLEVEL_DEBUG\x10\x01\x12\x0e\n\nLEVEL_INFO\x10\x02\x12\x10\n\
  631. \x0cLEVEL_NOTICE\x10\x03\x12\x11\n\rLEVEL_WARNING\x10\x04\x12\x0f\n\x0bL\
  632. EVEL_ERROR\x10\x05\x1a\0\"\xa0\x01\n\x04Code\x12\x10\n\x0cCODE_UNKNOWN\
  633. \x10\0\x12\x1c\n\x18CODE_INDEX_OUT_OF_BOUNDS\x10\x01\x12\x19\n\x15CODE_V\
  634. ERSION_MISMATCH\x10\x02\x12\x16\n\x12CODE_CACHED_CHANGE\x10\x03\x12\x17\
  635. \n\x13CODE_OFFLINE_CHANGE\x10\x04\x12\x1a\n\x16CODE_CONCURRENT_CHANGE\
  636. \x10\x05\x1a\0:\0\"\xef\x02\n\x13ClientResolveAction\x12)\n\x04code\x18\
  637. \x01\x20\x01(\x0e2\x19.ClientResolveAction.CodeB\0\x123\n\tinitiator\x18\
  638. \x02\x20\x01(\x0e2\x1e.ClientResolveAction.InitiatorB\0\"\xa3\x01\n\x04C\
  639. ode\x12\x10\n\x0cCODE_UNKNOWN\x10\0\x12\x12\n\x0eCODE_NO_ACTION\x10\x01\
  640. \x12\x0e\n\nCODE_RETRY\x10\x02\x12\x0f\n\x0bCODE_RELOAD\x10\x03\x12\x1e\
  641. \n\x1aCODE_DISCARD_LOCAL_CHANGES\x10\x04\x12\x12\n\x0eCODE_SEND_DUMP\x10\
  642. \x05\x12\x1e\n\x1aCODE_DISPLAY_ERROR_MESSAGE\x10\x06\x1a\0\"P\n\tInitiat\
  643. or\x12\x15\n\x11INITIATOR_UNKNOWN\x10\0\x12\x14\n\x10INITIATOR_SERVER\
  644. \x10\x01\x12\x14\n\x10INITIATOR_CLIENT\x10\x02\x1a\0:\0B\0b\x06proto2\
  645. ";
  646. static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
  647. lock: ::protobuf::lazy::ONCE_INIT,
  648. ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
  649. };
  650. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  651. ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
  652. }
  653. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  654. unsafe {
  655. file_descriptor_proto_lazy.get(|| {
  656. parse_descriptor_proto()
  657. })
  658. }
  659. }