|
@@ -28,7 +28,7 @@ pub struct GridMeta {
|
|
// message fields
|
|
// message fields
|
|
pub grid_id: ::std::string::String,
|
|
pub grid_id: ::std::string::String,
|
|
pub fields: ::protobuf::RepeatedField<FieldMeta>,
|
|
pub fields: ::protobuf::RepeatedField<FieldMeta>,
|
|
- pub block_metas: ::protobuf::RepeatedField<GridBlockMeta>,
|
|
|
|
|
|
+ pub blocks: ::protobuf::RepeatedField<GridBlockMeta>,
|
|
// special fields
|
|
// special fields
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -96,29 +96,29 @@ impl GridMeta {
|
|
::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new())
|
|
::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new())
|
|
}
|
|
}
|
|
|
|
|
|
- // repeated .GridBlockMeta block_metas = 3;
|
|
|
|
|
|
+ // repeated .GridBlockMeta blocks = 3;
|
|
|
|
|
|
|
|
|
|
- pub fn get_block_metas(&self) -> &[GridBlockMeta] {
|
|
|
|
- &self.block_metas
|
|
|
|
|
|
+ pub fn get_blocks(&self) -> &[GridBlockMeta] {
|
|
|
|
+ &self.blocks
|
|
}
|
|
}
|
|
- pub fn clear_block_metas(&mut self) {
|
|
|
|
- self.block_metas.clear();
|
|
|
|
|
|
+ pub fn clear_blocks(&mut self) {
|
|
|
|
+ self.blocks.clear();
|
|
}
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
// Param is passed by value, moved
|
|
- pub fn set_block_metas(&mut self, v: ::protobuf::RepeatedField<GridBlockMeta>) {
|
|
|
|
- self.block_metas = v;
|
|
|
|
|
|
+ pub fn set_blocks(&mut self, v: ::protobuf::RepeatedField<GridBlockMeta>) {
|
|
|
|
+ self.blocks = v;
|
|
}
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
// Mutable pointer to the field.
|
|
- pub fn mut_block_metas(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockMeta> {
|
|
|
|
- &mut self.block_metas
|
|
|
|
|
|
+ pub fn mut_blocks(&mut self) -> &mut ::protobuf::RepeatedField<GridBlockMeta> {
|
|
|
|
+ &mut self.blocks
|
|
}
|
|
}
|
|
|
|
|
|
// Take field
|
|
// Take field
|
|
- pub fn take_block_metas(&mut self) -> ::protobuf::RepeatedField<GridBlockMeta> {
|
|
|
|
- ::std::mem::replace(&mut self.block_metas, ::protobuf::RepeatedField::new())
|
|
|
|
|
|
+ pub fn take_blocks(&mut self) -> ::protobuf::RepeatedField<GridBlockMeta> {
|
|
|
|
+ ::std::mem::replace(&mut self.blocks, ::protobuf::RepeatedField::new())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -129,7 +129,7 @@ impl ::protobuf::Message for GridMeta {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- for v in &self.block_metas {
|
|
|
|
|
|
+ for v in &self.blocks {
|
|
if !v.is_initialized() {
|
|
if !v.is_initialized() {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -148,7 +148,7 @@ impl ::protobuf::Message for GridMeta {
|
|
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?;
|
|
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?;
|
|
},
|
|
},
|
|
3 => {
|
|
3 => {
|
|
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.block_metas)?;
|
|
|
|
|
|
+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.blocks)?;
|
|
},
|
|
},
|
|
_ => {
|
|
_ => {
|
|
::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())?;
|
|
@@ -169,7 +169,7 @@ impl ::protobuf::Message for GridMeta {
|
|
let len = value.compute_size();
|
|
let len = value.compute_size();
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
};
|
|
};
|
|
- for value in &self.block_metas {
|
|
|
|
|
|
+ for value in &self.blocks {
|
|
let len = value.compute_size();
|
|
let len = value.compute_size();
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
};
|
|
};
|
|
@@ -187,7 +187,7 @@ impl ::protobuf::Message for GridMeta {
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
};
|
|
};
|
|
- for v in &self.block_metas {
|
|
|
|
|
|
+ for v in &self.blocks {
|
|
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
@@ -241,9 +241,9 @@ impl ::protobuf::Message for GridMeta {
|
|
|m: &mut GridMeta| { &mut m.fields },
|
|
|m: &mut GridMeta| { &mut m.fields },
|
|
));
|
|
));
|
|
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockMeta>>(
|
|
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridBlockMeta>>(
|
|
- "block_metas",
|
|
|
|
- |m: &GridMeta| { &m.block_metas },
|
|
|
|
- |m: &mut GridMeta| { &mut m.block_metas },
|
|
|
|
|
|
+ "blocks",
|
|
|
|
+ |m: &GridMeta| { &m.blocks },
|
|
|
|
+ |m: &mut GridMeta| { &mut m.blocks },
|
|
));
|
|
));
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<GridMeta>(
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<GridMeta>(
|
|
"GridMeta",
|
|
"GridMeta",
|
|
@@ -263,7 +263,7 @@ impl ::protobuf::Clear for GridMeta {
|
|
fn clear(&mut self) {
|
|
fn clear(&mut self) {
|
|
self.grid_id.clear();
|
|
self.grid_id.clear();
|
|
self.fields.clear();
|
|
self.fields.clear();
|
|
- self.block_metas.clear();
|
|
|
|
|
|
+ self.blocks.clear();
|
|
self.unknown_fields.clear();
|
|
self.unknown_fields.clear();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -513,7 +513,7 @@ impl ::protobuf::reflect::ProtobufValue for GridBlockMeta {
|
|
pub struct GridBlockMetaData {
|
|
pub struct GridBlockMetaData {
|
|
// message fields
|
|
// message fields
|
|
pub block_id: ::std::string::String,
|
|
pub block_id: ::std::string::String,
|
|
- pub row_metas: ::protobuf::RepeatedField<RowMeta>,
|
|
|
|
|
|
+ pub rows: ::protobuf::RepeatedField<RowMeta>,
|
|
// special fields
|
|
// special fields
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -556,35 +556,35 @@ impl GridBlockMetaData {
|
|
::std::mem::replace(&mut self.block_id, ::std::string::String::new())
|
|
::std::mem::replace(&mut self.block_id, ::std::string::String::new())
|
|
}
|
|
}
|
|
|
|
|
|
- // repeated .RowMeta row_metas = 2;
|
|
|
|
|
|
+ // repeated .RowMeta rows = 2;
|
|
|
|
|
|
|
|
|
|
- pub fn get_row_metas(&self) -> &[RowMeta] {
|
|
|
|
- &self.row_metas
|
|
|
|
|
|
+ pub fn get_rows(&self) -> &[RowMeta] {
|
|
|
|
+ &self.rows
|
|
}
|
|
}
|
|
- pub fn clear_row_metas(&mut self) {
|
|
|
|
- self.row_metas.clear();
|
|
|
|
|
|
+ pub fn clear_rows(&mut self) {
|
|
|
|
+ self.rows.clear();
|
|
}
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
// Param is passed by value, moved
|
|
- pub fn set_row_metas(&mut self, v: ::protobuf::RepeatedField<RowMeta>) {
|
|
|
|
- self.row_metas = v;
|
|
|
|
|
|
+ pub fn set_rows(&mut self, v: ::protobuf::RepeatedField<RowMeta>) {
|
|
|
|
+ self.rows = v;
|
|
}
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
// Mutable pointer to the field.
|
|
- pub fn mut_row_metas(&mut self) -> &mut ::protobuf::RepeatedField<RowMeta> {
|
|
|
|
- &mut self.row_metas
|
|
|
|
|
|
+ pub fn mut_rows(&mut self) -> &mut ::protobuf::RepeatedField<RowMeta> {
|
|
|
|
+ &mut self.rows
|
|
}
|
|
}
|
|
|
|
|
|
// Take field
|
|
// Take field
|
|
- pub fn take_row_metas(&mut self) -> ::protobuf::RepeatedField<RowMeta> {
|
|
|
|
- ::std::mem::replace(&mut self.row_metas, ::protobuf::RepeatedField::new())
|
|
|
|
|
|
+ pub fn take_rows(&mut self) -> ::protobuf::RepeatedField<RowMeta> {
|
|
|
|
+ ::std::mem::replace(&mut self.rows, ::protobuf::RepeatedField::new())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for GridBlockMetaData {
|
|
impl ::protobuf::Message for GridBlockMetaData {
|
|
fn is_initialized(&self) -> bool {
|
|
fn is_initialized(&self) -> bool {
|
|
- for v in &self.row_metas {
|
|
|
|
|
|
+ for v in &self.rows {
|
|
if !v.is_initialized() {
|
|
if !v.is_initialized() {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -600,7 +600,7 @@ impl ::protobuf::Message for GridBlockMetaData {
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.block_id)?;
|
|
},
|
|
},
|
|
2 => {
|
|
2 => {
|
|
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_metas)?;
|
|
|
|
|
|
+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rows)?;
|
|
},
|
|
},
|
|
_ => {
|
|
_ => {
|
|
::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())?;
|
|
@@ -617,7 +617,7 @@ impl ::protobuf::Message for GridBlockMetaData {
|
|
if !self.block_id.is_empty() {
|
|
if !self.block_id.is_empty() {
|
|
my_size += ::protobuf::rt::string_size(1, &self.block_id);
|
|
my_size += ::protobuf::rt::string_size(1, &self.block_id);
|
|
}
|
|
}
|
|
- for value in &self.row_metas {
|
|
|
|
|
|
+ for value in &self.rows {
|
|
let len = value.compute_size();
|
|
let len = value.compute_size();
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
};
|
|
};
|
|
@@ -630,7 +630,7 @@ impl ::protobuf::Message for GridBlockMetaData {
|
|
if !self.block_id.is_empty() {
|
|
if !self.block_id.is_empty() {
|
|
os.write_string(1, &self.block_id)?;
|
|
os.write_string(1, &self.block_id)?;
|
|
}
|
|
}
|
|
- for v in &self.row_metas {
|
|
|
|
|
|
+ for v in &self.rows {
|
|
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
v.write_to_with_cached_sizes(os)?;
|
|
@@ -679,9 +679,9 @@ impl ::protobuf::Message for GridBlockMetaData {
|
|
|m: &mut GridBlockMetaData| { &mut m.block_id },
|
|
|m: &mut GridBlockMetaData| { &mut m.block_id },
|
|
));
|
|
));
|
|
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowMeta>>(
|
|
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowMeta>>(
|
|
- "row_metas",
|
|
|
|
- |m: &GridBlockMetaData| { &m.row_metas },
|
|
|
|
- |m: &mut GridBlockMetaData| { &mut m.row_metas },
|
|
|
|
|
|
+ "rows",
|
|
|
|
+ |m: &GridBlockMetaData| { &m.rows },
|
|
|
|
+ |m: &mut GridBlockMetaData| { &mut m.rows },
|
|
));
|
|
));
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockMetaData>(
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<GridBlockMetaData>(
|
|
"GridBlockMetaData",
|
|
"GridBlockMetaData",
|
|
@@ -700,7 +700,7 @@ impl ::protobuf::Message for GridBlockMetaData {
|
|
impl ::protobuf::Clear for GridBlockMetaData {
|
|
impl ::protobuf::Clear for GridBlockMetaData {
|
|
fn clear(&mut self) {
|
|
fn clear(&mut self) {
|
|
self.block_id.clear();
|
|
self.block_id.clear();
|
|
- self.row_metas.clear();
|
|
|
|
|
|
+ self.rows.clear();
|
|
self.unknown_fields.clear();
|
|
self.unknown_fields.clear();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3453,26 +3453,26 @@ impl ::protobuf::reflect::ProtobufValue for FieldType {
|
|
}
|
|
}
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
- \n\nmeta.proto\"x\n\x08GridMeta\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
|
|
|
|
|
|
+ \n\nmeta.proto\"o\n\x08GridMeta\x12\x17\n\x07grid_id\x18\x01\x20\x01(\tR\
|
|
\x06gridId\x12\"\n\x06fields\x18\x02\x20\x03(\x0b2\n.FieldMetaR\x06field\
|
|
\x06gridId\x12\"\n\x06fields\x18\x02\x20\x03(\x0b2\n.FieldMetaR\x06field\
|
|
- s\x12/\n\x0bblock_metas\x18\x03\x20\x03(\x0b2\x0e.GridBlockMetaR\nblockM\
|
|
|
|
- etas\"o\n\rGridBlockMeta\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07bl\
|
|
|
|
- ockId\x12&\n\x0fstart_row_index\x18\x02\x20\x01(\x05R\rstartRowIndex\x12\
|
|
|
|
- \x1b\n\trow_count\x18\x03\x20\x01(\x05R\x08rowCount\"U\n\x11GridBlockMet\
|
|
|
|
- aData\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12%\n\trow_m\
|
|
|
|
- etas\x18\x02\x20\x03(\x0b2\x08.RowMetaR\x08rowMetas\"\xbc\x02\n\tFieldMe\
|
|
|
|
- ta\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\
|
|
|
|
- \x20\x01(\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12)\
|
|
|
|
- \n\nfield_type\x18\x04\x20\x01(\x0e2\n.FieldTypeR\tfieldType\x12\x16\n\
|
|
|
|
- \x06frozen\x18\x05\x20\x01(\x08R\x06frozen\x12\x1e\n\nvisibility\x18\x06\
|
|
|
|
- \x20\x01(\x08R\nvisibility\x12\x14\n\x05width\x18\x07\x20\x01(\x05R\x05w\
|
|
|
|
- idth\x12>\n\x0ctype_options\x18\x08\x20\x03(\x0b2\x1b.FieldMeta.TypeOpti\
|
|
|
|
- onsEntryR\x0btypeOptions\x1a>\n\x10TypeOptionsEntry\x12\x10\n\x03key\x18\
|
|
|
|
- \x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\
|
|
|
|
- \x028\x01\"\xa8\x03\n\x15FieldChangesetPayload\x12\x19\n\x08field_id\x18\
|
|
|
|
- \x01\x20\x01(\tR\x07fieldId\x12\x17\n\x07grid_id\x18\x02\x20\x01(\tR\x06\
|
|
|
|
- gridId\x12\x14\n\x04name\x18\x03\x20\x01(\tH\0R\x04name\x12\x14\n\x04des\
|
|
|
|
- c\x18\x04\x20\x01(\tH\x01R\x04desc\x12+\n\nfield_type\x18\x05\x20\x01(\
|
|
|
|
|
|
+ s\x12&\n\x06blocks\x18\x03\x20\x03(\x0b2\x0e.GridBlockMetaR\x06blocks\"o\
|
|
|
|
+ \n\rGridBlockMeta\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\
|
|
|
|
+ \x12&\n\x0fstart_row_index\x18\x02\x20\x01(\x05R\rstartRowIndex\x12\x1b\
|
|
|
|
+ \n\trow_count\x18\x03\x20\x01(\x05R\x08rowCount\"L\n\x11GridBlockMetaDat\
|
|
|
|
+ a\x12\x19\n\x08block_id\x18\x01\x20\x01(\tR\x07blockId\x12\x1c\n\x04rows\
|
|
|
|
+ \x18\x02\x20\x03(\x0b2\x08.RowMetaR\x04rows\"\xbc\x02\n\tFieldMeta\x12\
|
|
|
|
+ \x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01\
|
|
|
|
+ (\tR\x04name\x12\x12\n\x04desc\x18\x03\x20\x01(\tR\x04desc\x12)\n\nfield\
|
|
|
|
+ _type\x18\x04\x20\x01(\x0e2\n.FieldTypeR\tfieldType\x12\x16\n\x06frozen\
|
|
|
|
+ \x18\x05\x20\x01(\x08R\x06frozen\x12\x1e\n\nvisibility\x18\x06\x20\x01(\
|
|
|
|
+ \x08R\nvisibility\x12\x14\n\x05width\x18\x07\x20\x01(\x05R\x05width\x12>\
|
|
|
|
+ \n\x0ctype_options\x18\x08\x20\x03(\x0b2\x1b.FieldMeta.TypeOptionsEntryR\
|
|
|
|
+ \x0btypeOptions\x1a>\n\x10TypeOptionsEntry\x12\x10\n\x03key\x18\x01\x20\
|
|
|
|
+ \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\
|
|
|
|
+ \x01\"\xa8\x03\n\x15FieldChangesetPayload\x12\x19\n\x08field_id\x18\x01\
|
|
|
|
+ \x20\x01(\tR\x07fieldId\x12\x17\n\x07grid_id\x18\x02\x20\x01(\tR\x06grid\
|
|
|
|
+ Id\x12\x14\n\x04name\x18\x03\x20\x01(\tH\0R\x04name\x12\x14\n\x04desc\
|
|
|
|
+ \x18\x04\x20\x01(\tH\x01R\x04desc\x12+\n\nfield_type\x18\x05\x20\x01(\
|
|
\x0e2\n.FieldTypeH\x02R\tfieldType\x12\x18\n\x06frozen\x18\x06\x20\x01(\
|
|
\x0e2\n.FieldTypeH\x02R\tfieldType\x12\x18\n\x06frozen\x18\x06\x20\x01(\
|
|
\x08H\x03R\x06frozen\x12\x20\n\nvisibility\x18\x07\x20\x01(\x08H\x04R\nv\
|
|
\x08H\x03R\x06frozen\x12\x20\n\nvisibility\x18\x07\x20\x01(\x08H\x04R\nv\
|
|
isibility\x12\x16\n\x05width\x18\x08\x20\x01(\x05H\x05R\x05width\x12*\n\
|
|
isibility\x12\x16\n\x05width\x18\x08\x20\x01(\x05H\x05R\x05width\x12*\n\
|