Class SIPMediaConfig
public sealed class SIPMediaConfig : IMessage<SIPMediaConfig>, IEquatable<SIPMediaConfig>, IDeepCloneable<SIPMediaConfig>, IBufferMessage, IMessage
- Inheritance
-
SIPMediaConfig
- Implements
-
IMessage<SIPMediaConfig>IDeepCloneable<SIPMediaConfig>IBufferMessageIMessage
- Inherited Members
Constructors
SIPMediaConfig()
public SIPMediaConfig()
SIPMediaConfig(SIPMediaConfig)
public SIPMediaConfig(SIPMediaConfig other)
Parameters
otherSIPMediaConfig
Fields
CodecsFieldNumber
Field number for the "codecs" field.
public const int CodecsFieldNumber = 2
Field Value
EncryptionFieldNumber
Field number for the "encryption" field.
public const int EncryptionFieldNumber = 3
Field Value
MediaTimeoutFieldNumber
Field number for the "media_timeout" field.
public const int MediaTimeoutFieldNumber = 4
Field Value
OnlyListedCodecsFieldNumber
Field number for the "only_listed_codecs" field.
public const int OnlyListedCodecsFieldNumber = 1
Field Value
Properties
Codecs
List of allowed codecs. If only_listed_codecs is not set, this list is added to default codecs.
public RepeatedField<SIPCodec> Codecs { get; }
Property Value
- RepeatedField<SIPCodec>
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Encryption
public SIPMediaEncryption Encryption { get; set; }
Property Value
HasEncryption
Gets whether the "encryption" field is set
public bool HasEncryption { get; }
Property Value
MediaTimeout
Use specific media timeout. If zero or not specified, will use default timeout.
public Duration MediaTimeout { get; set; }
Property Value
- Duration
OnlyListedCodecs
if set, ignore the default codecs and use the list below.
public bool OnlyListedCodecs { get; set; }
Property Value
Parser
public static MessageParser<SIPMediaConfig> Parser { get; }
Property Value
- MessageParser<SIPMediaConfig>
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.
ClearEncryption()
Clears the value of the "encryption" field
public void ClearEncryption()
Clone()
Creates a deep clone of this object.
public SIPMediaConfig Clone()
Returns
- SIPMediaConfig
A deep clone of this object.
Equals(SIPMediaConfig)
public bool Equals(SIPMediaConfig other)
Parameters
otherSIPMediaConfig
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(SIPMediaConfig)
Merges the given message into this one.
public void MergeFrom(SIPMediaConfig other)
Parameters
otherSIPMediaConfig
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.