Show / Hide Table of Contents

Class MethodDescriptorProto

Describes a method of a service.

Inheritance
System.Object
MethodDescriptorProto
Implements
IMessage<MethodDescriptorProto>
IMessage
System.IEquatable<MethodDescriptorProto>
IDeepCloneable<MethodDescriptorProto>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
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
Type Name Description
MethodDescriptorProto other

Fields

ClientStreamingFieldNumber

Field number for the "client_streaming" field.

Declaration
public const int ClientStreamingFieldNumber = 5
Field Value
Type Description
System.Int32

InputTypeFieldNumber

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
Type Description
MessageDescriptor

HasClientStreaming

Gets whether the "client_streaming" field is set

Declaration
public bool HasClientStreaming { get; }
Property Value
Type Description
System.Boolean

HasInputType

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

InputType

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
Type Description
MethodOptions

OutputType

Declaration
public string OutputType { get; set; }
Property Value
Type Description
System.String

Parser

Declaration
public static MessageParser<MethodDescriptorProto> Parser { get; }
Property Value
Type Description
MessageParser<MethodDescriptorProto>

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
IMessage.CalculateSize()

ClearClientStreaming()

Clears the value of the "client_streaming" field

Declaration
public void ClearClientStreaming()

ClearInputType()

Clears the value of the "input_type" field

Declaration
public void ClearInputType()

ClearName()

Clears the value of the "name" field

Declaration
public void ClearName()

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
Type Description
MethodDescriptorProto
Implements
IDeepCloneable<T>.Clone()

Equals(MethodDescriptorProto)

Declaration
public bool Equals(MethodDescriptorProto other)
Parameters
Type Name Description
MethodDescriptorProto other
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()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(MethodDescriptorProto)

Declaration
public void MergeFrom(MethodDescriptorProto other)
Parameters
Type Name Description
MethodDescriptorProto other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor

Extension Methods

MessageExtensions.MergeFrom(IMessage, Byte[])
MessageExtensions.MergeFrom(IMessage, Byte[], Int32, Int32)
MessageExtensions.MergeFrom(IMessage, ByteString)
MessageExtensions.MergeFrom(IMessage, Stream)
MessageExtensions.MergeDelimitedFrom(IMessage, Stream)
MessageExtensions.ToByteArray(IMessage)
MessageExtensions.WriteTo(IMessage, Stream)
MessageExtensions.WriteDelimitedTo(IMessage, Stream)
MessageExtensions.ToByteString(IMessage)
MessageExtensions.IsInitialized(IMessage)
Back to top