Class DataPacket
new DataPacket API
public sealed class DataPacket : IMessage<DataPacket>, IEquatable<DataPacket>, IDeepCloneable<DataPacket>, IBufferMessage, IMessage
- Inheritance
-
DataPacket
- Implements
-
IMessage<DataPacket>IDeepCloneable<DataPacket>IBufferMessageIMessage
- Inherited Members
Constructors
DataPacket()
public DataPacket()
DataPacket(DataPacket)
public DataPacket(DataPacket other)
Parameters
otherDataPacket
Fields
ChatMessageFieldNumber
Field number for the "chat_message" field.
public const int ChatMessageFieldNumber = 9
Field Value
DestinationIdentitiesFieldNumber
Field number for the "destination_identities" field.
public const int DestinationIdentitiesFieldNumber = 5
Field Value
EncryptedPacketFieldNumber
Field number for the "encrypted_packet" field.
public const int EncryptedPacketFieldNumber = 18
Field Value
KindFieldNumber
Field number for the "kind" field.
public const int KindFieldNumber = 1
Field Value
MetricsFieldNumber
Field number for the "metrics" field.
public const int MetricsFieldNumber = 8
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
public const int ParticipantIdentityFieldNumber = 4
Field Value
ParticipantSidFieldNumber
Field number for the "participant_sid" field.
public const int ParticipantSidFieldNumber = 17
Field Value
RpcAckFieldNumber
Field number for the "rpc_ack" field.
public const int RpcAckFieldNumber = 11
Field Value
RpcRequestFieldNumber
Field number for the "rpc_request" field.
public const int RpcRequestFieldNumber = 10
Field Value
RpcResponseFieldNumber
Field number for the "rpc_response" field.
public const int RpcResponseFieldNumber = 12
Field Value
SequenceFieldNumber
Field number for the "sequence" field.
public const int SequenceFieldNumber = 16
Field Value
SipDtmfFieldNumber
Field number for the "sip_dtmf" field.
public const int SipDtmfFieldNumber = 6
Field Value
SpeakerFieldNumber
Field number for the "speaker" field.
public const int SpeakerFieldNumber = 3
Field Value
StreamChunkFieldNumber
Field number for the "stream_chunk" field.
public const int StreamChunkFieldNumber = 14
Field Value
StreamHeaderFieldNumber
Field number for the "stream_header" field.
public const int StreamHeaderFieldNumber = 13
Field Value
StreamTrailerFieldNumber
Field number for the "stream_trailer" field.
public const int StreamTrailerFieldNumber = 15
Field Value
TranscriptionFieldNumber
Field number for the "transcription" field.
public const int TranscriptionFieldNumber = 7
Field Value
UserFieldNumber
Field number for the "user" field.
public const int UserFieldNumber = 2
Field Value
Properties
ChatMessage
public ChatMessage ChatMessage { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DestinationIdentities
identities of participants who will receive the message (sent to all by default)
public RepeatedField<string> DestinationIdentities { get; }
Property Value
- RepeatedField<string>
EncryptedPacket
public EncryptedPacket EncryptedPacket { get; set; }
Property Value
Kind
[Obsolete]
public DataPacket.Types.Kind Kind { get; set; }
Property Value
Metrics
public MetricsBatch Metrics { get; set; }
Property Value
Parser
public static MessageParser<DataPacket> Parser { get; }
Property Value
- MessageParser<DataPacket>
ParticipantIdentity
participant identity of user that sent the message
public string ParticipantIdentity { get; set; }
Property Value
ParticipantSid
sid of the user that sent the message
public string ParticipantSid { get; set; }
Property Value
RpcAck
public RpcAck RpcAck { get; set; }
Property Value
RpcRequest
public RpcRequest RpcRequest { get; set; }
Property Value
RpcResponse
public RpcResponse RpcResponse { get; set; }
Property Value
Sequence
sequence number of reliable packet
public uint Sequence { get; set; }
Property Value
SipDtmf
public SipDTMF SipDtmf { get; set; }
Property Value
Speaker
[Obsolete]
public ActiveSpeakerUpdate Speaker { get; set; }
Property Value
StreamChunk
public DataStream.Types.Chunk StreamChunk { get; set; }
Property Value
StreamHeader
public DataStream.Types.Header StreamHeader { get; set; }
Property Value
StreamTrailer
public DataStream.Types.Trailer StreamTrailer { get; set; }
Property Value
Transcription
public Transcription Transcription { get; set; }
Property Value
User
public UserPacket User { get; set; }
Property Value
ValueCase
public DataPacket.ValueOneofCase ValueCase { get; }
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.
ClearValue()
public void ClearValue()
Clone()
Creates a deep clone of this object.
public DataPacket Clone()
Returns
- DataPacket
A deep clone of this object.
Equals(DataPacket)
public bool Equals(DataPacket other)
Parameters
otherDataPacket
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(DataPacket)
Merges the given message into this one.
public void MergeFrom(DataPacket other)
Parameters
otherDataPacket
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.