From a629df2d4d3da8b71d4d602a123284e5964330d2 Mon Sep 17 00:00:00 2001 From: Avi <157355643+Blahpapto1@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:02:12 +0530 Subject: [PATCH] Adding String2DArray message type in array.proto (#77) * Add support for 2D arrays of strings in array.proto * Update documentation for 2D array definition in array.proto --------- Co-authored-by: Avi Goel --- ni/protobuf/types/array.proto | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ni/protobuf/types/array.proto b/ni/protobuf/types/array.proto index efe8b29..60c8480 100644 --- a/ni/protobuf/types/array.proto +++ b/ni/protobuf/types/array.proto @@ -18,11 +18,12 @@ option php_namespace = "NI\\PROTOBUF\\TYPES"; option ruby_package = "NI::Protobuf::Types"; //--------------------------------------------------------------------- -// Defines a 2D array of double values. The 2D array is stored as -// a repeated double, a 1D array. It is stored in row major order. +// Defines a 2D array of values. The 2D array is stored as a repeated field of +// the appropriate element type, a 1D array. It is stored in row major order. // // Example: // Repeated Double: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] +// // rows: 2 // columns: 5 // @@ -44,4 +45,11 @@ message Double2DArray int32 rows = 1; int32 columns = 2; repeated double data = 3; +} + +message String2DArray +{ + int32 rows = 1; + int32 columns = 2; + repeated string data = 3; } \ No newline at end of file