Class AgentSessionState
public sealed class AgentSessionState : IMessage<AgentSessionState>, IEquatable<AgentSessionState>, IDeepCloneable<AgentSessionState>, IBufferMessage, IMessage
- Inheritance
-
AgentSessionState
- Implements
-
IMessage<AgentSessionState>IDeepCloneable<AgentSessionState>IBufferMessageIMessage
- Inherited Members
Constructors
AgentSessionState()
public AgentSessionState()
AgentSessionState(AgentSessionState)
public AgentSessionState(AgentSessionState other)
Parameters
otherAgentSessionState
Fields
DeltaFieldNumber
Field number for the "delta" field.
public const int DeltaFieldNumber = 3
Field Value
SnapshotFieldNumber
Field number for the "snapshot" field.
public const int SnapshotFieldNumber = 2
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 1
Field Value
Properties
DataCase
public AgentSessionState.DataOneofCase DataCase { get; }
Property Value
Delta
public ByteString Delta { get; set; }
Property Value
- ByteString
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasDelta
Gets whether the "delta" field is set
public bool HasDelta { get; }
Property Value
HasSnapshot
Gets whether the "snapshot" field is set
public bool HasSnapshot { get; }
Property Value
Parser
public static MessageParser<AgentSessionState> Parser { get; }
Property Value
- MessageParser<AgentSessionState>
Snapshot
public ByteString Snapshot { get; set; }
Property Value
- ByteString
Version
public ulong 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.
ClearData()
public void ClearData()
ClearDelta()
Clears the value of the oneof if it's currently set to "delta"
public void ClearDelta()
ClearSnapshot()
Clears the value of the oneof if it's currently set to "snapshot"
public void ClearSnapshot()
Clone()
Creates a deep clone of this object.
public AgentSessionState Clone()
Returns
- AgentSessionState
A deep clone of this object.
Equals(AgentSessionState)
public bool Equals(AgentSessionState other)
Parameters
otherAgentSessionState
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(AgentSessionState)
Merges the given message into this one.
public void MergeFrom(AgentSessionState other)
Parameters
otherAgentSessionState
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.