From d2ad8b348ac3f918cbb7ac34a541aebc0b495910 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 15 Sep 2025 03:53:50 -0500 Subject: [PATCH] trying to implement use of 'any' --- table.proto | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/table.proto b/table.proto index 15ff5a5..3999482 100644 --- a/table.proto +++ b/table.proto @@ -5,6 +5,7 @@ syntax = "proto3"; package gitpb; import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp +import "google/protobuf/any.proto"; // Import the well-known type for Timestamp import "widget.proto"; // Import the well-known type for Timestamp // @@ -64,6 +65,13 @@ message BoolCol { repeated bool vals = 4; // deprecate } +message AnyCol { + Widget header = 1; + repeated Widget widgets = 2; + ColAttr attr = 3; + repeated google.protobuf.Any vals = 4; // deprecate +} + message Table { // `autogenpb:marshal` string uuid = 1; string title = 2; @@ -75,7 +83,8 @@ message Table { // `autogenpb: repeated TimeCol timeCols = 8; repeated BoolCol boolCols = 9; repeated ButtonCol buttonCols = 10; - int64 height = 11; // the number of rows + repeated AnyCol anyCols = 11; + int64 height = 12; // the number of rows } message Tables { // `autogenpb:marshal`