Class ContentItem
- Namespace
- AppleTvControlLibrary.Mrp.Protobuf
- Assembly
- AppleTvControlLibrary.Mrp.dll
public sealed class ContentItem : IMessage<ContentItem>, IEquatable<ContentItem>, IDeepCloneable<ContentItem>, IBufferMessage, IMessage
- Inheritance
-
ContentItem
- Implements
-
IMessage<ContentItem>IDeepCloneable<ContentItem>IBufferMessageIMessage
- Inherited Members
Constructors
ContentItem()
public ContentItem()
ContentItem(ContentItem)
public ContentItem(ContentItem other)
Parameters
otherContentItem
Fields
AncestorIdentifierFieldNumber
Field number for the "ancestorIdentifier" field.
public const int AncestorIdentifierFieldNumber = 10
Field Value
ArtworkDataFieldNumber
Field number for the "artworkData" field.
public const int ArtworkDataFieldNumber = 3
Field Value
ArtworkDataHeightFieldNumber
Field number for the "artworkDataHeight" field.
public const int ArtworkDataHeightFieldNumber = 14
Field Value
ArtworkDataWidthFieldNumber
Field number for the "artworkDataWidth" field.
public const int ArtworkDataWidthFieldNumber = 13
Field Value
AvailableLanguageOptionsFieldNumber
Field number for the "availableLanguageOptions" field.
public const int AvailableLanguageOptionsFieldNumber = 5
Field Value
CurrentLanguageOptionsFieldNumber
Field number for the "currentLanguageOptions" field.
public const int CurrentLanguageOptionsFieldNumber = 6
Field Value
IdentifierFieldNumber
Field number for the "identifier" field.
public const int IdentifierFieldNumber = 1
Field Value
InfoFieldNumber
Field number for the "info" field.
public const int InfoFieldNumber = 4
Field Value
MetadataFieldNumber
Field number for the "metadata" field.
public const int MetadataFieldNumber = 2
Field Value
ParentIdentifierFieldNumber
Field number for the "parentIdentifier" field.
public const int ParentIdentifierFieldNumber = 9
Field Value
QueueIdentifierFieldNumber
Field number for the "queueIdentifier" field.
public const int QueueIdentifierFieldNumber = 11
Field Value
RequestIdentifierFieldNumber
Field number for the "requestIdentifier" field.
public const int RequestIdentifierFieldNumber = 12
Field Value
Properties
AncestorIdentifier
public string AncestorIdentifier { get; set; }
Property Value
ArtworkData
public ByteString ArtworkData { get; set; }
Property Value
- ByteString
ArtworkDataHeight
public int ArtworkDataHeight { get; set; }
Property Value
ArtworkDataWidth
public int ArtworkDataWidth { get; set; }
Property Value
AvailableLanguageOptions
public RepeatedField<LanguageOptionGroup> AvailableLanguageOptions { get; }
Property Value
- RepeatedField<LanguageOptionGroup>
CurrentLanguageOptions
public RepeatedField<LanguageOption> CurrentLanguageOptions { get; }
Property Value
- RepeatedField<LanguageOption>
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasAncestorIdentifier
Gets whether the "ancestorIdentifier" field is set
public bool HasAncestorIdentifier { get; }
Property Value
HasArtworkData
Gets whether the "artworkData" field is set
public bool HasArtworkData { get; }
Property Value
HasArtworkDataHeight
Gets whether the "artworkDataHeight" field is set
public bool HasArtworkDataHeight { get; }
Property Value
HasArtworkDataWidth
Gets whether the "artworkDataWidth" field is set
public bool HasArtworkDataWidth { get; }
Property Value
HasIdentifier
Gets whether the "identifier" field is set
public bool HasIdentifier { get; }
Property Value
HasInfo
Gets whether the "info" field is set
public bool HasInfo { get; }
Property Value
HasParentIdentifier
Gets whether the "parentIdentifier" field is set
public bool HasParentIdentifier { get; }
Property Value
HasQueueIdentifier
Gets whether the "queueIdentifier" field is set
public bool HasQueueIdentifier { get; }
Property Value
HasRequestIdentifier
Gets whether the "requestIdentifier" field is set
public bool HasRequestIdentifier { get; }
Property Value
Identifier
public string Identifier { get; set; }
Property Value
Info
public string Info { get; set; }
Property Value
Metadata
public ContentItemMetadata Metadata { get; set; }
Property Value
ParentIdentifier
optional Lyrics lyrics = 7; repeated Sections sections = 8;
public string ParentIdentifier { get; set; }
Property Value
Parser
public static MessageParser<ContentItem> Parser { get; }
Property Value
- MessageParser<ContentItem>
QueueIdentifier
public string QueueIdentifier { get; set; }
Property Value
RequestIdentifier
public string RequestIdentifier { 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.
ClearAncestorIdentifier()
Clears the value of the "ancestorIdentifier" field
public void ClearAncestorIdentifier()
ClearArtworkData()
Clears the value of the "artworkData" field
public void ClearArtworkData()
ClearArtworkDataHeight()
Clears the value of the "artworkDataHeight" field
public void ClearArtworkDataHeight()
ClearArtworkDataWidth()
Clears the value of the "artworkDataWidth" field
public void ClearArtworkDataWidth()
ClearIdentifier()
Clears the value of the "identifier" field
public void ClearIdentifier()
ClearInfo()
Clears the value of the "info" field
public void ClearInfo()
ClearParentIdentifier()
Clears the value of the "parentIdentifier" field
public void ClearParentIdentifier()
ClearQueueIdentifier()
Clears the value of the "queueIdentifier" field
public void ClearQueueIdentifier()
ClearRequestIdentifier()
Clears the value of the "requestIdentifier" field
public void ClearRequestIdentifier()
Clone()
Creates a deep clone of this object.
public ContentItem Clone()
Returns
- ContentItem
A deep clone of this object.
Equals(ContentItem)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ContentItem other)
Parameters
otherContentItemAn 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(ContentItem)
Merges the given message into this one.
public void MergeFrom(ContentItem other)
Parameters
otherContentItem
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.