I am trying to use gRPC and using the exchange message format as protobuf. I wanted to add timestamp field inside my message.But i don't know the right way to add the import statement in proto file. I am using Golang so I need an output as .pb.go
Make sure to import in your proto file:
import "google/protobuf/timestamp.proto";
And use the type for you variable like:
google.protobuf.Timestamp time_name = 1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With