public sealed class Method : object, IMessage<Method>, IEquatable<Method>, IDeepCloneable<Method>, IBufferMessage, IMessage
Method represents a method of an API interface.
Namespace
Google.Protobuf.WellKnownTypes
Assembly
Google.Protobuf.dll
Constructors
Method()
Method(Method)
public Method(Method other)
Parameter
Fields
NameFieldNumber
public const int NameFieldNumber = null
Field number for the "name" field.
Field Value
OptionsFieldNumber
public const int OptionsFieldNumber = null
Field number for the "options" field.
Field Value
RequestStreamingFieldNumber
public const int RequestStreamingFieldNumber = null
Field number for the "request_streaming" field.
Field Value
RequestTypeUrlFieldNumber
public const int RequestTypeUrlFieldNumber = null
Field number for the "request_type_url" field.
Field Value
ResponseStreamingFieldNumber
public const int ResponseStreamingFieldNumber = null
Field number for the "response_streaming" field.
Field Value
ResponseTypeUrlFieldNumber
public const int ResponseTypeUrlFieldNumber = null
Field number for the "response_type_url" field.
Field Value
SyntaxFieldNumber
public const int SyntaxFieldNumber = null
Field number for the "syntax" field.
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
Name
public string Name { get; set; }
The simple name of this method.
Property Value
Options
public RepeatedField<Option> Options { get; }
Any metadata attached to the method.
Property Value
Parser
public static MessageParser<Method> Parser { get; }
Property Value
RequestStreaming
public bool RequestStreaming { get; set; }
If true, the request is streamed.
Property Value
RequestTypeUrl
public string RequestTypeUrl { get; set; }
A URL of the input message type.
Property Value
ResponseStreaming
public bool ResponseStreaming { get; set; }
If true, the response is streamed.
Property Value
ResponseTypeUrl
public string ResponseTypeUrl { get; set; }
The URL of the output message type.
Property Value
Syntax
public Syntax Syntax { get; set; }
The source syntax of this method.
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
Clone()
Returns
Equals(Method)
public bool Equals(Method other)
Parameter
Returns
Equals(Object)
public override bool Equals(object other)
Parameter
Returns
GetHashCode()
public override int GetHashCode()
Returns
public void MergeFrom(CodedInputStream input)
Parameter
MergeFrom(Method)
public void MergeFrom(Method other)
Parameter
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameter
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }
Returns