diff options
author | temiola <temiola@google.com> | 2015-01-07 18:43:40 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2015-01-09 17:35:24 -0800 |
commit | 0f0a6bc4f0d58156a611f048f0ea16d632ead954 (patch) | |
tree | bf4903217abb61b666ab772ce17b0ca5b33c6d7d /src/ruby/bin/math.proto | |
parent | c008ae5e506b7d92137d1b905117fc887036e701 (diff) |
Switches to using protobuf-ruby.
- Adds a dependency to protobuf-ruby in the gemfile
- Updates math.proto to proto3
- Updates math server and client to use protoc protos
- Updates interop server and client to use protoc protos
Also
- Fixes/Updates the noproto samples
TESTED: math_server and math_client can communicate locally.
Change on 2015/01/07 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83483448
Diffstat (limited to 'src/ruby/bin/math.proto')
-rwxr-xr-x | src/ruby/bin/math.proto | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ruby/bin/math.proto b/src/ruby/bin/math.proto index de18a50260..c49787ad54 100755 --- a/src/ruby/bin/math.proto +++ b/src/ruby/bin/math.proto @@ -1,15 +1,15 @@ -syntax = "proto2"; +syntax = "proto3"; package math; message DivArgs { - required int64 dividend = 1; - required int64 divisor = 2; + optional int64 dividend = 1; + optional int64 divisor = 2; } message DivReply { - required int64 quotient = 1; - required int64 remainder = 2; + optional int64 quotient = 1; + optional int64 remainder = 2; } message FibArgs { @@ -17,11 +17,11 @@ message FibArgs { } message Num { - required int64 num = 1; + optional int64 num = 1; } message FibReply { - required int64 count = 1; + optional int64 count = 1; } service Math { |