Class Method (3.15.8)
Version 3.15.8keyboard_arrow_down
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()
Returns
Type
Description
Method
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()
Returns
Type
Description
String
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; }
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]