我是新手,正在尝试使用GCP。我正在尝试使用protobuf定义模式来使用Pub/Sub服务。
模式:
syntax = "proto3";
import "google/protobuf/any.proto";
message Endorsement {
string endorserId=1;
google.protobuf.Any data = 2;
string signature=3;
bool isVerified=4;
}
message TransactionPayload {
string policyId =1;
string txnId =2;
repeated Endorsement endorsements=3;
}
验证此模式失败并出现错误。
无效的Protocol Buffer模式。未加载“google/protobuf/any.proto”导入。
我需要使用google.protobuf.Any,是否有其他方法可以使用/定义它?