Class Ping
public sealed class Ping : IMessage<Ping>, IEquatable<Ping>, IDeepCloneable<Ping>, IBufferMessage, IMessage
- Inheritance
-
Ping
- Inherited Members
Constructors
Ping()
public Ping()
Ping(Ping)
public Ping(Ping other)
Parameters
otherPing
Fields
RttFieldNumber
Field number for the "rtt" field.
public const int RttFieldNumber = 2
Field Value
TimestampFieldNumber
Field number for the "timestamp" field.
public const int TimestampFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<Ping> Parser { get; }
Property Value
- MessageParser<Ping>
Rtt
rtt in milliseconds calculated by client
public long Rtt { get; set; }
Property Value
Timestamp
public long Timestamp { get; set; }
Property Value
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 Ping Clone()
Returns
- Ping
A deep clone of this object.
Equals(Ping)
public bool Equals(Ping other)
Parameters
otherPing
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(Ping)
Merges the given message into this one.
public void MergeFrom(Ping other)
Parameters
otherPing
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.