|
@@ -37,6 +37,7 @@ pub struct View {
|
|
|
pub create_time: i64,
|
|
|
pub ext_data: ::std::string::String,
|
|
|
pub thumbnail: ::std::string::String,
|
|
|
+ pub plugin_type: i32,
|
|
|
// special fields
|
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -301,6 +302,21 @@ impl View {
|
|
|
pub fn take_thumbnail(&mut self) -> ::std::string::String {
|
|
|
::std::mem::replace(&mut self.thumbnail, ::std::string::String::new())
|
|
|
}
|
|
|
+
|
|
|
+ // int32 plugin_type = 12;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_plugin_type(&self) -> i32 {
|
|
|
+ self.plugin_type
|
|
|
+ }
|
|
|
+ pub fn clear_plugin_type(&mut self) {
|
|
|
+ self.plugin_type = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_plugin_type(&mut self, v: i32) {
|
|
|
+ self.plugin_type = v;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for View {
|
|
@@ -362,6 +378,13 @@ impl ::protobuf::Message for View {
|
|
|
11 => {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.thumbnail)?;
|
|
|
},
|
|
|
+ 12 => {
|
|
|
+ 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.plugin_type = tmp;
|
|
|
+ },
|
|
|
_ => {
|
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
},
|
|
@@ -408,6 +431,9 @@ impl ::protobuf::Message for View {
|
|
|
if !self.thumbnail.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(11, &self.thumbnail);
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ my_size += ::protobuf::rt::value_size(12, self.plugin_type, ::protobuf::wire_format::WireTypeVarint);
|
|
|
+ }
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
self.cached_size.set(my_size);
|
|
|
my_size
|
|
@@ -449,6 +475,9 @@ impl ::protobuf::Message for View {
|
|
|
if !self.thumbnail.is_empty() {
|
|
|
os.write_string(11, &self.thumbnail)?;
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ os.write_int32(12, self.plugin_type)?;
|
|
|
+ }
|
|
|
os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
::std::result::Result::Ok(())
|
|
|
}
|
|
@@ -542,6 +571,11 @@ impl ::protobuf::Message for View {
|
|
|
|m: &View| { &m.thumbnail },
|
|
|
|m: &mut View| { &mut m.thumbnail },
|
|
|
));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
|
|
|
+ "plugin_type",
|
|
|
+ |m: &View| { &m.plugin_type },
|
|
|
+ |m: &mut View| { &mut m.plugin_type },
|
|
|
+ ));
|
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<View>(
|
|
|
"View",
|
|
|
fields,
|
|
@@ -569,6 +603,7 @@ impl ::protobuf::Clear for View {
|
|
|
self.create_time = 0;
|
|
|
self.ext_data.clear();
|
|
|
self.thumbnail.clear();
|
|
|
+ self.plugin_type = 0;
|
|
|
self.unknown_fields.clear();
|
|
|
}
|
|
|
}
|
|
@@ -759,6 +794,7 @@ pub struct CreateViewPayload {
|
|
|
pub desc: ::std::string::String,
|
|
|
pub data_type: ViewDataType,
|
|
|
pub ext_data: ::std::string::String,
|
|
|
+ pub plugin_type: i32,
|
|
|
// message oneof groups
|
|
|
pub one_of_thumbnail: ::std::option::Option<CreateViewPayload_oneof_one_of_thumbnail>,
|
|
|
// special fields
|
|
@@ -949,6 +985,21 @@ impl CreateViewPayload {
|
|
|
pub fn take_ext_data(&mut self) -> ::std::string::String {
|
|
|
::std::mem::replace(&mut self.ext_data, ::std::string::String::new())
|
|
|
}
|
|
|
+
|
|
|
+ // int32 plugin_type = 7;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_plugin_type(&self) -> i32 {
|
|
|
+ self.plugin_type
|
|
|
+ }
|
|
|
+ pub fn clear_plugin_type(&mut self) {
|
|
|
+ self.plugin_type = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_plugin_type(&mut self, v: i32) {
|
|
|
+ self.plugin_type = v;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for CreateViewPayload {
|
|
@@ -981,6 +1032,13 @@ impl ::protobuf::Message for CreateViewPayload {
|
|
|
6 => {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ext_data)?;
|
|
|
},
|
|
|
+ 7 => {
|
|
|
+ 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.plugin_type = tmp;
|
|
|
+ },
|
|
|
_ => {
|
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
},
|
|
@@ -1008,6 +1066,9 @@ impl ::protobuf::Message for CreateViewPayload {
|
|
|
if !self.ext_data.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(6, &self.ext_data);
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ my_size += ::protobuf::rt::value_size(7, self.plugin_type, ::protobuf::wire_format::WireTypeVarint);
|
|
|
+ }
|
|
|
if let ::std::option::Option::Some(ref v) = self.one_of_thumbnail {
|
|
|
match v {
|
|
|
&CreateViewPayload_oneof_one_of_thumbnail::thumbnail(ref v) => {
|
|
@@ -1036,6 +1097,9 @@ impl ::protobuf::Message for CreateViewPayload {
|
|
|
if !self.ext_data.is_empty() {
|
|
|
os.write_string(6, &self.ext_data)?;
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ os.write_int32(7, self.plugin_type)?;
|
|
|
+ }
|
|
|
if let ::std::option::Option::Some(ref v) = self.one_of_thumbnail {
|
|
|
match v {
|
|
|
&CreateViewPayload_oneof_one_of_thumbnail::thumbnail(ref v) => {
|
|
@@ -1111,6 +1175,11 @@ impl ::protobuf::Message for CreateViewPayload {
|
|
|
|m: &CreateViewPayload| { &m.ext_data },
|
|
|
|m: &mut CreateViewPayload| { &mut m.ext_data },
|
|
|
));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
|
|
|
+ "plugin_type",
|
|
|
+ |m: &CreateViewPayload| { &m.plugin_type },
|
|
|
+ |m: &mut CreateViewPayload| { &mut m.plugin_type },
|
|
|
+ ));
|
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateViewPayload>(
|
|
|
"CreateViewPayload",
|
|
|
fields,
|
|
@@ -1133,6 +1202,7 @@ impl ::protobuf::Clear for CreateViewPayload {
|
|
|
self.one_of_thumbnail = ::std::option::Option::None;
|
|
|
self.data_type = ViewDataType::RichText;
|
|
|
self.ext_data.clear();
|
|
|
+ self.plugin_type = 0;
|
|
|
self.unknown_fields.clear();
|
|
|
}
|
|
|
}
|
|
@@ -1160,6 +1230,7 @@ pub struct CreateViewParams {
|
|
|
pub ext_data: ::std::string::String,
|
|
|
pub view_id: ::std::string::String,
|
|
|
pub data: ::std::string::String,
|
|
|
+ pub plugin_type: i32,
|
|
|
// special fields
|
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -1372,6 +1443,21 @@ impl CreateViewParams {
|
|
|
pub fn take_data(&mut self) -> ::std::string::String {
|
|
|
::std::mem::replace(&mut self.data, ::std::string::String::new())
|
|
|
}
|
|
|
+
|
|
|
+ // int32 plugin_type = 9;
|
|
|
+
|
|
|
+
|
|
|
+ pub fn get_plugin_type(&self) -> i32 {
|
|
|
+ self.plugin_type
|
|
|
+ }
|
|
|
+ pub fn clear_plugin_type(&mut self) {
|
|
|
+ self.plugin_type = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Param is passed by value, moved
|
|
|
+ pub fn set_plugin_type(&mut self, v: i32) {
|
|
|
+ self.plugin_type = v;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for CreateViewParams {
|
|
@@ -1407,6 +1493,13 @@ impl ::protobuf::Message for CreateViewParams {
|
|
|
8 => {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.data)?;
|
|
|
},
|
|
|
+ 9 => {
|
|
|
+ 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.plugin_type = tmp;
|
|
|
+ },
|
|
|
_ => {
|
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
|
},
|
|
@@ -1443,6 +1536,9 @@ impl ::protobuf::Message for CreateViewParams {
|
|
|
if !self.data.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(8, &self.data);
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ my_size += ::protobuf::rt::value_size(9, self.plugin_type, ::protobuf::wire_format::WireTypeVarint);
|
|
|
+ }
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
self.cached_size.set(my_size);
|
|
|
my_size
|
|
@@ -1473,6 +1569,9 @@ impl ::protobuf::Message for CreateViewParams {
|
|
|
if !self.data.is_empty() {
|
|
|
os.write_string(8, &self.data)?;
|
|
|
}
|
|
|
+ if self.plugin_type != 0 {
|
|
|
+ os.write_int32(9, self.plugin_type)?;
|
|
|
+ }
|
|
|
os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
::std::result::Result::Ok(())
|
|
|
}
|
|
@@ -1551,6 +1650,11 @@ impl ::protobuf::Message for CreateViewParams {
|
|
|
|m: &CreateViewParams| { &m.data },
|
|
|
|m: &mut CreateViewParams| { &mut m.data },
|
|
|
));
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
|
|
|
+ "plugin_type",
|
|
|
+ |m: &CreateViewParams| { &m.plugin_type },
|
|
|
+ |m: &mut CreateViewParams| { &mut m.plugin_type },
|
|
|
+ ));
|
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateViewParams>(
|
|
|
"CreateViewParams",
|
|
|
fields,
|
|
@@ -1575,6 +1679,7 @@ impl ::protobuf::Clear for CreateViewParams {
|
|
|
self.ext_data.clear();
|
|
|
self.view_id.clear();
|
|
|
self.data.clear();
|
|
|
+ self.plugin_type = 0;
|
|
|
self.unknown_fields.clear();
|
|
|
}
|
|
|
}
|
|
@@ -2765,7 +2870,7 @@ impl ::protobuf::reflect::ProtobufValue for ViewDataType {
|
|
|
}
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
- \n\nview.proto\"\xd4\x02\n\x04View\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\
|
|
|
+ \n\nview.proto\"\xf5\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\tdata_type\x18\x05\x20\x01(\x0e2\r.ViewDataTypeR\x08\
|
|
@@ -2773,32 +2878,35 @@ static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
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\
|
|
|
+ \x07extData\x12\x1c\n\tthumbnail\x18\x0b\x20\x01(\tR\tthumbnail\x12\x1f\
|
|
|
+ \n\x0bplugin_type\x18\x0c\x20\x01(\x05R\npluginType\"+\n\x0cRepeatedView\
|
|
|
+ \x12\x1b\n\x05items\x18\x01\x20\x03(\x0b2\x05.ViewR\x05items\"\xf9\x01\n\
|
|
|
+ \x11CreateViewPayload\x12\x20\n\x0cbelong_to_id\x18\x01\x20\x01(\tR\nbel\
|
|
|
+ ongToId\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.ViewDataTypeR\x08d\
|
|
|
+ ataType\x12\x19\n\x08ext_data\x18\x06\x20\x01(\tR\x07extData\x12\x1f\n\
|
|
|
+ \x0bplugin_type\x18\x07\x20\x01(\x05R\npluginTypeB\x12\n\x10one_of_thumb\
|
|
|
+ nail\"\x8f\x02\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.Vi\
|
|
|
+ ewDataTypeR\x08dataType\x12\x19\n\x08ext_data\x18\x06\x20\x01(\tR\x07ext\
|
|
|
+ Data\x12\x17\n\x07view_id\x18\x07\x20\x01(\tR\x06viewId\x12\x12\n\x04dat\
|
|
|
+ a\x18\x08\x20\x01(\tR\x04data\x12\x1f\n\x0bplugin_type\x18\t\x20\x01(\
|
|
|
+ \x05R\npluginType\"\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\x0cVi\
|
|
|
+ ewDataType\x12\x0c\n\x08RichText\x10\0\x12\r\n\tPlainText\x10\x01b\x06pr\
|
|
|
+ oto3\
|
|
|
";
|
|
|
|
|
|
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|