Class MethodDescriptorProto (3.15.8)

public sealed class MethodDescriptorProto : object, IMessage<MethodDescriptorProto>, IEquatable<MethodDescriptorProto>, IDeepCloneable<MethodDescriptorProto>, IBufferMessage, IMessage

Describes a method of a service.

Inheritance

Object > MethodDescriptorProto

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

MethodDescriptorProto()

public MethodDescriptorProto()

MethodDescriptorProto(MethodDescriptorProto)

public MethodDescriptorProto(MethodDescriptorProto other)
Parameter
NameDescription
otherMethodDescriptorProto

Fields

ClientStreamingFieldNumber

public const int ClientStreamingFieldNumber = null

Field number for the "client_streaming" field.

Field Value
TypeDescription
Int32

InputTypeFieldNumber

public const int InputTypeFieldNumber = null

Field number for the "input_type" field.

Field Value
TypeDescription
Int32

NameFieldNumber

public const int NameFieldNumber = null

Field number for the "name" field.

Field Value
TypeDescription
Int32

OptionsFieldNumber

public const int OptionsFieldNumber = null

Field number for the "options" field.

Field Value
TypeDescription
Int32

OutputTypeFieldNumber

public const int OutputTypeFieldNumber = null

Field number for the "output_type" field.

Field Value
TypeDescription
Int32

ServerStreamingFieldNumber

public const int ServerStreamingFieldNumber = null

Field number for the "server_streaming" field.

Field Value
TypeDescription
Int32

Properties

ClientStreaming

public bool ClientStreaming { get; set; }

Identifies if client streams multiple client messages

Property Value
TypeDescription
Boolean

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

HasClientStreaming

public bool HasClientStreaming { get; }

Gets whether the "client_streaming" field is set

Property Value
TypeDescription
Boolean

HasInputType

public bool HasInputType { get; }

Gets whether the "input_type" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasOutputType

public bool HasOutputType { get; }

Gets whether the "output_type" field is set

Property Value
TypeDescription
Boolean

HasServerStreaming

public bool HasServerStreaming { get; }

Gets whether the "server_streaming" field is set

Property Value
TypeDescription
Boolean

InputType

public string InputType { get; set; }

Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.

Property Value
TypeDescription
String

Name

public string Name { get; set; }
Property Value
TypeDescription
String

Options

public MethodOptions Options { get; set; }
Property Value
TypeDescription
MethodOptions

OutputType

public string OutputType { get; set; }
Property Value
TypeDescription
String

Parser

public static MessageParser<MethodDescriptorProto> Parser { get; }
Property Value
TypeDescription
MessageParser<MethodDescriptorProto>

ServerStreaming

public bool ServerStreaming { get; set; }

Identifies if server streams multiple server messages

Property Value
TypeDescription
Boolean

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearClientStreaming()

public void ClearClientStreaming()

Clears the value of the "client_streaming" field

ClearInputType()

public void ClearInputType()

Clears the value of the "input_type" field

ClearName()

public void ClearName()

Clears the value of the "name" field

ClearOutputType()

public void ClearOutputType()

Clears the value of the "output_type" field

ClearServerStreaming()

public void ClearServerStreaming()

Clears the value of the "server_streaming" field

Clone()

public MethodDescriptorProto Clone()
Returns
TypeDescription
MethodDescriptorProto

Equals(MethodDescriptorProto)

public bool Equals(MethodDescriptorProto other)
Parameter
NameDescription
otherMethodDescriptorProto
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(MethodDescriptorProto)

public void MergeFrom(MethodDescriptorProto other)
Parameter
NameDescription
otherMethodDescriptorProto

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor