Proto has no support for arrays with more than one dimension.  Therefore 
you'll need to create an array of arrays.  Or in proto terms, a repeated 
field of a proto message, where that message has a repeated field of 
strings.

Example:

message RowOfStrings {
  repeated string row = 1;
}

message ArrayOfStrings {
  repeated RowOfStrings col = 1;
}

-- Jorg

On Monday, January 2, 2023 at 4:31:01 AM UTC-8 [email protected] wrote:

> Hi everyone!
> I am new to proto3 and loopback4. I want to declare a 2D array of strings 
> in proto3 interface message service:  I want the result to be like this: 
> [[""],  [""] , [""] ], Kindly help me to solve this, i have searched 
> everywhere but didn't find support of 2D array in proto3.
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/47d292de-a27c-4079-b9b0-0cbeca7311bcn%40googlegroups.com.

Reply via email to