Re: [protobuf] Compiler forward-compatibility

2019-01-18 Thread 'Adam Cozzette' via Protocol Buffers
Yes, absolutely. The schemas do not even have to be exactly the same, and
in fact protobuf is designed to allow the schema to evolve in a compatible
way. The most important thing is just to never reuse the same field number
with incompatible types.

On Fri, Jan 18, 2019 at 2:30 AM Nikita Vorobyev 
wrote:

> Hi all!
>
> Is protobuf compiler-neutral? Will I be able to deserialize message with
> code, generated by compiler of version X, if this message was serialized
> with compiler of version Y? Version of syntax and schemes will be obviously
> the same on both sides.
>
> Thanks in advance.
>
> Nikita.
>
> --
> 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] compile error no matching function for call to 'Acquire_Load()

2019-01-18 Thread joe . parness
I have built protobuf-lite and in trying to link a gRPC client I receive 
the following error:
"/usr/local/include/google/protobuf/stubs/once.h: In function 'void 
google::protobuf::GoogleOnceInit(google::protobuf::ProtobufOnceType*, void 
(*)())':

/usr/local/include/google/protobuf/stubs/once.h:126:34: error: no matching 
function for call to 'Acquire_Load()'

if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {"


Note that the server project and file builds just fine.


Any tips on how to solve this is appreciated.


I am using gRPC version 1.8.0 and protobuf version 3.5.0.

-- 
This email and its contents are confidential. If you are not the 
intended 
recipient, please do not disclose or use the information within
 this email 
or its attachments. If you have received this email in 
error, please 
report the error to the sender by return email and 
delete this 
communication from your records.

-- 
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] Java Date object to be added in .proto file

2019-01-18 Thread Josh Humphries
There are the well-known types
,
which include google.protobuf.Timestamp:

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

message Product {
google.protobuf.Timestamp last_ordered_date = 1;
}


Sadly, the documentation for each type (in the link above) does not tell
you the import path to use it. All of them are in the google.protobuf
package and the files are all imported from google/protobuf/*.proto. These
files are included with protoc, so you can find their sources in your
protobuf installation and also in the repo

.



*Josh Humphries*
jh...@bluegosling.com


On Fri, Jan 18, 2019 at 12:27 PM Shilpa Vittal  wrote:

> HI,
>
> I have a Date java object that I want to add in .proto file. I use Proto3.
> Is there any exisitng proto Datatype that I can use?
> Please advise at the earliest.
>
> Ex:
>
> message Product{
>
> optional date last_ordered_date = 1;
> }
>
> where last_ordered_date='2019-01-15'
>
> Thanks,
> Shilpa
>
> --
> 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] Java Date object to be added in .proto file

2019-01-18 Thread Shilpa Vittal
HI,

I have a Date java object that I want to add in .proto file. I use Proto3. 
Is there any exisitng proto Datatype that I can use?
Please advise at the earliest.

Ex:

message Product{

optional date last_ordered_date = 1;
}

where last_ordered_date='2019-01-15'

Thanks,
Shilpa

-- 
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] Compiler forward-compatibility

2019-01-18 Thread Nikita Vorobyev
Hi all!

Is protobuf compiler-neutral? Will I be able to deserialize message with 
code, generated by compiler of version X, if this message was serialized 
with compiler of version Y? Version of syntax and schemes will be obviously 
the same on both sides.

Thanks in advance.

Nikita.

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