コード例 #1
0
 def Add(self, request, context):
     local_sum = request.a + request.b
     return calculator_pb2.AddReply(sum=local_sum)
コード例 #2
0
 def Add(self, request, context):
     addition = request.x + request.y
     return calculator_pb2.AddReply(result=addition)
コード例 #3
0
 def PerformAddition(self, request, context):
     return calculator_pb2.AddReply(message=request.nbr1 + request.nbr2)
コード例 #4
0
 def Addition(self, request, context):
     return calculator_pb2.AddReply(result=request.num1 + request.num2)
コード例 #5
0
 def Add(self, request, context):
     return calculator_pb2.AddReply(z=request.x + request.y)
コード例 #6
0
 def Add(self, request, context):
     return calculator_pb2.AddReply(n1=request.n1 + request.n2)
コード例 #7
0
 def Add(self, request, context):
     return calculator_pb2.AddReply(num3=request.num1 + request.num2)