playlist4issues.rs 26 KB

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