Просмотр исходного кода

Merge pull request #1583 from yang-g/mock

remove redudant optional keyword in proto3
Tim Emiola 10 лет назад
Родитель
Сommit
94199494d5
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      src/ruby/bin/math.proto

+ 7 - 7
src/ruby/bin/math.proto

@@ -33,25 +33,25 @@ syntax = "proto3";
 package math;
 package math;
 
 
 message DivArgs {
 message DivArgs {
-  optional int64 dividend = 1;
-  optional int64 divisor = 2;
+  int64 dividend = 1;
+  int64 divisor = 2;
 }
 }
 
 
 message DivReply {
 message DivReply {
-  optional int64 quotient = 1;
-  optional int64 remainder = 2;
+  int64 quotient = 1;
+  int64 remainder = 2;
 }
 }
 
 
 message FibArgs {
 message FibArgs {
-  optional int64 limit = 1;
+  int64 limit = 1;
 }
 }
 
 
 message Num {
 message Num {
-  optional int64 num = 1;
+  int64 num = 1;
 }
 }
 
 
 message FibReply {
 message FibReply {
-  optional int64 count = 1;
+  int64 count = 1;
 }
 }
 
 
 service Math {
 service Math {