|
@@ -489,6 +489,7 @@ pub struct App {
|
|
pub workspace_id: ::std::string::String,
|
|
pub workspace_id: ::std::string::String,
|
|
pub name: ::std::string::String,
|
|
pub name: ::std::string::String,
|
|
pub desc: ::std::string::String,
|
|
pub desc: ::std::string::String,
|
|
|
|
+ pub views: ::protobuf::SingularPtrField<super::view_create::RepeatedView>,
|
|
// special fields
|
|
// special fields
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -608,10 +609,48 @@ impl App {
|
|
pub fn take_desc(&mut self) -> ::std::string::String {
|
|
pub fn take_desc(&mut self) -> ::std::string::String {
|
|
::std::mem::replace(&mut self.desc, ::std::string::String::new())
|
|
::std::mem::replace(&mut self.desc, ::std::string::String::new())
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // .RepeatedView views = 5;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ pub fn get_views(&self) -> &super::view_create::RepeatedView {
|
|
|
|
+ self.views.as_ref().unwrap_or_else(|| <super::view_create::RepeatedView as ::protobuf::Message>::default_instance())
|
|
|
|
+ }
|
|
|
|
+ pub fn clear_views(&mut self) {
|
|
|
|
+ self.views.clear();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ pub fn has_views(&self) -> bool {
|
|
|
|
+ self.views.is_some()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // Param is passed by value, moved
|
|
|
|
+ pub fn set_views(&mut self, v: super::view_create::RepeatedView) {
|
|
|
|
+ self.views = ::protobuf::SingularPtrField::some(v);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // Mutable pointer to the field.
|
|
|
|
+ // If field is not initialized, it is initialized with default value first.
|
|
|
|
+ pub fn mut_views(&mut self) -> &mut super::view_create::RepeatedView {
|
|
|
|
+ if self.views.is_none() {
|
|
|
|
+ self.views.set_default();
|
|
|
|
+ }
|
|
|
|
+ self.views.as_mut().unwrap()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // Take field
|
|
|
|
+ pub fn take_views(&mut self) -> super::view_create::RepeatedView {
|
|
|
|
+ self.views.take().unwrap_or_else(|| super::view_create::RepeatedView::new())
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for App {
|
|
impl ::protobuf::Message for App {
|
|
fn is_initialized(&self) -> bool {
|
|
fn is_initialized(&self) -> bool {
|
|
|
|
+ for v in &self.views {
|
|
|
|
+ if !v.is_initialized() {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ };
|
|
true
|
|
true
|
|
}
|
|
}
|
|
|
|
|
|
@@ -631,6 +670,9 @@ impl ::protobuf::Message for App {
|
|
4 => {
|
|
4 => {
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;
|
|
},
|
|
},
|
|
|
|
+ 5 => {
|
|
|
|
+ ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.views)?;
|
|
|
|
+ },
|
|
_ => {
|
|
_ => {
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
},
|
|
},
|
|
@@ -655,6 +697,10 @@ impl ::protobuf::Message for App {
|
|
if !self.desc.is_empty() {
|
|
if !self.desc.is_empty() {
|
|
my_size += ::protobuf::rt::string_size(4, &self.desc);
|
|
my_size += ::protobuf::rt::string_size(4, &self.desc);
|
|
}
|
|
}
|
|
|
|
+ if let Some(ref v) = self.views.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());
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
self.cached_size.set(my_size);
|
|
self.cached_size.set(my_size);
|
|
my_size
|
|
my_size
|
|
@@ -673,6 +719,11 @@ impl ::protobuf::Message for App {
|
|
if !self.desc.is_empty() {
|
|
if !self.desc.is_empty() {
|
|
os.write_string(4, &self.desc)?;
|
|
os.write_string(4, &self.desc)?;
|
|
}
|
|
}
|
|
|
|
+ if let Some(ref v) = self.views.as_ref() {
|
|
|
|
+ os.write_tag(5, ::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())?;
|
|
os.write_unknown_fields(self.get_unknown_fields())?;
|
|
::std::result::Result::Ok(())
|
|
::std::result::Result::Ok(())
|
|
}
|
|
}
|
|
@@ -731,6 +782,11 @@ impl ::protobuf::Message for App {
|
|
|m: &App| { &m.desc },
|
|
|m: &App| { &m.desc },
|
|
|m: &mut App| { &mut m.desc },
|
|
|m: &mut App| { &mut m.desc },
|
|
));
|
|
));
|
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::view_create::RepeatedView>>(
|
|
|
|
+ "views",
|
|
|
|
+ |m: &App| { &m.views },
|
|
|
|
+ |m: &mut App| { &mut m.views },
|
|
|
|
+ ));
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<App>(
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<App>(
|
|
"App",
|
|
"App",
|
|
fields,
|
|
fields,
|
|
@@ -751,6 +807,7 @@ impl ::protobuf::Clear for App {
|
|
self.workspace_id.clear();
|
|
self.workspace_id.clear();
|
|
self.name.clear();
|
|
self.name.clear();
|
|
self.desc.clear();
|
|
self.desc.clear();
|
|
|
|
+ self.views.clear();
|
|
self.unknown_fields.clear();
|
|
self.unknown_fields.clear();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -934,49 +991,54 @@ impl ::protobuf::reflect::ProtobufValue for RepeatedApp {
|
|
}
|
|
}
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
- \n\x10app_create.proto\"\x8b\x01\n\x10CreateAppRequest\x12!\n\x0cworkspa\
|
|
|
|
- ce_id\x18\x01\x20\x01(\tR\x0bworkspaceId\x12\x12\n\x04name\x18\x02\x20\
|
|
|
|
- \x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12,\n\
|
|
|
|
- \x0bcolor_style\x18\x04\x20\x01(\x0b2\x0b.ColorStyleR\ncolorStyle\"-\n\n\
|
|
|
|
- ColorStyle\x12\x1f\n\x0btheme_color\x18\x01\x20\x01(\tR\nthemeColor\"`\n\
|
|
|
|
- \x03App\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12!\n\x0cworkspace_id\
|
|
|
|
- \x18\x02\x20\x01(\tR\x0bworkspaceId\x12\x12\n\x04name\x18\x03\x20\x01(\t\
|
|
|
|
- R\x04name\x12\x12\n\x04desc\x18\x04\x20\x01(\tR\x04desc\")\n\x0bRepeated\
|
|
|
|
- App\x12\x1a\n\x05items\x18\x01\x20\x03(\x0b2\x04.AppR\x05itemsJ\xa6\x05\
|
|
|
|
- \n\x06\x12\x04\0\0\x13\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\
|
|
|
|
- \0\x12\x04\x02\0\x07\x01\n\n\n\x03\x04\0\x01\x12\x03\x02\x08\x18\n\x0b\n\
|
|
|
|
- \x04\x04\0\x02\0\x12\x03\x03\x04\x1c\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\
|
|
|
|
- \x03\x04\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x03\x0b\x17\n\x0c\n\x05\
|
|
|
|
- \x04\0\x02\0\x03\x12\x03\x03\x1a\x1b\n\x0b\n\x04\x04\0\x02\x01\x12\x03\
|
|
|
|
- \x04\x04\x14\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x04\x04\n\n\x0c\n\x05\
|
|
|
|
- \x04\0\x02\x01\x01\x12\x03\x04\x0b\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\
|
|
|
|
- \x03\x04\x12\x13\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x05\x04\x14\n\x0c\n\
|
|
|
|
- \x05\x04\0\x02\x02\x05\x12\x03\x05\x04\n\n\x0c\n\x05\x04\0\x02\x02\x01\
|
|
|
|
- \x12\x03\x05\x0b\x0f\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x05\x12\x13\n\
|
|
|
|
- \x0b\n\x04\x04\0\x02\x03\x12\x03\x06\x04\x1f\n\x0c\n\x05\x04\0\x02\x03\
|
|
|
|
- \x06\x12\x03\x06\x04\x0e\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x06\x0f\
|
|
|
|
- \x1a\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x06\x1d\x1e\n\n\n\x02\x04\x01\
|
|
|
|
- \x12\x04\x08\0\n\x01\n\n\n\x03\x04\x01\x01\x12\x03\x08\x08\x12\n\x0b\n\
|
|
|
|
- \x04\x04\x01\x02\0\x12\x03\t\x04\x1b\n\x0c\n\x05\x04\x01\x02\0\x05\x12\
|
|
|
|
- \x03\t\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\t\x0b\x16\n\x0c\n\x05\
|
|
|
|
- \x04\x01\x02\0\x03\x12\x03\t\x19\x1a\n\n\n\x02\x04\x02\x12\x04\x0b\0\x10\
|
|
|
|
- \x01\n\n\n\x03\x04\x02\x01\x12\x03\x0b\x08\x0b\n\x0b\n\x04\x04\x02\x02\0\
|
|
|
|
- \x12\x03\x0c\x04\x12\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\x0c\x04\n\n\
|
|
|
|
- \x0c\n\x05\x04\x02\x02\0\x01\x12\x03\x0c\x0b\r\n\x0c\n\x05\x04\x02\x02\0\
|
|
|
|
- \x03\x12\x03\x0c\x10\x11\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\r\x04\x1c\n\
|
|
|
|
- \x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\r\x04\n\n\x0c\n\x05\x04\x02\x02\
|
|
|
|
- \x01\x01\x12\x03\r\x0b\x17\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03\r\x1a\
|
|
|
|
- \x1b\n\x0b\n\x04\x04\x02\x02\x02\x12\x03\x0e\x04\x14\n\x0c\n\x05\x04\x02\
|
|
|
|
- \x02\x02\x05\x12\x03\x0e\x04\n\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03\
|
|
|
|
- \x0e\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\x0e\x12\x13\n\x0b\n\
|
|
|
|
- \x04\x04\x02\x02\x03\x12\x03\x0f\x04\x14\n\x0c\n\x05\x04\x02\x02\x03\x05\
|
|
|
|
- \x12\x03\x0f\x04\n\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03\x0f\x0b\x0f\n\
|
|
|
|
- \x0c\n\x05\x04\x02\x02\x03\x03\x12\x03\x0f\x12\x13\n\n\n\x02\x04\x03\x12\
|
|
|
|
- \x04\x11\0\x13\x01\n\n\n\x03\x04\x03\x01\x12\x03\x11\x08\x13\n\x0b\n\x04\
|
|
|
|
- \x04\x03\x02\0\x12\x03\x12\x04\x1b\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03\
|
|
|
|
- \x12\x04\x0c\n\x0c\n\x05\x04\x03\x02\0\x06\x12\x03\x12\r\x10\n\x0c\n\x05\
|
|
|
|
- \x04\x03\x02\0\x01\x12\x03\x12\x11\x16\n\x0c\n\x05\x04\x03\x02\0\x03\x12\
|
|
|
|
- \x03\x12\x19\x1ab\x06proto3\
|
|
|
|
|
|
+ \n\x10app_create.proto\x1a\x11view_create.proto\"\x8b\x01\n\x10CreateApp\
|
|
|
|
+ Request\x12!\n\x0cworkspace_id\x18\x01\x20\x01(\tR\x0bworkspaceId\x12\
|
|
|
|
+ \x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\
|
|
|
|
+ \x01(\tR\x04desc\x12,\n\x0bcolor_style\x18\x04\x20\x01(\x0b2\x0b.ColorSt\
|
|
|
|
+ yleR\ncolorStyle\"-\n\nColorStyle\x12\x1f\n\x0btheme_color\x18\x01\x20\
|
|
|
|
+ \x01(\tR\nthemeColor\"\x85\x01\n\x03App\x12\x0e\n\x02id\x18\x01\x20\x01(\
|
|
|
|
+ \tR\x02id\x12!\n\x0cworkspace_id\x18\x02\x20\x01(\tR\x0bworkspaceId\x12\
|
|
|
|
+ \x12\n\x04name\x18\x03\x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x04\x20\
|
|
|
|
+ \x01(\tR\x04desc\x12#\n\x05views\x18\x05\x20\x01(\x0b2\r.RepeatedViewR\
|
|
|
|
+ \x05views\")\n\x0bRepeatedApp\x12\x1a\n\x05items\x18\x01\x20\x03(\x0b2\
|
|
|
|
+ \x04.AppR\x05itemsJ\xe8\x05\n\x06\x12\x04\0\0\x15\x01\n\x08\n\x01\x0c\
|
|
|
|
+ \x12\x03\0\0\x12\n\t\n\x02\x03\0\x12\x03\x01\0\x1b\n\n\n\x02\x04\0\x12\
|
|
|
|
+ \x04\x03\0\x08\x01\n\n\n\x03\x04\0\x01\x12\x03\x03\x08\x18\n\x0b\n\x04\
|
|
|
|
+ \x04\0\x02\0\x12\x03\x04\x04\x1c\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x04\
|
|
|
|
+ \x04\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x04\x0b\x17\n\x0c\n\x05\x04\0\
|
|
|
|
+ \x02\0\x03\x12\x03\x04\x1a\x1b\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x05\x04\
|
|
|
|
+ \x14\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x05\x04\n\n\x0c\n\x05\x04\0\
|
|
|
|
+ \x02\x01\x01\x12\x03\x05\x0b\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\
|
|
|
|
+ \x05\x12\x13\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x06\x04\x14\n\x0c\n\x05\
|
|
|
|
+ \x04\0\x02\x02\x05\x12\x03\x06\x04\n\n\x0c\n\x05\x04\0\x02\x02\x01\x12\
|
|
|
|
+ \x03\x06\x0b\x0f\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x06\x12\x13\n\x0b\
|
|
|
|
+ \n\x04\x04\0\x02\x03\x12\x03\x07\x04\x1f\n\x0c\n\x05\x04\0\x02\x03\x06\
|
|
|
|
+ \x12\x03\x07\x04\x0e\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x07\x0f\x1a\n\
|
|
|
|
+ \x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x07\x1d\x1e\n\n\n\x02\x04\x01\x12\
|
|
|
|
+ \x04\t\0\x0b\x01\n\n\n\x03\x04\x01\x01\x12\x03\t\x08\x12\n\x0b\n\x04\x04\
|
|
|
|
+ \x01\x02\0\x12\x03\n\x04\x1b\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\n\x04\
|
|
|
|
+ \n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\n\x0b\x16\n\x0c\n\x05\x04\x01\
|
|
|
|
+ \x02\0\x03\x12\x03\n\x19\x1a\n\n\n\x02\x04\x02\x12\x04\x0c\0\x12\x01\n\n\
|
|
|
|
+ \n\x03\x04\x02\x01\x12\x03\x0c\x08\x0b\n\x0b\n\x04\x04\x02\x02\0\x12\x03\
|
|
|
|
+ \r\x04\x12\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\r\x04\n\n\x0c\n\x05\x04\
|
|
|
|
+ \x02\x02\0\x01\x12\x03\r\x0b\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\r\
|
|
|
|
+ \x10\x11\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\x0e\x04\x1c\n\x0c\n\x05\x04\
|
|
|
|
+ \x02\x02\x01\x05\x12\x03\x0e\x04\n\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\
|
|
|
|
+ \x03\x0e\x0b\x17\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03\x0e\x1a\x1b\n\
|
|
|
|
+ \x0b\n\x04\x04\x02\x02\x02\x12\x03\x0f\x04\x14\n\x0c\n\x05\x04\x02\x02\
|
|
|
|
+ \x02\x05\x12\x03\x0f\x04\n\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03\x0f\
|
|
|
|
+ \x0b\x0f\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\x0f\x12\x13\n\x0b\n\x04\
|
|
|
|
+ \x04\x02\x02\x03\x12\x03\x10\x04\x14\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\
|
|
|
|
+ \x03\x10\x04\n\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03\x10\x0b\x0f\n\x0c\
|
|
|
|
+ \n\x05\x04\x02\x02\x03\x03\x12\x03\x10\x12\x13\n\x0b\n\x04\x04\x02\x02\
|
|
|
|
+ \x04\x12\x03\x11\x04\x1b\n\x0c\n\x05\x04\x02\x02\x04\x06\x12\x03\x11\x04\
|
|
|
|
+ \x10\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x03\x11\x11\x16\n\x0c\n\x05\x04\
|
|
|
|
+ \x02\x02\x04\x03\x12\x03\x11\x19\x1a\n\n\n\x02\x04\x03\x12\x04\x13\0\x15\
|
|
|
|
+ \x01\n\n\n\x03\x04\x03\x01\x12\x03\x13\x08\x13\n\x0b\n\x04\x04\x03\x02\0\
|
|
|
|
+ \x12\x03\x14\x04\x1b\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03\x14\x04\x0c\n\
|
|
|
|
+ \x0c\n\x05\x04\x03\x02\0\x06\x12\x03\x14\r\x10\n\x0c\n\x05\x04\x03\x02\0\
|
|
|
|
+ \x01\x12\x03\x14\x11\x16\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x14\x19\
|
|
|
|
+ \x1ab\x06proto3\
|
|
";
|
|
";
|
|
|
|
|
|
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|
|
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|