And in answer to my own question:

1) yes, you have to import the type at the "top of your file" (note that 
"top" is an ambiguous statement in the docs, as I have it working as the 
2nd line, not the "top"):

syntax = "proto3";
import "google/protobuf/struct.proto";


2) once imported, you get to use it:

message SSEMessageJSONReq {
string agent_id = 1;
google.protobuf.Struct results = 2;
}


And another first -- an explicit explanation of how to use Struct in a 
proto file. ;-)

Bill

On Thursday, June 14, 2018 at 3:53:33 PM UTC-7, Bill House wrote:
>
> All I ever get is "undefined" in the proto file.  Is there some way to 
> import this type definition?
>
> Thx
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to