aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-29 18:47:55 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-29 18:48:54 -0700
commitfa291481375df3d81fdc864f4b0cb9d068cb3324 (patch)
treeb011f577bbe6b13180c3d588090fccadacccaec6 /csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs
parent74810c6ae3219498dd3e856f9cd251588c92a899 (diff)
add IsClientStreaming and IsServerStreaming to MethodDescriptor
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs10
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)