Class SendDataRequest
public sealed class SendDataRequest : IMessage<SendDataRequest>, IEquatable<SendDataRequest>, IDeepCloneable<SendDataRequest>, IBufferMessage, IMessage
- Inheritance
-
SendDataRequest
- Implements
-
IMessage<SendDataRequest>IDeepCloneable<SendDataRequest>IBufferMessageIMessage
- Inherited Members
Constructors
SendDataRequest()
public SendDataRequest()
SendDataRequest(SendDataRequest)
public SendDataRequest(SendDataRequest other)
Parameters
otherSendDataRequest
Fields
DataFieldNumber
Field number for the "data" field.
public const int DataFieldNumber = 2
Field Value
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 = 4
Field Value
KindFieldNumber
Field number for the "kind" field.
public const int KindFieldNumber = 3
Field Value
NonceFieldNumber
Field number for the "nonce" field.
public const int NonceFieldNumber = 7
Field Value
RoomFieldNumber
Field number for the "room" field.
public const int RoomFieldNumber = 1
Field Value
TopicFieldNumber
Field number for the "topic" field.
public const int TopicFieldNumber = 5
Field Value
Properties
Data
public ByteString Data { get; set; }
Property Value
- ByteString
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DestinationIdentities
when set, only forward to these identities
public RepeatedField<string> DestinationIdentities { get; }
Property Value
- RepeatedField<string>
DestinationSids
mark deprecated
[Obsolete]
public RepeatedField<string> DestinationSids { get; }
Property Value
- RepeatedField<string>
HasTopic
Gets whether the "topic" field is set
public bool HasTopic { get; }
Property Value
Kind
public DataPacket.Types.Kind Kind { 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<SendDataRequest> Parser { get; }
Property Value
- MessageParser<SendDataRequest>
Room
public string Room { get; set; }
Property Value
Topic
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.
ClearTopic()
Clears the value of the "topic" field
public void ClearTopic()
Clone()
Creates a deep clone of this object.
public SendDataRequest Clone()
Returns
- SendDataRequest
A deep clone of this object.
Equals(SendDataRequest)
public bool Equals(SendDataRequest other)
Parameters
otherSendDataRequest
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(SendDataRequest)
Merges the given message into this one.
public void MergeFrom(SendDataRequest other)
Parameters
otherSendDataRequest
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.