Class ChatMessage
public sealed class ChatMessage : Google.Protobuf.IMessage<ChatMessage>, Google.Protobuf.IBufferMessage
- Inheritance
-
ChatMessage
- Implements
-
IBufferMessage
- Extension Methods
Constructors
ChatMessage()
public ChatMessage()
ChatMessage(ChatMessage)
public ChatMessage(ChatMessage other)
Parameters
otherChatMessage
Fields
DeletedFieldNumber
Field number for the "deleted" field.
public const int DeletedFieldNumber = 5
Field Value
EditTimestampFieldNumber
Field number for the "edit_timestamp" field.
public const int EditTimestampFieldNumber = 4
Field Value
GeneratedFieldNumber
Field number for the "generated" field.
public const int GeneratedFieldNumber = 6
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
MessageFieldNumber
Field number for the "message" field.
public const int MessageFieldNumber = 3
Field Value
TimestampFieldNumber
Field number for the "timestamp" field.
public const int TimestampFieldNumber = 2
Field Value
Properties
Deleted
public bool Deleted { get; set; }
Property Value
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EditTimestamp
public long EditTimestamp { get; set; }
Property Value
Generated
public bool Generated { get; set; }
Property Value
HasDeleted
Gets whether the "deleted" field is set
public bool HasDeleted { get; }
Property Value
HasEditTimestamp
Gets whether the "edit_timestamp" field is set
public bool HasEditTimestamp { get; }
Property Value
HasGenerated
Gets whether the "generated" field is set
public bool HasGenerated { get; }
Property Value
HasId
Gets whether the "id" field is set
public bool HasId { get; }
Property Value
HasMessage
Gets whether the "message" field is set
public bool HasMessage { get; }
Property Value
HasTimestamp
Gets whether the "timestamp" field is set
public bool HasTimestamp { get; }
Property Value
Id
public string Id { get; set; }
Property Value
Message
public string Message { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<ChatMessage> Parser { get; }
Property Value
- MessageParser<ChatMessage>
Timestamp
public long Timestamp { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearDeleted()
Clears the value of the "deleted" field
public void ClearDeleted()
ClearEditTimestamp()
Clears the value of the "edit_timestamp" field
public void ClearEditTimestamp()
ClearGenerated()
Clears the value of the "generated" field
public void ClearGenerated()
ClearId()
Clears the value of the "id" field
public void ClearId()
ClearMessage()
Clears the value of the "message" field
public void ClearMessage()
ClearTimestamp()
Clears the value of the "timestamp" field
public void ClearTimestamp()
Clone()
public ChatMessage Clone()
Returns
Equals(ChatMessage)
public bool Equals(ChatMessage other)
Parameters
otherChatMessage
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(ChatMessage)
public void MergeFrom(ChatMessage other)
Parameters
otherChatMessage
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream