Class DataTrackSubscriptionOptions
public sealed class DataTrackSubscriptionOptions : IMessage<DataTrackSubscriptionOptions>, IEquatable<DataTrackSubscriptionOptions>, IDeepCloneable<DataTrackSubscriptionOptions>, IBufferMessage, IMessage
- Inheritance
-
DataTrackSubscriptionOptions
- Implements
-
IMessage<DataTrackSubscriptionOptions>IDeepCloneable<DataTrackSubscriptionOptions>IBufferMessageIMessage
- Inherited Members
Constructors
DataTrackSubscriptionOptions()
public DataTrackSubscriptionOptions()
DataTrackSubscriptionOptions(DataTrackSubscriptionOptions)
public DataTrackSubscriptionOptions(DataTrackSubscriptionOptions other)
Parameters
Fields
TargetFpsFieldNumber
Field number for the "target_fps" field.
public const int TargetFpsFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasTargetFps
Gets whether the "target_fps" field is set
public bool HasTargetFps { get; }
Property Value
Parser
public static MessageParser<DataTrackSubscriptionOptions> Parser { get; }
Property Value
- MessageParser<DataTrackSubscriptionOptions>
TargetFps
Rate in frames per second (FPS) the subscriber wants to receive frames at. If omitted, the subscriber defaults to the publisher's fps
public uint TargetFps { 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.
ClearTargetFps()
Clears the value of the "target_fps" field
public void ClearTargetFps()
Clone()
Creates a deep clone of this object.
public DataTrackSubscriptionOptions Clone()
Returns
- DataTrackSubscriptionOptions
A deep clone of this object.
Equals(DataTrackSubscriptionOptions)
public bool Equals(DataTrackSubscriptionOptions other)
Parameters
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(DataTrackSubscriptionOptions)
Merges the given message into this one.
public void MergeFrom(DataTrackSubscriptionOptions other)
Parameters
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.