syntax = "proto3";

package math;

service Math {
  rpc Sum (RequestSum) returns (SumResult);
  rpc SumStream(stream RequestSum) returns(stream SumResult);
  rpc SumStreamPass(stream RequestSum) returns(stream SumResult);
}

message SumResult {
  int32 result = 1;
}

message RequestSum {
  repeated int32 data = 1;
}