Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: config grid plugin
appflowy67e6b091a5bf
diff --git a/frontend/app_flowy/lib/plugin/plugin.dart b/frontend/app_flowy/lib/plugin/plugin.dartindex d0effa0e6d..5007e92e18 100644--- a/frontend/app_flowy/lib/plugin/plugin.dart+++ b/frontend/app_flowy/lib/plugin/plugin.dart@@ -13,6 +13,7 @@ enum DefaultPlugin {quillEditor,blank,trash,+ grid,}extension FlowyDefaultPluginExt on DefaultPlugin {@@ -24,6 +25,8 @@ extension FlowyDefaultPluginExt on DefaultPlugin {return 1;case DefaultPlugin.trash:return 2;+ case DefaultPlugin.grid:+ return 3;}}}diff --git a/frontend/app_flowy/lib/startup/tasks/load_plugin.dart b/frontend/app_flowy/lib/startup/tasks/load_plugin.dartindex 266c6d1c09..fd4bb7e2b9 100644--- a/frontend/app_flowy/lib/startup/tasks/load_plugin.dart+++ b/frontend/app_flowy/lib/startup/tasks/load_plugin.dart@@ -2,6 +2,7 @@ import 'package:app_flowy/plugin/plugin.dart';import 'package:app_flowy/startup/startup.dart';import 'package:app_flowy/workspace/presentation/plugins/blank/blank.dart';import 'package:app_flowy/workspace/presentation/plugins/doc/document.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/grid.dart';import 'package:app_flowy/workspace/presentation/plugins/trash/trash.dart';class PluginLoadTask extends LaunchTask {@@ -13,5 +14,6 @@ class PluginLoadTask extends LaunchTask {registerPlugin(builder: BlankPluginBuilder(), config: BlankPluginConfig());registerPlugin(builder: TrashPluginBuilder(), config: TrashPluginConfig());registerPlugin(builder: DocumentPluginBuilder());+ registerPlugin(builder: GridPluginBuilder(), config: GridPluginConfig());}}diff --git a/frontend/app_flowy/lib/workspace/application/grid/grid_bloc.dart b/frontend/app_flowy/lib/workspace/application/grid/grid_bloc.dartindex d8da9e9d65..40b145b8a4 100644--- a/frontend/app_flowy/lib/workspace/application/grid/grid_bloc.dart+++ b/frontend/app_flowy/lib/workspace/application/grid/grid_bloc.dart@@ -74,7 +74,6 @@ class GridBloc extends Bloc<GridEvent, GridState> {result.fold((repeatedRow) {final rows = repeatedRow.items;final gridInfo = GridInfo(rows: rows, fields: _fields!);-emit(state.copyWith(loadingState: GridLoadingState.finish(left(unit)), gridInfo: some(left(gridInfo))),);@@ -116,7 +115,7 @@ class GridLoadingState with _$GridLoadingState {}class GridInfo {- List<GridRow> rows;+ List<Row> rows;List<Field> fields;GridInfo({@@ -139,7 +138,7 @@ class GridInfo {class RowInfo {List<Field> fields;- Map<String, GridCell> cellMap;+ Map<String, Cell> cellMap;RowInfo({required this.fields,required this.cellMap,diff --git a/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart b/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dartindex 3344b2793a..8e249ab9c5 100644--- a/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart+++ b/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart@@ -170,7 +170,7 @@ class HomeStackManager {if (pluginType == notifier.plugin.ty) {return notifier.plugin.display.buildWidget();} else {- return const BlankStackPage();+ return const BlankPage();}}).toList(),);diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/blank/blank.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/blank/blank.dartindex 6be2a788fb..598f6971f2 100644--- a/frontend/app_flowy/lib/workspace/presentation/plugins/blank/blank.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/blank/blank.dart@@ -45,20 +45,20 @@ class BlankPagePluginDisplay extends PluginDisplay {Widget get leftBarItem => FlowyText.medium(LocaleKeys.blankPageTitle.tr(), fontSize: 12);@override- Widget buildWidget() => const BlankStackPage();+ Widget buildWidget() => const BlankPage();@overrideList<NavigationItem> get navigationItems => [this];}-class BlankStackPage extends StatefulWidget {- const BlankStackPage({Key? key}) : super(key: key);+class BlankPage extends StatefulWidget {+ const BlankPage({Key? key}) : super(key: key);@override- State<BlankStackPage> createState() => _BlankStackPageState();+ State<BlankPage> createState() => _BlankPageState();}-class _BlankStackPageState extends State<BlankStackPage> {+class _BlankPageState extends State<BlankPage> {@overrideWidget build(BuildContext context) {return SizedBox.expand(diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid.dartnew file mode 100644index 0000000000..0fca5db0c7--- /dev/null+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid.dart@@ -0,0 +1,63 @@+import 'package:app_flowy/workspace/presentation/home/home_stack.dart';+import 'package:flowy_infra_ui/style_widget/text.dart';+import 'package:flowy_sdk/protobuf/flowy-folder-data-model/view.pb.dart';+import 'package:app_flowy/plugin/plugin.dart';+import 'package:flutter/material.dart';++import 'src/grid_page.dart';++class GridPluginBuilder extends PluginBuilder {+ @override+ Plugin build(dynamic data) {+ if (data is View) {+ return GridPlugin(pluginType: pluginType, view: data);+ } else {+ throw FlowyPluginException.invalidData;+ }+ }++ @override+ String get menuName => "Table";++ @override+ PluginType get pluginType => DefaultPlugin.grid.type();+}++class GridPluginConfig implements PluginConfig {+ @override+ bool get creatable => true;+}++class GridPlugin extends Plugin {+ final View _view;+ final PluginType _pluginType;++ GridPlugin({+ required View view,+ required PluginType pluginType,+ }) : _pluginType = pluginType,+ _view = view;++ @override+ PluginDisplay get display => GridPluginDisplay(view: _view);++ @override+ PluginId get id => _view.id;++ @override+ PluginType get ty => _pluginType;+}++class GridPluginDisplay extends PluginDisplay {+ final View _view;+ GridPluginDisplay({required View view, Key? key}) : _view = view;++ @override+ Widget get leftBarItem => const FlowyText.medium("Grid demo", fontSize: 12);++ @override+ Widget buildWidget() => GridPage(view: _view);++ @override+ List<NavigationItem> get navigationItems => [this];+}diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/controller/flowy_table_selection.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/controller/flowy_table_selection.dartsimilarity index 100%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/controller/flowy_table_selection.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/controller/flowy_table_selection.dartdiff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/controller/grid_scroll.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/controller/grid_scroll.dartsimilarity index 100%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/controller/grid_scroll.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/controller/grid_scroll.dartdiff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_page.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/grid_page.dartsimilarity index 93%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_page.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/grid_page.dartindex 6b72af2aa5..33b8c94fa5 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_page.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/grid_page.dart@@ -8,14 +8,14 @@ import 'package:flowy_sdk/protobuf/flowy-folder-data-model/view.pb.dart';import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:flutter/material.dart';-import 'package:app_flowy/workspace/presentation/plugins/grid/controller/grid_scroll.dart';import 'package:styled_widget/styled_widget.dart';-import 'grid_layout.dart';-import 'grid_sizes.dart';-import 'widgets/grid_content/grid_row.dart';-import 'widgets/grid_footer/grid_footer.dart';-import 'widgets/grid_header/header.dart';+import 'controller/grid_scroll.dart';+import 'layout/layout.dart';+import 'layout/sizes.dart';+import 'widgets/content/grid_row.dart';+import 'widgets/footer/grid_footer.dart';+import 'widgets/header/header.dart';class GridPage extends StatefulWidget {final View view;diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_layout.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/layout/layout.dartsimilarity index 93%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_layout.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/layout/layout.dartindex 0daeacbb33..a44ad20d39 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_layout.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/layout/layout.dart@@ -1,6 +1,6 @@import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';-import 'grid_sizes.dart';+import 'sizes.dart';class GridLayout {static double headerWidth(List<Field> fields) {diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_sizes.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/layout/sizes.dartsimilarity index 100%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/grid_sizes.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/layout/sizes.dartdiff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_builder.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_builder.dartsimilarity index 84%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_builder.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_builder.dartindex 5ff1922835..1c02664c86 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_builder.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_builder.dart@@ -2,7 +2,7 @@ import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';import 'grid_cell.dart';class GridCellBuilder {- static GridCellWidget buildCell(Field? field, GridCell? cell) {+ static GridCellWidget buildCell(Field? field, Cell? cell) {if (field == null || cell == null) {return const BlankCell();}diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_container.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_container.dartsimilarity index 92%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_container.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_container.dartindex 1ba7c1f009..edd0de5076 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_container.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_container.dart@@ -1,4 +1,4 @@-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';import 'package:flowy_infra_ui/widget/mouse_hover_builder.dart';import 'package:flutter/material.dart';import 'cell_decoration.dart';diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_decoration.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_decoration.dartsimilarity index 100%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/cell_decoration.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/cell_decoration.dartdiff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_cell.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_cell.dartsimilarity index 96%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_cell.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_cell.dartindex 93701e1ded..00e6fad6af 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_cell.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_cell.dart@@ -1,4 +1,4 @@-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';import 'package:flowy_infra_ui/widget/mouse_hover_builder.dart';import 'package:flutter/material.dart';diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_row.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_row.dartsimilarity index 91%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_row.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_row.dartindex 247f9fc525..4d5da03423 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_content/grid_row.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/content/grid_row.dart@@ -1,6 +1,6 @@import 'package:app_flowy/workspace/application/grid/grid_bloc.dart';-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';-import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';+import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart' hide Row;import 'package:flutter/material.dart';import 'cell_builder.dart';import 'cell_container.dart';@@ -9,7 +9,7 @@ import 'grid_cell.dart';class GridRowContext {final RepeatedFieldOrder fieldOrders;final Map<String, Field> fieldById;- final Map<String, GridCell> cellByFieldId;+ final Map<String, Cell> cellByFieldId;GridRowContext(this.fieldOrders, this.fieldById, this.cellByFieldId);}diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_footer/grid_footer.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/footer/grid_footer.dartsimilarity index 86%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_footer/grid_footer.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/footer/grid_footer.dartindex b5ccee4892..cdbb0d6e51 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_footer/grid_footer.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/footer/grid_footer.dart@@ -1,8 +1,9 @@-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';-import 'package:app_flowy/workspace/presentation/plugins/grid/widgets/grid_content/cell_decoration.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';import 'package:flowy_infra_ui/widget/mouse_hover_builder.dart';import 'package:flutter/material.dart';+import '../content/cell_decoration.dart';+class GridFooter extends StatelessWidget {final VoidCallback? onAddRow;const GridFooter({Key? key, required this.onAddRow}) : super(key: key);diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/constants.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/constants.dartsimilarity index 100%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/constants.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/constants.dartdiff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header.dartsimilarity index 93%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header.dartindex 51bceb239a..9f894f8ee5 100644--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header.dart@@ -1,5 +1,5 @@-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';-import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';+import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart' hide Row;import 'package:flutter/material.dart';import 'header_cell.dart';diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header_cell.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header_cell.dartsimilarity index 94%rename from frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header_cell.dartrename to frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header_cell.dartindex 8fbe34fa2b..4148f1e041 100755--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_header/header_cell.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/header/header_cell.dart@@ -1,4 +1,4 @@-import 'package:app_flowy/workspace/presentation/plugins/grid/grid_sizes.dart';+import 'package:app_flowy/workspace/presentation/plugins/grid/src/layout/sizes.dart';import 'package:flowy_sdk/protobuf/flowy-grid-data-model/grid.pb.dart';import 'package:flutter/material.dart';import 'constants.dart';diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_error_page.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_error_page.dartdeleted file mode 100755index 92973a05b3..0000000000--- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/widgets/grid_error_page.dart+++ /dev/null@@ -1,14 +0,0 @@-import 'package:flutter/material.dart';--class GridUnknownError extends StatelessWidget {- const GridUnknownError({Key? key}) : super(key: key);-- @override- Widget build(BuildContext context) {- return Container(- child: Center(- child: CircularProgressIndicator(),- ),- );- }-}diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/trash/trash.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/trash/trash.dartindex 4f9ef4c911..e74289d982 100644--- a/frontend/app_flowy/lib/workspace/presentation/plugins/trash/trash.dart+++ b/frontend/app_flowy/lib/workspace/presentation/plugins/trash/trash.dart@@ -65,20 +65,20 @@ class TrashPluginDisplay extends PluginDisplay {Widget? get rightBarItem => null;@override- Widget buildWidget() => const TrashStackPage(key: ValueKey('TrashStackPage'));+ Widget buildWidget() => const TrashPage(key: ValueKey('TrashPage'));@overrideList<NavigationItem> get navigationItems => [this];}-class TrashStackPage extends StatefulWidget {- const TrashStackPage({Key? key}) : super(key: key);+class TrashPage extends StatefulWidget {+ const TrashPage({Key? key}) : super(key: key);@override- State<TrashStackPage> createState() => _TrashStackPageState();+ State<TrashPage> createState() => _TrashPageState();}-class _TrashStackPageState extends State<TrashStackPage> {+class _TrashPageState extends State<TrashPage> {final ScrollController _scrollController = ScrollController();@overrideWidget build(BuildContext context) {diff --git a/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pb.dart b/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pb.dartindex 2d8aeace2c..ba0b827df8 100644--- a/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pb.dart+++ b/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pb.dart@@ -7,7 +7,6 @@import 'dart:core' as $core;-import 'package:fixnum/fixnum.dart' as $fixnum;import 'package:protobuf/protobuf.dart' as $pb;import 'grid.pbenum.dart';@@ -16,8 +15,8 @@ export 'grid.pbenum.dart';class Grid extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Grid', createEmptyInstance: create)- ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gridId')- ..aOM<RepeatedGridFilter>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters', subBuilder: RepeatedGridFilter.create)+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')+ ..aOM<RepeatedFilter>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters', subBuilder: RepeatedFilter.create)..aOM<RepeatedFieldOrder>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldOrders', subBuilder: RepeatedFieldOrder.create)..aOM<RepeatedRowOrder>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rowOrders', subBuilder: RepeatedRowOrder.create)..hasRequiredFields = false@@ -25,14 +24,14 @@ class Grid extends $pb.GeneratedMessage {Grid._() : super();factory Grid({- $core.String? gridId,- RepeatedGridFilter? filters,+ $core.String? id,+ RepeatedFilter? filters,RepeatedFieldOrder? fieldOrders,RepeatedRowOrder? rowOrders,}) {final _result = create();- if (gridId != null) {- _result.gridId = gridId;+ if (id != null) {+ _result.id = id;}if (filters != null) {_result.filters = filters;@@ -67,24 +66,24 @@ class Grid extends $pb.GeneratedMessage {static Grid? _defaultInstance;@$pb.TagNumber(1)- $core.String get gridId => $_getSZ(0);+ $core.String get id => $_getSZ(0);@$pb.TagNumber(1)- set gridId($core.String v) { $_setString(0, v); }+ set id($core.String v) { $_setString(0, v); }@$pb.TagNumber(1)- $core.bool hasGridId() => $_has(0);+ $core.bool hasId() => $_has(0);@$pb.TagNumber(1)- void clearGridId() => clearField(1);+ void clearId() => clearField(1);@$pb.TagNumber(2)- RepeatedGridFilter get filters => $_getN(1);+ RepeatedFilter get filters => $_getN(1);@$pb.TagNumber(2)- set filters(RepeatedGridFilter v) { setField(2, v); }+ set filters(RepeatedFilter v) { setField(2, v); }@$pb.TagNumber(2)$core.bool hasFilters() => $_has(1);@$pb.TagNumber(2)void clearFilters() => clearField(2);@$pb.TagNumber(2)- RepeatedGridFilter ensureFilters() => $_ensure(1);+ RepeatedFilter ensureFilters() => $_ensure(1);@$pb.TagNumber(3)RepeatedFieldOrder get fieldOrders => $_getN(2);@@ -109,122 +108,6 @@ class Grid extends $pb.GeneratedMessage {RepeatedRowOrder ensureRowOrders() => $_ensure(3);}-class GridFilter extends $pb.GeneratedMessage {- static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GridFilter', createEmptyInstance: create)- ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name')- ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'desc')- ..hasRequiredFields = false- ;-- GridFilter._() : super();- factory GridFilter({- $core.String? id,- $core.String? name,- $core.String? desc,- }) {- final _result = create();- if (id != null) {- _result.id = id;- }- if (name != null) {- _result.name = name;- }- if (desc != null) {- _result.desc = desc;- }- return _result;- }- factory GridFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);- factory GridFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);- @$core.Deprecated(- 'Using this can add significant overhead to your binary. '- 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '- 'Will be removed in next major version')- GridFilter clone() => GridFilter()..mergeFromMessage(this);- @$core.Deprecated(- 'Using this can add significant overhead to your binary. '- 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '- 'Will be removed in next major version')- GridFilter copyWith(void Function(GridFilter) updates) => super.copyWith((message) => updates(message as GridFilter)) as GridFilter; // ignore: deprecated_member_use- $pb.BuilderInfo get info_ => _i;- @$core.pragma('dart2js:noInline')- static GridFilter create() => GridFilter._();- GridFilter createEmptyInstance() => create();- static $pb.PbList<GridFilter> createRepeated() => $pb.PbList<GridFilter>();- @$core.pragma('dart2js:noInline')- static GridFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GridFilter>(create);- static GridFilter? _defaultInstance;-- @$pb.TagNumber(1)- $core.String get id => $_getSZ(0);- @$pb.TagNumber(1)- set id($core.String v) { $_setString(0, v); }- @$pb.TagNumber(1)- $core.bool hasId() => $_has(0);- @$pb.TagNumber(1)- void clearId() => clearField(1);-- @$pb.TagNumber(2)- $core.String get name => $_getSZ(1);- @$pb.TagNumber(2)- set name($core.String v) { $_setString(1, v); }- @$pb.TagNumber(2)- $core.bool hasName() => $_has(1);- @$pb.TagNumber(2)- void clearName() => clearField(2);-- @$pb.TagNumber(3)- $core.String get desc => $_getSZ(2);- @$pb.TagNumber(3)- set desc($core.String v) { $_setString(2, v); }- @$pb.TagNumber(3)- $core.bool hasDesc() => $_has(2);- @$pb.TagNumber(3)- void clearDesc() => clearField(3);-}--class RepeatedGridFilter extends $pb.GeneratedMessage {- static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RepeatedGridFilter', createEmptyInstance: create)- ..pc<GridFilter>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'items', $pb.PbFieldType.PM, subBuilder: GridFilter.create)- ..hasRequiredFields = false- ;-- RepeatedGridFilter._() : super();- factory RepeatedGridFilter({- $core.Iterable<GridFilter>? items,- }) {- final _result = create();- if (items != null) {- _result.items.addAll(items);- }- return _result;- }- factory RepeatedGridFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);- factory RepeatedGridFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);- @$core.Deprecated(- 'Using this can add significant overhead to your binary. '- 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '- 'Will be removed in next major version')- RepeatedGridFilter clone() => RepeatedGridFilter()..mergeFromMessage(this);- @$core.Deprecated(- 'Using this can add significant overhead to your binary. '- 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '- 'Will be removed in next major version')- RepeatedGridFilter copyWith(void Function(RepeatedGridFilter) updates) => super.copyWith((message) => updates(message as RepeatedGridFilter)) as RepeatedGridFilter; // ignore: deprecated_member_use- $pb.BuilderInfo get info_ => _i;- @$core.pragma('dart2js:noInline')- static RepeatedGridFilter create() => RepeatedGridFilter._();- RepeatedGridFilter createEmptyInstance() => create();- static $pb.PbList<RepeatedGridFilter> createRepeated() => $pb.PbList<RepeatedGridFilter>();- @$core.pragma('dart2js:noInline')- static RepeatedGridFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RepeatedGridFilter>(create);- static RepeatedGridFilter? _defaultInstance;-- @$pb.TagNumber(1)- $core.List<GridFilter> get items => $_getList(0);-}-class FieldOrder extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FieldOrder', createEmptyInstance: create)..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldId')@@ -678,21 +561,19 @@ class RepeatedRowOrder extends $pb.GeneratedMessage {$core.List<RowOrder> get items => $_getList(0);}-class GridRow extends $pb.GeneratedMessage {- static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GridRow', createEmptyInstance: create)+class RawRow extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RawRow', createEmptyInstance: create)..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gridId')- ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'modifiedTime')- ..m<$core.String, GridCell>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cellByFieldId', entryClassName: 'GridRow.CellByFieldIdEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: GridCell.create)+ ..m<$core.String, RawCell>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cellByFieldId', entryClassName: 'RawRow.CellByFieldIdEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: RawCell.create)..hasRequiredFields = false;- GridRow._() : super();- factory GridRow({+ RawRow._() : super();+ factory RawRow({$core.String? id,$core.String? gridId,- $fixnum.Int64? modifiedTime,- $core.Map<$core.String, GridCell>? cellByFieldId,+ $core.Map<$core.String, RawCell>? cellByFieldId,}) {final _result = create();if (id != null) {@@ -701,34 +582,31 @@ class GridRow extends $pb.GeneratedMessage {if (gridId != null) {_result.gridId = gridId;}- if (modifiedTime != null) {- _result.modifiedTime = modifiedTime;- }if (cellByFieldId != null) {_result.cellByFieldId.addAll(cellByFieldId);}return _result;}- factory GridRow.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);- factory GridRow.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ factory RawRow.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory RawRow.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);@$core.Deprecated('Using this can add significant overhead to your binary. ''Use [GeneratedMessageGenericExtensions.deepCopy] instead. ''Will be removed in next major version')- GridRow clone() => GridRow()..mergeFromMessage(this);+ RawRow clone() => RawRow()..mergeFromMessage(this);@$core.Deprecated('Using this can add significant overhead to your binary. ''Use [GeneratedMessageGenericExtensions.rebuild] instead. ''Will be removed in next major version')- GridRow copyWith(void Function(GridRow) updates) => super.copyWith((message) => updates(message as GridRow)) as GridRow; // ignore: deprecated_member_use+ RawRow copyWith(void Function(RawRow) updates) => super.copyWith((message) => updates(message as RawRow)) as RawRow; // ignore: deprecated_member_use$pb.BuilderInfo get info_ => _i;@$core.pragma('dart2js:noInline')- static GridRow create() => GridRow._();- GridRow createEmptyInstance() => create();- static $pb.PbList<GridRow> createRepeated() => $pb.PbList<GridRow>();+ static RawRow create() => RawRow._();+ RawRow createEmptyInstance() => create();+ static $pb.PbList<RawRow> createRepeated() => $pb.PbList<RawRow>();@$core.pragma('dart2js:noInline')- static GridRow getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GridRow>(create);- static GridRow? _defaultInstance;+ static RawRow getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RawRow>(create);+ static RawRow? _defaultInstance;@$pb.TagNumber(1)$core.String get id => $_getSZ(0);@@ -749,27 +627,107 @@ class GridRow extends $pb.GeneratedMessage {void clearGridId() => clearField(2);@$pb.TagNumber(3)- $fixnum.Int64 get modifiedTime => $_getI64(2);+ $core.Map<$core.String, RawCell> get cellByFieldId => $_getMap(2);+}++class RawCell extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RawCell', createEmptyInstance: create)+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rowId')+ ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldId')+ ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data')+ ..hasRequiredFields = false+ ;++ RawCell._() : super();+ factory RawCell({+ $core.String? id,+ $core.String? rowId,+ $core.String? fieldId,+ $core.String? data,+ }) {+ final _result = create();+ if (id != null) {+ _result.id = id;+ }+ if (rowId != null) {+ _result.rowId = rowId;+ }+ if (fieldId != null) {+ _result.fieldId = fieldId;+ }+ if (data != null) {+ _result.data = data;+ }+ return _result;+ }+ factory RawCell.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory RawCell.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '+ 'Will be removed in next major version')+ RawCell clone() => RawCell()..mergeFromMessage(this);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '+ 'Will be removed in next major version')+ RawCell copyWith(void Function(RawCell) updates) => super.copyWith((message) => updates(message as RawCell)) as RawCell; // ignore: deprecated_member_use+ $pb.BuilderInfo get info_ => _i;+ @$core.pragma('dart2js:noInline')+ static RawCell create() => RawCell._();+ RawCell createEmptyInstance() => create();+ static $pb.PbList<RawCell> createRepeated() => $pb.PbList<RawCell>();+ @$core.pragma('dart2js:noInline')+ static RawCell getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RawCell>(create);+ static RawCell? _defaultInstance;++ @$pb.TagNumber(1)+ $core.String get id => $_getSZ(0);+ @$pb.TagNumber(1)+ set id($core.String v) { $_setString(0, v); }+ @$pb.TagNumber(1)+ $core.bool hasId() => $_has(0);+ @$pb.TagNumber(1)+ void clearId() => clearField(1);++ @$pb.TagNumber(2)+ $core.String get rowId => $_getSZ(1);+ @$pb.TagNumber(2)+ set rowId($core.String v) { $_setString(1, v); }+ @$pb.TagNumber(2)+ $core.bool hasRowId() => $_has(1);+ @$pb.TagNumber(2)+ void clearRowId() => clearField(2);++ @$pb.TagNumber(3)+ $core.String get fieldId => $_getSZ(2);@$pb.TagNumber(3)- set modifiedTime($fixnum.Int64 v) { $_setInt64(2, v); }+ set fieldId($core.String v) { $_setString(2, v); }@$pb.TagNumber(3)- $core.bool hasModifiedTime() => $_has(2);+ $core.bool hasFieldId() => $_has(2);@$pb.TagNumber(3)- void clearModifiedTime() => clearField(3);+ void clearFieldId() => clearField(3);@$pb.TagNumber(4)- $core.Map<$core.String, GridCell> get cellByFieldId => $_getMap(3);+ $core.String get data => $_getSZ(3);+ @$pb.TagNumber(4)+ set data($core.String v) { $_setString(3, v); }+ @$pb.TagNumber(4)+ $core.bool hasData() => $_has(3);+ @$pb.TagNumber(4)+ void clearData() => clearField(4);}class RepeatedRow extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RepeatedRow', createEmptyInstance: create)- ..pc<GridRow>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'items', $pb.PbFieldType.PM, subBuilder: GridRow.create)+ ..pc<Row>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'items', $pb.PbFieldType.PM, subBuilder: Row.create)..hasRequiredFields = false;RepeatedRow._() : super();factory RepeatedRow({- $core.Iterable<GridRow>? items,+ $core.Iterable<Row>? items,}) {final _result = create();if (items != null) {@@ -799,22 +757,75 @@ class RepeatedRow extends $pb.GeneratedMessage {static RepeatedRow? _defaultInstance;@$pb.TagNumber(1)- $core.List<GridRow> get items => $_getList(0);+ $core.List<Row> get items => $_getList(0);}-class GridCell extends $pb.GeneratedMessage {- static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GridCell', createEmptyInstance: create)+class Row extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Row', createEmptyInstance: create)..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rowId')- ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldId')- ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'content')+ ..m<$core.String, Cell>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cellByFieldId', entryClassName: 'Row.CellByFieldIdEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Cell.create)..hasRequiredFields = false;- GridCell._() : super();- factory GridCell({+ Row._() : super();+ factory Row({+ $core.String? id,+ $core.Map<$core.String, Cell>? cellByFieldId,+ }) {+ final _result = create();+ if (id != null) {+ _result.id = id;+ }+ if (cellByFieldId != null) {+ _result.cellByFieldId.addAll(cellByFieldId);+ }+ return _result;+ }+ factory Row.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory Row.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '+ 'Will be removed in next major version')+ Row clone() => Row()..mergeFromMessage(this);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '+ 'Will be removed in next major version')+ Row copyWith(void Function(Row) updates) => super.copyWith((message) => updates(message as Row)) as Row; // ignore: deprecated_member_use+ $pb.BuilderInfo get info_ => _i;+ @$core.pragma('dart2js:noInline')+ static Row create() => Row._();+ Row createEmptyInstance() => create();+ static $pb.PbList<Row> createRepeated() => $pb.PbList<Row>();+ @$core.pragma('dart2js:noInline')+ static Row getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Row>(create);+ static Row? _defaultInstance;++ @$pb.TagNumber(1)+ $core.String get id => $_getSZ(0);+ @$pb.TagNumber(1)+ set id($core.String v) { $_setString(0, v); }+ @$pb.TagNumber(1)+ $core.bool hasId() => $_has(0);+ @$pb.TagNumber(1)+ void clearId() => clearField(1);++ @$pb.TagNumber(2)+ $core.Map<$core.String, Cell> get cellByFieldId => $_getMap(1);+}++class Cell extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Cell', createEmptyInstance: create)+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldId')+ ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'content')+ ..hasRequiredFields = false+ ;++ Cell._() : super();+ factory Cell({$core.String? id,- $core.String? rowId,$core.String? fieldId,$core.String? content,}) {@@ -822,9 +833,6 @@ class GridCell extends $pb.GeneratedMessage {if (id != null) {_result.id = id;}- if (rowId != null) {- _result.rowId = rowId;- }if (fieldId != null) {_result.fieldId = fieldId;}@@ -833,26 +841,26 @@ class GridCell extends $pb.GeneratedMessage {}return _result;}- factory GridCell.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);- factory GridCell.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ factory Cell.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory Cell.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);@$core.Deprecated('Using this can add significant overhead to your binary. ''Use [GeneratedMessageGenericExtensions.deepCopy] instead. ''Will be removed in next major version')- GridCell clone() => GridCell()..mergeFromMessage(this);+ Cell clone() => Cell()..mergeFromMessage(this);@$core.Deprecated('Using this can add significant overhead to your binary. ''Use [GeneratedMessageGenericExtensions.rebuild] instead. ''Will be removed in next major version')- GridCell copyWith(void Function(GridCell) updates) => super.copyWith((message) => updates(message as GridCell)) as GridCell; // ignore: deprecated_member_use+ Cell copyWith(void Function(Cell) updates) => super.copyWith((message) => updates(message as Cell)) as Cell; // ignore: deprecated_member_use$pb.BuilderInfo get info_ => _i;@$core.pragma('dart2js:noInline')- static GridCell create() => GridCell._();- GridCell createEmptyInstance() => create();- static $pb.PbList<GridCell> createRepeated() => $pb.PbList<GridCell>();+ static Cell create() => Cell._();+ Cell createEmptyInstance() => create();+ static $pb.PbList<Cell> createRepeated() => $pb.PbList<Cell>();@$core.pragma('dart2js:noInline')- static GridCell getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GridCell>(create);- static GridCell? _defaultInstance;+ static Cell getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Cell>(create);+ static Cell? _defaultInstance;@$pb.TagNumber(1)$core.String get id => $_getSZ(0);@@ -864,31 +872,22 @@ class GridCell extends $pb.GeneratedMessage {void clearId() => clearField(1);@$pb.TagNumber(2)- $core.String get rowId => $_getSZ(1);+ $core.String get fieldId => $_getSZ(1);@$pb.TagNumber(2)- set rowId($core.String v) { $_setString(1, v); }+ set fieldId($core.String v) { $_setString(1, v); }@$pb.TagNumber(2)- $core.bool hasRowId() => $_has(1);+ $core.bool hasFieldId() => $_has(1);@$pb.TagNumber(2)- void clearRowId() => clearField(2);+ void clearFieldId() => clearField(2);@$pb.TagNumber(3)- $core.String get fieldId => $_getSZ(2);+ $core.String get content => $_getSZ(2);@$pb.TagNumber(3)- set fieldId($core.String v) { $_setString(2, v); }+ set content($core.String v) { $_setString(2, v); }@$pb.TagNumber(3)- $core.bool hasFieldId() => $_has(2);+ $core.bool hasContent() => $_has(2);@$pb.TagNumber(3)- void clearFieldId() => clearField(3);-- @$pb.TagNumber(4)- $core.String get content => $_getSZ(3);- @$pb.TagNumber(4)- set content($core.String v) { $_setString(3, v); }- @$pb.TagNumber(4)- $core.bool hasContent() => $_has(3);- @$pb.TagNumber(4)- void clearContent() => clearField(4);+ void clearContent() => clearField(3);}class CreateGridPayload extends $pb.GeneratedMessage {@@ -985,3 +984,119 @@ class GridId extends $pb.GeneratedMessage {void clearValue() => clearField(1);}+class Filter extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Filter', createEmptyInstance: create)+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id')+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name')+ ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'desc')+ ..hasRequiredFields = false+ ;++ Filter._() : super();+ factory Filter({+ $core.String? id,+ $core.String? name,+ $core.String? desc,+ }) {+ final _result = create();+ if (id != null) {+ _result.id = id;+ }+ if (name != null) {+ _result.name = name;+ }+ if (desc != null) {+ _result.desc = desc;+ }+ return _result;+ }+ factory Filter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory Filter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '+ 'Will be removed in next major version')+ Filter clone() => Filter()..mergeFromMessage(this);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '+ 'Will be removed in next major version')+ Filter copyWith(void Function(Filter) updates) => super.copyWith((message) => updates(message as Filter)) as Filter; // ignore: deprecated_member_use+ $pb.BuilderInfo get info_ => _i;+ @$core.pragma('dart2js:noInline')+ static Filter create() => Filter._();+ Filter createEmptyInstance() => create();+ static $pb.PbList<Filter> createRepeated() => $pb.PbList<Filter>();+ @$core.pragma('dart2js:noInline')+ static Filter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Filter>(create);+ static Filter? _defaultInstance;++ @$pb.TagNumber(1)+ $core.String get id => $_getSZ(0);+ @$pb.TagNumber(1)+ set id($core.String v) { $_setString(0, v); }+ @$pb.TagNumber(1)+ $core.bool hasId() => $_has(0);+ @$pb.TagNumber(1)+ void clearId() => clearField(1);++ @$pb.TagNumber(2)+ $core.String get name => $_getSZ(1);+ @$pb.TagNumber(2)+ set name($core.String v) { $_setString(1, v); }+ @$pb.TagNumber(2)+ $core.bool hasName() => $_has(1);+ @$pb.TagNumber(2)+ void clearName() => clearField(2);++ @$pb.TagNumber(3)+ $core.String get desc => $_getSZ(2);+ @$pb.TagNumber(3)+ set desc($core.String v) { $_setString(2, v); }+ @$pb.TagNumber(3)+ $core.bool hasDesc() => $_has(2);+ @$pb.TagNumber(3)+ void clearDesc() => clearField(3);+}++class RepeatedFilter extends $pb.GeneratedMessage {+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RepeatedFilter', createEmptyInstance: create)+ ..pc<Filter>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'items', $pb.PbFieldType.PM, subBuilder: Filter.create)+ ..hasRequiredFields = false+ ;++ RepeatedFilter._() : super();+ factory RepeatedFilter({+ $core.Iterable<Filter>? items,+ }) {+ final _result = create();+ if (items != null) {+ _result.items.addAll(items);+ }+ return _result;+ }+ factory RepeatedFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);+ factory RepeatedFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '+ 'Will be removed in next major version')+ RepeatedFilter clone() => RepeatedFilter()..mergeFromMessage(this);+ @$core.Deprecated(+ 'Using this can add significant overhead to your binary. '+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '+ 'Will be removed in next major version')+ RepeatedFilter copyWith(void Function(RepeatedFilter) updates) => super.copyWith((message) => updates(message as RepeatedFilter)) as RepeatedFilter; // ignore: deprecated_member_use+ $pb.BuilderInfo get info_ => _i;+ @$core.pragma('dart2js:noInline')+ static RepeatedFilter create() => RepeatedFilter._();+ RepeatedFilter createEmptyInstance() => create();+ static $pb.PbList<RepeatedFilter> createRepeated() => $pb.PbList<RepeatedFilter>();+ @$core.pragma('dart2js:noInline')+ static RepeatedFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RepeatedFilter>(create);+ static RepeatedFilter? _defaultInstance;++ @$pb.TagNumber(1)+ $core.List<Filter> get items => $_getList(0);+}+diff --git a/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pbjson.dart b/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pbjson.dartindex bfbd6266da..205acfd611 100644--- a/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pbjson.dart+++ b/frontend/app_flowy/packages/flowy_sdk/lib/protobuf/flowy-grid-data-model/grid.pbjson.dart@@ -27,37 +27,15 @@ final $typed_data.Uint8List fieldTypeDescriptor = $convert.base64Decode('CglGaWVconst Grid$json = const {'1': 'Grid','2': const [- const {'1': 'grid_id', '3': 1, '4': 1, '5': 9, '10': 'gridId'},- const {'1': 'filters', '3': 2, '4': 1, '5': 11, '6': '.RepeatedGridFilter', '10': 'filters'},+ const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},+ const {'1': 'filters', '3': 2, '4': 1, '5': 11, '6': '.RepeatedFilter', '10': 'filters'},const {'1': 'field_orders', '3': 3, '4': 1, '5': 11, '6': '.RepeatedFieldOrder', '10': 'fieldOrders'},const {'1': 'row_orders', '3': 4, '4': 1, '5': 11, '6': '.RepeatedRowOrder', '10': 'rowOrders'},],};/// Descriptor for `Grid`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List gridDescriptor = $convert.base64Decode('CgRHcmlkEhcKB2dyaWRfaWQYASABKAlSBmdyaWRJZBItCgdmaWx0ZXJzGAIgASgLMhMuUmVwZWF0ZWRHcmlkRmlsdGVyUgdmaWx0ZXJzEjYKDGZpZWxkX29yZGVycxgDIAEoCzITLlJlcGVhdGVkRmllbGRPcmRlclILZmllbGRPcmRlcnMSMAoKcm93X29yZGVycxgEIAEoCzIRLlJlcGVhdGVkUm93T3JkZXJSCXJvd09yZGVycw==');-@$core.Deprecated('Use gridFilterDescriptor instead')-const GridFilter$json = const {- '1': 'GridFilter',- '2': const [- const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},- const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},- const {'1': 'desc', '3': 3, '4': 1, '5': 9, '10': 'desc'},- ],-};--/// Descriptor for `GridFilter`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List gridFilterDescriptor = $convert.base64Decode('CgpHcmlkRmlsdGVyEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhIKBGRlc2MYAyABKAlSBGRlc2M=');-@$core.Deprecated('Use repeatedGridFilterDescriptor instead')-const RepeatedGridFilter$json = const {- '1': 'RepeatedGridFilter',- '2': const [- const {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.GridFilter', '10': 'items'},- ],-};--/// Descriptor for `RepeatedGridFilter`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List repeatedGridFilterDescriptor = $convert.base64Decode('ChJSZXBlYXRlZEdyaWRGaWx0ZXISIQoFaXRlbXMYASADKAsyCy5HcmlkRmlsdGVyUgVpdGVtcw==');+final $typed_data.Uint8List gridDescriptor = $convert.base64Decode('CgRHcmlkEg4KAmlkGAEgASgJUgJpZBIpCgdmaWx0ZXJzGAIgASgLMg8uUmVwZWF0ZWRGaWx0ZXJSB2ZpbHRlcnMSNgoMZmllbGRfb3JkZXJzGAMgASgLMhMuUmVwZWF0ZWRGaWVsZE9yZGVyUgtmaWVsZE9yZGVycxIwCgpyb3dfb3JkZXJzGAQgASgLMhEuUmVwZWF0ZWRSb3dPcmRlclIJcm93T3JkZXJz');@$core.Deprecated('Use fieldOrderDescriptor instead')const FieldOrder$json = const {'1': 'FieldOrder',@@ -138,53 +116,86 @@ const RepeatedRowOrder$json = const {/// Descriptor for `RepeatedRowOrder`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List repeatedRowOrderDescriptor = $convert.base64Decode('ChBSZXBlYXRlZFJvd09yZGVyEh8KBWl0ZW1zGAEgAygLMgkuUm93T3JkZXJSBWl0ZW1z');-@$core.Deprecated('Use gridRowDescriptor instead')-const GridRow$json = const {- '1': 'GridRow',+@$core.Deprecated('Use rawRowDescriptor instead')+const RawRow$json = const {+ '1': 'RawRow','2': const [const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},const {'1': 'grid_id', '3': 2, '4': 1, '5': 9, '10': 'gridId'},- const {'1': 'modified_time', '3': 3, '4': 1, '5': 3, '10': 'modifiedTime'},- const {'1': 'cell_by_field_id', '3': 4, '4': 3, '5': 11, '6': '.GridRow.CellByFieldIdEntry', '10': 'cellByFieldId'},+ const {'1': 'cell_by_field_id', '3': 3, '4': 3, '5': 11, '6': '.RawRow.CellByFieldIdEntry', '10': 'cellByFieldId'},],- '3': const [GridRow_CellByFieldIdEntry$json],+ '3': const [RawRow_CellByFieldIdEntry$json],};-@$core.Deprecated('Use gridRowDescriptor instead')-const GridRow_CellByFieldIdEntry$json = const {+@$core.Deprecated('Use rawRowDescriptor instead')+const RawRow_CellByFieldIdEntry$json = const {'1': 'CellByFieldIdEntry','2': const [const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},- const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.GridCell', '10': 'value'},+ const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.RawCell', '10': 'value'},],'7': const {'7': true},};-/// Descriptor for `GridRow`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List gridRowDescriptor = $convert.base64Decode('CgdHcmlkUm93Eg4KAmlkGAEgASgJUgJpZBIXCgdncmlkX2lkGAIgASgJUgZncmlkSWQSIwoNbW9kaWZpZWRfdGltZRgDIAEoA1IMbW9kaWZpZWRUaW1lEkQKEGNlbGxfYnlfZmllbGRfaWQYBCADKAsyGy5HcmlkUm93LkNlbGxCeUZpZWxkSWRFbnRyeVINY2VsbEJ5RmllbGRJZBpLChJDZWxsQnlGaWVsZElkRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSHwoFdmFsdWUYAiABKAsyCS5HcmlkQ2VsbFIFdmFsdWU6AjgB');+/// Descriptor for `RawRow`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List rawRowDescriptor = $convert.base64Decode('CgZSYXdSb3cSDgoCaWQYASABKAlSAmlkEhcKB2dyaWRfaWQYAiABKAlSBmdyaWRJZBJDChBjZWxsX2J5X2ZpZWxkX2lkGAMgAygLMhouUmF3Um93LkNlbGxCeUZpZWxkSWRFbnRyeVINY2VsbEJ5RmllbGRJZBpKChJDZWxsQnlGaWVsZElkRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSHgoFdmFsdWUYAiABKAsyCC5SYXdDZWxsUgV2YWx1ZToCOAE=');+@$core.Deprecated('Use rawCellDescriptor instead')+const RawCell$json = const {+ '1': 'RawCell',+ '2': const [+ const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},+ const {'1': 'row_id', '3': 2, '4': 1, '5': 9, '10': 'rowId'},+ const {'1': 'field_id', '3': 3, '4': 1, '5': 9, '10': 'fieldId'},+ const {'1': 'data', '3': 4, '4': 1, '5': 9, '10': 'data'},+ ],+};++/// Descriptor for `RawCell`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List rawCellDescriptor = $convert.base64Decode('CgdSYXdDZWxsEg4KAmlkGAEgASgJUgJpZBIVCgZyb3dfaWQYAiABKAlSBXJvd0lkEhkKCGZpZWxkX2lkGAMgASgJUgdmaWVsZElkEhIKBGRhdGEYBCABKAlSBGRhdGE=');@$core.Deprecated('Use repeatedRowDescriptor instead')const RepeatedRow$json = const {'1': 'RepeatedRow','2': const [- const {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.GridRow', '10': 'items'},+ const {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.Row', '10': 'items'},],};/// Descriptor for `RepeatedRow`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List repeatedRowDescriptor = $convert.base64Decode('CgtSZXBlYXRlZFJvdxIeCgVpdGVtcxgBIAMoCzIILkdyaWRSb3dSBWl0ZW1z');-@$core.Deprecated('Use gridCellDescriptor instead')-const GridCell$json = const {- '1': 'GridCell',+final $typed_data.Uint8List repeatedRowDescriptor = $convert.base64Decode('CgtSZXBlYXRlZFJvdxIaCgVpdGVtcxgBIAMoCzIELlJvd1IFaXRlbXM=');+@$core.Deprecated('Use rowDescriptor instead')+const Row$json = const {+ '1': 'Row','2': const [const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},- const {'1': 'row_id', '3': 2, '4': 1, '5': 9, '10': 'rowId'},- const {'1': 'field_id', '3': 3, '4': 1, '5': 9, '10': 'fieldId'},- const {'1': 'content', '3': 4, '4': 1, '5': 9, '10': 'content'},+ const {'1': 'cell_by_field_id', '3': 2, '4': 3, '5': 11, '6': '.Row.CellByFieldIdEntry', '10': 'cellByFieldId'},],+ '3': const [Row_CellByFieldIdEntry$json],};-/// Descriptor for `GridCell`. Decode as a `google.protobuf.DescriptorProto`.-final $typed_data.Uint8List gridCellDescriptor = $convert.base64Decode('CghHcmlkQ2VsbBIOCgJpZBgBIAEoCVICaWQSFQoGcm93X2lkGAIgASgJUgVyb3dJZBIZCghmaWVsZF9pZBgDIAEoCVIHZmllbGRJZBIYCgdjb250ZW50GAQgASgJUgdjb250ZW50');+@$core.Deprecated('Use rowDescriptor instead')+const Row_CellByFieldIdEntry$json = const {+ '1': 'CellByFieldIdEntry',+ '2': const [+ const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},+ const {'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.Cell', '10': 'value'},+ ],+ '7': const {'7': true},+};++/// Descriptor for `Row`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List rowDescriptor = $convert.base64Decode('CgNSb3cSDgoCaWQYASABKAlSAmlkEkAKEGNlbGxfYnlfZmllbGRfaWQYAiADKAsyFy5Sb3cuQ2VsbEJ5RmllbGRJZEVudHJ5Ug1jZWxsQnlGaWVsZElkGkcKEkNlbGxCeUZpZWxkSWRFbnRyeRIQCgNrZXkYASABKAlSA2tleRIbCgV2YWx1ZRgCIAEoCzIFLkNlbGxSBXZhbHVlOgI4AQ==');+@$core.Deprecated('Use cellDescriptor instead')+const Cell$json = const {+ '1': 'Cell',+ '2': const [+ const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},+ const {'1': 'field_id', '3': 2, '4': 1, '5': 9, '10': 'fieldId'},+ const {'1': 'content', '3': 3, '4': 1, '5': 9, '10': 'content'},+ ],+};++/// Descriptor for `Cell`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List cellDescriptor = $convert.base64Decode('CgRDZWxsEg4KAmlkGAEgASgJUgJpZBIZCghmaWVsZF9pZBgCIAEoCVIHZmllbGRJZBIYCgdjb250ZW50GAMgASgJUgdjb250ZW50');@$core.Deprecated('Use createGridPayloadDescriptor instead')const CreateGridPayload$json = const {'1': 'CreateGridPayload',@@ -205,3 +216,25 @@ const GridId$json = const {/// Descriptor for `GridId`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List gridIdDescriptor = $convert.base64Decode('CgZHcmlkSWQSFAoFdmFsdWUYASABKAlSBXZhbHVl');+@$core.Deprecated('Use filterDescriptor instead')+const Filter$json = const {+ '1': 'Filter',+ '2': const [+ const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},+ const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},+ const {'1': 'desc', '3': 3, '4': 1, '5': 9, '10': 'desc'},+ ],+};++/// Descriptor for `Filter`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List filterDescriptor = $convert.base64Decode('CgZGaWx0ZXISDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZGVzYxgDIAEoCVIEZGVzYw==');+@$core.Deprecated('Use repeatedFilterDescriptor instead')+const RepeatedFilter$json = const {+ '1': 'RepeatedFilter',+ '2': const [+ const {'1': 'items', '3': 1, '4': 3, '5': 11, '6': '.Filter', '10': 'items'},+ ],+};++/// Descriptor for `RepeatedFilter`. Decode as a `google.protobuf.DescriptorProto`.+final $typed_data.Uint8List repeatedFilterDescriptor = $convert.base64Decode('Cg5SZXBlYXRlZEZpbHRlchIdCgVpdGVtcxgBIAMoCzIHLkZpbHRlclIFaXRlbXM=');diff --git a/frontend/rust-lib/flowy-grid/src/event_handler.rs b/frontend/rust-lib/flowy-grid/src/event_handler.rsindex 765da724d5..600f55ab1a 100644--- a/frontend/rust-lib/flowy-grid/src/event_handler.rs+++ b/frontend/rust-lib/flowy-grid/src/event_handler.rs@@ -1,7 +1,7 @@use crate::controller::GridManager;use flowy_error::FlowyError;use flowy_grid_data_model::entities::{- CreateGridPayload, Grid, GridId, RepeatedFieldOrder, RepeatedRow, RepeatedRowOrder,+ CreateGridPayload, Grid, GridId, RepeatedField, RepeatedFieldOrder, RepeatedRow, RepeatedRowOrder,};use lib_dispatch::prelude::{AppData, Data, DataResult};use std::sync::Arc;@@ -28,7 +28,7 @@ pub(crate) async fn open_grid_handler(pub(crate) async fn get_rows_handler(data: Data<RepeatedRowOrder>,controller: AppData<Arc<GridManager>>,-) -> DataResult<Grid, FlowyError> {+) -> DataResult<RepeatedRow, FlowyError> {let row_orders: RepeatedRowOrder = data.into_inner();todo!()@@ -38,7 +38,7 @@ pub(crate) async fn get_rows_handler(pub(crate) async fn get_fields_handler(data: Data<RepeatedFieldOrder>,controller: AppData<Arc<GridManager>>,-) -> DataResult<Grid, FlowyError> {+) -> DataResult<RepeatedField, FlowyError> {let field_orders: RepeatedFieldOrder = data.into_inner();todo!()@@ -48,8 +48,8 @@ pub(crate) async fn get_fields_handler(pub(crate) async fn create_row_handler(data: Data<GridId>,controller: AppData<Arc<GridManager>>,-) -> DataResult<Grid, FlowyError> {+) -> Result<(), FlowyError> {let id: GridId = data.into_inner();- todo!()+ Ok(())}diff --git a/shared-lib/flowy-grid-data-model/src/entities/grid.rs b/shared-lib/flowy-grid-data-model/src/entities/grid.rsindex 03e738faee..034f823fd2 100644--- a/shared-lib/flowy-grid-data-model/src/entities/grid.rs+++ b/shared-lib/flowy-grid-data-model/src/entities/grid.rs@@ -6,10 +6,10 @@ use strum_macros::{Display, EnumIter, EnumString};#[derive(Debug, Default, ProtoBuf)]pub struct Grid {#[pb(index = 1)]- pub grid_id: String,+ pub id: String,#[pb(index = 2)]- pub filters: RepeatedGridFilter,+ pub filters: RepeatedFilter,#[pb(index = 3)]pub field_orders: RepeatedFieldOrder,@@ -18,24 +18,6 @@ pub struct Grid {pub row_orders: RepeatedRowOrder,}-#[derive(Debug, Default, ProtoBuf)]-pub struct GridFilter {- #[pb(index = 1)]- pub id: String,-- #[pb(index = 2)]- pub name: String,-- #[pb(index = 3)]- pub desc: String,-}--#[derive(Debug, Default, ProtoBuf)]-pub struct RepeatedGridFilter {- #[pb(index = 1)]- pub items: Vec<GridFilter>,-}-#[derive(Debug, Default, ProtoBuf)]pub struct FieldOrder {#[pb(index = 1)]@@ -167,7 +149,7 @@ pub struct RepeatedRowOrder {}#[derive(Debug, Default, ProtoBuf)]-pub struct GridRow {+pub struct RawRow {#[pb(index = 1)]pub id: String,@@ -175,30 +157,48 @@ pub struct GridRow {pub grid_id: String,#[pb(index = 3)]- pub modified_time: i64,+ pub cell_by_field_id: HashMap<String, RawCell>,+}++#[derive(Debug, Default, ProtoBuf)]+pub struct RawCell {+ #[pb(index = 1)]+ pub id: String,++ #[pb(index = 2)]+ pub row_id: String,++ #[pb(index = 3)]+ pub field_id: String,#[pb(index = 4)]- pub cell_by_field_id: HashMap<String, GridCell>,+ pub data: String,}#[derive(Debug, Default, ProtoBuf)]pub struct RepeatedRow {#[pb(index = 1)]- pub items: Vec<GridRow>,+ pub items: Vec<Row>,}#[derive(Debug, Default, ProtoBuf)]-pub struct GridCell {+pub struct Row {#[pb(index = 1)]pub id: String,#[pb(index = 2)]- pub row_id: String,+ pub cell_by_field_id: HashMap<String, Cell>,+}- #[pb(index = 3)]+#[derive(Debug, Default, ProtoBuf)]+pub struct Cell {+ #[pb(index = 1)]+ pub id: String,++ #[pb(index = 2)]pub field_id: String,- #[pb(index = 4)]+ #[pb(index = 3)]pub content: String,}@@ -213,3 +213,21 @@ pub struct GridId {#[pb(index = 1)]pub value: String,}++#[derive(Debug, Default, ProtoBuf)]+pub struct Filter {+ #[pb(index = 1)]+ pub id: String,++ #[pb(index = 2)]+ pub name: String,++ #[pb(index = 3)]+ pub desc: String,+}++#[derive(Debug, Default, ProtoBuf)]+pub struct RepeatedFilter {+ #[pb(index = 1)]+ pub items: Vec<Filter>,+}diff --git a/shared-lib/flowy-grid-data-model/src/protobuf/model/grid.rs b/shared-lib/flowy-grid-data-model/src/protobuf/model/grid.rsindex 820ac7404c..b644b4fd87 100644--- a/shared-lib/flowy-grid-data-model/src/protobuf/model/grid.rs+++ b/shared-lib/flowy-grid-data-model/src/protobuf/model/grid.rs@@ -26,8 +26,8 @@#[derive(PartialEq,Clone,Default)]pub struct Grid {// message fields- pub grid_id: ::std::string::String,- pub filters: ::protobuf::SingularPtrField<RepeatedGridFilter>,+ pub id: ::std::string::String,+ pub filters: ::protobuf::SingularPtrField<RepeatedFilter>,pub field_orders: ::protobuf::SingularPtrField<RepeatedFieldOrder>,pub row_orders: ::protobuf::SingularPtrField<RepeatedRowOrder>,// special fields@@ -46,37 +46,37 @@ impl Grid {::std::default::Default::default()}- // string grid_id = 1;+ // string id = 1;- pub fn get_grid_id(&self) -> &str {- &self.grid_id+ pub fn get_id(&self) -> &str {+ &self.id}- pub fn clear_grid_id(&mut self) {- self.grid_id.clear();+ pub fn clear_id(&mut self) {+ self.id.clear();}// Param is passed by value, moved- pub fn set_grid_id(&mut self, v: ::std::string::String) {- self.grid_id = v;+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {- &mut self.grid_id+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id}// Take field- pub fn take_grid_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())}- // .RepeatedGridFilter filters = 2;+ // .RepeatedFilter filters = 2;- pub fn get_filters(&self) -> &RepeatedGridFilter {- self.filters.as_ref().unwrap_or_else(|| <RepeatedGridFilter as ::protobuf::Message>::default_instance())+ pub fn get_filters(&self) -> &RepeatedFilter {+ self.filters.as_ref().unwrap_or_else(|| <RepeatedFilter as ::protobuf::Message>::default_instance())}pub fn clear_filters(&mut self) {self.filters.clear();@@ -87,13 +87,13 @@ impl Grid {}// Param is passed by value, moved- pub fn set_filters(&mut self, v: RepeatedGridFilter) {+ pub fn set_filters(&mut self, v: RepeatedFilter) {self.filters = ::protobuf::SingularPtrField::some(v);}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_filters(&mut self) -> &mut RepeatedGridFilter {+ pub fn mut_filters(&mut self) -> &mut RepeatedFilter {if self.filters.is_none() {self.filters.set_default();}@@ -101,8 +101,8 @@ impl Grid {}// Take field- pub fn take_filters(&mut self) -> RepeatedGridFilter {- self.filters.take().unwrap_or_else(|| RepeatedGridFilter::new())+ pub fn take_filters(&mut self) -> RepeatedFilter {+ self.filters.take().unwrap_or_else(|| RepeatedFilter::new())}// .RepeatedFieldOrder field_orders = 3;@@ -197,7 +197,7 @@ impl ::protobuf::Message for Grid {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;},2 => {::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.filters)?;@@ -220,8 +220,8 @@ impl ::protobuf::Message for Grid {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.grid_id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.grid_id);+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);}if let Some(ref v) = self.filters.as_ref() {let len = v.compute_size();@@ -241,8 +241,8 @@ impl ::protobuf::Message for Grid {}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.grid_id.is_empty() {- os.write_string(1, &self.grid_id)?;+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;}if let Some(ref v) = self.filters.as_ref() {os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;@@ -298,11 +298,11 @@ impl ::protobuf::Message for Grid {descriptor.get(|| {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "grid_id",- |m: &Grid| { &m.grid_id },- |m: &mut Grid| { &mut m.grid_id },+ "id",+ |m: &Grid| { &m.id },+ |m: &mut Grid| { &mut m.id },));- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RepeatedGridFilter>>(+ fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RepeatedFilter>>("filters",|m: &Grid| { &m.filters },|m: &mut Grid| { &mut m.filters },@@ -333,7 +333,7 @@ impl ::protobuf::Message for Grid {impl ::protobuf::Clear for Grid {fn clear(&mut self) {- self.grid_id.clear();+ self.id.clear();self.filters.clear();self.field_orders.clear();self.row_orders.clear();@@ -354,107 +354,69 @@ impl ::protobuf::reflect::ProtobufValue for Grid {}#[derive(PartialEq,Clone,Default)]-pub struct GridFilter {+pub struct FieldOrder {// message fields- pub id: ::std::string::String,- pub name: ::std::string::String,- pub desc: ::std::string::String,+ pub field_id: ::std::string::String,+ pub visibility: bool,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a GridFilter {- fn default() -> &'a GridFilter {- <GridFilter as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a FieldOrder {+ fn default() -> &'a FieldOrder {+ <FieldOrder as ::protobuf::Message>::default_instance()}}-impl GridFilter {- pub fn new() -> GridFilter {+impl FieldOrder {+ pub fn new() -> FieldOrder {::std::default::Default::default()}- // string id = 1;--- pub fn get_id(&self) -> &str {- &self.id- }- pub fn clear_id(&mut self) {- self.id.clear();- }-- // Param is passed by value, moved- pub fn set_id(&mut self, v: ::std::string::String) {- self.id = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_id(&mut self) -> &mut ::std::string::String {- &mut self.id- }-- // Take field- pub fn take_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.id, ::std::string::String::new())- }-- // string name = 2;+ // string field_id = 1;- pub fn get_name(&self) -> &str {- &self.name+ pub fn get_field_id(&self) -> &str {+ &self.field_id}- pub fn clear_name(&mut self) {- self.name.clear();+ pub fn clear_field_id(&mut self) {+ self.field_id.clear();}// Param is passed by value, moved- pub fn set_name(&mut self, v: ::std::string::String) {- self.name = v;+ pub fn set_field_id(&mut self, v: ::std::string::String) {+ self.field_id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_name(&mut self) -> &mut ::std::string::String {- &mut self.name+ pub fn mut_field_id(&mut self) -> &mut ::std::string::String {+ &mut self.field_id}// Take field- pub fn take_name(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.name, ::std::string::String::new())+ pub fn take_field_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.field_id, ::std::string::String::new())}- // string desc = 3;+ // bool visibility = 2;- pub fn get_desc(&self) -> &str {- &self.desc+ pub fn get_visibility(&self) -> bool {+ self.visibility}- pub fn clear_desc(&mut self) {- self.desc.clear();+ pub fn clear_visibility(&mut self) {+ self.visibility = false;}// Param is passed by value, moved- pub fn set_desc(&mut self, v: ::std::string::String) {- self.desc = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_desc(&mut self) -> &mut ::std::string::String {- &mut self.desc- }-- // Take field- pub fn take_desc(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.desc, ::std::string::String::new())+ pub fn set_visibility(&mut self, v: bool) {+ self.visibility = v;}}-impl ::protobuf::Message for GridFilter {+impl ::protobuf::Message for FieldOrder {fn is_initialized(&self) -> bool {true}@@ -464,13 +426,14 @@ impl ::protobuf::Message for GridFilter {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;},2 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;- },- 3 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;+ if wire_type != ::protobuf::wire_format::WireTypeVarint {+ return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));+ }+ let tmp = is.read_bool()?;+ self.visibility = tmp;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -484,14 +447,11 @@ impl ::protobuf::Message for GridFilter {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.id);- }- if !self.name.is_empty() {- my_size += ::protobuf::rt::string_size(2, &self.name);+ if !self.field_id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.field_id);}- if !self.desc.is_empty() {- my_size += ::protobuf::rt::string_size(3, &self.desc);+ if self.visibility != false {+ my_size += 2;}my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);@@ -499,14 +459,11 @@ impl ::protobuf::Message for GridFilter {}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.id.is_empty() {- os.write_string(1, &self.id)?;- }- if !self.name.is_empty() {- os.write_string(2, &self.name)?;+ if !self.field_id.is_empty() {+ os.write_string(1, &self.field_id)?;}- if !self.desc.is_empty() {- os.write_string(3, &self.desc)?;+ if self.visibility != false {+ os.write_bool(2, self.visibility)?;}os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())@@ -538,8 +495,8 @@ impl ::protobuf::Message for GridFilter {Self::descriptor_static()}- fn new() -> GridFilter {- GridFilter::new()+ fn new() -> FieldOrder {+ FieldOrder::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {@@ -547,79 +504,73 @@ impl ::protobuf::Message for GridFilter {descriptor.get(|| {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "id",- |m: &GridFilter| { &m.id },- |m: &mut GridFilter| { &mut m.id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "name",- |m: &GridFilter| { &m.name },- |m: &mut GridFilter| { &mut m.name },+ "field_id",+ |m: &FieldOrder| { &m.field_id },+ |m: &mut FieldOrder| { &mut m.field_id },));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "desc",- |m: &GridFilter| { &m.desc },- |m: &mut GridFilter| { &mut m.desc },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(+ "visibility",+ |m: &FieldOrder| { &m.visibility },+ |m: &mut FieldOrder| { &mut m.visibility },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridFilter>(- "GridFilter",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldOrder>(+ "FieldOrder",fields,file_descriptor_proto())})}- fn default_instance() -> &'static GridFilter {- static instance: ::protobuf::rt::LazyV2<GridFilter> = ::protobuf::rt::LazyV2::INIT;- instance.get(GridFilter::new)+ fn default_instance() -> &'static FieldOrder {+ static instance: ::protobuf::rt::LazyV2<FieldOrder> = ::protobuf::rt::LazyV2::INIT;+ instance.get(FieldOrder::new)}}-impl ::protobuf::Clear for GridFilter {+impl ::protobuf::Clear for FieldOrder {fn clear(&mut self) {- self.id.clear();- self.name.clear();- self.desc.clear();+ self.field_id.clear();+ self.visibility = false;self.unknown_fields.clear();}}-impl ::std::fmt::Debug for GridFilter {+impl ::std::fmt::Debug for FieldOrder {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for GridFilter {+impl ::protobuf::reflect::ProtobufValue for FieldOrder {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RepeatedGridFilter {+pub struct RepeatedFieldOrder {// message fields- pub items: ::protobuf::RepeatedField<GridFilter>,+ pub items: ::protobuf::RepeatedField<FieldOrder>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RepeatedGridFilter {- fn default() -> &'a RepeatedGridFilter {- <RepeatedGridFilter as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RepeatedFieldOrder {+ fn default() -> &'a RepeatedFieldOrder {+ <RepeatedFieldOrder as ::protobuf::Message>::default_instance()}}-impl RepeatedGridFilter {- pub fn new() -> RepeatedGridFilter {+impl RepeatedFieldOrder {+ pub fn new() -> RepeatedFieldOrder {::std::default::Default::default()}- // repeated .GridFilter items = 1;+ // repeated .FieldOrder items = 1;- pub fn get_items(&self) -> &[GridFilter] {+ pub fn get_items(&self) -> &[FieldOrder] {&self.items}pub fn clear_items(&mut self) {@@ -627,22 +578,22 @@ impl RepeatedGridFilter {}// Param is passed by value, moved- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<GridFilter>) {+ pub fn set_items(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {self.items = v;}// Mutable pointer to the field.- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<GridFilter> {+ pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {&mut self.items}// Take field- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<GridFilter> {+ pub fn take_items(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())}}-impl ::protobuf::Message for RepeatedGridFilter {+impl ::protobuf::Message for RepeatedFieldOrder {fn is_initialized(&self) -> bool {for v in &self.items {if !v.is_initialized() {@@ -716,117 +667,242 @@ impl ::protobuf::Message for RepeatedGridFilter {Self::descriptor_static()}- fn new() -> RepeatedGridFilter {- RepeatedGridFilter::new()+ fn new() -> RepeatedFieldOrder {+ RepeatedFieldOrder::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridFilter>>(+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>("items",- |m: &RepeatedGridFilter| { &m.items },- |m: &mut RepeatedGridFilter| { &mut m.items },+ |m: &RepeatedFieldOrder| { &m.items },+ |m: &mut RepeatedFieldOrder| { &mut m.items },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedGridFilter>(- "RepeatedGridFilter",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFieldOrder>(+ "RepeatedFieldOrder",fields,file_descriptor_proto())})}- fn default_instance() -> &'static RepeatedGridFilter {- static instance: ::protobuf::rt::LazyV2<RepeatedGridFilter> = ::protobuf::rt::LazyV2::INIT;- instance.get(RepeatedGridFilter::new)+ fn default_instance() -> &'static RepeatedFieldOrder {+ static instance: ::protobuf::rt::LazyV2<RepeatedFieldOrder> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RepeatedFieldOrder::new)}}-impl ::protobuf::Clear for RepeatedGridFilter {+impl ::protobuf::Clear for RepeatedFieldOrder {fn clear(&mut self) {self.items.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RepeatedGridFilter {+impl ::std::fmt::Debug for RepeatedFieldOrder {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RepeatedGridFilter {+impl ::protobuf::reflect::ProtobufValue for RepeatedFieldOrder {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct FieldOrder {+pub struct Field {// message fields- pub field_id: ::std::string::String,- pub visibility: bool,+ pub id: ::std::string::String,+ pub name: ::std::string::String,+ pub desc: ::std::string::String,+ pub field_type: FieldType,+ pub frozen: bool,+ pub width: i32,+ pub type_options: ::protobuf::SingularPtrField<AnyData>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a FieldOrder {- fn default() -> &'a FieldOrder {- <FieldOrder as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a Field {+ fn default() -> &'a Field {+ <Field as ::protobuf::Message>::default_instance()}}-impl FieldOrder {- pub fn new() -> FieldOrder {+impl Field {+ pub fn new() -> Field {::std::default::Default::default()}- // string field_id = 1;+ // string id = 1;- pub fn get_field_id(&self) -> &str {- &self.field_id+ pub fn get_id(&self) -> &str {+ &self.id}- pub fn clear_field_id(&mut self) {- self.field_id.clear();+ pub fn clear_id(&mut self) {+ self.id.clear();}// Param is passed by value, moved- pub fn set_field_id(&mut self, v: ::std::string::String) {- self.field_id = v;+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_field_id(&mut self) -> &mut ::std::string::String {- &mut self.field_id+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id}// Take field- pub fn take_field_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.field_id, ::std::string::String::new())+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())}- // bool visibility = 2;+ // string name = 2;- pub fn get_visibility(&self) -> bool {- self.visibility+ pub fn get_name(&self) -> &str {+ &self.name}- pub fn clear_visibility(&mut self) {- self.visibility = false;+ pub fn clear_name(&mut self) {+ self.name.clear();}// Param is passed by value, moved- pub fn set_visibility(&mut self, v: bool) {- self.visibility = v;+ pub fn set_name(&mut self, v: ::std::string::String) {+ self.name = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_name(&mut self) -> &mut ::std::string::String {+ &mut self.name+ }++ // Take field+ pub fn take_name(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.name, ::std::string::String::new())+ }++ // string desc = 3;+++ pub fn get_desc(&self) -> &str {+ &self.desc+ }+ pub fn clear_desc(&mut self) {+ self.desc.clear();+ }++ // Param is passed by value, moved+ pub fn set_desc(&mut self, v: ::std::string::String) {+ self.desc = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_desc(&mut self) -> &mut ::std::string::String {+ &mut self.desc+ }++ // Take field+ pub fn take_desc(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.desc, ::std::string::String::new())+ }++ // .FieldType field_type = 4;+++ pub fn get_field_type(&self) -> FieldType {+ self.field_type+ }+ pub fn clear_field_type(&mut self) {+ self.field_type = FieldType::RichText;+ }++ // Param is passed by value, moved+ pub fn set_field_type(&mut self, v: FieldType) {+ self.field_type = v;+ }++ // bool frozen = 5;+++ pub fn get_frozen(&self) -> bool {+ self.frozen+ }+ pub fn clear_frozen(&mut self) {+ self.frozen = false;+ }++ // Param is passed by value, moved+ pub fn set_frozen(&mut self, v: bool) {+ self.frozen = v;+ }++ // int32 width = 6;+++ pub fn get_width(&self) -> i32 {+ self.width+ }+ pub fn clear_width(&mut self) {+ self.width = 0;+ }++ // Param is passed by value, moved+ pub fn set_width(&mut self, v: i32) {+ self.width = v;+ }++ // .AnyData type_options = 7;+++ pub fn get_type_options(&self) -> &AnyData {+ self.type_options.as_ref().unwrap_or_else(|| <AnyData as ::protobuf::Message>::default_instance())+ }+ pub fn clear_type_options(&mut self) {+ self.type_options.clear();+ }++ pub fn has_type_options(&self) -> bool {+ self.type_options.is_some()+ }++ // Param is passed by value, moved+ pub fn set_type_options(&mut self, v: AnyData) {+ self.type_options = ::protobuf::SingularPtrField::some(v);+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_type_options(&mut self) -> &mut AnyData {+ if self.type_options.is_none() {+ self.type_options.set_default();+ }+ self.type_options.as_mut().unwrap()+ }++ // Take field+ pub fn take_type_options(&mut self) -> AnyData {+ self.type_options.take().unwrap_or_else(|| AnyData::new())}}-impl ::protobuf::Message for FieldOrder {+impl ::protobuf::Message for Field {fn is_initialized(&self) -> bool {+ for v in &self.type_options {+ if !v.is_initialized() {+ return false;+ }+ };true}@@ -835,14 +911,33 @@ impl ::protobuf::Message for FieldOrder {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;},2 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;+ },+ 3 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;+ },+ 4 => {+ ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)?+ },+ 5 => {if wire_type != ::protobuf::wire_format::WireTypeVarint {return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));}let tmp = is.read_bool()?;- self.visibility = tmp;+ self.frozen = tmp;+ },+ 6 => {+ 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.width = tmp;+ },+ 7 => {+ ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.type_options)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -856,23 +951,56 @@ impl ::protobuf::Message for FieldOrder {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.field_id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.field_id);+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);}- if self.visibility != false {+ if !self.name.is_empty() {+ my_size += ::protobuf::rt::string_size(2, &self.name);+ }+ if !self.desc.is_empty() {+ my_size += ::protobuf::rt::string_size(3, &self.desc);+ }+ if self.field_type != FieldType::RichText {+ my_size += ::protobuf::rt::enum_size(4, self.field_type);+ }+ if self.frozen != false {my_size += 2;}+ if self.width != 0 {+ my_size += ::protobuf::rt::value_size(6, self.width, ::protobuf::wire_format::WireTypeVarint);+ }+ if let Some(ref v) = self.type_options.as_ref() {+ let len = v.compute_size();+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;+ }my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.field_id.is_empty() {- os.write_string(1, &self.field_id)?;+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;}- if self.visibility != false {- os.write_bool(2, self.visibility)?;+ if !self.name.is_empty() {+ os.write_string(2, &self.name)?;+ }+ if !self.desc.is_empty() {+ os.write_string(3, &self.desc)?;+ }+ if self.field_type != FieldType::RichText {+ os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?;+ }+ if self.frozen != false {+ os.write_bool(5, self.frozen)?;+ }+ if self.width != 0 {+ os.write_int32(6, self.width)?;+ }+ if let Some(ref v) = self.type_options.as_ref() {+ os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;+ os.write_raw_varint32(v.get_cached_size())?;+ v.write_to_with_cached_sizes(os)?;}os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())@@ -904,8 +1032,8 @@ impl ::protobuf::Message for FieldOrder {Self::descriptor_static()}- fn new() -> FieldOrder {- FieldOrder::new()+ fn new() -> Field {+ Field::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {@@ -913,73 +1041,103 @@ impl ::protobuf::Message for FieldOrder {descriptor.get(|| {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "field_id",- |m: &FieldOrder| { &m.field_id },- |m: &mut FieldOrder| { &mut m.field_id },+ "id",+ |m: &Field| { &m.id },+ |m: &mut Field| { &mut m.id },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "name",+ |m: &Field| { &m.name },+ |m: &mut Field| { &mut m.name },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "desc",+ |m: &Field| { &m.desc },+ |m: &mut Field| { &mut m.desc },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(+ "field_type",+ |m: &Field| { &m.field_type },+ |m: &mut Field| { &mut m.field_type },));fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(- "visibility",- |m: &FieldOrder| { &m.visibility },- |m: &mut FieldOrder| { &mut m.visibility },+ "frozen",+ |m: &Field| { &m.frozen },+ |m: &mut Field| { &mut m.frozen },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<FieldOrder>(- "FieldOrder",+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(+ "width",+ |m: &Field| { &m.width },+ |m: &mut Field| { &mut m.width },+ ));+ fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AnyData>>(+ "type_options",+ |m: &Field| { &m.type_options },+ |m: &mut Field| { &mut m.type_options },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<Field>(+ "Field",fields,file_descriptor_proto())})}- fn default_instance() -> &'static FieldOrder {- static instance: ::protobuf::rt::LazyV2<FieldOrder> = ::protobuf::rt::LazyV2::INIT;- instance.get(FieldOrder::new)+ fn default_instance() -> &'static Field {+ static instance: ::protobuf::rt::LazyV2<Field> = ::protobuf::rt::LazyV2::INIT;+ instance.get(Field::new)}}-impl ::protobuf::Clear for FieldOrder {+impl ::protobuf::Clear for Field {fn clear(&mut self) {- self.field_id.clear();- self.visibility = false;+ self.id.clear();+ self.name.clear();+ self.desc.clear();+ self.field_type = FieldType::RichText;+ self.frozen = false;+ self.width = 0;+ self.type_options.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for FieldOrder {+impl ::std::fmt::Debug for Field {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for FieldOrder {+impl ::protobuf::reflect::ProtobufValue for Field {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RepeatedFieldOrder {+pub struct RepeatedField {// message fields- pub items: ::protobuf::RepeatedField<FieldOrder>,+ pub items: ::protobuf::RepeatedField<Field>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RepeatedFieldOrder {- fn default() -> &'a RepeatedFieldOrder {- <RepeatedFieldOrder as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RepeatedField {+ fn default() -> &'a RepeatedField {+ <RepeatedField as ::protobuf::Message>::default_instance()}}-impl RepeatedFieldOrder {- pub fn new() -> RepeatedFieldOrder {+impl RepeatedField {+ pub fn new() -> RepeatedField {::std::default::Default::default()}- // repeated .FieldOrder items = 1;+ // repeated .Field items = 1;- pub fn get_items(&self) -> &[FieldOrder] {+ pub fn get_items(&self) -> &[Field] {&self.items}pub fn clear_items(&mut self) {@@ -987,22 +1145,22 @@ impl RepeatedFieldOrder {}// Param is passed by value, moved- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<FieldOrder>) {+ pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Field>) {self.items = v;}// Mutable pointer to the field.- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<FieldOrder> {+ pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Field> {&mut self.items}// Take field- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<FieldOrder> {+ pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Field> {::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())}}-impl ::protobuf::Message for RepeatedFieldOrder {+impl ::protobuf::Message for RepeatedField {fn is_initialized(&self) -> bool {for v in &self.items {if !v.is_initialized() {@@ -1076,238 +1234,538 @@ impl ::protobuf::Message for RepeatedFieldOrder {Self::descriptor_static()}- fn new() -> RepeatedFieldOrder {- RepeatedFieldOrder::new()+ fn new() -> RepeatedField {+ RepeatedField::new()+ }++ fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;+ descriptor.get(|| {+ let mut fields = ::std::vec::Vec::new();+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(+ "items",+ |m: &RepeatedField| { &m.items },+ |m: &mut RepeatedField| { &mut m.items },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedField>(+ "RepeatedField",+ fields,+ file_descriptor_proto()+ )+ })+ }++ fn default_instance() -> &'static RepeatedField {+ static instance: ::protobuf::rt::LazyV2<RepeatedField> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RepeatedField::new)+ }+}++impl ::protobuf::Clear for RepeatedField {+ fn clear(&mut self) {+ self.items.clear();+ self.unknown_fields.clear();+ }+}++impl ::std::fmt::Debug for RepeatedField {+ fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {+ ::protobuf::text_format::fmt(self, f)+ }+}++impl ::protobuf::reflect::ProtobufValue for RepeatedField {+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {+ ::protobuf::reflect::ReflectValueRef::Message(self)+ }+}++#[derive(PartialEq,Clone,Default)]+pub struct AnyData {+ // message fields+ pub type_id: ::std::string::String,+ pub value: ::std::vec::Vec<u8>,+ // special fields+ pub unknown_fields: ::protobuf::UnknownFields,+ pub cached_size: ::protobuf::CachedSize,+}++impl<'a> ::std::default::Default for &'a AnyData {+ fn default() -> &'a AnyData {+ <AnyData as ::protobuf::Message>::default_instance()+ }+}++impl AnyData {+ pub fn new() -> AnyData {+ ::std::default::Default::default()+ }++ // string type_id = 1;+++ pub fn get_type_id(&self) -> &str {+ &self.type_id+ }+ pub fn clear_type_id(&mut self) {+ self.type_id.clear();+ }++ // Param is passed by value, moved+ pub fn set_type_id(&mut self, v: ::std::string::String) {+ self.type_id = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_type_id(&mut self) -> &mut ::std::string::String {+ &mut self.type_id+ }++ // Take field+ pub fn take_type_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.type_id, ::std::string::String::new())+ }++ // bytes value = 2;+++ pub fn get_value(&self) -> &[u8] {+ &self.value+ }+ pub fn clear_value(&mut self) {+ self.value.clear();+ }++ // Param is passed by value, moved+ pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {+ self.value = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {+ &mut self.value+ }++ // Take field+ pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {+ ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())+ }+}++impl ::protobuf::Message for AnyData {+ fn is_initialized(&self) -> bool {+ true+ }++ fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {+ while !is.eof()? {+ let (field_number, wire_type) = is.read_tag_unpack()?;+ match field_number {+ 1 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_id)?;+ },+ 2 => {+ ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;+ },+ _ => {+ ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;+ },+ };+ }+ ::std::result::Result::Ok(())+ }++ // Compute sizes of nested messages+ #[allow(unused_variables)]+ fn compute_size(&self) -> u32 {+ let mut my_size = 0;+ if !self.type_id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.type_id);+ }+ if !self.value.is_empty() {+ my_size += ::protobuf::rt::bytes_size(2, &self.value);+ }+ my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());+ self.cached_size.set(my_size);+ my_size+ }++ fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {+ if !self.type_id.is_empty() {+ os.write_string(1, &self.type_id)?;+ }+ if !self.value.is_empty() {+ os.write_bytes(2, &self.value)?;+ }+ os.write_unknown_fields(self.get_unknown_fields())?;+ ::std::result::Result::Ok(())+ }++ fn get_cached_size(&self) -> u32 {+ self.cached_size.get()+ }++ fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {+ &self.unknown_fields+ }++ fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {+ &mut self.unknown_fields+ }++ fn as_any(&self) -> &dyn (::std::any::Any) {+ self as &dyn (::std::any::Any)+ }+ fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {+ self as &mut dyn (::std::any::Any)+ }+ fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {+ self+ }++ fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {+ Self::descriptor_static()+ }++ fn new() -> AnyData {+ AnyData::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FieldOrder>>(- "items",- |m: &RepeatedFieldOrder| { &m.items },- |m: &mut RepeatedFieldOrder| { &mut m.items },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "type_id",+ |m: &AnyData| { &m.type_id },+ |m: &mut AnyData| { &mut m.type_id },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFieldOrder>(- "RepeatedFieldOrder",+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(+ "value",+ |m: &AnyData| { &m.value },+ |m: &mut AnyData| { &mut m.value },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<AnyData>(+ "AnyData",fields,file_descriptor_proto())})}- fn default_instance() -> &'static RepeatedFieldOrder {- static instance: ::protobuf::rt::LazyV2<RepeatedFieldOrder> = ::protobuf::rt::LazyV2::INIT;- instance.get(RepeatedFieldOrder::new)+ fn default_instance() -> &'static AnyData {+ static instance: ::protobuf::rt::LazyV2<AnyData> = ::protobuf::rt::LazyV2::INIT;+ instance.get(AnyData::new)}}-impl ::protobuf::Clear for RepeatedFieldOrder {+impl ::protobuf::Clear for AnyData {fn clear(&mut self) {- self.items.clear();+ self.type_id.clear();+ self.value.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RepeatedFieldOrder {+impl ::std::fmt::Debug for AnyData {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RepeatedFieldOrder {+impl ::protobuf::reflect::ProtobufValue for AnyData {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct Field {+pub struct RowOrder {// message fields- pub id: ::std::string::String,- pub name: ::std::string::String,- pub desc: ::std::string::String,- pub field_type: FieldType,- pub frozen: bool,- pub width: i32,- pub type_options: ::protobuf::SingularPtrField<AnyData>,+ pub grid_id: ::std::string::String,+ pub row_id: ::std::string::String,+ pub visibility: bool,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a Field {- fn default() -> &'a Field {- <Field as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RowOrder {+ fn default() -> &'a RowOrder {+ <RowOrder as ::protobuf::Message>::default_instance()}}-impl Field {- pub fn new() -> Field {+impl RowOrder {+ pub fn new() -> RowOrder {::std::default::Default::default()}- // string id = 1;+ // string grid_id = 1;- pub fn get_id(&self) -> &str {- &self.id+ pub fn get_grid_id(&self) -> &str {+ &self.grid_id}- pub fn clear_id(&mut self) {- self.id.clear();+ pub fn clear_grid_id(&mut self) {+ self.grid_id.clear();}// Param is passed by value, moved- pub fn set_id(&mut self, v: ::std::string::String) {- self.id = v;+ pub fn set_grid_id(&mut self, v: ::std::string::String) {+ self.grid_id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_id(&mut self) -> &mut ::std::string::String {- &mut self.id+ pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {+ &mut self.grid_id}// Take field- pub fn take_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.id, ::std::string::String::new())+ pub fn take_grid_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())}- // string name = 2;+ // string row_id = 2;- pub fn get_name(&self) -> &str {- &self.name+ pub fn get_row_id(&self) -> &str {+ &self.row_id}- pub fn clear_name(&mut self) {- self.name.clear();+ pub fn clear_row_id(&mut self) {+ self.row_id.clear();}// Param is passed by value, moved- pub fn set_name(&mut self, v: ::std::string::String) {- self.name = v;+ pub fn set_row_id(&mut self, v: ::std::string::String) {+ self.row_id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_name(&mut self) -> &mut ::std::string::String {- &mut self.name+ pub fn mut_row_id(&mut self) -> &mut ::std::string::String {+ &mut self.row_id}// Take field- pub fn take_name(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.name, ::std::string::String::new())+ pub fn take_row_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.row_id, ::std::string::String::new())}- // string desc = 3;+ // bool visibility = 3;- pub fn get_desc(&self) -> &str {- &self.desc+ pub fn get_visibility(&self) -> bool {+ self.visibility}- pub fn clear_desc(&mut self) {- self.desc.clear();+ pub fn clear_visibility(&mut self) {+ self.visibility = false;}// Param is passed by value, moved- pub fn set_desc(&mut self, v: ::std::string::String) {- self.desc = v;+ pub fn set_visibility(&mut self, v: bool) {+ self.visibility = v;}+}- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_desc(&mut self) -> &mut ::std::string::String {- &mut self.desc+impl ::protobuf::Message for RowOrder {+ fn is_initialized(&self) -> bool {+ true}- // Take field- pub fn take_desc(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.desc, ::std::string::String::new())+ fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {+ while !is.eof()? {+ let (field_number, wire_type) = is.read_tag_unpack()?;+ match field_number {+ 1 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;+ },+ 2 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;+ },+ 3 => {+ if wire_type != ::protobuf::wire_format::WireTypeVarint {+ return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));+ }+ let tmp = is.read_bool()?;+ self.visibility = tmp;+ },+ _ => {+ ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;+ },+ };+ }+ ::std::result::Result::Ok(())}- // .FieldType field_type = 4;+ // Compute sizes of nested messages+ #[allow(unused_variables)]+ fn compute_size(&self) -> u32 {+ let mut my_size = 0;+ if !self.grid_id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.grid_id);+ }+ if !self.row_id.is_empty() {+ my_size += ::protobuf::rt::string_size(2, &self.row_id);+ }+ if self.visibility != false {+ my_size += 2;+ }+ my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());+ self.cached_size.set(my_size);+ my_size+ }+ fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {+ if !self.grid_id.is_empty() {+ os.write_string(1, &self.grid_id)?;+ }+ if !self.row_id.is_empty() {+ os.write_string(2, &self.row_id)?;+ }+ if self.visibility != false {+ os.write_bool(3, self.visibility)?;+ }+ os.write_unknown_fields(self.get_unknown_fields())?;+ ::std::result::Result::Ok(())+ }- pub fn get_field_type(&self) -> FieldType {- self.field_type+ fn get_cached_size(&self) -> u32 {+ self.cached_size.get()}- pub fn clear_field_type(&mut self) {- self.field_type = FieldType::RichText;++ fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {+ &self.unknown_fields}- // Param is passed by value, moved- pub fn set_field_type(&mut self, v: FieldType) {- self.field_type = v;+ fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {+ &mut self.unknown_fields}- // bool frozen = 5;+ fn as_any(&self) -> &dyn (::std::any::Any) {+ self as &dyn (::std::any::Any)+ }+ fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {+ self as &mut dyn (::std::any::Any)+ }+ fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {+ self+ }+ fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {+ Self::descriptor_static()+ }- pub fn get_frozen(&self) -> bool {- self.frozen+ fn new() -> RowOrder {+ RowOrder::new()}- pub fn clear_frozen(&mut self) {- self.frozen = false;++ fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {+ static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;+ descriptor.get(|| {+ let mut fields = ::std::vec::Vec::new();+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "grid_id",+ |m: &RowOrder| { &m.grid_id },+ |m: &mut RowOrder| { &mut m.grid_id },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "row_id",+ |m: &RowOrder| { &m.row_id },+ |m: &mut RowOrder| { &mut m.row_id },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(+ "visibility",+ |m: &RowOrder| { &m.visibility },+ |m: &mut RowOrder| { &mut m.visibility },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowOrder>(+ "RowOrder",+ fields,+ file_descriptor_proto()+ )+ })+ }++ fn default_instance() -> &'static RowOrder {+ static instance: ::protobuf::rt::LazyV2<RowOrder> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RowOrder::new)+ }+}++impl ::protobuf::Clear for RowOrder {+ fn clear(&mut self) {+ self.grid_id.clear();+ self.row_id.clear();+ self.visibility = false;+ self.unknown_fields.clear();}+}- // Param is passed by value, moved- pub fn set_frozen(&mut self, v: bool) {- self.frozen = v;+impl ::std::fmt::Debug for RowOrder {+ fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {+ ::protobuf::text_format::fmt(self, f)}+}- // int32 width = 6;+impl ::protobuf::reflect::ProtobufValue for RowOrder {+ fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {+ ::protobuf::reflect::ReflectValueRef::Message(self)+ }+}+#[derive(PartialEq,Clone,Default)]+pub struct RepeatedRowOrder {+ // message fields+ pub items: ::protobuf::RepeatedField<RowOrder>,+ // special fields+ pub unknown_fields: ::protobuf::UnknownFields,+ pub cached_size: ::protobuf::CachedSize,+}- pub fn get_width(&self) -> i32 {- self.width- }- pub fn clear_width(&mut self) {- self.width = 0;+impl<'a> ::std::default::Default for &'a RepeatedRowOrder {+ fn default() -> &'a RepeatedRowOrder {+ <RepeatedRowOrder as ::protobuf::Message>::default_instance()}+}- // Param is passed by value, moved- pub fn set_width(&mut self, v: i32) {- self.width = v;+impl RepeatedRowOrder {+ pub fn new() -> RepeatedRowOrder {+ ::std::default::Default::default()}- // .AnyData type_options = 7;+ // repeated .RowOrder items = 1;- pub fn get_type_options(&self) -> &AnyData {- self.type_options.as_ref().unwrap_or_else(|| <AnyData as ::protobuf::Message>::default_instance())- }- pub fn clear_type_options(&mut self) {- self.type_options.clear();+ pub fn get_items(&self) -> &[RowOrder] {+ &self.items}-- pub fn has_type_options(&self) -> bool {- self.type_options.is_some()+ pub fn clear_items(&mut self) {+ self.items.clear();}// Param is passed by value, moved- pub fn set_type_options(&mut self, v: AnyData) {- self.type_options = ::protobuf::SingularPtrField::some(v);+ pub fn set_items(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {+ self.items = v;}// Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_type_options(&mut self) -> &mut AnyData {- if self.type_options.is_none() {- self.type_options.set_default();- }- self.type_options.as_mut().unwrap()+ pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {+ &mut self.items}// Take field- pub fn take_type_options(&mut self) -> AnyData {- self.type_options.take().unwrap_or_else(|| AnyData::new())+ pub fn take_items(&mut self) -> ::protobuf::RepeatedField<RowOrder> {+ ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())}}-impl ::protobuf::Message for Field {+impl ::protobuf::Message for RepeatedRowOrder {fn is_initialized(&self) -> bool {- for v in &self.type_options {+ for v in &self.items {if !v.is_initialized() {return false;}@@ -1320,33 +1778,7 @@ impl ::protobuf::Message for Field {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;- },- 2 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;- },- 3 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;- },- 4 => {- ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)?- },- 5 => {- if wire_type != ::protobuf::wire_format::WireTypeVarint {- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));- }- let tmp = is.read_bool()?;- self.frozen = tmp;- },- 6 => {- 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.width = tmp;- },- 7 => {- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.type_options)?;+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -1360,57 +1792,21 @@ impl ::protobuf::Message for Field {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.id);- }- if !self.name.is_empty() {- my_size += ::protobuf::rt::string_size(2, &self.name);- }- if !self.desc.is_empty() {- my_size += ::protobuf::rt::string_size(3, &self.desc);- }- if self.field_type != FieldType::RichText {- my_size += ::protobuf::rt::enum_size(4, self.field_type);- }- if self.frozen != false {- my_size += 2;- }- if self.width != 0 {- my_size += ::protobuf::rt::value_size(6, self.width, ::protobuf::wire_format::WireTypeVarint);- }- if let Some(ref v) = self.type_options.as_ref() {- let len = v.compute_size();+ for value in &self.items {+ let len = value.compute_size();my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;- }+ };my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.id.is_empty() {- os.write_string(1, &self.id)?;- }- if !self.name.is_empty() {- os.write_string(2, &self.name)?;- }- if !self.desc.is_empty() {- os.write_string(3, &self.desc)?;- }- if self.field_type != FieldType::RichText {- os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?;- }- if self.frozen != false {- os.write_bool(5, self.frozen)?;- }- if self.width != 0 {- os.write_int32(6, self.width)?;- }- if let Some(ref v) = self.type_options.as_ref() {- os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;+ for v in &self.items {+ os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;os.write_raw_varint32(v.get_cached_size())?;v.write_to_with_cached_sizes(os)?;- }+ };os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -1441,141 +1837,154 @@ impl ::protobuf::Message for Field {Self::descriptor_static()}- fn new() -> Field {- Field::new()+ fn new() -> RepeatedRowOrder {+ RepeatedRowOrder::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "id",- |m: &Field| { &m.id },- |m: &mut Field| { &mut m.id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "name",- |m: &Field| { &m.name },- |m: &mut Field| { &mut m.name },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "desc",- |m: &Field| { &m.desc },- |m: &mut Field| { &mut m.desc },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<FieldType>>(- "field_type",- |m: &Field| { &m.field_type },- |m: &mut Field| { &mut m.field_type },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(- "frozen",- |m: &Field| { &m.frozen },- |m: &mut Field| { &mut m.frozen },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(- "width",- |m: &Field| { &m.width },- |m: &mut Field| { &mut m.width },- ));- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AnyData>>(- "type_options",- |m: &Field| { &m.type_options },- |m: &mut Field| { &mut m.type_options },+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(+ "items",+ |m: &RepeatedRowOrder| { &m.items },+ |m: &mut RepeatedRowOrder| { &mut m.items },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<Field>(- "Field",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRowOrder>(+ "RepeatedRowOrder",fields,file_descriptor_proto())})}- fn default_instance() -> &'static Field {- static instance: ::protobuf::rt::LazyV2<Field> = ::protobuf::rt::LazyV2::INIT;- instance.get(Field::new)+ fn default_instance() -> &'static RepeatedRowOrder {+ static instance: ::protobuf::rt::LazyV2<RepeatedRowOrder> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RepeatedRowOrder::new)}}-impl ::protobuf::Clear for Field {+impl ::protobuf::Clear for RepeatedRowOrder {fn clear(&mut self) {- self.id.clear();- self.name.clear();- self.desc.clear();- self.field_type = FieldType::RichText;- self.frozen = false;- self.width = 0;- self.type_options.clear();+ self.items.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for Field {+impl ::std::fmt::Debug for RepeatedRowOrder {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for Field {+impl ::protobuf::reflect::ProtobufValue for RepeatedRowOrder {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RepeatedField {+pub struct RawRow {// message fields- pub items: ::protobuf::RepeatedField<Field>,+ pub id: ::std::string::String,+ pub grid_id: ::std::string::String,+ pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, RawCell>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RepeatedField {- fn default() -> &'a RepeatedField {- <RepeatedField as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RawRow {+ fn default() -> &'a RawRow {+ <RawRow as ::protobuf::Message>::default_instance()+ }+}++impl RawRow {+ pub fn new() -> RawRow {+ ::std::default::Default::default()+ }++ // string id = 1;+++ pub fn get_id(&self) -> &str {+ &self.id+ }+ pub fn clear_id(&mut self) {+ self.id.clear();+ }++ // Param is passed by value, moved+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id+ }++ // Take field+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())+ }++ // string grid_id = 2;+++ pub fn get_grid_id(&self) -> &str {+ &self.grid_id+ }+ pub fn clear_grid_id(&mut self) {+ self.grid_id.clear();+ }++ // Param is passed by value, moved+ pub fn set_grid_id(&mut self, v: ::std::string::String) {+ self.grid_id = v;}-}-impl RepeatedField {- pub fn new() -> RepeatedField {- ::std::default::Default::default()+ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {+ &mut self.grid_id}- // repeated .Field items = 1;+ // Take field+ pub fn take_grid_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())+ }+ // repeated .RawRow.CellByFieldIdEntry cell_by_field_id = 3;- pub fn get_items(&self) -> &[Field] {- &self.items++ pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, RawCell> {+ &self.cell_by_field_id}- pub fn clear_items(&mut self) {- self.items.clear();+ pub fn clear_cell_by_field_id(&mut self) {+ self.cell_by_field_id.clear();}// Param is passed by value, moved- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Field>) {- self.items = v;+ pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, RawCell>) {+ self.cell_by_field_id = v;}// Mutable pointer to the field.- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Field> {- &mut self.items+ pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, RawCell> {+ &mut self.cell_by_field_id}// Take field- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Field> {- ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())+ pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, RawCell> {+ ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())}}-impl ::protobuf::Message for RepeatedField {+impl ::protobuf::Message for RawRow {fn is_initialized(&self) -> bool {- for v in &self.items {- if !v.is_initialized() {- return false;- }- };true}@@ -1584,7 +1993,13 @@ impl ::protobuf::Message for RepeatedField {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;+ },+ 2 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;+ },+ 3 => {+ ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<RawCell>>(wire_type, is, &mut self.cell_by_field_id)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -1598,21 +2013,26 @@ impl ::protobuf::Message for RepeatedField {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- for value in &self.items {- let len = value.compute_size();- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;- };+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);+ }+ if !self.grid_id.is_empty() {+ my_size += ::protobuf::rt::string_size(2, &self.grid_id);+ }+ my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<RawCell>>(3, &self.cell_by_field_id);my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- for v in &self.items {- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;- os.write_raw_varint32(v.get_cached_size())?;- v.write_to_with_cached_sizes(os)?;- };+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;+ }+ if !self.grid_id.is_empty() {+ os.write_string(2, &self.grid_id)?;+ }+ ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<RawCell>>(3, &self.cell_by_field_id, os)?;os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -1643,127 +2063,193 @@ impl ::protobuf::Message for RepeatedField {Self::descriptor_static()}- fn new() -> RepeatedField {- RepeatedField::new()+ fn new() -> RawRow {+ RawRow::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(- "items",- |m: &RepeatedField| { &m.items },- |m: &mut RepeatedField| { &mut m.items },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "id",+ |m: &RawRow| { &m.id },+ |m: &mut RawRow| { &mut m.id },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedField>(- "RepeatedField",+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "grid_id",+ |m: &RawRow| { &m.grid_id },+ |m: &mut RawRow| { &mut m.grid_id },+ ));+ fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<RawCell>>(+ "cell_by_field_id",+ |m: &RawRow| { &m.cell_by_field_id },+ |m: &mut RawRow| { &mut m.cell_by_field_id },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RawRow>(+ "RawRow",fields,file_descriptor_proto())})}- fn default_instance() -> &'static RepeatedField {- static instance: ::protobuf::rt::LazyV2<RepeatedField> = ::protobuf::rt::LazyV2::INIT;- instance.get(RepeatedField::new)+ fn default_instance() -> &'static RawRow {+ static instance: ::protobuf::rt::LazyV2<RawRow> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RawRow::new)}}-impl ::protobuf::Clear for RepeatedField {+impl ::protobuf::Clear for RawRow {fn clear(&mut self) {- self.items.clear();+ self.id.clear();+ self.grid_id.clear();+ self.cell_by_field_id.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RepeatedField {+impl ::std::fmt::Debug for RawRow {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RepeatedField {+impl ::protobuf::reflect::ProtobufValue for RawRow {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct AnyData {+pub struct RawCell {// message fields- pub type_id: ::std::string::String,- pub value: ::std::vec::Vec<u8>,+ pub id: ::std::string::String,+ pub row_id: ::std::string::String,+ pub field_id: ::std::string::String,+ pub data: ::std::string::String,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a AnyData {- fn default() -> &'a AnyData {- <AnyData as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RawCell {+ fn default() -> &'a RawCell {+ <RawCell as ::protobuf::Message>::default_instance()}}-impl AnyData {- pub fn new() -> AnyData {+impl RawCell {+ pub fn new() -> RawCell {::std::default::Default::default()}- // string type_id = 1;+ // string id = 1;- pub fn get_type_id(&self) -> &str {- &self.type_id+ pub fn get_id(&self) -> &str {+ &self.id}- pub fn clear_type_id(&mut self) {- self.type_id.clear();+ pub fn clear_id(&mut self) {+ self.id.clear();}// Param is passed by value, moved- pub fn set_type_id(&mut self, v: ::std::string::String) {- self.type_id = v;+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_type_id(&mut self) -> &mut ::std::string::String {- &mut self.type_id+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id}// Take field- pub fn take_type_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.type_id, ::std::string::String::new())+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())}- // bytes value = 2;+ // string row_id = 2;- pub fn get_value(&self) -> &[u8] {- &self.value+ pub fn get_row_id(&self) -> &str {+ &self.row_id}- pub fn clear_value(&mut self) {- self.value.clear();+ pub fn clear_row_id(&mut self) {+ self.row_id.clear();}// Param is passed by value, moved- pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {- self.value = v;+ pub fn set_row_id(&mut self, v: ::std::string::String) {+ self.row_id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {- &mut self.value+ pub fn mut_row_id(&mut self) -> &mut ::std::string::String {+ &mut self.row_id}// Take field- pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {- ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())+ pub fn take_row_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.row_id, ::std::string::String::new())+ }++ // string field_id = 3;+++ pub fn get_field_id(&self) -> &str {+ &self.field_id+ }+ pub fn clear_field_id(&mut self) {+ self.field_id.clear();+ }++ // Param is passed by value, moved+ pub fn set_field_id(&mut self, v: ::std::string::String) {+ self.field_id = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_field_id(&mut self) -> &mut ::std::string::String {+ &mut self.field_id+ }++ // Take field+ pub fn take_field_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.field_id, ::std::string::String::new())+ }++ // string data = 4;+++ 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 AnyData {+impl ::protobuf::Message for RawCell {fn is_initialized(&self) -> bool {true}@@ -1773,10 +2259,16 @@ impl ::protobuf::Message for AnyData {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;},2 => {- ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;+ },+ 3 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;+ },+ 4 => {+ ::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())?;@@ -1790,11 +2282,17 @@ impl ::protobuf::Message for AnyData {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.type_id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.type_id);+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);}- if !self.value.is_empty() {- my_size += ::protobuf::rt::bytes_size(2, &self.value);+ if !self.row_id.is_empty() {+ my_size += ::protobuf::rt::string_size(2, &self.row_id);+ }+ if !self.field_id.is_empty() {+ my_size += ::protobuf::rt::string_size(3, &self.field_id);+ }+ if !self.data.is_empty() {+ my_size += ::protobuf::rt::string_size(4, &self.data);}my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);@@ -1802,11 +2300,17 @@ impl ::protobuf::Message for AnyData {}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.type_id.is_empty() {- os.write_string(1, &self.type_id)?;+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;}- if !self.value.is_empty() {- os.write_bytes(2, &self.value)?;+ if !self.row_id.is_empty() {+ os.write_string(2, &self.row_id)?;+ }+ if !self.field_id.is_empty() {+ os.write_string(3, &self.field_id)?;+ }+ if !self.data.is_empty() {+ os.write_string(4, &self.data)?;}os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())@@ -1838,8 +2342,8 @@ impl ::protobuf::Message for AnyData {Self::descriptor_static()}- fn new() -> AnyData {- AnyData::new()+ fn new() -> RawCell {+ RawCell::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {@@ -1847,141 +2351,114 @@ impl ::protobuf::Message for AnyData {descriptor.get(|| {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "type_id",- |m: &AnyData| { &m.type_id },- |m: &mut AnyData| { &mut m.type_id },+ "id",+ |m: &RawCell| { &m.id },+ |m: &mut RawCell| { &mut m.id },));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(- "value",- |m: &AnyData| { &m.value },- |m: &mut AnyData| { &mut m.value },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "row_id",+ |m: &RawCell| { &m.row_id },+ |m: &mut RawCell| { &mut m.row_id },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<AnyData>(- "AnyData",+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "field_id",+ |m: &RawCell| { &m.field_id },+ |m: &mut RawCell| { &mut m.field_id },+ ));+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "data",+ |m: &RawCell| { &m.data },+ |m: &mut RawCell| { &mut m.data },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RawCell>(+ "RawCell",fields,file_descriptor_proto())})}- fn default_instance() -> &'static AnyData {- static instance: ::protobuf::rt::LazyV2<AnyData> = ::protobuf::rt::LazyV2::INIT;- instance.get(AnyData::new)+ fn default_instance() -> &'static RawCell {+ static instance: ::protobuf::rt::LazyV2<RawCell> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RawCell::new)}}-impl ::protobuf::Clear for AnyData {+impl ::protobuf::Clear for RawCell {fn clear(&mut self) {- self.type_id.clear();- self.value.clear();+ self.id.clear();+ self.row_id.clear();+ self.field_id.clear();+ self.data.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for AnyData {+impl ::std::fmt::Debug for RawCell {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for AnyData {+impl ::protobuf::reflect::ProtobufValue for RawCell {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RowOrder {+pub struct RepeatedRow {// message fields- pub grid_id: ::std::string::String,- pub row_id: ::std::string::String,- pub visibility: bool,+ pub items: ::protobuf::RepeatedField<Row>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RowOrder {- fn default() -> &'a RowOrder {- <RowOrder as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RepeatedRow {+ fn default() -> &'a RepeatedRow {+ <RepeatedRow as ::protobuf::Message>::default_instance()}}-impl RowOrder {- pub fn new() -> RowOrder {+impl RepeatedRow {+ pub fn new() -> RepeatedRow {::std::default::Default::default()}- // string grid_id = 1;--- pub fn get_grid_id(&self) -> &str {- &self.grid_id- }- pub fn clear_grid_id(&mut self) {- self.grid_id.clear();- }-- // Param is passed by value, moved- pub fn set_grid_id(&mut self, v: ::std::string::String) {- self.grid_id = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {- &mut self.grid_id- }-- // Take field- pub fn take_grid_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())- }-- // string row_id = 2;+ // repeated .Row items = 1;- pub fn get_row_id(&self) -> &str {- &self.row_id+ pub fn get_items(&self) -> &[Row] {+ &self.items}- pub fn clear_row_id(&mut self) {- self.row_id.clear();+ pub fn clear_items(&mut self) {+ self.items.clear();}// Param is passed by value, moved- pub fn set_row_id(&mut self, v: ::std::string::String) {- self.row_id = v;+ pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Row>) {+ self.items = v;}// Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_row_id(&mut self) -> &mut ::std::string::String {- &mut self.row_id+ pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Row> {+ &mut self.items}// Take field- pub fn take_row_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.row_id, ::std::string::String::new())- }-- // bool visibility = 3;--- pub fn get_visibility(&self) -> bool {- self.visibility- }- pub fn clear_visibility(&mut self) {- self.visibility = false;- }-- // Param is passed by value, moved- pub fn set_visibility(&mut self, v: bool) {- self.visibility = v;+ pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Row> {+ ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())}}-impl ::protobuf::Message for RowOrder {+impl ::protobuf::Message for RepeatedRow {fn is_initialized(&self) -> bool {+ for v in &self.items {+ if !v.is_initialized() {+ return false;+ }+ };true}@@ -1990,17 +2467,7 @@ impl ::protobuf::Message for RowOrder {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;- },- 2 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;- },- 3 => {- if wire_type != ::protobuf::wire_format::WireTypeVarint {- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));- }- let tmp = is.read_bool()?;- self.visibility = tmp;+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -2014,30 +2481,21 @@ impl ::protobuf::Message for RowOrder {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.grid_id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.grid_id);- }- if !self.row_id.is_empty() {- my_size += ::protobuf::rt::string_size(2, &self.row_id);- }- if self.visibility != false {- my_size += 2;- }+ for value in &self.items {+ let len = value.compute_size();+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;+ };my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.grid_id.is_empty() {- os.write_string(1, &self.grid_id)?;- }- if !self.row_id.is_empty() {- os.write_string(2, &self.row_id)?;- }- if self.visibility != false {- os.write_bool(3, self.visibility)?;- }+ for v in &self.items {+ os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;+ os.write_raw_varint32(v.get_cached_size())?;+ v.write_to_with_cached_sizes(os)?;+ };os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -2068,117 +2526,127 @@ impl ::protobuf::Message for RowOrder {Self::descriptor_static()}- fn new() -> RowOrder {- RowOrder::new()+ fn new() -> RepeatedRow {+ RepeatedRow::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "grid_id",- |m: &RowOrder| { &m.grid_id },- |m: &mut RowOrder| { &mut m.grid_id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "row_id",- |m: &RowOrder| { &m.row_id },- |m: &mut RowOrder| { &mut m.row_id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(- "visibility",- |m: &RowOrder| { &m.visibility },- |m: &mut RowOrder| { &mut m.visibility },+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Row>>(+ "items",+ |m: &RepeatedRow| { &m.items },+ |m: &mut RepeatedRow| { &mut m.items },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RowOrder>(- "RowOrder",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRow>(+ "RepeatedRow",fields,file_descriptor_proto())})}- fn default_instance() -> &'static RowOrder {- static instance: ::protobuf::rt::LazyV2<RowOrder> = ::protobuf::rt::LazyV2::INIT;- instance.get(RowOrder::new)+ fn default_instance() -> &'static RepeatedRow {+ static instance: ::protobuf::rt::LazyV2<RepeatedRow> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RepeatedRow::new)}}-impl ::protobuf::Clear for RowOrder {+impl ::protobuf::Clear for RepeatedRow {fn clear(&mut self) {- self.grid_id.clear();- self.row_id.clear();- self.visibility = false;+ self.items.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RowOrder {+impl ::std::fmt::Debug for RepeatedRow {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RowOrder {+impl ::protobuf::reflect::ProtobufValue for RepeatedRow {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RepeatedRowOrder {+pub struct Row {// message fields- pub items: ::protobuf::RepeatedField<RowOrder>,+ pub id: ::std::string::String,+ pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, Cell>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RepeatedRowOrder {- fn default() -> &'a RepeatedRowOrder {- <RepeatedRowOrder as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a Row {+ fn default() -> &'a Row {+ <Row as ::protobuf::Message>::default_instance()}}-impl RepeatedRowOrder {- pub fn new() -> RepeatedRowOrder {+impl Row {+ pub fn new() -> Row {::std::default::Default::default()}- // repeated .RowOrder items = 1;+ // string id = 1;- pub fn get_items(&self) -> &[RowOrder] {- &self.items+ pub fn get_id(&self) -> &str {+ &self.id}- pub fn clear_items(&mut self) {- self.items.clear();+ pub fn clear_id(&mut self) {+ self.id.clear();}// Param is passed by value, moved- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<RowOrder>) {- self.items = v;+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;}// Mutable pointer to the field.- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<RowOrder> {- &mut self.items+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id}// Take field- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<RowOrder> {- ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())+ }++ // repeated .Row.CellByFieldIdEntry cell_by_field_id = 2;+++ pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, Cell> {+ &self.cell_by_field_id+ }+ pub fn clear_cell_by_field_id(&mut self) {+ self.cell_by_field_id.clear();+ }++ // Param is passed by value, moved+ pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, Cell>) {+ self.cell_by_field_id = v;+ }++ // Mutable pointer to the field.+ pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Cell> {+ &mut self.cell_by_field_id+ }++ // Take field+ pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, Cell> {+ ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())}}-impl ::protobuf::Message for RepeatedRowOrder {+impl ::protobuf::Message for Row {fn is_initialized(&self) -> bool {- for v in &self.items {- if !v.is_initialized() {- return false;- }- };true}@@ -2187,7 +2655,10 @@ impl ::protobuf::Message for RepeatedRowOrder {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;+ },+ 2 => {+ ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(wire_type, is, &mut self.cell_by_field_id)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -2201,21 +2672,20 @@ impl ::protobuf::Message for RepeatedRowOrder {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- for value in &self.items {- let len = value.compute_size();- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;- };+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);+ }+ my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id);my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- for v in &self.items {- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;- os.write_raw_varint32(v.get_cached_size())?;- v.write_to_with_cached_sizes(os)?;- };+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;+ }+ ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(2, &self.cell_by_field_id, os)?;os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -2246,72 +2716,77 @@ impl ::protobuf::Message for RepeatedRowOrder {Self::descriptor_static()}- fn new() -> RepeatedRowOrder {- RepeatedRowOrder::new()+ fn new() -> Row {+ Row::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<RowOrder>>(- "items",- |m: &RepeatedRowOrder| { &m.items },- |m: &mut RepeatedRowOrder| { &mut m.items },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "id",+ |m: &Row| { &m.id },+ |m: &mut Row| { &mut m.id },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRowOrder>(- "RepeatedRowOrder",+ fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<Cell>>(+ "cell_by_field_id",+ |m: &Row| { &m.cell_by_field_id },+ |m: &mut Row| { &mut m.cell_by_field_id },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<Row>(+ "Row",fields,file_descriptor_proto())})}-- fn default_instance() -> &'static RepeatedRowOrder {- static instance: ::protobuf::rt::LazyV2<RepeatedRowOrder> = ::protobuf::rt::LazyV2::INIT;- instance.get(RepeatedRowOrder::new)++ fn default_instance() -> &'static Row {+ static instance: ::protobuf::rt::LazyV2<Row> = ::protobuf::rt::LazyV2::INIT;+ instance.get(Row::new)}}-impl ::protobuf::Clear for RepeatedRowOrder {+impl ::protobuf::Clear for Row {fn clear(&mut self) {- self.items.clear();+ self.id.clear();+ self.cell_by_field_id.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RepeatedRowOrder {+impl ::std::fmt::Debug for Row {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RepeatedRowOrder {+impl ::protobuf::reflect::ProtobufValue for Row {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct GridRow {+pub struct Cell {// message fieldspub id: ::std::string::String,- pub grid_id: ::std::string::String,- pub modified_time: i64,- pub cell_by_field_id: ::std::collections::HashMap<::std::string::String, GridCell>,+ pub field_id: ::std::string::String,+ pub content: ::std::string::String,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a GridRow {- fn default() -> &'a GridRow {- <GridRow as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a Cell {+ fn default() -> &'a Cell {+ <Cell as ::protobuf::Message>::default_instance()}}-impl GridRow {- pub fn new() -> GridRow {+impl Cell {+ pub fn new() -> Cell {::std::default::Default::default()}@@ -2341,74 +2816,60 @@ impl GridRow {::std::mem::replace(&mut self.id, ::std::string::String::new())}- // string grid_id = 2;+ // string field_id = 2;- pub fn get_grid_id(&self) -> &str {- &self.grid_id+ pub fn get_field_id(&self) -> &str {+ &self.field_id}- pub fn clear_grid_id(&mut self) {- self.grid_id.clear();+ pub fn clear_field_id(&mut self) {+ self.field_id.clear();}// Param is passed by value, moved- pub fn set_grid_id(&mut self, v: ::std::string::String) {- self.grid_id = v;+ pub fn set_field_id(&mut self, v: ::std::string::String) {+ self.field_id = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {- &mut self.grid_id+ pub fn mut_field_id(&mut self) -> &mut ::std::string::String {+ &mut self.field_id}// Take field- pub fn take_grid_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())- }-- // int64 modified_time = 3;--- pub fn get_modified_time(&self) -> i64 {- self.modified_time- }- pub fn clear_modified_time(&mut self) {- self.modified_time = 0;- }-- // Param is passed by value, moved- pub fn set_modified_time(&mut self, v: i64) {- self.modified_time = v;+ pub fn take_field_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.field_id, ::std::string::String::new())}- // repeated .GridRow.CellByFieldIdEntry cell_by_field_id = 4;+ // string content = 3;- pub fn get_cell_by_field_id(&self) -> &::std::collections::HashMap<::std::string::String, GridCell> {- &self.cell_by_field_id+ pub fn get_content(&self) -> &str {+ &self.content}- pub fn clear_cell_by_field_id(&mut self) {- self.cell_by_field_id.clear();+ pub fn clear_content(&mut self) {+ self.content.clear();}// Param is passed by value, moved- pub fn set_cell_by_field_id(&mut self, v: ::std::collections::HashMap<::std::string::String, GridCell>) {- self.cell_by_field_id = v;+ pub fn set_content(&mut self, v: ::std::string::String) {+ self.content = v;}// Mutable pointer to the field.- pub fn mut_cell_by_field_id(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, GridCell> {- &mut self.cell_by_field_id+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_content(&mut self) -> &mut ::std::string::String {+ &mut self.content}// Take field- pub fn take_cell_by_field_id(&mut self) -> ::std::collections::HashMap<::std::string::String, GridCell> {- ::std::mem::replace(&mut self.cell_by_field_id, ::std::collections::HashMap::new())+ pub fn take_content(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.content, ::std::string::String::new())}}-impl ::protobuf::Message for GridRow {+impl ::protobuf::Message for Cell {fn is_initialized(&self) -> bool {true}@@ -2421,17 +2882,10 @@ impl ::protobuf::Message for GridRow {::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;},2 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;},3 => {- if wire_type != ::protobuf::wire_format::WireTypeVarint {- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));- }- let tmp = is.read_int64()?;- self.modified_time = tmp;- },- 4 => {- ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<GridCell>>(wire_type, is, &mut self.cell_by_field_id)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -2448,13 +2902,12 @@ impl ::protobuf::Message for GridRow {if !self.id.is_empty() {my_size += ::protobuf::rt::string_size(1, &self.id);}- if !self.grid_id.is_empty() {- my_size += ::protobuf::rt::string_size(2, &self.grid_id);+ if !self.field_id.is_empty() {+ my_size += ::protobuf::rt::string_size(2, &self.field_id);}- if self.modified_time != 0 {- my_size += ::protobuf::rt::value_size(3, self.modified_time, ::protobuf::wire_format::WireTypeVarint);+ if !self.content.is_empty() {+ my_size += ::protobuf::rt::string_size(3, &self.content);}- my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<GridCell>>(4, &self.cell_by_field_id);my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size@@ -2464,13 +2917,12 @@ impl ::protobuf::Message for GridRow {if !self.id.is_empty() {os.write_string(1, &self.id)?;}- if !self.grid_id.is_empty() {- os.write_string(2, &self.grid_id)?;+ if !self.field_id.is_empty() {+ os.write_string(2, &self.field_id)?;}- if self.modified_time != 0 {- os.write_int64(3, self.modified_time)?;+ if !self.content.is_empty() {+ os.write_string(3, &self.content)?;}- ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<GridCell>>(4, &self.cell_by_field_id, os)?;os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -2501,8 +2953,8 @@ impl ::protobuf::Message for GridRow {Self::descriptor_static()}- fn new() -> GridRow {- GridRow::new()+ fn new() -> Cell {+ Cell::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {@@ -2511,113 +2963,103 @@ impl ::protobuf::Message for GridRow {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>("id",- |m: &GridRow| { &m.id },- |m: &mut GridRow| { &mut m.id },+ |m: &Cell| { &m.id },+ |m: &mut Cell| { &mut m.id },));fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "grid_id",- |m: &GridRow| { &m.grid_id },- |m: &mut GridRow| { &mut m.grid_id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(- "modified_time",- |m: &GridRow| { &m.modified_time },- |m: &mut GridRow| { &mut m.modified_time },+ "field_id",+ |m: &Cell| { &m.field_id },+ |m: &mut Cell| { &mut m.field_id },));- fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<GridCell>>(- "cell_by_field_id",- |m: &GridRow| { &m.cell_by_field_id },- |m: &mut GridRow| { &mut m.cell_by_field_id },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "content",+ |m: &Cell| { &m.content },+ |m: &mut Cell| { &mut m.content },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridRow>(- "GridRow",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<Cell>(+ "Cell",fields,file_descriptor_proto())})}- fn default_instance() -> &'static GridRow {- static instance: ::protobuf::rt::LazyV2<GridRow> = ::protobuf::rt::LazyV2::INIT;- instance.get(GridRow::new)+ fn default_instance() -> &'static Cell {+ static instance: ::protobuf::rt::LazyV2<Cell> = ::protobuf::rt::LazyV2::INIT;+ instance.get(Cell::new)}}-impl ::protobuf::Clear for GridRow {+impl ::protobuf::Clear for Cell {fn clear(&mut self) {self.id.clear();- self.grid_id.clear();- self.modified_time = 0;- self.cell_by_field_id.clear();+ self.field_id.clear();+ self.content.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for GridRow {+impl ::std::fmt::Debug for Cell {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for GridRow {+impl ::protobuf::reflect::ProtobufValue for Cell {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct RepeatedRow {+pub struct CreateGridPayload {// message fields- pub items: ::protobuf::RepeatedField<GridRow>,+ pub name: ::std::string::String,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a RepeatedRow {- fn default() -> &'a RepeatedRow {- <RepeatedRow as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a CreateGridPayload {+ fn default() -> &'a CreateGridPayload {+ <CreateGridPayload as ::protobuf::Message>::default_instance()}}-impl RepeatedRow {- pub fn new() -> RepeatedRow {+impl CreateGridPayload {+ pub fn new() -> CreateGridPayload {::std::default::Default::default()}- // repeated .GridRow items = 1;+ // string name = 1;- pub fn get_items(&self) -> &[GridRow] {- &self.items+ pub fn get_name(&self) -> &str {+ &self.name}- pub fn clear_items(&mut self) {- self.items.clear();+ pub fn clear_name(&mut self) {+ self.name.clear();}// Param is passed by value, moved- pub fn set_items(&mut self, v: ::protobuf::RepeatedField<GridRow>) {- self.items = v;+ pub fn set_name(&mut self, v: ::std::string::String) {+ self.name = v;}// Mutable pointer to the field.- pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<GridRow> {- &mut self.items+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_name(&mut self) -> &mut ::std::string::String {+ &mut self.name}// Take field- pub fn take_items(&mut self) -> ::protobuf::RepeatedField<GridRow> {- ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())+ pub fn take_name(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.name, ::std::string::String::new())}}-impl ::protobuf::Message for RepeatedRow {+impl ::protobuf::Message for CreateGridPayload {fn is_initialized(&self) -> bool {- for v in &self.items {- if !v.is_initialized() {- return false;- }- };true}@@ -2626,7 +3068,7 @@ impl ::protobuf::Message for RepeatedRow {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -2640,21 +3082,18 @@ impl ::protobuf::Message for RepeatedRow {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- for value in &self.items {- let len = value.compute_size();- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;- };+ if !self.name.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.name);+ }my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- for v in &self.items {- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;- os.write_raw_varint32(v.get_cached_size())?;- v.write_to_with_cached_sizes(os)?;- };+ if !self.name.is_empty() {+ os.write_string(1, &self.name)?;+ }os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -2685,181 +3124,100 @@ impl ::protobuf::Message for RepeatedRow {Self::descriptor_static()}- fn new() -> RepeatedRow {- RepeatedRow::new()+ fn new() -> CreateGridPayload {+ CreateGridPayload::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<GridRow>>(- "items",- |m: &RepeatedRow| { &m.items },- |m: &mut RepeatedRow| { &mut m.items },+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "name",+ |m: &CreateGridPayload| { &m.name },+ |m: &mut CreateGridPayload| { &mut m.name },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedRow>(- "RepeatedRow",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateGridPayload>(+ "CreateGridPayload",fields,file_descriptor_proto())})}- fn default_instance() -> &'static RepeatedRow {- static instance: ::protobuf::rt::LazyV2<RepeatedRow> = ::protobuf::rt::LazyV2::INIT;- instance.get(RepeatedRow::new)+ fn default_instance() -> &'static CreateGridPayload {+ static instance: ::protobuf::rt::LazyV2<CreateGridPayload> = ::protobuf::rt::LazyV2::INIT;+ instance.get(CreateGridPayload::new)}}-impl ::protobuf::Clear for RepeatedRow {+impl ::protobuf::Clear for CreateGridPayload {fn clear(&mut self) {- self.items.clear();+ self.name.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for RepeatedRow {+impl ::std::fmt::Debug for CreateGridPayload {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for RepeatedRow {+impl ::protobuf::reflect::ProtobufValue for CreateGridPayload {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct GridCell {+pub struct GridId {// message fields- pub id: ::std::string::String,- pub row_id: ::std::string::String,- pub field_id: ::std::string::String,- pub content: ::std::string::String,+ pub value: ::std::string::String,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a GridCell {- fn default() -> &'a GridCell {- <GridCell as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a GridId {+ fn default() -> &'a GridId {+ <GridId as ::protobuf::Message>::default_instance()}}-impl GridCell {- pub fn new() -> GridCell {- ::std::default::Default::default()- }-- // string id = 1;--- pub fn get_id(&self) -> &str {- &self.id- }- pub fn clear_id(&mut self) {- self.id.clear();- }-- // Param is passed by value, moved- pub fn set_id(&mut self, v: ::std::string::String) {- self.id = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_id(&mut self) -> &mut ::std::string::String {- &mut self.id- }-- // Take field- pub fn take_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.id, ::std::string::String::new())- }-- // string row_id = 2;--- pub fn get_row_id(&self) -> &str {- &self.row_id- }- pub fn clear_row_id(&mut self) {- self.row_id.clear();- }-- // Param is passed by value, moved- pub fn set_row_id(&mut self, v: ::std::string::String) {- self.row_id = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_row_id(&mut self) -> &mut ::std::string::String {- &mut self.row_id- }-- // Take field- pub fn take_row_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.row_id, ::std::string::String::new())- }-- // string field_id = 3;--- pub fn get_field_id(&self) -> &str {- &self.field_id- }- pub fn clear_field_id(&mut self) {- self.field_id.clear();- }-- // Param is passed by value, moved- pub fn set_field_id(&mut self, v: ::std::string::String) {- self.field_id = v;- }-- // Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_field_id(&mut self) -> &mut ::std::string::String {- &mut self.field_id- }-- // Take field- pub fn take_field_id(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.field_id, ::std::string::String::new())+impl GridId {+ pub fn new() -> GridId {+ ::std::default::Default::default()}- // string content = 4;+ // string value = 1;- pub fn get_content(&self) -> &str {- &self.content+ pub fn get_value(&self) -> &str {+ &self.value}- pub fn clear_content(&mut self) {- self.content.clear();+ pub fn clear_value(&mut self) {+ self.value.clear();}// Param is passed by value, moved- pub fn set_content(&mut self, v: ::std::string::String) {- self.content = v;+ pub fn set_value(&mut self, v: ::std::string::String) {+ self.value = v;}// Mutable pointer to the field.// If field is not initialized, it is initialized with default value first.- pub fn mut_content(&mut self) -> &mut ::std::string::String {- &mut self.content+ pub fn mut_value(&mut self) -> &mut ::std::string::String {+ &mut self.value}// Take field- pub fn take_content(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.content, ::std::string::String::new())+ pub fn take_value(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.value, ::std::string::String::new())}}-impl ::protobuf::Message for GridCell {+impl ::protobuf::Message for GridId {fn is_initialized(&self) -> bool {true}@@ -2869,16 +3227,7 @@ impl ::protobuf::Message for GridCell {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;- },- 2 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;- },- 3 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;- },- 4 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?;+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -2892,17 +3241,8 @@ impl ::protobuf::Message for GridCell {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.id.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.id);- }- if !self.row_id.is_empty() {- my_size += ::protobuf::rt::string_size(2, &self.row_id);- }- if !self.field_id.is_empty() {- my_size += ::protobuf::rt::string_size(3, &self.field_id);- }- if !self.content.is_empty() {- my_size += ::protobuf::rt::string_size(4, &self.content);+ if !self.value.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.value);}my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);@@ -2910,17 +3250,8 @@ impl ::protobuf::Message for GridCell {}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.id.is_empty() {- os.write_string(1, &self.id)?;- }- if !self.row_id.is_empty() {- os.write_string(2, &self.row_id)?;- }- if !self.field_id.is_empty() {- os.write_string(3, &self.field_id)?;- }- if !self.content.is_empty() {- os.write_string(4, &self.content)?;+ if !self.value.is_empty() {+ os.write_string(1, &self.value)?;}os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())@@ -2952,8 +3283,8 @@ impl ::protobuf::Message for GridCell {Self::descriptor_static()}- fn new() -> GridCell {- GridCell::new()+ fn new() -> GridId {+ GridId::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {@@ -2961,82 +3292,92 @@ impl ::protobuf::Message for GridCell {descriptor.get(|| {let mut fields = ::std::vec::Vec::new();fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "id",- |m: &GridCell| { &m.id },- |m: &mut GridCell| { &mut m.id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "row_id",- |m: &GridCell| { &m.row_id },- |m: &mut GridCell| { &mut m.row_id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "field_id",- |m: &GridCell| { &m.field_id },- |m: &mut GridCell| { &mut m.field_id },- ));- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "content",- |m: &GridCell| { &m.content },- |m: &mut GridCell| { &mut m.content },+ "value",+ |m: &GridId| { &m.value },+ |m: &mut GridId| { &mut m.value },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridCell>(- "GridCell",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridId>(+ "GridId",fields,file_descriptor_proto())})}- fn default_instance() -> &'static GridCell {- static instance: ::protobuf::rt::LazyV2<GridCell> = ::protobuf::rt::LazyV2::INIT;- instance.get(GridCell::new)+ fn default_instance() -> &'static GridId {+ static instance: ::protobuf::rt::LazyV2<GridId> = ::protobuf::rt::LazyV2::INIT;+ instance.get(GridId::new)}}-impl ::protobuf::Clear for GridCell {+impl ::protobuf::Clear for GridId {fn clear(&mut self) {- self.id.clear();- self.row_id.clear();- self.field_id.clear();- self.content.clear();+ self.value.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for GridCell {+impl ::std::fmt::Debug for GridId {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for GridCell {+impl ::protobuf::reflect::ProtobufValue for GridId {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct CreateGridPayload {+pub struct Filter {// message fields+ pub id: ::std::string::String,pub name: ::std::string::String,+ pub desc: ::std::string::String,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a CreateGridPayload {- fn default() -> &'a CreateGridPayload {- <CreateGridPayload as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a Filter {+ fn default() -> &'a Filter {+ <Filter as ::protobuf::Message>::default_instance()}}-impl CreateGridPayload {- pub fn new() -> CreateGridPayload {+impl Filter {+ pub fn new() -> Filter {::std::default::Default::default()}- // string name = 1;+ // string id = 1;+++ pub fn get_id(&self) -> &str {+ &self.id+ }+ pub fn clear_id(&mut self) {+ self.id.clear();+ }++ // Param is passed by value, moved+ pub fn set_id(&mut self, v: ::std::string::String) {+ self.id = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_id(&mut self) -> &mut ::std::string::String {+ &mut self.id+ }++ // Take field+ pub fn take_id(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.id, ::std::string::String::new())+ }++ // string name = 2;pub fn get_name(&self) -> &str {@@ -3061,9 +3402,35 @@ impl CreateGridPayload {pub fn take_name(&mut self) -> ::std::string::String {::std::mem::replace(&mut self.name, ::std::string::String::new())}++ // string desc = 3;+++ pub fn get_desc(&self) -> &str {+ &self.desc+ }+ pub fn clear_desc(&mut self) {+ self.desc.clear();+ }++ // Param is passed by value, moved+ pub fn set_desc(&mut self, v: ::std::string::String) {+ self.desc = v;+ }++ // Mutable pointer to the field.+ // If field is not initialized, it is initialized with default value first.+ pub fn mut_desc(&mut self) -> &mut ::std::string::String {+ &mut self.desc+ }++ // Take field+ pub fn take_desc(&mut self) -> ::std::string::String {+ ::std::mem::replace(&mut self.desc, ::std::string::String::new())+ }}-impl ::protobuf::Message for CreateGridPayload {+impl ::protobuf::Message for Filter {fn is_initialized(&self) -> bool {true}@@ -3073,8 +3440,14 @@ impl ::protobuf::Message for CreateGridPayload {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;+ },+ 2 => {::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;},+ 3 => {+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.desc)?;+ },_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;},@@ -3087,8 +3460,14 @@ impl ::protobuf::Message for CreateGridPayload {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;+ if !self.id.is_empty() {+ my_size += ::protobuf::rt::string_size(1, &self.id);+ }if !self.name.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.name);+ my_size += ::protobuf::rt::string_size(2, &self.name);+ }+ if !self.desc.is_empty() {+ my_size += ::protobuf::rt::string_size(3, &self.desc);}my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);@@ -3096,8 +3475,14 @@ impl ::protobuf::Message for CreateGridPayload {}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {+ if !self.id.is_empty() {+ os.write_string(1, &self.id)?;+ }if !self.name.is_empty() {- os.write_string(1, &self.name)?;+ os.write_string(2, &self.name)?;+ }+ if !self.desc.is_empty() {+ os.write_string(3, &self.desc)?;}os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())@@ -3129,101 +3514,117 @@ impl ::protobuf::Message for CreateGridPayload {Self::descriptor_static()}- fn new() -> CreateGridPayload {- CreateGridPayload::new()+ fn new() -> Filter {+ Filter::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "id",+ |m: &Filter| { &m.id },+ |m: &mut Filter| { &mut m.id },+ ));fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>("name",- |m: &CreateGridPayload| { &m.name },- |m: &mut CreateGridPayload| { &mut m.name },+ |m: &Filter| { &m.name },+ |m: &mut Filter| { &mut m.name },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateGridPayload>(- "CreateGridPayload",+ fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(+ "desc",+ |m: &Filter| { &m.desc },+ |m: &mut Filter| { &mut m.desc },+ ));+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<Filter>(+ "Filter",fields,file_descriptor_proto())})}- fn default_instance() -> &'static CreateGridPayload {- static instance: ::protobuf::rt::LazyV2<CreateGridPayload> = ::protobuf::rt::LazyV2::INIT;- instance.get(CreateGridPayload::new)+ fn default_instance() -> &'static Filter {+ static instance: ::protobuf::rt::LazyV2<Filter> = ::protobuf::rt::LazyV2::INIT;+ instance.get(Filter::new)}}-impl ::protobuf::Clear for CreateGridPayload {+impl ::protobuf::Clear for Filter {fn clear(&mut self) {+ self.id.clear();self.name.clear();+ self.desc.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for CreateGridPayload {+impl ::std::fmt::Debug for Filter {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for CreateGridPayload {+impl ::protobuf::reflect::ProtobufValue for Filter {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}}#[derive(PartialEq,Clone,Default)]-pub struct GridId {+pub struct RepeatedFilter {// message fields- pub value: ::std::string::String,+ pub items: ::protobuf::RepeatedField<Filter>,// special fieldspub unknown_fields: ::protobuf::UnknownFields,pub cached_size: ::protobuf::CachedSize,}-impl<'a> ::std::default::Default for &'a GridId {- fn default() -> &'a GridId {- <GridId as ::protobuf::Message>::default_instance()+impl<'a> ::std::default::Default for &'a RepeatedFilter {+ fn default() -> &'a RepeatedFilter {+ <RepeatedFilter as ::protobuf::Message>::default_instance()}}-impl GridId {- pub fn new() -> GridId {+impl RepeatedFilter {+ pub fn new() -> RepeatedFilter {::std::default::Default::default()}- // string value = 1;+ // repeated .Filter items = 1;- pub fn get_value(&self) -> &str {- &self.value+ pub fn get_items(&self) -> &[Filter] {+ &self.items}- pub fn clear_value(&mut self) {- self.value.clear();+ pub fn clear_items(&mut self) {+ self.items.clear();}// Param is passed by value, moved- pub fn set_value(&mut self, v: ::std::string::String) {- self.value = v;+ pub fn set_items(&mut self, v: ::protobuf::RepeatedField<Filter>) {+ self.items = v;}// Mutable pointer to the field.- // If field is not initialized, it is initialized with default value first.- pub fn mut_value(&mut self) -> &mut ::std::string::String {- &mut self.value+ pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField<Filter> {+ &mut self.items}// Take field- pub fn take_value(&mut self) -> ::std::string::String {- ::std::mem::replace(&mut self.value, ::std::string::String::new())+ pub fn take_items(&mut self) -> ::protobuf::RepeatedField<Filter> {+ ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new())}}-impl ::protobuf::Message for GridId {+impl ::protobuf::Message for RepeatedFilter {fn is_initialized(&self) -> bool {+ for v in &self.items {+ if !v.is_initialized() {+ return false;+ }+ };true}@@ -3232,7 +3633,7 @@ impl ::protobuf::Message for GridId {let (field_number, wire_type) = is.read_tag_unpack()?;match field_number {1 => {- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;+ ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?;},_ => {::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;@@ -3246,18 +3647,21 @@ impl ::protobuf::Message for GridId {#[allow(unused_variables)]fn compute_size(&self) -> u32 {let mut my_size = 0;- if !self.value.is_empty() {- my_size += ::protobuf::rt::string_size(1, &self.value);- }+ for value in &self.items {+ let len = value.compute_size();+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;+ };my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());self.cached_size.set(my_size);my_size}fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {- if !self.value.is_empty() {- os.write_string(1, &self.value)?;- }+ for v in &self.items {+ os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;+ os.write_raw_varint32(v.get_cached_size())?;+ v.write_to_with_cached_sizes(os)?;+ };os.write_unknown_fields(self.get_unknown_fields())?;::std::result::Result::Ok(())}@@ -3288,47 +3692,47 @@ impl ::protobuf::Message for GridId {Self::descriptor_static()}- fn new() -> GridId {- GridId::new()+ fn new() -> RepeatedFilter {+ RepeatedFilter::new()}fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;descriptor.get(|| {let mut fields = ::std::vec::Vec::new();- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(- "value",- |m: &GridId| { &m.value },- |m: &mut GridId| { &mut m.value },+ fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Filter>>(+ "items",+ |m: &RepeatedFilter| { &m.items },+ |m: &mut RepeatedFilter| { &mut m.items },));- ::protobuf::reflect::MessageDescriptor::new_pb_name::<GridId>(- "GridId",+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<RepeatedFilter>(+ "RepeatedFilter",fields,file_descriptor_proto())})}- fn default_instance() -> &'static GridId {- static instance: ::protobuf::rt::LazyV2<GridId> = ::protobuf::rt::LazyV2::INIT;- instance.get(GridId::new)+ fn default_instance() -> &'static RepeatedFilter {+ static instance: ::protobuf::rt::LazyV2<RepeatedFilter> = ::protobuf::rt::LazyV2::INIT;+ instance.get(RepeatedFilter::new)}}-impl ::protobuf::Clear for GridId {+impl ::protobuf::Clear for RepeatedFilter {fn clear(&mut self) {- self.value.clear();+ self.items.clear();self.unknown_fields.clear();}}-impl ::std::fmt::Debug for GridId {+impl ::std::fmt::Debug for RepeatedFilter {fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {::protobuf::text_format::fmt(self, f)}}-impl ::protobuf::reflect::ProtobufValue for GridId {+impl ::protobuf::reflect::ProtobufValue for RepeatedFilter {fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {::protobuf::reflect::ReflectValueRef::Message(self)}@@ -3397,44 +3801,49 @@ impl ::protobuf::reflect::ProtobufValue for FieldType {}static file_descriptor_proto_data: &'static [u8] = b"\- \n\ngrid.proto\"\xb8\x01\n\x04Grid\x12\x17\n\x07grid_id\x18\x01\x20\x01(\- \tR\x06gridId\x12-\n\x07filters\x18\x02\x20\x01(\x0b2\x13.RepeatedGridFi\- lterR\x07filters\x126\n\x0cfield_orders\x18\x03\x20\x01(\x0b2\x13.Repeat\- edFieldOrderR\x0bfieldOrders\x120\n\nrow_orders\x18\x04\x20\x01(\x0b2\- \x11.RepeatedRowOrderR\trowOrders\"D\n\nGridFilter\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\"7\n\x12RepeatedGridFilter\- \x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b.GridFilterR\x05items\"G\n\nFi\- eldOrder\x12\x19\n\x08field_id\x18\x01\x20\x01(\tR\x07fieldId\x12\x1e\n\- \nvisibility\x18\x02\x20\x01(\x08R\nvisibility\"7\n\x12RepeatedFieldOrde\- r\x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b.FieldOrderR\x05items\"\xc5\- \x01\n\x05Field\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04n\- ame\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\tfieldTyp\- e\x12\x16\n\x06frozen\x18\x05\x20\x01(\x08R\x06frozen\x12\x14\n\x05width\- \x18\x06\x20\x01(\x05R\x05width\x12+\n\x0ctype_options\x18\x07\x20\x01(\- \x0b2\x08.AnyDataR\x0btypeOptions\"-\n\rRepeatedField\x12\x1c\n\x05items\- \x18\x01\x20\x03(\x0b2\x06.FieldR\x05items\"8\n\x07AnyData\x12\x17\n\x07\- type_id\x18\x01\x20\x01(\tR\x06typeId\x12\x14\n\x05value\x18\x02\x20\x01\- (\x0cR\x05value\"Z\n\x08RowOrder\x12\x17\n\x07grid_id\x18\x01\x20\x01(\t\- R\x06gridId\x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05rowId\x12\x1e\n\n\- visibility\x18\x03\x20\x01(\x08R\nvisibility\"3\n\x10RepeatedRowOrder\- \x12\x1f\n\x05items\x18\x01\x20\x03(\x0b2\t.RowOrderR\x05items\"\xea\x01\- \n\x07GridRow\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x17\n\x07gri\- d_id\x18\x02\x20\x01(\tR\x06gridId\x12#\n\rmodified_time\x18\x03\x20\x01\- (\x03R\x0cmodifiedTime\x12D\n\x10cell_by_field_id\x18\x04\x20\x03(\x0b2\- \x1b.GridRow.CellByFieldIdEntryR\rcellByFieldId\x1aK\n\x12CellByFieldIdE\- ntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x1f\n\x05value\x18\- \x02\x20\x01(\x0b2\t.GridCellR\x05value:\x028\x01\"-\n\x0bRepeatedRow\- \x12\x1e\n\x05items\x18\x01\x20\x03(\x0b2\x08.GridRowR\x05items\"f\n\x08\- GridCell\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x15\n\x06row_id\- \x18\x02\x20\x01(\tR\x05rowId\x12\x19\n\x08field_id\x18\x03\x20\x01(\tR\- \x07fieldId\x12\x18\n\x07content\x18\x04\x20\x01(\tR\x07content\"'\n\x11\- CreateGridPayload\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\x1e\n\- \x06GridId\x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05value*d\n\tFieldTyp\- e\x12\x0c\n\x08RichText\x10\0\x12\n\n\x06Number\x10\x01\x12\x0c\n\x08Dat\- eTime\x10\x02\x12\x10\n\x0cSingleSelect\x10\x03\x12\x0f\n\x0bMultiSelect\- \x10\x04\x12\x0c\n\x08Checkbox\x10\x05b\x06proto3\+ \n\ngrid.proto\"\xab\x01\n\x04Grid\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\+ \x02id\x12)\n\x07filters\x18\x02\x20\x01(\x0b2\x0f.RepeatedFilterR\x07fi\+ lters\x126\n\x0cfield_orders\x18\x03\x20\x01(\x0b2\x13.RepeatedFieldOrde\+ rR\x0bfieldOrders\x120\n\nrow_orders\x18\x04\x20\x01(\x0b2\x11.RepeatedR\+ owOrderR\trowOrders\"G\n\nFieldOrder\x12\x19\n\x08field_id\x18\x01\x20\+ \x01(\tR\x07fieldId\x12\x1e\n\nvisibility\x18\x02\x20\x01(\x08R\nvisibil\+ ity\"7\n\x12RepeatedFieldOrder\x12!\n\x05items\x18\x01\x20\x03(\x0b2\x0b\+ .FieldOrderR\x05items\"\xc5\x01\n\x05Field\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\x14\n\x05width\x18\x06\x20\x01(\x05R\x05width\x12+\n\x0ct\+ ype_options\x18\x07\x20\x01(\x0b2\x08.AnyDataR\x0btypeOptions\"-\n\rRepe\+ atedField\x12\x1c\n\x05items\x18\x01\x20\x03(\x0b2\x06.FieldR\x05items\"\+ 8\n\x07AnyData\x12\x17\n\x07type_id\x18\x01\x20\x01(\tR\x06typeId\x12\+ \x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\"Z\n\x08RowOrder\x12\x17\+ \n\x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x15\n\x06row_id\x18\x02\+ \x20\x01(\tR\x05rowId\x12\x1e\n\nvisibility\x18\x03\x20\x01(\x08R\nvisib\+ ility\"3\n\x10RepeatedRowOrder\x12\x1f\n\x05items\x18\x01\x20\x03(\x0b2\+ \t.RowOrderR\x05items\"\xc2\x01\n\x06RawRow\x12\x0e\n\x02id\x18\x01\x20\+ \x01(\tR\x02id\x12\x17\n\x07grid_id\x18\x02\x20\x01(\tR\x06gridId\x12C\n\+ \x10cell_by_field_id\x18\x03\x20\x03(\x0b2\x1a.RawRow.CellByFieldIdEntry\+ R\rcellByFieldId\x1aJ\n\x12CellByFieldIdEntry\x12\x10\n\x03key\x18\x01\+ \x20\x01(\tR\x03key\x12\x1e\n\x05value\x18\x02\x20\x01(\x0b2\x08.RawCell\+ R\x05value:\x028\x01\"_\n\x07RawCell\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\+ \x02id\x12\x15\n\x06row_id\x18\x02\x20\x01(\tR\x05rowId\x12\x19\n\x08fie\+ ld_id\x18\x03\x20\x01(\tR\x07fieldId\x12\x12\n\x04data\x18\x04\x20\x01(\+ \tR\x04data\")\n\x0bRepeatedRow\x12\x1a\n\x05items\x18\x01\x20\x03(\x0b2\+ \x04.RowR\x05items\"\xa0\x01\n\x03Row\x12\x0e\n\x02id\x18\x01\x20\x01(\t\+ R\x02id\x12@\n\x10cell_by_field_id\x18\x02\x20\x03(\x0b2\x17.Row.CellByF\+ ieldIdEntryR\rcellByFieldId\x1aG\n\x12CellByFieldIdEntry\x12\x10\n\x03ke\+ y\x18\x01\x20\x01(\tR\x03key\x12\x1b\n\x05value\x18\x02\x20\x01(\x0b2\+ \x05.CellR\x05value:\x028\x01\"K\n\x04Cell\x12\x0e\n\x02id\x18\x01\x20\+ \x01(\tR\x02id\x12\x19\n\x08field_id\x18\x02\x20\x01(\tR\x07fieldId\x12\+ \x18\n\x07content\x18\x03\x20\x01(\tR\x07content\"'\n\x11CreateGridPaylo\+ ad\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\x1e\n\x06GridId\x12\+ \x14\n\x05value\x18\x01\x20\x01(\tR\x05value\"@\n\x06Filter\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\"/\n\x0eRepeatedF\+ ilter\x12\x1d\n\x05items\x18\x01\x20\x03(\x0b2\x07.FilterR\x05items*d\n\+ \tFieldType\x12\x0c\n\x08RichText\x10\0\x12\n\n\x06Number\x10\x01\x12\+ \x0c\n\x08DateTime\x10\x02\x12\x10\n\x0cSingleSelect\x10\x03\x12\x0f\n\+ \x0bMultiSelect\x10\x04\x12\x0c\n\x08Checkbox\x10\x05b\x06proto3\";static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;diff --git a/shared-lib/flowy-grid-data-model/src/protobuf/proto/grid.proto b/shared-lib/flowy-grid-data-model/src/protobuf/proto/grid.protoindex 352a54c5c8..16b14f76c9 100644--- a/shared-lib/flowy-grid-data-model/src/protobuf/proto/grid.proto+++ b/shared-lib/flowy-grid-data-model/src/protobuf/proto/grid.proto@@ -1,19 +1,11 @@syntax = "proto3";message Grid {- string grid_id = 1;- RepeatedGridFilter filters = 2;+ string id = 1;+ RepeatedFilter filters = 2;RepeatedFieldOrder field_orders = 3;RepeatedRowOrder row_orders = 4;}-message GridFilter {- string id = 1;- string name = 2;- string desc = 3;-}-message RepeatedGridFilter {- repeated GridFilter items = 1;-}message FieldOrder {string field_id = 1;bool visibility = 2;@@ -45,20 +37,28 @@ message RowOrder {message RepeatedRowOrder {repeated RowOrder items = 1;}-message GridRow {+message RawRow {string id = 1;string grid_id = 2;- int64 modified_time = 3;- map<string, GridCell> cell_by_field_id = 4;+ map<string, RawCell> cell_by_field_id = 3;}-message RepeatedRow {- repeated GridRow items = 1;-}-message GridCell {+message RawCell {string id = 1;string row_id = 2;string field_id = 3;- string content = 4;+ string data = 4;+}+message RepeatedRow {+ repeated Row items = 1;+}+message Row {+ string id = 1;+ map<string, Cell> cell_by_field_id = 2;+}+message Cell {+ string id = 1;+ string field_id = 2;+ string content = 3;}message CreateGridPayload {string name = 1;@@ -66,6 +66,14 @@ message CreateGridPayload {message GridId {string value = 1;}+message Filter {+ string id = 1;+ string name = 2;+ string desc = 3;+}+message RepeatedFilter {+ repeated Filter items = 1;+}enum FieldType {RichText = 0;Number = 1;