Class DataPacket
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class DataPacket : IMessage<DataPacket>, IEquatable<DataPacket>, IDeepCloneable<DataPacket>, IBufferMessage, IMessage
Constructors
DataPacket()
Declaration
DataPacket(DataPacket)
Declaration
public DataPacket(DataPacket other)
Parameters
Fields
ChatMessageFieldNumber
Field number for the "chat_message" field.
Declaration
public const int ChatMessageFieldNumber = 9
Field Value
DestinationIdentitiesFieldNumber
Field number for the "destination_identities" field.
Declaration
public const int DestinationIdentitiesFieldNumber = 5
Field Value
EncryptedPacketFieldNumber
Field number for the "encrypted_packet" field.
Declaration
public const int EncryptedPacketFieldNumber = 18
Field Value
KindFieldNumber
Field number for the "kind" field.
Declaration
public const int KindFieldNumber = 1
Field Value
MetricsFieldNumber
Field number for the "metrics" field.
Declaration
public const int MetricsFieldNumber = 8
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
Declaration
public const int ParticipantIdentityFieldNumber = 4
Field Value
ParticipantSidFieldNumber
Field number for the "participant_sid" field.
Declaration
public const int ParticipantSidFieldNumber = 17
Field Value
RpcAckFieldNumber
Field number for the "rpc_ack" field.
Declaration
public const int RpcAckFieldNumber = 11
Field Value
RpcRequestFieldNumber
Field number for the "rpc_request" field.
Declaration
public const int RpcRequestFieldNumber = 10
Field Value
RpcResponseFieldNumber
Field number for the "rpc_response" field.
Declaration
public const int RpcResponseFieldNumber = 12
Field Value
SequenceFieldNumber
Field number for the "sequence" field.
Declaration
public const int SequenceFieldNumber = 16
Field Value
SipDtmfFieldNumber
Field number for the "sip_dtmf" field.
Declaration
public const int SipDtmfFieldNumber = 6
Field Value
SpeakerFieldNumber
Field number for the "speaker" field.
Declaration
public const int SpeakerFieldNumber = 3
Field Value
StreamChunkFieldNumber
Field number for the "stream_chunk" field.
Declaration
public const int StreamChunkFieldNumber = 14
Field Value
Field number for the "stream_header" field.
Declaration
public const int StreamHeaderFieldNumber = 13
Field Value
StreamTrailerFieldNumber
Field number for the "stream_trailer" field.
Declaration
public const int StreamTrailerFieldNumber = 15
Field Value
TranscriptionFieldNumber
Field number for the "transcription" field.
Declaration
public const int TranscriptionFieldNumber = 7
Field Value
UserFieldNumber
Field number for the "user" field.
Declaration
public const int UserFieldNumber = 2
Field Value
Properties
ChatMessage
Declaration
public ChatMessage ChatMessage { get; set; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type |
Description |
| MessageDescriptor |
|
DestinationIdentities
identities of participants who will receive the message (sent to all by default)
Declaration
public RepeatedField<string> DestinationIdentities { get; }
Property Value
| Type |
Description |
| RepeatedField<string> |
|
EncryptedPacket
Declaration
public EncryptedPacket EncryptedPacket { get; set; }
Property Value
Kind
Declaration
[Obsolete]
public DataPacket.Types.Kind Kind { get; set; }
Property Value
Metrics
Declaration
public MetricsBatch Metrics { get; set; }
Property Value
Parser
Declaration
public static MessageParser<DataPacket> Parser { get; }
Property Value
ParticipantIdentity
participant identity of user that sent the message
Declaration
public string ParticipantIdentity { get; set; }
Property Value
ParticipantSid
sid of the user that sent the message
Declaration
public string ParticipantSid { get; set; }
Property Value
RpcAck
Declaration
public RpcAck RpcAck { get; set; }
Property Value
RpcRequest
Declaration
public RpcRequest RpcRequest { get; set; }
Property Value
RpcResponse
Declaration
public RpcResponse RpcResponse { get; set; }
Property Value
Sequence
sequence number of reliable packet
Declaration
public uint Sequence { get; set; }
Property Value
SipDtmf
Declaration
public SipDTMF SipDtmf { get; set; }
Property Value
Speaker
Declaration
[Obsolete]
public ActiveSpeakerUpdate Speaker { get; set; }
Property Value
StreamChunk
Declaration
public DataStream.Types.Chunk StreamChunk { get; set; }
Property Value
Declaration
public DataStream.Types.Header StreamHeader { get; set; }
Property Value
StreamTrailer
Declaration
public DataStream.Types.Trailer StreamTrailer { get; set; }
Property Value
Transcription
Declaration
public Transcription Transcription { get; set; }
Property Value
User
Declaration
public UserPacket User { get; set; }
Property Value
ValueCase
Declaration
public DataPacket.ValueOneofCase ValueCase { get; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| int |
The number of bytes required to write this message
to a coded output stream.
|
ClearValue()
Declaration
Clone()
Creates a deep clone of this object.
Declaration
public DataPacket Clone()
Returns
| Type |
Description |
| DataPacket |
A deep clone of this object.
|
Equals(DataPacket)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(DataPacket other)
Parameters
| Type |
Name |
Description |
| DataPacket |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
Merges the data from the specified coded input stream with the current message.
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
| Type |
Name |
Description |
| CodedInputStream |
input |
|
MergeFrom(DataPacket)
Merges the given message into this one.
Declaration
public void MergeFrom(DataPacket other)
Parameters
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
| Type |
Name |
Description |
| CodedOutputStream |
output |
Coded output stream to write the data to. Must not be null.
|
Implements
Google.Protobuf.IMessage<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage