Class MethodDescriptorProto (3.15.8)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.15.8keyboard_arrow_down
public sealed class MethodDescriptorProto : object, IMessage<MethodDescriptorProto>, IEquatable<MethodDescriptorProto>, IDeepCloneable<MethodDescriptorProto>, IBufferMessage, IMessage
Describes a method of a service.
Inheritance
Object >
MethodDescriptorProto
Namespace
Google.Protobuf.Reflection
Assembly
Google.Protobuf.dll
Constructors
MethodDescriptorProto()
public MethodDescriptorProto()
MethodDescriptorProto(MethodDescriptorProto)
public MethodDescriptorProto(MethodDescriptorProto other)
Fields
ClientStreamingFieldNumber
public const int ClientStreamingFieldNumber = null
Field number for the "client_streaming" field.
Field Value
Type
Description
Int32
public const int InputTypeFieldNumber = null
Field number for the "input_type" field.
Field Value
Type
Description
Int32
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
OutputTypeFieldNumber
public const int OutputTypeFieldNumber = null
Field number for the "output_type" field.
Field Value
Type
Description
Int32
ServerStreamingFieldNumber
public const int ServerStreamingFieldNumber = null
Field number for the "server_streaming" field.
Field Value
Type
Description
Int32
Properties
ClientStreaming
public bool ClientStreaming { get; set; }
Identifies if client streams multiple client messages
Property Value
Type
Description
Boolean
Descriptor
public static MessageDescriptor Descriptor { get; }
HasClientStreaming
public bool HasClientStreaming { get; }
Gets whether the "client_streaming" field is set
Property Value
Type
Description
Boolean
public bool HasInputType { get; }
Gets whether the "input_type" field is set
Property Value
Type
Description
Boolean
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value
Type
Description
Boolean
HasOutputType
public bool HasOutputType { get; }
Gets whether the "output_type" field is set
Property Value
Type
Description
Boolean
HasServerStreaming
public bool HasServerStreaming { get; }
Gets whether the "server_streaming" field is set
Property Value
Type
Description
Boolean
public string InputType { get; set; }
Input and output type names. These are resolved in the same way as
FieldDescriptorProto.type_name, but must refer to a message type.
Property Value
Type
Description
String
Name
public string Name { get; set; }
Property Value
Type
Description
String
Options
public MethodOptions Options { get; set; }
OutputType
public string OutputType { get; set; }
Property Value
Type
Description
String
Parser
public static MessageParser<MethodDescriptorProto> Parser { get; }
ServerStreaming
public bool ServerStreaming { get; set; }
Identifies if server streams multiple server messages
Property Value
Type
Description
Boolean
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
Int32
ClearClientStreaming()
public void ClearClientStreaming()
Clears the value of the "client_streaming" field
public void ClearInputType()
Clears the value of the "input_type" field
ClearName()
Clears the value of the "name" field
ClearOutputType()
public void ClearOutputType()
Clears the value of the "output_type" field
ClearServerStreaming()
public void ClearServerStreaming()
Clears the value of the "server_streaming" field
Clone()
public MethodDescriptorProto Clone()
Equals(MethodDescriptorProto)
public bool Equals(MethodDescriptorProto other)
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(MethodDescriptorProto)
public void MergeFrom(MethodDescriptorProto other)
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-01 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-01 UTC."],[],[],null,[]]