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 |
---|
Name | Description |
other | Method
|
Fields
NameFieldNumber
public const int NameFieldNumber = null
Field number for the "name" field.
Field Value |
---|
Type | Description |
Int32 | |
OptionsFieldNumber
public const int OptionsFieldNumber = null
Field number for the "options" field.
Field Value |
---|
Type | Description |
Int32 | |
RequestStreamingFieldNumber
public const int RequestStreamingFieldNumber = null
Field number for the "request_streaming" field.
Field Value |
---|
Type | Description |
Int32 | |
RequestTypeUrlFieldNumber
public const int RequestTypeUrlFieldNumber = null
Field number for the "request_type_url" field.
Field Value |
---|
Type | Description |
Int32 | |
ResponseStreamingFieldNumber
public const int ResponseStreamingFieldNumber = null
Field number for the "response_streaming" field.
Field Value |
---|
Type | Description |
Int32 | |
ResponseTypeUrlFieldNumber
public const int ResponseTypeUrlFieldNumber = null
Field number for the "response_type_url" field.
Field Value |
---|
Type | Description |
Int32 | |
SyntaxFieldNumber
public const int SyntaxFieldNumber = null
Field number for the "syntax" field.
Field Value |
---|
Type | Description |
Int32 | |
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Name
public string Name { get; set; }
The simple name of this method.
Property Value |
---|
Type | Description |
String | |
Options
public RepeatedField<Option> Options { get; }
Any metadata attached to the method.
Parser
public static MessageParser<Method> Parser { get; }
RequestStreaming
public bool RequestStreaming { get; set; }
If true, the request is streamed.
Property Value |
---|
Type | Description |
Boolean | |
RequestTypeUrl
public string RequestTypeUrl { get; set; }
A URL of the input message type.
Property Value |
---|
Type | Description |
String | |
ResponseStreaming
public bool ResponseStreaming { get; set; }
If true, the response is streamed.
Property Value |
---|
Type | Description |
Boolean | |
ResponseTypeUrl
public string ResponseTypeUrl { get; set; }
The URL of the output message type.
Property Value |
---|
Type | Description |
String | |
Syntax
public Syntax Syntax { get; set; }
The source syntax of this method.
Property Value |
---|
Type | Description |
Syntax | |
Methods
CalculateSize()
public int CalculateSize()
Returns |
---|
Type | Description |
Int32 | |
Clone()
Equals(Method)
public bool Equals(Method other)
Parameter |
---|
Name | Description |
other | Method
|
Equals(Object)
public override bool Equals(object other)
Parameter |
---|
Name | Description |
other | Object
|
GetHashCode()
public override int GetHashCode()
Returns |
---|
Type | Description |
Int32 | |
public void MergeFrom(CodedInputStream input)
MergeFrom(Method)
public void MergeFrom(Method other)
Parameter |
---|
Name | Description |
other | Method
|
ToString()
public override string ToString()
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }