Class Method
Method represents a method of an API interface.
Inheritance
System.Object
Method
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class Method : IMessage<Method>, IMessage, IEquatable<Method>, IDeepCloneable<Method>
Constructors
Method()
Declaration
Method(Method)
Declaration
public Method(Method other)
Parameters
Type |
Name |
Description |
Method |
other |
|
Fields
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 = 6
Field Value
Type |
Description |
System.Int32 |
|
RequestStreamingFieldNumber
Field number for the "request_streaming" field.
Declaration
public const int RequestStreamingFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
RequestTypeUrlFieldNumber
Field number for the "request_type_url" field.
Declaration
public const int RequestTypeUrlFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
ResponseStreamingFieldNumber
Field number for the "response_streaming" field.
Declaration
public const int ResponseStreamingFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
ResponseTypeUrlFieldNumber
Field number for the "response_type_url" field.
Declaration
public const int ResponseTypeUrlFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
SyntaxFieldNumber
Field number for the "syntax" field.
Declaration
public const int SyntaxFieldNumber = 7
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Name
The simple name of this method.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Options
Any metadata attached to the method.
Declaration
public RepeatedField<Option> Options { get; }
Property Value
Parser
Declaration
public static MessageParser<Method> Parser { get; }
Property Value
RequestStreaming
If true, the request is streamed.
Declaration
public bool RequestStreaming { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
RequestTypeUrl
A URL of the input message type.
Declaration
public string RequestTypeUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
ResponseStreaming
If true, the response is streamed.
Declaration
public bool ResponseStreaming { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ResponseTypeUrl
The URL of the output message type.
Declaration
public string ResponseTypeUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
Syntax
The source syntax of this method.
Declaration
public Syntax Syntax { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
Returns
Implements
Equals(Method)
Declaration
public bool Equals(Method other)
Parameters
Type |
Name |
Description |
Method |
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(Method)
Declaration
public void MergeFrom(Method other)
Parameters
Type |
Name |
Description |
Method |
other |
|
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods