My proto could be very simple, like,

message ErrorStatus {
  string message = 1;
  repeated google.protobuf.Any details = 2;
}


I could put any proto in details, but could I put a string/int in details
directly, or I have to create something like 'message IntProto { int value
= 1}' to wrap the int data?

On Fri, Dec 4, 2020 at 2:17 PM Nishchit Dhanani <dnishc...@gmail.com> wrote:

> Can you please share the sample proto as a reference? It is being hard to
> envision your case.
>
> On Tuesday, November 24, 2020 at 1:45:56 PM UTC+5:30 vole...@gmail.com
> wrote:
>
>> Hello,
>> Suppose I have a message with an Any field. Could I put a string/int into
>> the field, or I have to create a wrapper message for this?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Protocol Buffers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/protobuf/MQYa00ehHvY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/f9cbdacb-fcc7-4a0e-9322-ac47a9411dd1n%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/f9cbdacb-fcc7-4a0e-9322-ac47a9411dd1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAH-v%3DVoc36yYkMLt6KapLWcKTgt4OA9gy7oZv4%3DWdsvdrR8UMQ%40mail.gmail.com.

Reply via email to