Class Method (3.15.8)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class Method : object, IMessage<Method>, IEquatable<Method>, IDeepCloneable<Method>, IBufferMessage, IMessage

Method represents a method of an API interface.

Inheritance

Object > Method

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

Method()

public Method()

Method(Method)

public Method(Method other)
Parameter
NameDescription
otherMethod

Fields

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

RequestStreamingFieldNumber

public const int RequestStreamingFieldNumber = null

Field number for the "request_streaming" field.

Field Value
TypeDescription
Int32

RequestTypeUrlFieldNumber

public const int RequestTypeUrlFieldNumber = null

Field number for the "request_type_url" field.

Field Value
TypeDescription
Int32

ResponseStreamingFieldNumber

public const int ResponseStreamingFieldNumber = null

Field number for the "response_streaming" field.

Field Value
TypeDescription
Int32

ResponseTypeUrlFieldNumber

public const int ResponseTypeUrlFieldNumber = null

Field number for the "response_type_url" field.

Field Value
TypeDescription
Int32

SyntaxFieldNumber

public const int SyntaxFieldNumber = null

Field number for the "syntax" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

Name

public string Name { get; set; }

The simple name of this method.

Property Value
TypeDescription
String

Options

public RepeatedField<Option> Options { get; }

Any metadata attached to the method.

Property Value
TypeDescription
RepeatedField<Option>

Parser

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

RequestStreaming

public bool RequestStreaming { get; set; }

If true, the request is streamed.

Property Value
TypeDescription
Boolean

RequestTypeUrl

public string RequestTypeUrl { get; set; }

A URL of the input message type.

Property Value
TypeDescription
String

ResponseStreaming

public bool ResponseStreaming { get; set; }

If true, the response is streamed.

Property Value
TypeDescription
Boolean

ResponseTypeUrl

public string ResponseTypeUrl { get; set; }

The URL of the output message type.

Property Value
TypeDescription
String

Syntax

public Syntax Syntax { get; set; }

The source syntax of this method.

Property Value
TypeDescription
Syntax

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Method Clone()
Returns
TypeDescription
Method

Equals(Method)

public bool Equals(Method other)
Parameter
NameDescription
otherMethod
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(Method)

public void MergeFrom(Method other)
Parameter
NameDescription
otherMethod

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