Yes, C# only support proto3.
If you only use proto3 features, they are wire compatible.


Not all the proto2 file can be converted to proto3, such as:
    Explicit default values cannot be specified for fields.
    Enum definitions must start with enum value zero.
    Extensions must not be used. (Use google.protobuf.Any instead)
    Group syntax is removed.

We don't have such tool to convert proto2 to proto3 file.

On Sun, Aug 7, 2016 at 4:29 AM, ערן אוצפ <[email protected]> wrote:

> Hello ,
>
> Iv'e received a .proto file from a third party vendor which sends me
> notifications.
>
> The problem is that my end is written is C# and iv'e the file is written
> to target "proto2".
>
>
> As i understand it
>   1) to generate C# classes from a .proto file the file has to be written
> in a "proto3" syntax.
>   2) "proto2" and "proto3" are compatible when used as two ends of a wire
> protocol, i.e.
>
>               Sender uses classes generated from a "proto2" file .
>               Receiver (me in this case) uses classes generated from a
> "proto3" file.
>
> 1) are these assumption correct ?
> 2) If so is there any tool i can use to convert the "proto2" file iv'e
> been given to a "proto3" file so i can generate C# classes on my end ?
>
> --
> 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.
>

-- 
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