Here in the documentation
it is says in example 4 there is an error

Incorrect: Timestamp.*newBuilder*().setSeconds(millis / 1000) 
.setNanos((int) ((millis % 1000) * 1000000)).build();
Correct:  Timestamp.*Builder*().setSeconds(millis / 1000) .setNanos((int) 
((millis % 1000) * 1000000)).build();

For the same reason the IDE/java says "Cannot make a static reference to 
the non-static method newBuilder() from the type Timestamp"

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to