diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-07-29 18:47:55 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-07-29 18:48:54 -0700 |
commit | fa291481375df3d81fdc864f4b0cb9d068cb3324 (patch) | |
tree | b011f577bbe6b13180c3d588090fccadacccaec6 /csharp/src | |
parent | 74810c6ae3219498dd3e856f9cd251588c92a899 (diff) | |
download | protobuf-fa291481375df3d81fdc864f4b0cb9d068cb3324.tar.gz protobuf-fa291481375df3d81fdc864f4b0cb9d068cb3324.tar.bz2 protobuf-fa291481375df3d81fdc864f4b0cb9d068cb3324.zip |
add IsClientStreaming and IsServerStreaming to MethodDescriptor
Diffstat (limited to 'csharp/src')
-rw-r--r-- | csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs index 0c9c6949..f9539f6c 100644 --- a/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs @@ -57,6 +57,16 @@ namespace Google.Protobuf.Reflection /// </value> public MessageDescriptor OutputType { get { return outputType; } } + /// <value> + /// Indicates if client streams multiple requests. + /// </value> + public bool IsClientStreaming { get { return proto.ClientStreaming; } } + + /// <value> + /// Indicates if server streams multiple responses. + /// </value> + public bool IsServerStreaming { get { return proto.ServerStreaming; } } + internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file, ServiceDescriptor parent, int index) : base(file, parent.FullName + "." + proto.Name, index) |