|  | @@ -30,11 +30,13 @@ pub struct View {
 | 
	
		
			
				|  |  |      pub belong_to_id: ::std::string::String,
 | 
	
		
			
				|  |  |      pub name: ::std::string::String,
 | 
	
		
			
				|  |  |      pub desc: ::std::string::String,
 | 
	
		
			
				|  |  | -    pub view_type: ViewType,
 | 
	
		
			
				|  |  | +    pub data_type: ViewDataType,
 | 
	
		
			
				|  |  |      pub version: i64,
 | 
	
		
			
				|  |  |      pub belongings: ::protobuf::SingularPtrField<RepeatedView>,
 | 
	
		
			
				|  |  |      pub modified_time: i64,
 | 
	
		
			
				|  |  |      pub create_time: i64,
 | 
	
		
			
				|  |  | +    pub ext_data: ::std::string::String,
 | 
	
		
			
				|  |  | +    pub thumbnail: ::std::string::String,
 | 
	
		
			
				|  |  |      // special fields
 | 
	
		
			
				|  |  |      pub unknown_fields: ::protobuf::UnknownFields,
 | 
	
		
			
				|  |  |      pub cached_size: ::protobuf::CachedSize,
 | 
	
	
		
			
				|  | @@ -155,19 +157,19 @@ impl View {
 | 
	
		
			
				|  |  |          ::std::mem::replace(&mut self.desc, ::std::string::String::new())
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // .ViewType view_type = 5;
 | 
	
		
			
				|  |  | +    // .ViewDataType data_type = 5;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    pub fn get_view_type(&self) -> ViewType {
 | 
	
		
			
				|  |  | -        self.view_type
 | 
	
		
			
				|  |  | +    pub fn get_data_type(&self) -> ViewDataType {
 | 
	
		
			
				|  |  | +        self.data_type
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    pub fn clear_view_type(&mut self) {
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | +    pub fn clear_data_type(&mut self) {
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Param is passed by value, moved
 | 
	
		
			
				|  |  | -    pub fn set_view_type(&mut self, v: ViewType) {
 | 
	
		
			
				|  |  | -        self.view_type = v;
 | 
	
		
			
				|  |  | +    pub fn set_data_type(&mut self, v: ViewDataType) {
 | 
	
		
			
				|  |  | +        self.data_type = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // int64 version = 6;
 | 
	
	
		
			
				|  | @@ -247,6 +249,58 @@ impl View {
 | 
	
		
			
				|  |  |      pub fn set_create_time(&mut self, v: i64) {
 | 
	
		
			
				|  |  |          self.create_time = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // string ext_data = 10;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pub fn get_ext_data(&self) -> &str {
 | 
	
		
			
				|  |  | +        &self.ext_data
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    pub fn clear_ext_data(&mut self) {
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Param is passed by value, moved
 | 
	
		
			
				|  |  | +    pub fn set_ext_data(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | +        self.ext_data = v;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Mutable pointer to the field.
 | 
	
		
			
				|  |  | +    // If field is not initialized, it is initialized with default value first.
 | 
	
		
			
				|  |  | +    pub fn mut_ext_data(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | +        &mut self.ext_data
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Take field
 | 
	
		
			
				|  |  | +    pub fn take_ext_data(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | +        ::std::mem::replace(&mut self.ext_data, ::std::string::String::new())
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // string thumbnail = 11;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pub fn get_thumbnail(&self) -> &str {
 | 
	
		
			
				|  |  | +        &self.thumbnail
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    pub fn clear_thumbnail(&mut self) {
 | 
	
		
			
				|  |  | +        self.thumbnail.clear();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Param is passed by value, moved
 | 
	
		
			
				|  |  | +    pub fn set_thumbnail(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | +        self.thumbnail = v;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Mutable pointer to the field.
 | 
	
		
			
				|  |  | +    // If field is not initialized, it is initialized with default value first.
 | 
	
		
			
				|  |  | +    pub fn mut_thumbnail(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | +        &mut self.thumbnail
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Take field
 | 
	
		
			
				|  |  | +    pub fn take_thumbnail(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | +        ::std::mem::replace(&mut self.thumbnail, ::std::string::String::new())
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  impl ::protobuf::Message for View {
 | 
	
	
		
			
				|  | @@ -276,7 +330,7 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  5 => {
 | 
	
		
			
				|  |  | -                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.data_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  6 => {
 | 
	
		
			
				|  |  |                      if wire_type != ::protobuf::wire_format::WireTypeVarint {
 | 
	
	
		
			
				|  | @@ -302,6 +356,12 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |                      let tmp = is.read_int64()?;
 | 
	
		
			
				|  |  |                      self.create_time = tmp;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  | +                10 => {
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext_data)?;
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                11 => {
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.thumbnail)?;
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  |                  _ => {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
 | 
	
		
			
				|  |  |                  },
 | 
	
	
		
			
				|  | @@ -326,8 +386,8 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |          if !self.desc.is_empty() {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::string_size(4, &self.desc);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            my_size += ::protobuf::rt::enum_size(5, self.view_type);
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::enum_size(5, self.data_type);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if self.version != 0 {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::value_size(6, self.version, ::protobuf::wire_format::WireTypeVarint);
 | 
	
	
		
			
				|  | @@ -342,6 +402,12 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |          if self.create_time != 0 {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::value_size(9, self.create_time, ::protobuf::wire_format::WireTypeVarint);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::string_size(10, &self.ext_data);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if !self.thumbnail.is_empty() {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::string_size(11, &self.thumbnail);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
 | 
	
		
			
				|  |  |          self.cached_size.set(my_size);
 | 
	
		
			
				|  |  |          my_size
 | 
	
	
		
			
				|  | @@ -360,8 +426,8 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |          if !self.desc.is_empty() {
 | 
	
		
			
				|  |  |              os.write_string(4, &self.desc)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.view_type))?;
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.data_type))?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if self.version != 0 {
 | 
	
		
			
				|  |  |              os.write_int64(6, self.version)?;
 | 
	
	
		
			
				|  | @@ -377,6 +443,12 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |          if self.create_time != 0 {
 | 
	
		
			
				|  |  |              os.write_int64(9, self.create_time)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            os.write_string(10, &self.ext_data)?;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if !self.thumbnail.is_empty() {
 | 
	
		
			
				|  |  | +            os.write_string(11, &self.thumbnail)?;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          os.write_unknown_fields(self.get_unknown_fields())?;
 | 
	
		
			
				|  |  |          ::std::result::Result::Ok(())
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -435,10 +507,10 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |                  |m: &View| { &m.desc },
 | 
	
		
			
				|  |  |                  |m: &mut View| { &mut m.desc },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  | -            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewType>>(
 | 
	
		
			
				|  |  | -                "view_type",
 | 
	
		
			
				|  |  | -                |m: &View| { &m.view_type },
 | 
	
		
			
				|  |  | -                |m: &mut View| { &mut m.view_type },
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewDataType>>(
 | 
	
		
			
				|  |  | +                "data_type",
 | 
	
		
			
				|  |  | +                |m: &View| { &m.data_type },
 | 
	
		
			
				|  |  | +                |m: &mut View| { &mut m.data_type },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  |              fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
 | 
	
		
			
				|  |  |                  "version",
 | 
	
	
		
			
				|  | @@ -460,6 +532,16 @@ impl ::protobuf::Message for View {
 | 
	
		
			
				|  |  |                  |m: &View| { &m.create_time },
 | 
	
		
			
				|  |  |                  |m: &mut View| { &mut m.create_time },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  | +                "ext_data",
 | 
	
		
			
				|  |  | +                |m: &View| { &m.ext_data },
 | 
	
		
			
				|  |  | +                |m: &mut View| { &mut m.ext_data },
 | 
	
		
			
				|  |  | +            ));
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  | +                "thumbnail",
 | 
	
		
			
				|  |  | +                |m: &View| { &m.thumbnail },
 | 
	
		
			
				|  |  | +                |m: &mut View| { &mut m.thumbnail },
 | 
	
		
			
				|  |  | +            ));
 | 
	
		
			
				|  |  |              ::protobuf::reflect::MessageDescriptor::new_pb_name::<View>(
 | 
	
		
			
				|  |  |                  "View",
 | 
	
		
			
				|  |  |                  fields,
 | 
	
	
		
			
				|  | @@ -480,11 +562,13 @@ impl ::protobuf::Clear for View {
 | 
	
		
			
				|  |  |          self.belong_to_id.clear();
 | 
	
		
			
				|  |  |          self.name.clear();
 | 
	
		
			
				|  |  |          self.desc.clear();
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  |          self.version = 0;
 | 
	
		
			
				|  |  |          self.belongings.clear();
 | 
	
		
			
				|  |  |          self.modified_time = 0;
 | 
	
		
			
				|  |  |          self.create_time = 0;
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  | +        self.thumbnail.clear();
 | 
	
		
			
				|  |  |          self.unknown_fields.clear();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -673,8 +757,8 @@ pub struct CreateViewPayload {
 | 
	
		
			
				|  |  |      pub belong_to_id: ::std::string::String,
 | 
	
		
			
				|  |  |      pub name: ::std::string::String,
 | 
	
		
			
				|  |  |      pub desc: ::std::string::String,
 | 
	
		
			
				|  |  | -    pub view_type: ViewType,
 | 
	
		
			
				|  |  | -    pub ext: ::std::string::String,
 | 
	
		
			
				|  |  | +    pub data_type: ViewDataType,
 | 
	
		
			
				|  |  | +    pub ext_data: ::std::string::String,
 | 
	
		
			
				|  |  |      // message oneof groups
 | 
	
		
			
				|  |  |      pub one_of_thumbnail: ::std::option::Option<CreateViewPayload_oneof_one_of_thumbnail>,
 | 
	
		
			
				|  |  |      // special fields
 | 
	
	
		
			
				|  | @@ -825,45 +909,45 @@ impl CreateViewPayload {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // .ViewType view_type = 5;
 | 
	
		
			
				|  |  | +    // .ViewDataType data_type = 5;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    pub fn get_view_type(&self) -> ViewType {
 | 
	
		
			
				|  |  | -        self.view_type
 | 
	
		
			
				|  |  | +    pub fn get_data_type(&self) -> ViewDataType {
 | 
	
		
			
				|  |  | +        self.data_type
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    pub fn clear_view_type(&mut self) {
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | +    pub fn clear_data_type(&mut self) {
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Param is passed by value, moved
 | 
	
		
			
				|  |  | -    pub fn set_view_type(&mut self, v: ViewType) {
 | 
	
		
			
				|  |  | -        self.view_type = v;
 | 
	
		
			
				|  |  | +    pub fn set_data_type(&mut self, v: ViewDataType) {
 | 
	
		
			
				|  |  | +        self.data_type = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // string ext = 6;
 | 
	
		
			
				|  |  | +    // string ext_data = 6;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    pub fn get_ext(&self) -> &str {
 | 
	
		
			
				|  |  | -        &self.ext
 | 
	
		
			
				|  |  | +    pub fn get_ext_data(&self) -> &str {
 | 
	
		
			
				|  |  | +        &self.ext_data
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    pub fn clear_ext(&mut self) {
 | 
	
		
			
				|  |  | -        self.ext.clear();
 | 
	
		
			
				|  |  | +    pub fn clear_ext_data(&mut self) {
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Param is passed by value, moved
 | 
	
		
			
				|  |  | -    pub fn set_ext(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | -        self.ext = v;
 | 
	
		
			
				|  |  | +    pub fn set_ext_data(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | +        self.ext_data = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Mutable pointer to the field.
 | 
	
		
			
				|  |  |      // If field is not initialized, it is initialized with default value first.
 | 
	
		
			
				|  |  | -    pub fn mut_ext(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | -        &mut self.ext
 | 
	
		
			
				|  |  | +    pub fn mut_ext_data(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | +        &mut self.ext_data
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Take field
 | 
	
		
			
				|  |  | -    pub fn take_ext(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | -        ::std::mem::replace(&mut self.ext, ::std::string::String::new())
 | 
	
		
			
				|  |  | +    pub fn take_ext_data(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | +        ::std::mem::replace(&mut self.ext_data, ::std::string::String::new())
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -892,10 +976,10 @@ impl ::protobuf::Message for CreateViewPayload {
 | 
	
		
			
				|  |  |                      self.one_of_thumbnail = ::std::option::Option::Some(CreateViewPayload_oneof_one_of_thumbnail::thumbnail(is.read_string()?));
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  5 => {
 | 
	
		
			
				|  |  | -                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.data_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  6 => {
 | 
	
		
			
				|  |  | -                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext)?;
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext_data)?;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  _ => {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
 | 
	
	
		
			
				|  | @@ -918,11 +1002,11 @@ impl ::protobuf::Message for CreateViewPayload {
 | 
	
		
			
				|  |  |          if !self.desc.is_empty() {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::string_size(3, &self.desc);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            my_size += ::protobuf::rt::enum_size(5, self.view_type);
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::enum_size(5, self.data_type);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if !self.ext.is_empty() {
 | 
	
		
			
				|  |  | -            my_size += ::protobuf::rt::string_size(6, &self.ext);
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::string_size(6, &self.ext_data);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if let ::std::option::Option::Some(ref v) = self.one_of_thumbnail {
 | 
	
		
			
				|  |  |              match v {
 | 
	
	
		
			
				|  | @@ -946,11 +1030,11 @@ impl ::protobuf::Message for CreateViewPayload {
 | 
	
		
			
				|  |  |          if !self.desc.is_empty() {
 | 
	
		
			
				|  |  |              os.write_string(3, &self.desc)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.view_type))?;
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.data_type))?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if !self.ext.is_empty() {
 | 
	
		
			
				|  |  | -            os.write_string(6, &self.ext)?;
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            os.write_string(6, &self.ext_data)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if let ::std::option::Option::Some(ref v) = self.one_of_thumbnail {
 | 
	
		
			
				|  |  |              match v {
 | 
	
	
		
			
				|  | @@ -1017,15 +1101,15 @@ impl ::protobuf::Message for CreateViewPayload {
 | 
	
		
			
				|  |  |                  CreateViewPayload::has_thumbnail,
 | 
	
		
			
				|  |  |                  CreateViewPayload::get_thumbnail,
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  | -            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewType>>(
 | 
	
		
			
				|  |  | -                "view_type",
 | 
	
		
			
				|  |  | -                |m: &CreateViewPayload| { &m.view_type },
 | 
	
		
			
				|  |  | -                |m: &mut CreateViewPayload| { &mut m.view_type },
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewDataType>>(
 | 
	
		
			
				|  |  | +                "data_type",
 | 
	
		
			
				|  |  | +                |m: &CreateViewPayload| { &m.data_type },
 | 
	
		
			
				|  |  | +                |m: &mut CreateViewPayload| { &mut m.data_type },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  |              fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  | -                "ext",
 | 
	
		
			
				|  |  | -                |m: &CreateViewPayload| { &m.ext },
 | 
	
		
			
				|  |  | -                |m: &mut CreateViewPayload| { &mut m.ext },
 | 
	
		
			
				|  |  | +                "ext_data",
 | 
	
		
			
				|  |  | +                |m: &CreateViewPayload| { &m.ext_data },
 | 
	
		
			
				|  |  | +                |m: &mut CreateViewPayload| { &mut m.ext_data },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  |              ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateViewPayload>(
 | 
	
		
			
				|  |  |                  "CreateViewPayload",
 | 
	
	
		
			
				|  | @@ -1047,8 +1131,8 @@ impl ::protobuf::Clear for CreateViewPayload {
 | 
	
		
			
				|  |  |          self.name.clear();
 | 
	
		
			
				|  |  |          self.desc.clear();
 | 
	
		
			
				|  |  |          self.one_of_thumbnail = ::std::option::Option::None;
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | -        self.ext.clear();
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  |          self.unknown_fields.clear();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -1072,9 +1156,10 @@ pub struct CreateViewParams {
 | 
	
		
			
				|  |  |      pub name: ::std::string::String,
 | 
	
		
			
				|  |  |      pub desc: ::std::string::String,
 | 
	
		
			
				|  |  |      pub thumbnail: ::std::string::String,
 | 
	
		
			
				|  |  | -    pub view_type: ViewType,
 | 
	
		
			
				|  |  | -    pub ext: ::std::string::String,
 | 
	
		
			
				|  |  | +    pub data_type: ViewDataType,
 | 
	
		
			
				|  |  | +    pub ext_data: ::std::string::String,
 | 
	
		
			
				|  |  |      pub view_id: ::std::string::String,
 | 
	
		
			
				|  |  | +    pub data: ::std::string::String,
 | 
	
		
			
				|  |  |      // special fields
 | 
	
		
			
				|  |  |      pub unknown_fields: ::protobuf::UnknownFields,
 | 
	
		
			
				|  |  |      pub cached_size: ::protobuf::CachedSize,
 | 
	
	
		
			
				|  | @@ -1195,45 +1280,45 @@ impl CreateViewParams {
 | 
	
		
			
				|  |  |          ::std::mem::replace(&mut self.thumbnail, ::std::string::String::new())
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // .ViewType view_type = 5;
 | 
	
		
			
				|  |  | +    // .ViewDataType data_type = 5;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    pub fn get_view_type(&self) -> ViewType {
 | 
	
		
			
				|  |  | -        self.view_type
 | 
	
		
			
				|  |  | +    pub fn get_data_type(&self) -> ViewDataType {
 | 
	
		
			
				|  |  | +        self.data_type
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    pub fn clear_view_type(&mut self) {
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | +    pub fn clear_data_type(&mut self) {
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Param is passed by value, moved
 | 
	
		
			
				|  |  | -    pub fn set_view_type(&mut self, v: ViewType) {
 | 
	
		
			
				|  |  | -        self.view_type = v;
 | 
	
		
			
				|  |  | +    pub fn set_data_type(&mut self, v: ViewDataType) {
 | 
	
		
			
				|  |  | +        self.data_type = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // string ext = 6;
 | 
	
		
			
				|  |  | +    // string ext_data = 6;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    pub fn get_ext(&self) -> &str {
 | 
	
		
			
				|  |  | -        &self.ext
 | 
	
		
			
				|  |  | +    pub fn get_ext_data(&self) -> &str {
 | 
	
		
			
				|  |  | +        &self.ext_data
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    pub fn clear_ext(&mut self) {
 | 
	
		
			
				|  |  | -        self.ext.clear();
 | 
	
		
			
				|  |  | +    pub fn clear_ext_data(&mut self) {
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Param is passed by value, moved
 | 
	
		
			
				|  |  | -    pub fn set_ext(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | -        self.ext = v;
 | 
	
		
			
				|  |  | +    pub fn set_ext_data(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | +        self.ext_data = v;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Mutable pointer to the field.
 | 
	
		
			
				|  |  |      // If field is not initialized, it is initialized with default value first.
 | 
	
		
			
				|  |  | -    pub fn mut_ext(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | -        &mut self.ext
 | 
	
		
			
				|  |  | +    pub fn mut_ext_data(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | +        &mut self.ext_data
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // Take field
 | 
	
		
			
				|  |  | -    pub fn take_ext(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | -        ::std::mem::replace(&mut self.ext, ::std::string::String::new())
 | 
	
		
			
				|  |  | +    pub fn take_ext_data(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | +        ::std::mem::replace(&mut self.ext_data, ::std::string::String::new())
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // string view_id = 7;
 | 
	
	
		
			
				|  | @@ -1261,6 +1346,32 @@ impl CreateViewParams {
 | 
	
		
			
				|  |  |      pub fn take_view_id(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  |          ::std::mem::replace(&mut self.view_id, ::std::string::String::new())
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // string data = 8;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    pub fn get_data(&self) -> &str {
 | 
	
		
			
				|  |  | +        &self.data
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    pub fn clear_data(&mut self) {
 | 
	
		
			
				|  |  | +        self.data.clear();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Param is passed by value, moved
 | 
	
		
			
				|  |  | +    pub fn set_data(&mut self, v: ::std::string::String) {
 | 
	
		
			
				|  |  | +        self.data = v;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Mutable pointer to the field.
 | 
	
		
			
				|  |  | +    // If field is not initialized, it is initialized with default value first.
 | 
	
		
			
				|  |  | +    pub fn mut_data(&mut self) -> &mut ::std::string::String {
 | 
	
		
			
				|  |  | +        &mut self.data
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // Take field
 | 
	
		
			
				|  |  | +    pub fn take_data(&mut self) -> ::std::string::String {
 | 
	
		
			
				|  |  | +        ::std::mem::replace(&mut self.data, ::std::string::String::new())
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  impl ::protobuf::Message for CreateViewParams {
 | 
	
	
		
			
				|  | @@ -1285,14 +1396,17 @@ impl ::protobuf::Message for CreateViewParams {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.thumbnail)?;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  5 => {
 | 
	
		
			
				|  |  | -                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.data_type, 5, &mut self.unknown_fields)?
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  6 => {
 | 
	
		
			
				|  |  | -                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext)?;
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext_data)?;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  7 => {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.view_id)?;
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  | +                8 => {
 | 
	
		
			
				|  |  | +                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.data)?;
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  |                  _ => {
 | 
	
		
			
				|  |  |                      ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
 | 
	
		
			
				|  |  |                  },
 | 
	
	
		
			
				|  | @@ -1317,15 +1431,18 @@ impl ::protobuf::Message for CreateViewParams {
 | 
	
		
			
				|  |  |          if !self.thumbnail.is_empty() {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::string_size(4, &self.thumbnail);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            my_size += ::protobuf::rt::enum_size(5, self.view_type);
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::enum_size(5, self.data_type);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if !self.ext.is_empty() {
 | 
	
		
			
				|  |  | -            my_size += ::protobuf::rt::string_size(6, &self.ext);
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::string_size(6, &self.ext_data);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if !self.view_id.is_empty() {
 | 
	
		
			
				|  |  |              my_size += ::protobuf::rt::string_size(7, &self.view_id);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        if !self.data.is_empty() {
 | 
	
		
			
				|  |  | +            my_size += ::protobuf::rt::string_size(8, &self.data);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
 | 
	
		
			
				|  |  |          self.cached_size.set(my_size);
 | 
	
		
			
				|  |  |          my_size
 | 
	
	
		
			
				|  | @@ -1344,15 +1461,18 @@ impl ::protobuf::Message for CreateViewParams {
 | 
	
		
			
				|  |  |          if !self.thumbnail.is_empty() {
 | 
	
		
			
				|  |  |              os.write_string(4, &self.thumbnail)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if self.view_type != ViewType::RichText {
 | 
	
		
			
				|  |  | -            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.view_type))?;
 | 
	
		
			
				|  |  | +        if self.data_type != ViewDataType::RichText {
 | 
	
		
			
				|  |  | +            os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.data_type))?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if !self.ext.is_empty() {
 | 
	
		
			
				|  |  | -            os.write_string(6, &self.ext)?;
 | 
	
		
			
				|  |  | +        if !self.ext_data.is_empty() {
 | 
	
		
			
				|  |  | +            os.write_string(6, &self.ext_data)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if !self.view_id.is_empty() {
 | 
	
		
			
				|  |  |              os.write_string(7, &self.view_id)?;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        if !self.data.is_empty() {
 | 
	
		
			
				|  |  | +            os.write_string(8, &self.data)?;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          os.write_unknown_fields(self.get_unknown_fields())?;
 | 
	
		
			
				|  |  |          ::std::result::Result::Ok(())
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -1411,21 +1531,26 @@ impl ::protobuf::Message for CreateViewParams {
 | 
	
		
			
				|  |  |                  |m: &CreateViewParams| { &m.thumbnail },
 | 
	
		
			
				|  |  |                  |m: &mut CreateViewParams| { &mut m.thumbnail },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  | -            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewType>>(
 | 
	
		
			
				|  |  | -                "view_type",
 | 
	
		
			
				|  |  | -                |m: &CreateViewParams| { &m.view_type },
 | 
	
		
			
				|  |  | -                |m: &mut CreateViewParams| { &mut m.view_type },
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ViewDataType>>(
 | 
	
		
			
				|  |  | +                "data_type",
 | 
	
		
			
				|  |  | +                |m: &CreateViewParams| { &m.data_type },
 | 
	
		
			
				|  |  | +                |m: &mut CreateViewParams| { &mut m.data_type },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  |              fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  | -                "ext",
 | 
	
		
			
				|  |  | -                |m: &CreateViewParams| { &m.ext },
 | 
	
		
			
				|  |  | -                |m: &mut CreateViewParams| { &mut m.ext },
 | 
	
		
			
				|  |  | +                "ext_data",
 | 
	
		
			
				|  |  | +                |m: &CreateViewParams| { &m.ext_data },
 | 
	
		
			
				|  |  | +                |m: &mut CreateViewParams| { &mut m.ext_data },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  |              fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  |                  "view_id",
 | 
	
		
			
				|  |  |                  |m: &CreateViewParams| { &m.view_id },
 | 
	
		
			
				|  |  |                  |m: &mut CreateViewParams| { &mut m.view_id },
 | 
	
		
			
				|  |  |              ));
 | 
	
		
			
				|  |  | +            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
 | 
	
		
			
				|  |  | +                "data",
 | 
	
		
			
				|  |  | +                |m: &CreateViewParams| { &m.data },
 | 
	
		
			
				|  |  | +                |m: &mut CreateViewParams| { &mut m.data },
 | 
	
		
			
				|  |  | +            ));
 | 
	
		
			
				|  |  |              ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateViewParams>(
 | 
	
		
			
				|  |  |                  "CreateViewParams",
 | 
	
		
			
				|  |  |                  fields,
 | 
	
	
		
			
				|  | @@ -1446,9 +1571,10 @@ impl ::protobuf::Clear for CreateViewParams {
 | 
	
		
			
				|  |  |          self.name.clear();
 | 
	
		
			
				|  |  |          self.desc.clear();
 | 
	
		
			
				|  |  |          self.thumbnail.clear();
 | 
	
		
			
				|  |  | -        self.view_type = ViewType::RichText;
 | 
	
		
			
				|  |  | -        self.ext.clear();
 | 
	
		
			
				|  |  | +        self.data_type = ViewDataType::RichText;
 | 
	
		
			
				|  |  | +        self.ext_data.clear();
 | 
	
		
			
				|  |  |          self.view_id.clear();
 | 
	
		
			
				|  |  | +        self.data.clear();
 | 
	
		
			
				|  |  |          self.unknown_fields.clear();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -2589,28 +2715,28 @@ impl ::protobuf::reflect::ProtobufValue for UpdateViewParams {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #[derive(Clone,PartialEq,Eq,Debug,Hash)]
 | 
	
		
			
				|  |  | -pub enum ViewType {
 | 
	
		
			
				|  |  | +pub enum ViewDataType {
 | 
	
		
			
				|  |  |      RichText = 0,
 | 
	
		
			
				|  |  |      PlainText = 1,
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -impl ::protobuf::ProtobufEnum for ViewType {
 | 
	
		
			
				|  |  | +impl ::protobuf::ProtobufEnum for ViewDataType {
 | 
	
		
			
				|  |  |      fn value(&self) -> i32 {
 | 
	
		
			
				|  |  |          *self as i32
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    fn from_i32(value: i32) -> ::std::option::Option<ViewType> {
 | 
	
		
			
				|  |  | +    fn from_i32(value: i32) -> ::std::option::Option<ViewDataType> {
 | 
	
		
			
				|  |  |          match value {
 | 
	
		
			
				|  |  | -            0 => ::std::option::Option::Some(ViewType::RichText),
 | 
	
		
			
				|  |  | -            1 => ::std::option::Option::Some(ViewType::PlainText),
 | 
	
		
			
				|  |  | +            0 => ::std::option::Option::Some(ViewDataType::RichText),
 | 
	
		
			
				|  |  | +            1 => ::std::option::Option::Some(ViewDataType::PlainText),
 | 
	
		
			
				|  |  |              _ => ::std::option::Option::None
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      fn values() -> &'static [Self] {
 | 
	
		
			
				|  |  | -        static values: &'static [ViewType] = &[
 | 
	
		
			
				|  |  | -            ViewType::RichText,
 | 
	
		
			
				|  |  | -            ViewType::PlainText,
 | 
	
		
			
				|  |  | +        static values: &'static [ViewDataType] = &[
 | 
	
		
			
				|  |  | +            ViewDataType::RichText,
 | 
	
		
			
				|  |  | +            ViewDataType::PlainText,
 | 
	
		
			
				|  |  |          ];
 | 
	
		
			
				|  |  |          values
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -2618,58 +2744,61 @@ impl ::protobuf::ProtobufEnum for ViewType {
 | 
	
		
			
				|  |  |      fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
 | 
	
		
			
				|  |  |          static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
 | 
	
		
			
				|  |  |          descriptor.get(|| {
 | 
	
		
			
				|  |  | -            ::protobuf::reflect::EnumDescriptor::new_pb_name::<ViewType>("ViewType", file_descriptor_proto())
 | 
	
		
			
				|  |  | +            ::protobuf::reflect::EnumDescriptor::new_pb_name::<ViewDataType>("ViewDataType", file_descriptor_proto())
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -impl ::std::marker::Copy for ViewType {
 | 
	
		
			
				|  |  | +impl ::std::marker::Copy for ViewDataType {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -impl ::std::default::Default for ViewType {
 | 
	
		
			
				|  |  | +impl ::std::default::Default for ViewDataType {
 | 
	
		
			
				|  |  |      fn default() -> Self {
 | 
	
		
			
				|  |  | -        ViewType::RichText
 | 
	
		
			
				|  |  | +        ViewDataType::RichText
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -impl ::protobuf::reflect::ProtobufValue for ViewType {
 | 
	
		
			
				|  |  | +impl ::protobuf::reflect::ProtobufValue for ViewDataType {
 | 
	
		
			
				|  |  |      fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
 | 
	
		
			
				|  |  |          ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  static file_descriptor_proto_data: &'static [u8] = b"\
 | 
	
		
			
				|  |  | -    \n\nview.proto\"\x97\x02\n\x04View\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\
 | 
	
		
			
				|  |  | +    \n\nview.proto\"\xd4\x02\n\x04View\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\
 | 
	
		
			
				|  |  |      \x02id\x12\x20\n\x0cbelong_to_id\x18\x02\x20\x01(\tR\nbelongToId\x12\x12\
 | 
	
		
			
				|  |  |      \n\x04name\x18\x03\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x04\x20\x01\
 | 
	
		
			
				|  |  | -    (\tR\x04desc\x12&\n\tview_type\x18\x05\x20\x01(\x0e2\t.ViewTypeR\x08view\
 | 
	
		
			
				|  |  | -    Type\x12\x18\n\x07version\x18\x06\x20\x01(\x03R\x07version\x12-\n\nbelon\
 | 
	
		
			
				|  |  | -    gings\x18\x07\x20\x01(\x0b2\r.RepeatedViewR\nbelongings\x12#\n\rmodified\
 | 
	
		
			
				|  |  | -    _time\x18\x08\x20\x01(\x03R\x0cmodifiedTime\x12\x1f\n\x0bcreate_time\x18\
 | 
	
		
			
				|  |  | -    \t\x20\x01(\x03R\ncreateTime\"+\n\x0cRepeatedView\x12\x1b\n\x05items\x18\
 | 
	
		
			
				|  |  | -    \x01\x20\x03(\x0b2\x05.ViewR\x05items\"\xcb\x01\n\x11CreateViewPayload\
 | 
	
		
			
				|  |  | -    \x12\x20\n\x0cbelong_to_id\x18\x01\x20\x01(\tR\nbelongToId\x12\x12\n\x04\
 | 
	
		
			
				|  |  | -    name\x18\x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\
 | 
	
		
			
				|  |  | -    \x04desc\x12\x1e\n\tthumbnail\x18\x04\x20\x01(\tH\0R\tthumbnail\x12&\n\t\
 | 
	
		
			
				|  |  | -    view_type\x18\x05\x20\x01(\x0e2\t.ViewTypeR\x08viewType\x12\x10\n\x03ext\
 | 
	
		
			
				|  |  | -    \x18\x06\x20\x01(\tR\x03extB\x12\n\x10one_of_thumbnail\"\xcd\x01\n\x10Cr\
 | 
	
		
			
				|  |  | -    eateViewParams\x12\x20\n\x0cbelong_to_id\x18\x01\x20\x01(\tR\nbelongToId\
 | 
	
		
			
				|  |  | -    \x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\
 | 
	
		
			
				|  |  | -    \x20\x01(\tR\x04desc\x12\x1c\n\tthumbnail\x18\x04\x20\x01(\tR\tthumbnail\
 | 
	
		
			
				|  |  | -    \x12&\n\tview_type\x18\x05\x20\x01(\x0e2\t.ViewTypeR\x08viewType\x12\x10\
 | 
	
		
			
				|  |  | -    \n\x03ext\x18\x06\x20\x01(\tR\x03ext\x12\x17\n\x07view_id\x18\x07\x20\
 | 
	
		
			
				|  |  | -    \x01(\tR\x06viewId\"\x1e\n\x06ViewId\x12\x14\n\x05value\x18\x01\x20\x01(\
 | 
	
		
			
				|  |  | -    \tR\x05value\"&\n\x0eRepeatedViewId\x12\x14\n\x05items\x18\x01\x20\x03(\
 | 
	
		
			
				|  |  | -    \tR\x05items\"\xaa\x01\n\x11UpdateViewPayload\x12\x17\n\x07view_id\x18\
 | 
	
		
			
				|  |  | -    \x01\x20\x01(\tR\x06viewId\x12\x14\n\x04name\x18\x02\x20\x01(\tH\0R\x04n\
 | 
	
		
			
				|  |  | -    ame\x12\x14\n\x04desc\x18\x03\x20\x01(\tH\x01R\x04desc\x12\x1e\n\tthumbn\
 | 
	
		
			
				|  |  | -    ail\x18\x04\x20\x01(\tH\x02R\tthumbnailB\r\n\x0bone_of_nameB\r\n\x0bone_\
 | 
	
		
			
				|  |  | -    of_descB\x12\n\x10one_of_thumbnail\"\xa9\x01\n\x10UpdateViewParams\x12\
 | 
	
		
			
				|  |  | -    \x17\n\x07view_id\x18\x01\x20\x01(\tR\x06viewId\x12\x14\n\x04name\x18\
 | 
	
		
			
				|  |  | -    \x02\x20\x01(\tH\0R\x04name\x12\x14\n\x04desc\x18\x03\x20\x01(\tH\x01R\
 | 
	
		
			
				|  |  | -    \x04desc\x12\x1e\n\tthumbnail\x18\x04\x20\x01(\tH\x02R\tthumbnailB\r\n\
 | 
	
		
			
				|  |  | -    \x0bone_of_nameB\r\n\x0bone_of_descB\x12\n\x10one_of_thumbnail*'\n\x08Vi\
 | 
	
		
			
				|  |  | -    ewType\x12\x0c\n\x08RichText\x10\0\x12\r\n\tPlainText\x10\x01b\x06proto3\
 | 
	
		
			
				|  |  | +    (\tR\x04desc\x12*\n\tdata_type\x18\x05\x20\x01(\x0e2\r.ViewDataTypeR\x08\
 | 
	
		
			
				|  |  | +    dataType\x12\x18\n\x07version\x18\x06\x20\x01(\x03R\x07version\x12-\n\nb\
 | 
	
		
			
				|  |  | +    elongings\x18\x07\x20\x01(\x0b2\r.RepeatedViewR\nbelongings\x12#\n\rmodi\
 | 
	
		
			
				|  |  | +    fied_time\x18\x08\x20\x01(\x03R\x0cmodifiedTime\x12\x1f\n\x0bcreate_time\
 | 
	
		
			
				|  |  | +    \x18\t\x20\x01(\x03R\ncreateTime\x12\x19\n\x08ext_data\x18\n\x20\x01(\tR\
 | 
	
		
			
				|  |  | +    \x07extData\x12\x1c\n\tthumbnail\x18\x0b\x20\x01(\tR\tthumbnail\"+\n\x0c\
 | 
	
		
			
				|  |  | +    RepeatedView\x12\x1b\n\x05items\x18\x01\x20\x03(\x0b2\x05.ViewR\x05items\
 | 
	
		
			
				|  |  | +    \"\xd8\x01\n\x11CreateViewPayload\x12\x20\n\x0cbelong_to_id\x18\x01\x20\
 | 
	
		
			
				|  |  | +    \x01(\tR\nbelongToId\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\
 | 
	
		
			
				|  |  | +    \x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12\x1e\n\tthumbnail\x18\x04\
 | 
	
		
			
				|  |  | +    \x20\x01(\tH\0R\tthumbnail\x12*\n\tdata_type\x18\x05\x20\x01(\x0e2\r.Vie\
 | 
	
		
			
				|  |  | +    wDataTypeR\x08dataType\x12\x19\n\x08ext_data\x18\x06\x20\x01(\tR\x07extD\
 | 
	
		
			
				|  |  | +    ataB\x12\n\x10one_of_thumbnail\"\xee\x01\n\x10CreateViewParams\x12\x20\n\
 | 
	
		
			
				|  |  | +    \x0cbelong_to_id\x18\x01\x20\x01(\tR\nbelongToId\x12\x12\n\x04name\x18\
 | 
	
		
			
				|  |  | +    \x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\
 | 
	
		
			
				|  |  | +    \x12\x1c\n\tthumbnail\x18\x04\x20\x01(\tR\tthumbnail\x12*\n\tdata_type\
 | 
	
		
			
				|  |  | +    \x18\x05\x20\x01(\x0e2\r.ViewDataTypeR\x08dataType\x12\x19\n\x08ext_data\
 | 
	
		
			
				|  |  | +    \x18\x06\x20\x01(\tR\x07extData\x12\x17\n\x07view_id\x18\x07\x20\x01(\tR\
 | 
	
		
			
				|  |  | +    \x06viewId\x12\x12\n\x04data\x18\x08\x20\x01(\tR\x04data\"\x1e\n\x06View\
 | 
	
		
			
				|  |  | +    Id\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"&\n\x0eRepeatedViewI\
 | 
	
		
			
				|  |  | +    d\x12\x14\n\x05items\x18\x01\x20\x03(\tR\x05items\"\xaa\x01\n\x11UpdateV\
 | 
	
		
			
				|  |  | +    iewPayload\x12\x17\n\x07view_id\x18\x01\x20\x01(\tR\x06viewId\x12\x14\n\
 | 
	
		
			
				|  |  | +    \x04name\x18\x02\x20\x01(\tH\0R\x04name\x12\x14\n\x04desc\x18\x03\x20\
 | 
	
		
			
				|  |  | +    \x01(\tH\x01R\x04desc\x12\x1e\n\tthumbnail\x18\x04\x20\x01(\tH\x02R\tthu\
 | 
	
		
			
				|  |  | +    mbnailB\r\n\x0bone_of_nameB\r\n\x0bone_of_descB\x12\n\x10one_of_thumbnai\
 | 
	
		
			
				|  |  | +    l\"\xa9\x01\n\x10UpdateViewParams\x12\x17\n\x07view_id\x18\x01\x20\x01(\
 | 
	
		
			
				|  |  | +    \tR\x06viewId\x12\x14\n\x04name\x18\x02\x20\x01(\tH\0R\x04name\x12\x14\n\
 | 
	
		
			
				|  |  | +    \x04desc\x18\x03\x20\x01(\tH\x01R\x04desc\x12\x1e\n\tthumbnail\x18\x04\
 | 
	
		
			
				|  |  | +    \x20\x01(\tH\x02R\tthumbnailB\r\n\x0bone_of_nameB\r\n\x0bone_of_descB\
 | 
	
		
			
				|  |  | +    \x12\n\x10one_of_thumbnail*+\n\x0cViewDataType\x12\x0c\n\x08RichText\x10\
 | 
	
		
			
				|  |  | +    \0\x12\r\n\tPlainText\x10\x01b\x06proto3\
 | 
	
		
			
				|  |  |  ";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
 |