On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo <[email protected]> wrote:
> Hi! I am using protobufs but i need to use the version 2 (syntax 2) of > protobufs and at the same time i need to use the a timestamp, but the > examples that i saw they use always the syntax 3 of protobufs. I already > checked the protobufs documentation and i read that in syntax 2 also exist > a timestamp, so my question is, how can i use your timestamp with syntax 2 > of protobufs? > > This is my code: > import https://github.com/golang/protobuf/ptypes/timestamp/timestamp.proto > (BUT THIS DOES EXIST A LINK TO THIS ALREADY) > import https://github.com/google/protobuf/blob/master/ > src/google/protobuf/timestamp.proto (BUT THIS IS USING PROTO 3) > > repeated google.protobuf.Timestamp timestamp = 1; > > This does works, can anyone help me please and tell me how can i use the > timestamp in protoc 2 ? > timestamp.proto uses proto3 syntax, but you can use it in a proto2 syntax file. > > Thanks in advance! I am waiting for on response from you! > > Best regards, > Leonardo Toledo > > -- > 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.
