diff options
author | rocking <rocking@google.com> | 2014-12-11 13:41:17 -0800 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2014-12-11 15:11:44 -0800 |
commit | 718c3f75879ffa7cf11c58bd0fb7bd3fe28b1719 (patch) | |
tree | ac2e4bf98d5bdf29b59448663d98103126416ad3 | |
parent | 57c6f0cadebbdf973bf560e4ad67aef8fe451bc3 (diff) |
Change cpp and go codegen to use new method properties instead of method options
Change on 2014/12/11 by rocking <rocking@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81906922
-rw-r--r-- | src/compiler/cpp_generator.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc index 1eccbf7e09..e01b496ed6 100644 --- a/src/compiler/cpp_generator.cc +++ b/src/compiler/cpp_generator.cc @@ -43,23 +43,23 @@ namespace grpc_cpp_generator { namespace { bool NoStreaming(const google::protobuf::MethodDescriptor* method) { - return !method->options().has_client_streaming() && - !method->options().has_server_streaming(); + return !method->client_streaming() && + !method->server_streaming(); } bool ClientOnlyStreaming(const google::protobuf::MethodDescriptor* method) { - return method->options().has_client_streaming() && - !method->options().has_server_streaming(); + return method->client_streaming() && + !method->server_streaming(); } bool ServerOnlyStreaming(const google::protobuf::MethodDescriptor* method) { - return !method->options().has_client_streaming() && - method->options().has_server_streaming(); + return !method->client_streaming() && + method->server_streaming(); } bool BidiStreaming(const google::protobuf::MethodDescriptor* method) { - return method->options().has_client_streaming() && - method->options().has_server_streaming(); + return method->client_streaming() && + method->server_streaming(); } bool HasClientOnlyStreaming(const google::protobuf::FileDescriptor* file) { |