Class ParticipantPermission
public sealed class ParticipantPermission : IMessage<ParticipantPermission>, IEquatable<ParticipantPermission>, IDeepCloneable<ParticipantPermission>, IBufferMessage, IMessage
- Inheritance
-
ParticipantPermission
- Implements
-
IMessage<ParticipantPermission>IDeepCloneable<ParticipantPermission>IBufferMessageIMessage
- Inherited Members
Constructors
ParticipantPermission()
public ParticipantPermission()
ParticipantPermission(ParticipantPermission)
public ParticipantPermission(ParticipantPermission other)
Parameters
otherParticipantPermission
Fields
AgentFieldNumber
Field number for the "agent" field.
public const int AgentFieldNumber = 11
Field Value
CanManageAgentSessionFieldNumber
Field number for the "can_manage_agent_session" field.
public const int CanManageAgentSessionFieldNumber = 13
Field Value
CanPublishDataFieldNumber
Field number for the "can_publish_data" field.
public const int CanPublishDataFieldNumber = 3
Field Value
CanPublishFieldNumber
Field number for the "can_publish" field.
public const int CanPublishFieldNumber = 2
Field Value
CanPublishSourcesFieldNumber
Field number for the "can_publish_sources" field.
public const int CanPublishSourcesFieldNumber = 9
Field Value
CanSubscribeFieldNumber
Field number for the "can_subscribe" field.
public const int CanSubscribeFieldNumber = 1
Field Value
CanSubscribeMetricsFieldNumber
Field number for the "can_subscribe_metrics" field.
public const int CanSubscribeMetricsFieldNumber = 12
Field Value
CanUpdateMetadataFieldNumber
Field number for the "can_update_metadata" field.
public const int CanUpdateMetadataFieldNumber = 10
Field Value
HiddenFieldNumber
Field number for the "hidden" field.
public const int HiddenFieldNumber = 7
Field Value
RecorderFieldNumber
Field number for the "recorder" field.
public const int RecorderFieldNumber = 8
Field Value
Properties
Agent
indicates that participant is an agent deprecated: use ParticipantInfo.kind instead
[Obsolete]
public bool Agent { get; set; }
Property Value
CanManageAgentSession
if a participant can manage an agent session via RemoteSession (control and access state)
public bool CanManageAgentSession { get; set; }
Property Value
CanPublish
allow participant to publish new tracks to room
public bool CanPublish { get; set; }
Property Value
CanPublishData
allow participant to publish data
public bool CanPublishData { get; set; }
Property Value
CanPublishSources
sources that are allowed to be published
public RepeatedField<TrackSource> CanPublishSources { get; }
Property Value
- RepeatedField<TrackSource>
CanSubscribe
allow participant to subscribe to other tracks in the room
public bool CanSubscribe { get; set; }
Property Value
CanSubscribeMetrics
if a participant can subscribe to metrics
public bool CanSubscribeMetrics { get; set; }
Property Value
CanUpdateMetadata
indicates that participant can update own metadata and attributes
public bool CanUpdateMetadata { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Hidden
indicates that it's hidden to others
public bool Hidden { get; set; }
Property Value
Parser
public static MessageParser<ParticipantPermission> Parser { get; }
Property Value
- MessageParser<ParticipantPermission>
Recorder
indicates it's a recorder instance deprecated: use ParticipantInfo.kind instead
[Obsolete]
public bool Recorder { 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.
Clone()
Creates a deep clone of this object.
public ParticipantPermission Clone()
Returns
- ParticipantPermission
A deep clone of this object.
Equals(ParticipantPermission)
public bool Equals(ParticipantPermission other)
Parameters
otherParticipantPermission
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(ParticipantPermission)
Merges the given message into this one.
public void MergeFrom(ParticipantPermission other)
Parameters
otherParticipantPermission
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.