Class MethodDescriptorProto
Describes a method of a service.
Inheritance
System.Object
MethodDescriptorProto
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class MethodDescriptorProto : IMessage<MethodDescriptorProto>, IMessage, IEquatable<MethodDescriptorProto>, IDeepCloneable<MethodDescriptorProto>
Constructors
MethodDescriptorProto()
Declaration
public MethodDescriptorProto()
MethodDescriptorProto(MethodDescriptorProto)
Declaration
public MethodDescriptorProto(MethodDescriptorProto other)
Parameters
Fields
ClientStreamingFieldNumber
Field number for the "client_streaming" field.
Declaration
public const int ClientStreamingFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
Field number for the "input_type" field.
Declaration
public const int InputTypeFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
OptionsFieldNumber
Field number for the "options" field.
Declaration
public const int OptionsFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
OutputTypeFieldNumber
Field number for the "output_type" field.
Declaration
public const int OutputTypeFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ServerStreamingFieldNumber
Field number for the "server_streaming" field.
Declaration
public const int ServerStreamingFieldNumber = 6
Field Value
Type |
Description |
System.Int32 |
|
Properties
ClientStreaming
Identifies if client streams multiple client messages
Declaration
public bool ClientStreaming { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
HasClientStreaming
Gets whether the "client_streaming" field is set
Declaration
public bool HasClientStreaming { get; }
Property Value
Type |
Description |
System.Boolean |
|
Gets whether the "input_type" field is set
Declaration
public bool HasInputType { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasName
Gets whether the "name" field is set
Declaration
public bool HasName { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasOptions
Gets whether the options field is set
Declaration
public bool HasOptions { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasOutputType
Gets whether the "output_type" field is set
Declaration
public bool HasOutputType { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasServerStreaming
Gets whether the "server_streaming" field is set
Declaration
public bool HasServerStreaming { get; }
Property Value
Type |
Description |
System.Boolean |
|
Input and output type names. These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
Declaration
public string InputType { get; set; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Options
Declaration
public MethodOptions Options { get; set; }
Property Value
OutputType
Declaration
public string OutputType { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<MethodDescriptorProto> Parser { get; }
Property Value
ServerStreaming
Identifies if server streams multiple server messages
Declaration
public bool ServerStreaming { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearClientStreaming()
Clears the value of the "client_streaming" field
Declaration
public void ClearClientStreaming()
Clears the value of the "input_type" field
Declaration
public void ClearInputType()
ClearName()
Clears the value of the "name" field
Declaration
ClearOptions()
Clears the value of the options field
Declaration
public void ClearOptions()
ClearOutputType()
Clears the value of the "output_type" field
Declaration
public void ClearOutputType()
ClearServerStreaming()
Clears the value of the "server_streaming" field
Declaration
public void ClearServerStreaming()
Clone()
Declaration
public MethodDescriptorProto Clone()
Returns
Implements
Equals(MethodDescriptorProto)
Declaration
public bool Equals(MethodDescriptorProto other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(MethodDescriptorProto)
Declaration
public void MergeFrom(MethodDescriptorProto other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods