Show / Hide Table of Contents

Class Method

Method represents a method of an API interface.

Inheritance
System.Object
Method
Implements
IMessage<Method>
IMessage
System.IEquatable<Method>
IDeepCloneable<Method>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.WellKnownTypes
Assembly: Google.Protobuf.dll
Syntax
public sealed class Method : IMessage<Method>, IMessage, IEquatable<Method>, IDeepCloneable<Method>

Constructors

Method()

Declaration
public Method()

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
Type Description
MessageDescriptor

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
Type Description
RepeatedField<Option>

Parser

Declaration
public static MessageParser<Method> Parser { get; }
Property Value
Type Description
MessageParser<Method>

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
Type Description
Syntax

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public Method Clone()
Returns
Type Description
Method
Implements
IDeepCloneable<T>.Clone()

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()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(Method)

Declaration
public void MergeFrom(Method other)
Parameters
Type Name Description
Method other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor

Extension Methods

MessageExtensions.MergeFrom(IMessage, Byte[])
MessageExtensions.MergeFrom(IMessage, Byte[], Int32, Int32)
MessageExtensions.MergeFrom(IMessage, ByteString)
MessageExtensions.MergeFrom(IMessage, Stream)
MessageExtensions.MergeDelimitedFrom(IMessage, Stream)
MessageExtensions.ToByteArray(IMessage)
MessageExtensions.WriteTo(IMessage, Stream)
MessageExtensions.WriteDelimitedTo(IMessage, Stream)
MessageExtensions.ToByteString(IMessage)
MessageExtensions.IsInitialized(IMessage)
Back to top