Re: [protobuf] Timestamp

2017-05-18 Thread Leonardo Toledo
Okay! Thanks for your help.

Best regards,
Leonardo Toledo

On 17 May 2017 at 19:13, Feng Xiao  wrote:

>
>
> On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo 
> 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 protobuf+unsubscr...@googlegroups.com.
>> To post to this group, send email to protobuf@googlegroups.com.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>


-- 
Da Vinci

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


Re: [protobuf] Timestamp

2017-05-17 Thread 'Feng Xiao' via Protocol Buffers
On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo 
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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> 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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Timestamp

2017-05-17 Thread Leonardo Toledo
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 ? 

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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.