擅长:python、mysql、java
<p><code>Your proto is Wrong</code>根据您的原型,您在邮件中请求一个字典,并且需要多个字典。要解决这个问题,您需要添加一个<code>repeated</code>关键字,这样您的proto就会变成这样:</p>
<pre><code>syntax = "proto3";
package twittercontent.v1;
message TwitterContentRequest {
repeated TwitterContent contentRequest = 1;
}
message TwitterContent
{
string messageId = 1;
bool isPrivate = 2;
string handleId = 3;
}
message TwitterContentResponse {
string response = 1;
}
service TwitterContentService {
rpc TwitterContent(TwitterContentRequest) returns (TwitterContentResponse);
}
</code></pre>