Comment utiliser predifinis protobuf type (c'est à dire “google/protobuf/timestamp.proto”) avec grpc dans golang

Je suis en train d'utiliser google/protobuf/timestamp.proto avec gRPC plugin et Golang. C'est comment je cours protoc:

protoc -I  ./   ./*.proto --go_out=plugins=grpc:.

Et c'est mon .proto:

#domain.proto
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.viant.xyz";
option java_outer_classname = "domain";

import "google/protobuf/timestamp.proto";

message Foo {
    Timestamp modifiedTime = 1;
    ...
}

Je vois les erreurs suivantes:

domain.proto: Import "google/protobuf/timestamp.proto" was not found or had errors.
domain.proto:44:5: "Timestamp" is not defined.

Suis-je raté quelque chose, ou ce n'est pas encore pris en charge?

OriginalL'auteur Adrian | 2016-10-13