12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457 |
- // This file is generated by rust-protobuf 2.8.1. 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 `playlist4content.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_1;
- #[derive(PartialEq,Clone,Default)]
- pub struct Item {
- // message fields
- uri: ::protobuf::SingularField<::std::string::String>,
- attributes: ::protobuf::SingularPtrField<super::playlist4meta::ItemAttributes>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a Item {
- fn default() -> &'a Item {
- <Item as ::protobuf::Message>::default_instance()
- }
- }
- impl Item {
- pub fn new() -> Item {
- ::std::default::Default::default()
- }
- // optional string uri = 1;
- pub fn get_uri(&self) -> &str {
- match self.uri.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- pub fn clear_uri(&mut self) {
- self.uri.clear();
- }
- pub fn has_uri(&self) -> bool {
- self.uri.is_some()
- }
- // Param is passed by value, moved
- pub fn set_uri(&mut self, v: ::std::string::String) {
- self.uri = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_uri(&mut self) -> &mut ::std::string::String {
- if self.uri.is_none() {
- self.uri.set_default();
- }
- self.uri.as_mut().unwrap()
- }
- // Take field
- pub fn take_uri(&mut self) -> ::std::string::String {
- self.uri.take().unwrap_or_else(|| ::std::string::String::new())
- }
- // optional .ItemAttributes attributes = 2;
- pub fn get_attributes(&self) -> &super::playlist4meta::ItemAttributes {
- self.attributes.as_ref().unwrap_or_else(|| super::playlist4meta::ItemAttributes::default_instance())
- }
- pub fn clear_attributes(&mut self) {
- self.attributes.clear();
- }
- pub fn has_attributes(&self) -> bool {
- self.attributes.is_some()
- }
- // Param is passed by value, moved
- pub fn set_attributes(&mut self, v: super::playlist4meta::ItemAttributes) {
- self.attributes = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_attributes(&mut self) -> &mut super::playlist4meta::ItemAttributes {
- if self.attributes.is_none() {
- self.attributes.set_default();
- }
- self.attributes.as_mut().unwrap()
- }
- // Take field
- pub fn take_attributes(&mut self) -> super::playlist4meta::ItemAttributes {
- self.attributes.take().unwrap_or_else(|| super::playlist4meta::ItemAttributes::new())
- }
- }
- impl ::protobuf::Message for Item {
- fn is_initialized(&self) -> bool {
- for v in &self.attributes {
- 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_string_into(wire_type, is, &mut self.uri)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.attributes)?;
- },
- _ => {
- ::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(ref v) = self.uri.as_ref() {
- my_size += ::protobuf::rt::string_size(1, &v);
- }
- if let Some(ref v) = self.attributes.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 let Some(ref v) = self.uri.as_ref() {
- os.write_string(1, &v)?;
- }
- if let Some(ref v) = self.attributes.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: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> Item {
- Item::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_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "uri",
- |m: &Item| { &m.uri },
- |m: &mut Item| { &mut m.uri },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::playlist4meta::ItemAttributes>>(
- "attributes",
- |m: &Item| { &m.attributes },
- |m: &mut Item| { &mut m.attributes },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<Item>(
- "Item",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static Item {
- static mut instance: ::protobuf::lazy::Lazy<Item> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const Item,
- };
- unsafe {
- instance.get(Item::new)
- }
- }
- }
- impl ::protobuf::Clear for Item {
- fn clear(&mut self) {
- self.uri.clear();
- self.attributes.clear();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for Item {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for Item {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ListItems {
- // message fields
- pos: ::std::option::Option<i32>,
- truncated: ::std::option::Option<bool>,
- items: ::protobuf::RepeatedField<Item>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a ListItems {
- fn default() -> &'a ListItems {
- <ListItems as ::protobuf::Message>::default_instance()
- }
- }
- impl ListItems {
- pub fn new() -> ListItems {
- ::std::default::Default::default()
- }
- // optional int32 pos = 1;
- pub fn get_pos(&self) -> i32 {
- self.pos.unwrap_or(0)
- }
- pub fn clear_pos(&mut self) {
- self.pos = ::std::option::Option::None;
- }
- pub fn has_pos(&self) -> bool {
- self.pos.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pos(&mut self, v: i32) {
- self.pos = ::std::option::Option::Some(v);
- }
- // optional bool truncated = 2;
- pub fn get_truncated(&self) -> bool {
- self.truncated.unwrap_or(false)
- }
- pub fn clear_truncated(&mut self) {
- self.truncated = ::std::option::Option::None;
- }
- pub fn has_truncated(&self) -> bool {
- self.truncated.is_some()
- }
- // Param is passed by value, moved
- pub fn set_truncated(&mut self, v: bool) {
- self.truncated = ::std::option::Option::Some(v);
- }
- // repeated .Item items = 3;
- pub fn get_items(&self) -> &[Item] {
- &self.items
- }
- pub fn clear_items(&mut self) {
- self.items.clear();
- }
- // Param is passed by value, moved
- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Item>) {
- self.items = v;
- }
- // Mutable pointer to the field.
- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Item> {
- &mut self.items
- }
- // Take field
- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Item> {
- ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())
- }
- }
- impl ::protobuf::Message for ListItems {
- fn is_initialized(&self) -> bool {
- for v in &self.items {
- 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 => {
- 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.pos = ::std::option::Option::Some(tmp);
- },
- 2 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.truncated = ::std::option::Option::Some(tmp);
- },
- 3 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;
- },
- _ => {
- ::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.pos {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.truncated {
- my_size += 2;
- }
- for value in &self.items {
- let len = value.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 let Some(v) = self.pos {
- os.write_int32(1, v)?;
- }
- if let Some(v) = self.truncated {
- os.write_bool(2, v)?;
- }
- for v in &self.items {
- os.write_tag(3, ::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: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ListItems {
- ListItems::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::ProtobufTypeInt32>(
- "pos",
- |m: &ListItems| { &m.pos },
- |m: &mut ListItems| { &mut m.pos },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "truncated",
- |m: &ListItems| { &m.truncated },
- |m: &mut ListItems| { &mut m.truncated },
- ));
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Item>>(
- "items",
- |m: &ListItems| { &m.items },
- |m: &mut ListItems| { &mut m.items },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ListItems>(
- "ListItems",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ListItems {
- static mut instance: ::protobuf::lazy::Lazy<ListItems> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ListItems,
- };
- unsafe {
- instance.get(ListItems::new)
- }
- }
- }
- impl ::protobuf::Clear for ListItems {
- fn clear(&mut self) {
- self.pos = ::std::option::Option::None;
- self.truncated = ::std::option::Option::None;
- self.items.clear();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ListItems {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ListItems {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ContentRange {
- // message fields
- pos: ::std::option::Option<i32>,
- length: ::std::option::Option<i32>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a ContentRange {
- fn default() -> &'a ContentRange {
- <ContentRange as ::protobuf::Message>::default_instance()
- }
- }
- impl ContentRange {
- pub fn new() -> ContentRange {
- ::std::default::Default::default()
- }
- // optional int32 pos = 1;
- pub fn get_pos(&self) -> i32 {
- self.pos.unwrap_or(0)
- }
- pub fn clear_pos(&mut self) {
- self.pos = ::std::option::Option::None;
- }
- pub fn has_pos(&self) -> bool {
- self.pos.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pos(&mut self, v: i32) {
- self.pos = ::std::option::Option::Some(v);
- }
- // optional int32 length = 2;
- pub fn get_length(&self) -> i32 {
- self.length.unwrap_or(0)
- }
- pub fn clear_length(&mut self) {
- self.length = ::std::option::Option::None;
- }
- pub fn has_length(&self) -> bool {
- self.length.is_some()
- }
- // Param is passed by value, moved
- pub fn set_length(&mut self, v: i32) {
- self.length = ::std::option::Option::Some(v);
- }
- }
- impl ::protobuf::Message for ContentRange {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.pos = ::std::option::Option::Some(tmp);
- },
- 2 => {
- 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.length = ::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.pos {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.length {
- my_size += ::protobuf::rt::value_size(2, 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.pos {
- os.write_int32(1, v)?;
- }
- if let Some(v) = self.length {
- os.write_int32(2, 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() -> ContentRange {
- ContentRange::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::ProtobufTypeInt32>(
- "pos",
- |m: &ContentRange| { &m.pos },
- |m: &mut ContentRange| { &mut m.pos },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "length",
- |m: &ContentRange| { &m.length },
- |m: &mut ContentRange| { &mut m.length },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ContentRange>(
- "ContentRange",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ContentRange {
- static mut instance: ::protobuf::lazy::Lazy<ContentRange> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ContentRange,
- };
- unsafe {
- instance.get(ContentRange::new)
- }
- }
- }
- impl ::protobuf::Clear for ContentRange {
- fn clear(&mut self) {
- self.pos = ::std::option::Option::None;
- self.length = ::std::option::Option::None;
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ContentRange {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ContentRange {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ListContentSelection {
- // message fields
- wantRevision: ::std::option::Option<bool>,
- wantLength: ::std::option::Option<bool>,
- wantAttributes: ::std::option::Option<bool>,
- wantChecksum: ::std::option::Option<bool>,
- wantContent: ::std::option::Option<bool>,
- contentRange: ::protobuf::SingularPtrField<ContentRange>,
- wantDiff: ::std::option::Option<bool>,
- baseRevision: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- hintRevision: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- wantNothingIfUpToDate: ::std::option::Option<bool>,
- wantResolveAction: ::std::option::Option<bool>,
- issues: ::protobuf::RepeatedField<super::playlist4issues::ClientIssue>,
- resolveAction: ::protobuf::RepeatedField<super::playlist4issues::ClientResolveAction>,
- // special fields
- pub unknown_fields: ::protobuf::UnknownFields,
- pub cached_size: ::protobuf::CachedSize,
- }
- impl<'a> ::std::default::Default for &'a ListContentSelection {
- fn default() -> &'a ListContentSelection {
- <ListContentSelection as ::protobuf::Message>::default_instance()
- }
- }
- impl ListContentSelection {
- pub fn new() -> ListContentSelection {
- ::std::default::Default::default()
- }
- // optional bool wantRevision = 1;
- pub fn get_wantRevision(&self) -> bool {
- self.wantRevision.unwrap_or(false)
- }
- pub fn clear_wantRevision(&mut self) {
- self.wantRevision = ::std::option::Option::None;
- }
- pub fn has_wantRevision(&self) -> bool {
- self.wantRevision.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantRevision(&mut self, v: bool) {
- self.wantRevision = ::std::option::Option::Some(v);
- }
- // optional bool wantLength = 2;
- pub fn get_wantLength(&self) -> bool {
- self.wantLength.unwrap_or(false)
- }
- pub fn clear_wantLength(&mut self) {
- self.wantLength = ::std::option::Option::None;
- }
- pub fn has_wantLength(&self) -> bool {
- self.wantLength.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantLength(&mut self, v: bool) {
- self.wantLength = ::std::option::Option::Some(v);
- }
- // optional bool wantAttributes = 3;
- pub fn get_wantAttributes(&self) -> bool {
- self.wantAttributes.unwrap_or(false)
- }
- pub fn clear_wantAttributes(&mut self) {
- self.wantAttributes = ::std::option::Option::None;
- }
- pub fn has_wantAttributes(&self) -> bool {
- self.wantAttributes.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantAttributes(&mut self, v: bool) {
- self.wantAttributes = ::std::option::Option::Some(v);
- }
- // optional bool wantChecksum = 4;
- pub fn get_wantChecksum(&self) -> bool {
- self.wantChecksum.unwrap_or(false)
- }
- pub fn clear_wantChecksum(&mut self) {
- self.wantChecksum = ::std::option::Option::None;
- }
- pub fn has_wantChecksum(&self) -> bool {
- self.wantChecksum.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantChecksum(&mut self, v: bool) {
- self.wantChecksum = ::std::option::Option::Some(v);
- }
- // optional bool wantContent = 5;
- pub fn get_wantContent(&self) -> bool {
- self.wantContent.unwrap_or(false)
- }
- pub fn clear_wantContent(&mut self) {
- self.wantContent = ::std::option::Option::None;
- }
- pub fn has_wantContent(&self) -> bool {
- self.wantContent.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantContent(&mut self, v: bool) {
- self.wantContent = ::std::option::Option::Some(v);
- }
- // optional .ContentRange contentRange = 6;
- pub fn get_contentRange(&self) -> &ContentRange {
- self.contentRange.as_ref().unwrap_or_else(|| ContentRange::default_instance())
- }
- pub fn clear_contentRange(&mut self) {
- self.contentRange.clear();
- }
- pub fn has_contentRange(&self) -> bool {
- self.contentRange.is_some()
- }
- // Param is passed by value, moved
- pub fn set_contentRange(&mut self, v: ContentRange) {
- self.contentRange = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_contentRange(&mut self) -> &mut ContentRange {
- if self.contentRange.is_none() {
- self.contentRange.set_default();
- }
- self.contentRange.as_mut().unwrap()
- }
- // Take field
- pub fn take_contentRange(&mut self) -> ContentRange {
- self.contentRange.take().unwrap_or_else(|| ContentRange::new())
- }
- // optional bool wantDiff = 7;
- pub fn get_wantDiff(&self) -> bool {
- self.wantDiff.unwrap_or(false)
- }
- pub fn clear_wantDiff(&mut self) {
- self.wantDiff = ::std::option::Option::None;
- }
- pub fn has_wantDiff(&self) -> bool {
- self.wantDiff.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantDiff(&mut self, v: bool) {
- self.wantDiff = ::std::option::Option::Some(v);
- }
- // optional bytes baseRevision = 8;
- pub fn get_baseRevision(&self) -> &[u8] {
- match self.baseRevision.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- pub fn clear_baseRevision(&mut self) {
- self.baseRevision.clear();
- }
- pub fn has_baseRevision(&self) -> bool {
- self.baseRevision.is_some()
- }
- // Param is passed by value, moved
- pub fn set_baseRevision(&mut self, v: ::std::vec::Vec<u8>) {
- self.baseRevision = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_baseRevision(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.baseRevision.is_none() {
- self.baseRevision.set_default();
- }
- self.baseRevision.as_mut().unwrap()
- }
- // Take field
- pub fn take_baseRevision(&mut self) -> ::std::vec::Vec<u8> {
- self.baseRevision.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- // optional bytes hintRevision = 9;
- pub fn get_hintRevision(&self) -> &[u8] {
- match self.hintRevision.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- pub fn clear_hintRevision(&mut self) {
- self.hintRevision.clear();
- }
- pub fn has_hintRevision(&self) -> bool {
- self.hintRevision.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hintRevision(&mut self, v: ::std::vec::Vec<u8>) {
- self.hintRevision = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hintRevision(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.hintRevision.is_none() {
- self.hintRevision.set_default();
- }
- self.hintRevision.as_mut().unwrap()
- }
- // Take field
- pub fn take_hintRevision(&mut self) -> ::std::vec::Vec<u8> {
- self.hintRevision.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- // optional bool wantNothingIfUpToDate = 10;
- pub fn get_wantNothingIfUpToDate(&self) -> bool {
- self.wantNothingIfUpToDate.unwrap_or(false)
- }
- pub fn clear_wantNothingIfUpToDate(&mut self) {
- self.wantNothingIfUpToDate = ::std::option::Option::None;
- }
- pub fn has_wantNothingIfUpToDate(&self) -> bool {
- self.wantNothingIfUpToDate.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantNothingIfUpToDate(&mut self, v: bool) {
- self.wantNothingIfUpToDate = ::std::option::Option::Some(v);
- }
- // optional bool wantResolveAction = 12;
- pub fn get_wantResolveAction(&self) -> bool {
- self.wantResolveAction.unwrap_or(false)
- }
- pub fn clear_wantResolveAction(&mut self) {
- self.wantResolveAction = ::std::option::Option::None;
- }
- pub fn has_wantResolveAction(&self) -> bool {
- self.wantResolveAction.is_some()
- }
- // Param is passed by value, moved
- pub fn set_wantResolveAction(&mut self, v: bool) {
- self.wantResolveAction = ::std::option::Option::Some(v);
- }
- // repeated .ClientIssue issues = 13;
- pub fn get_issues(&self) -> &[super::playlist4issues::ClientIssue] {
- &self.issues
- }
- pub fn clear_issues(&mut self) {
- self.issues.clear();
- }
- // Param is passed by value, moved
- pub fn set_issues(&mut self, v: ::protobuf::RepeatedField<super::playlist4issues::ClientIssue>) {
- self.issues = v;
- }
- // Mutable pointer to the field.
- pub fn mut_issues(&mut self) -> &mut ::protobuf::RepeatedField<super::playlist4issues::ClientIssue> {
- &mut self.issues
- }
- // Take field
- pub fn take_issues(&mut self) -> ::protobuf::RepeatedField<super::playlist4issues::ClientIssue> {
- ::std::mem::replace(&mut self.issues, ::protobuf::RepeatedField::new())
- }
- // repeated .ClientResolveAction resolveAction = 14;
- pub fn get_resolveAction(&self) -> &[super::playlist4issues::ClientResolveAction] {
- &self.resolveAction
- }
- pub fn clear_resolveAction(&mut self) {
- self.resolveAction.clear();
- }
- // Param is passed by value, moved
- pub fn set_resolveAction(&mut self, v: ::protobuf::RepeatedField<super::playlist4issues::ClientResolveAction>) {
- self.resolveAction = v;
- }
- // Mutable pointer to the field.
- pub fn mut_resolveAction(&mut self) -> &mut ::protobuf::RepeatedField<super::playlist4issues::ClientResolveAction> {
- &mut self.resolveAction
- }
- // Take field
- pub fn take_resolveAction(&mut self) -> ::protobuf::RepeatedField<super::playlist4issues::ClientResolveAction> {
- ::std::mem::replace(&mut self.resolveAction, ::protobuf::RepeatedField::new())
- }
- }
- impl ::protobuf::Message for ListContentSelection {
- fn is_initialized(&self) -> bool {
- for v in &self.contentRange {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.issues {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.resolveAction {
- 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 => {
- 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.wantRevision = ::std::option::Option::Some(tmp);
- },
- 2 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.wantLength = ::std::option::Option::Some(tmp);
- },
- 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.wantAttributes = ::std::option::Option::Some(tmp);
- },
- 4 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.wantChecksum = ::std::option::Option::Some(tmp);
- },
- 5 => {
- 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.wantContent = ::std::option::Option::Some(tmp);
- },
- 6 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.contentRange)?;
- },
- 7 => {
- 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.wantDiff = ::std::option::Option::Some(tmp);
- },
- 8 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.baseRevision)?;
- },
- 9 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hintRevision)?;
- },
- 10 => {
- 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.wantNothingIfUpToDate = ::std::option::Option::Some(tmp);
- },
- 12 => {
- 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.wantResolveAction = ::std::option::Option::Some(tmp);
- },
- 13 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.issues)?;
- },
- 14 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resolveAction)?;
- },
- _ => {
- ::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.wantRevision {
- my_size += 2;
- }
- if let Some(v) = self.wantLength {
- my_size += 2;
- }
- if let Some(v) = self.wantAttributes {
- my_size += 2;
- }
- if let Some(v) = self.wantChecksum {
- my_size += 2;
- }
- if let Some(v) = self.wantContent {
- my_size += 2;
- }
- if let Some(ref v) = self.contentRange.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(v) = self.wantDiff {
- my_size += 2;
- }
- if let Some(ref v) = self.baseRevision.as_ref() {
- my_size += ::protobuf::rt::bytes_size(8, &v);
- }
- if let Some(ref v) = self.hintRevision.as_ref() {
- my_size += ::protobuf::rt::bytes_size(9, &v);
- }
- if let Some(v) = self.wantNothingIfUpToDate {
- my_size += 2;
- }
- if let Some(v) = self.wantResolveAction {
- my_size += 2;
- }
- for value in &self.issues {
- let len = value.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- };
- for value in &self.resolveAction {
- let len = value.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 let Some(v) = self.wantRevision {
- os.write_bool(1, v)?;
- }
- if let Some(v) = self.wantLength {
- os.write_bool(2, v)?;
- }
- if let Some(v) = self.wantAttributes {
- os.write_bool(3, v)?;
- }
- if let Some(v) = self.wantChecksum {
- os.write_bool(4, v)?;
- }
- if let Some(v) = self.wantContent {
- os.write_bool(5, v)?;
- }
- if let Some(ref v) = self.contentRange.as_ref() {
- os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(v) = self.wantDiff {
- os.write_bool(7, v)?;
- }
- if let Some(ref v) = self.baseRevision.as_ref() {
- os.write_bytes(8, &v)?;
- }
- if let Some(ref v) = self.hintRevision.as_ref() {
- os.write_bytes(9, &v)?;
- }
- if let Some(v) = self.wantNothingIfUpToDate {
- os.write_bool(10, v)?;
- }
- if let Some(v) = self.wantResolveAction {
- os.write_bool(12, v)?;
- }
- for v in &self.issues {
- os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- };
- for v in &self.resolveAction {
- os.write_tag(14, ::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: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ListContentSelection {
- ListContentSelection::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::ProtobufTypeBool>(
- "wantRevision",
- |m: &ListContentSelection| { &m.wantRevision },
- |m: &mut ListContentSelection| { &mut m.wantRevision },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantLength",
- |m: &ListContentSelection| { &m.wantLength },
- |m: &mut ListContentSelection| { &mut m.wantLength },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantAttributes",
- |m: &ListContentSelection| { &m.wantAttributes },
- |m: &mut ListContentSelection| { &mut m.wantAttributes },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantChecksum",
- |m: &ListContentSelection| { &m.wantChecksum },
- |m: &mut ListContentSelection| { &mut m.wantChecksum },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantContent",
- |m: &ListContentSelection| { &m.wantContent },
- |m: &mut ListContentSelection| { &mut m.wantContent },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ContentRange>>(
- "contentRange",
- |m: &ListContentSelection| { &m.contentRange },
- |m: &mut ListContentSelection| { &mut m.contentRange },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantDiff",
- |m: &ListContentSelection| { &m.wantDiff },
- |m: &mut ListContentSelection| { &mut m.wantDiff },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "baseRevision",
- |m: &ListContentSelection| { &m.baseRevision },
- |m: &mut ListContentSelection| { &mut m.baseRevision },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "hintRevision",
- |m: &ListContentSelection| { &m.hintRevision },
- |m: &mut ListContentSelection| { &mut m.hintRevision },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantNothingIfUpToDate",
- |m: &ListContentSelection| { &m.wantNothingIfUpToDate },
- |m: &mut ListContentSelection| { &mut m.wantNothingIfUpToDate },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "wantResolveAction",
- |m: &ListContentSelection| { &m.wantResolveAction },
- |m: &mut ListContentSelection| { &mut m.wantResolveAction },
- ));
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::playlist4issues::ClientIssue>>(
- "issues",
- |m: &ListContentSelection| { &m.issues },
- |m: &mut ListContentSelection| { &mut m.issues },
- ));
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::playlist4issues::ClientResolveAction>>(
- "resolveAction",
- |m: &ListContentSelection| { &m.resolveAction },
- |m: &mut ListContentSelection| { &mut m.resolveAction },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ListContentSelection>(
- "ListContentSelection",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ListContentSelection {
- static mut instance: ::protobuf::lazy::Lazy<ListContentSelection> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ListContentSelection,
- };
- unsafe {
- instance.get(ListContentSelection::new)
- }
- }
- }
- impl ::protobuf::Clear for ListContentSelection {
- fn clear(&mut self) {
- self.wantRevision = ::std::option::Option::None;
- self.wantLength = ::std::option::Option::None;
- self.wantAttributes = ::std::option::Option::None;
- self.wantChecksum = ::std::option::Option::None;
- self.wantContent = ::std::option::Option::None;
- self.contentRange.clear();
- self.wantDiff = ::std::option::Option::None;
- self.baseRevision.clear();
- self.hintRevision.clear();
- self.wantNothingIfUpToDate = ::std::option::Option::None;
- self.wantResolveAction = ::std::option::Option::None;
- self.issues.clear();
- self.resolveAction.clear();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ListContentSelection {
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ListContentSelection {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x16playlist4content.proto\x12\0\">\n\x04Item\x12\r\n\x03uri\x18\x01\
- \x20\x01(\tB\0\x12%\n\nattributes\x18\x02\x20\x01(\x0b2\x0f.ItemAttribut\
- esB\0:\0\"I\n\tListItems\x12\r\n\x03pos\x18\x01\x20\x01(\x05B\0\x12\x13\
- \n\ttruncated\x18\x02\x20\x01(\x08B\0\x12\x16\n\x05items\x18\x03\x20\x03\
- (\x0b2\x05.ItemB\0:\0\"1\n\x0cContentRange\x12\r\n\x03pos\x18\x01\x20\
- \x01(\x05B\0\x12\x10\n\x06length\x18\x02\x20\x01(\x05B\0:\0\"\x87\x03\n\
- \x14ListContentSelection\x12\x16\n\x0cwantRevision\x18\x01\x20\x01(\x08B\
- \0\x12\x14\n\nwantLength\x18\x02\x20\x01(\x08B\0\x12\x18\n\x0ewantAttrib\
- utes\x18\x03\x20\x01(\x08B\0\x12\x16\n\x0cwantChecksum\x18\x04\x20\x01(\
- \x08B\0\x12\x15\n\x0bwantContent\x18\x05\x20\x01(\x08B\0\x12%\n\x0cconte\
- ntRange\x18\x06\x20\x01(\x0b2\r.ContentRangeB\0\x12\x12\n\x08wantDiff\
- \x18\x07\x20\x01(\x08B\0\x12\x16\n\x0cbaseRevision\x18\x08\x20\x01(\x0cB\
- \0\x12\x16\n\x0chintRevision\x18\t\x20\x01(\x0cB\0\x12\x1f\n\x15wantNoth\
- ingIfUpToDate\x18\n\x20\x01(\x08B\0\x12\x1b\n\x11wantResolveAction\x18\
- \x0c\x20\x01(\x08B\0\x12\x1e\n\x06issues\x18\r\x20\x03(\x0b2\x0c.ClientI\
- ssueB\0\x12-\n\rresolveAction\x18\x0e\x20\x03(\x0b2\x14.ClientResolveAct\
- ionB\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()
- })
- }
- }
|