Class RpcError
public sealed class RpcError : IMessage<RpcError>, IEquatable<RpcError>, IDeepCloneable<RpcError>, IBufferMessage, IMessage
- Inheritance
-
RpcError
- Inherited Members
Constructors
RpcError()
public RpcError()
RpcError(RpcError)
public RpcError(RpcError other)
Parameters
otherRpcError
Fields
CodeFieldNumber
Field number for the "code" field.
public const int CodeFieldNumber = 1
Field Value
DataFieldNumber
Field number for the "data" field.
public const int DataFieldNumber = 3
Field Value
MessageFieldNumber
Field number for the "message" field.
public const int MessageFieldNumber = 2
Field Value
Properties
Code
public uint Code { get; set; }
Property Value
Data
public string Data { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Message
public string Message { get; set; }
Property Value
Parser
public static MessageParser<RpcError> Parser { get; }
Property Value
- MessageParser<RpcError>
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public RpcError Clone()
Returns
- RpcError
A deep clone of this object.
Equals(RpcError)
public bool Equals(RpcError other)
Parameters
otherRpcError
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(RpcError)
Merges the given message into this one.
public void MergeFrom(RpcError other)
Parameters
otherRpcError
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.