Class MethodDescriptor
Describes a single method in a service.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class MethodDescriptor : DescriptorBase, IDescriptor
Properties
CustomOptions
The (possibly empty) set of custom options for this method.
Declaration
public CustomOptions CustomOptions { get; }
Property Value
Type | Description |
---|---|
CustomOptions |
InputType
Declaration
public MessageDescriptor InputType { get; }
Property Value
Type | Description |
---|---|
MessageDescriptor | The method's input type. |
IsClientStreaming
Declaration
public bool IsClientStreaming { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Indicates if client streams multiple requests. |
IsServerStreaming
Declaration
public bool IsServerStreaming { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Indicates if server streams multiple responses. |
Name
The brief name of the descriptor's target.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
OutputType
Declaration
public MessageDescriptor OutputType { get; }
Property Value
Type | Description |
---|---|
MessageDescriptor | The method's input type. |
Service
Declaration
public ServiceDescriptor Service { get; }
Property Value
Type | Description |
---|---|
ServiceDescriptor | The service this method belongs to. |