Get desktop application:
View/edit binary Protocol Buffers messages
这是protobuf中定义service的方法,跟thrift差不多,但是关键字不一样 service中有四种rpc方法类型
1.发送一个request请求,返回一个response响应
2.发送一个request请求,返回一个stream响应 虽然我们这里只是想传入一个int32(age),但是protobuf传入的参数必须是message类型,和thrift不同 thrift是可以直接传入int,详细可看thrift
Used as response type in: StudentService.GetStudentByAge
Used as field type in: