Class VolumeDidChangeMessage
- Namespace
- AppleTvControlLibrary.Mrp.Protobuf
- Assembly
- AppleTvControlLibrary.Mrp.dll
public sealed class VolumeDidChangeMessage : IMessage<VolumeDidChangeMessage>, IEquatable<VolumeDidChangeMessage>, IDeepCloneable<VolumeDidChangeMessage>, IBufferMessage, IMessage
- Inheritance
-
VolumeDidChangeMessage
- Implements
-
IMessage<VolumeDidChangeMessage>IDeepCloneable<VolumeDidChangeMessage>IBufferMessageIMessage
- Inherited Members
Constructors
VolumeDidChangeMessage()
public VolumeDidChangeMessage()
VolumeDidChangeMessage(VolumeDidChangeMessage)
public VolumeDidChangeMessage(VolumeDidChangeMessage other)
Parameters
otherVolumeDidChangeMessage
Fields
EndpointUIDFieldNumber
Field number for the "endpointUID" field.
public const int EndpointUIDFieldNumber = 2
Field Value
OutputDeviceUIDFieldNumber
Field number for the "outputDeviceUID" field.
public const int OutputDeviceUIDFieldNumber = 3
Field Value
VolumeFieldNumber
Field number for the "volume" field.
public const int VolumeFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EndpointUID
public string EndpointUID { get; set; }
Property Value
HasEndpointUID
Gets whether the "endpointUID" field is set
public bool HasEndpointUID { get; }
Property Value
HasOutputDeviceUID
Gets whether the "outputDeviceUID" field is set
public bool HasOutputDeviceUID { get; }
Property Value
HasVolume
Gets whether the "volume" field is set
public bool HasVolume { get; }
Property Value
OutputDeviceUID
public string OutputDeviceUID { get; set; }
Property Value
Parser
public static MessageParser<VolumeDidChangeMessage> Parser { get; }
Property Value
- MessageParser<VolumeDidChangeMessage>
Volume
public float Volume { 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.
ClearEndpointUID()
Clears the value of the "endpointUID" field
public void ClearEndpointUID()
ClearOutputDeviceUID()
Clears the value of the "outputDeviceUID" field
public void ClearOutputDeviceUID()
ClearVolume()
Clears the value of the "volume" field
public void ClearVolume()
Clone()
Creates a deep clone of this object.
public VolumeDidChangeMessage Clone()
Returns
- VolumeDidChangeMessage
A deep clone of this object.
Equals(VolumeDidChangeMessage)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VolumeDidChangeMessage other)
Parameters
otherVolumeDidChangeMessageAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(VolumeDidChangeMessage)
Merges the given message into this one.
public void MergeFrom(VolumeDidChangeMessage other)
Parameters
otherVolumeDidChangeMessage
Remarks
See the user guide for precise merge semantics.
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.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
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.