Class ServerInfo
details about the server
public sealed class ServerInfo : IMessage<ServerInfo>, IEquatable<ServerInfo>, IDeepCloneable<ServerInfo>, IBufferMessage, IMessage
- Inheritance
-
ServerInfo
- Implements
-
IMessage<ServerInfo>IDeepCloneable<ServerInfo>IBufferMessageIMessage
- Inherited Members
Constructors
ServerInfo()
public ServerInfo()
ServerInfo(ServerInfo)
public ServerInfo(ServerInfo other)
Parameters
otherServerInfo
Fields
AgentProtocolFieldNumber
Field number for the "agent_protocol" field.
public const int AgentProtocolFieldNumber = 7
Field Value
DebugInfoFieldNumber
Field number for the "debug_info" field.
public const int DebugInfoFieldNumber = 6
Field Value
EditionFieldNumber
Field number for the "edition" field.
public const int EditionFieldNumber = 1
Field Value
NodeIdFieldNumber
Field number for the "node_id" field.
public const int NodeIdFieldNumber = 5
Field Value
ProtocolFieldNumber
Field number for the "protocol" field.
public const int ProtocolFieldNumber = 3
Field Value
RegionFieldNumber
Field number for the "region" field.
public const int RegionFieldNumber = 4
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 2
Field Value
Properties
AgentProtocol
public int AgentProtocol { get; set; }
Property Value
DebugInfo
additional debugging information. sent only if server is in development mode
public string DebugInfo { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Edition
public ServerInfo.Types.Edition Edition { get; set; }
Property Value
NodeId
public string NodeId { get; set; }
Property Value
Parser
public static MessageParser<ServerInfo> Parser { get; }
Property Value
- MessageParser<ServerInfo>
Protocol
public int Protocol { get; set; }
Property Value
Region
public string Region { get; set; }
Property Value
Version
public string Version { 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 ServerInfo Clone()
Returns
- ServerInfo
A deep clone of this object.
Equals(ServerInfo)
public bool Equals(ServerInfo other)
Parameters
otherServerInfo
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(ServerInfo)
Merges the given message into this one.
public void MergeFrom(ServerInfo other)
Parameters
otherServerInfo
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.