Class TokenSourceRequest
public sealed class TokenSourceRequest : IMessage<TokenSourceRequest>, IEquatable<TokenSourceRequest>, IDeepCloneable<TokenSourceRequest>, IBufferMessage, IMessage
- Inheritance
-
TokenSourceRequest
- Implements
-
IMessage<TokenSourceRequest>IDeepCloneable<TokenSourceRequest>IBufferMessageIMessage
- Inherited Members
Constructors
TokenSourceRequest()
public TokenSourceRequest()
TokenSourceRequest(TokenSourceRequest)
public TokenSourceRequest(TokenSourceRequest other)
Parameters
otherTokenSourceRequest
Fields
ParticipantAttributesFieldNumber
Field number for the "participant_attributes" field.
public const int ParticipantAttributesFieldNumber = 5
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
public const int ParticipantIdentityFieldNumber = 3
Field Value
ParticipantMetadataFieldNumber
Field number for the "participant_metadata" field.
public const int ParticipantMetadataFieldNumber = 4
Field Value
ParticipantNameFieldNumber
Field number for the "participant_name" field.
public const int ParticipantNameFieldNumber = 2
Field Value
RoomConfigFieldNumber
Field number for the "room_config" field.
public const int RoomConfigFieldNumber = 6
Field Value
RoomNameFieldNumber
Field number for the "room_name" field.
public const int RoomNameFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasParticipantIdentity
Gets whether the "participant_identity" field is set
public bool HasParticipantIdentity { get; }
Property Value
HasParticipantMetadata
Gets whether the "participant_metadata" field is set
public bool HasParticipantMetadata { get; }
Property Value
HasParticipantName
Gets whether the "participant_name" field is set
public bool HasParticipantName { get; }
Property Value
HasRoomName
Gets whether the "room_name" field is set
public bool HasRoomName { get; }
Property Value
Parser
public static MessageParser<TokenSourceRequest> Parser { get; }
Property Value
- MessageParser<TokenSourceRequest>
ParticipantAttributes
Any participant attributes being included along with the credentials generation operation
public MapField<string, string> ParticipantAttributes { get; }
Property Value
ParticipantIdentity
The identity of the participant being requested for this client when generating credentials
public string ParticipantIdentity { get; set; }
Property Value
ParticipantMetadata
Any participant metadata being included along with the credentials generation operation
public string ParticipantMetadata { get; set; }
Property Value
ParticipantName
The name of the participant being requested for this client when generating credentials
public string ParticipantName { get; set; }
Property Value
RoomConfig
A RoomConfiguration object can be passed to request extra parameters should be included when generating connection credentials - dispatching agents, defining egress settings, etc More info: https://docs.livekit.io/home/get-started/authentication/#room-configuration
public RoomConfiguration RoomConfig { get; set; }
Property Value
RoomName
The name of the room being requested when generating credentials
public string RoomName { 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.
ClearParticipantIdentity()
Clears the value of the "participant_identity" field
public void ClearParticipantIdentity()
ClearParticipantMetadata()
Clears the value of the "participant_metadata" field
public void ClearParticipantMetadata()
ClearParticipantName()
Clears the value of the "participant_name" field
public void ClearParticipantName()
ClearRoomName()
Clears the value of the "room_name" field
public void ClearRoomName()
Clone()
Creates a deep clone of this object.
public TokenSourceRequest Clone()
Returns
- TokenSourceRequest
A deep clone of this object.
Equals(TokenSourceRequest)
public bool Equals(TokenSourceRequest other)
Parameters
otherTokenSourceRequest
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(TokenSourceRequest)
Merges the given message into this one.
public void MergeFrom(TokenSourceRequest other)
Parameters
otherTokenSourceRequest
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.