Class UserPacket
public sealed class UserPacket : IMessage<UserPacket>, IEquatable<UserPacket>, IDeepCloneable<UserPacket>, IBufferMessage, IMessage
- Inheritance
-
UserPacket
- Implements
-
IMessage<UserPacket>IDeepCloneable<UserPacket>IBufferMessageIMessage
- Inherited Members
Constructors
UserPacket()
public UserPacket()
UserPacket(UserPacket)
public UserPacket(UserPacket other)
Parameters
otherUserPacket
Fields
DestinationIdentitiesFieldNumber
Field number for the "destination_identities" field.
public const int DestinationIdentitiesFieldNumber = 6
Field Value
DestinationSidsFieldNumber
Field number for the "destination_sids" field.
public const int DestinationSidsFieldNumber = 3
Field Value
EndTimeFieldNumber
Field number for the "end_time" field.
public const int EndTimeFieldNumber = 10
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 8
Field Value
NonceFieldNumber
Field number for the "nonce" field.
public const int NonceFieldNumber = 11
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
public const int ParticipantIdentityFieldNumber = 5
Field Value
ParticipantSidFieldNumber
Field number for the "participant_sid" field.
public const int ParticipantSidFieldNumber = 1
Field Value
PayloadFieldNumber
Field number for the "payload" field.
public const int PayloadFieldNumber = 2
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
public const int StartTimeFieldNumber = 9
Field Value
TopicFieldNumber
Field number for the "topic" field.
public const int TopicFieldNumber = 4
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DestinationIdentities
identities of participants who will receive the message (sent to all by default)
[Obsolete]
public RepeatedField<string> DestinationIdentities { get; }
Property Value
- RepeatedField<string>
DestinationSids
the ID of the participants who will receive the message (sent to all by default)
[Obsolete]
public RepeatedField<string> DestinationSids { get; }
Property Value
- RepeatedField<string>
EndTime
public ulong EndTime { get; set; }
Property Value
HasEndTime
Gets whether the "end_time" field is set
public bool HasEndTime { get; }
Property Value
HasId
Gets whether the "id" field is set
public bool HasId { get; }
Property Value
HasStartTime
Gets whether the "start_time" field is set
public bool HasStartTime { get; }
Property Value
HasTopic
Gets whether the "topic" field is set
public bool HasTopic { get; }
Property Value
Id
Unique ID to identify the message
public string Id { get; set; }
Property Value
Nonce
added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
public ByteString Nonce { get; set; }
Property Value
- ByteString
Parser
public static MessageParser<UserPacket> Parser { get; }
Property Value
- MessageParser<UserPacket>
ParticipantIdentity
[Obsolete]
public string ParticipantIdentity { get; set; }
Property Value
ParticipantSid
participant ID of user that sent the message
[Obsolete]
public string ParticipantSid { get; set; }
Property Value
Payload
user defined payload
public ByteString Payload { get; set; }
Property Value
- ByteString
StartTime
start and end time allow relating the message to specific media time
public ulong StartTime { get; set; }
Property Value
Topic
topic under which the message was published
public string Topic { 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.
ClearEndTime()
Clears the value of the "end_time" field
public void ClearEndTime()
ClearId()
Clears the value of the "id" field
public void ClearId()
ClearStartTime()
Clears the value of the "start_time" field
public void ClearStartTime()
ClearTopic()
Clears the value of the "topic" field
public void ClearTopic()
Clone()
Creates a deep clone of this object.
public UserPacket Clone()
Returns
- UserPacket
A deep clone of this object.
Equals(UserPacket)
public bool Equals(UserPacket other)
Parameters
otherUserPacket
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(UserPacket)
Merges the given message into this one.
public void MergeFrom(UserPacket other)
Parameters
otherUserPacket
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.