Table of Contents

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>
IBufferMessage
IMessage
Inherited Members

Constructors

ContentItem()

public ContentItem()

ContentItem(ContentItem)

public ContentItem(ContentItem other)

Parameters

other ContentItem

Fields

AncestorIdentifierFieldNumber

Field number for the "ancestorIdentifier" field.

public const int AncestorIdentifierFieldNumber = 10

Field Value

int

ArtworkDataFieldNumber

Field number for the "artworkData" field.

public const int ArtworkDataFieldNumber = 3

Field Value

int

ArtworkDataHeightFieldNumber

Field number for the "artworkDataHeight" field.

public const int ArtworkDataHeightFieldNumber = 14

Field Value

int

ArtworkDataWidthFieldNumber

Field number for the "artworkDataWidth" field.

public const int ArtworkDataWidthFieldNumber = 13

Field Value

int

AvailableLanguageOptionsFieldNumber

Field number for the "availableLanguageOptions" field.

public const int AvailableLanguageOptionsFieldNumber = 5

Field Value

int

CurrentLanguageOptionsFieldNumber

Field number for the "currentLanguageOptions" field.

public const int CurrentLanguageOptionsFieldNumber = 6

Field Value

int

IdentifierFieldNumber

Field number for the "identifier" field.

public const int IdentifierFieldNumber = 1

Field Value

int

InfoFieldNumber

Field number for the "info" field.

public const int InfoFieldNumber = 4

Field Value

int

MetadataFieldNumber

Field number for the "metadata" field.

public const int MetadataFieldNumber = 2

Field Value

int

ParentIdentifierFieldNumber

Field number for the "parentIdentifier" field.

public const int ParentIdentifierFieldNumber = 9

Field Value

int

QueueIdentifierFieldNumber

Field number for the "queueIdentifier" field.

public const int QueueIdentifierFieldNumber = 11

Field Value

int

RequestIdentifierFieldNumber

Field number for the "requestIdentifier" field.

public const int RequestIdentifierFieldNumber = 12

Field Value

int

Properties

AncestorIdentifier

public string AncestorIdentifier { get; set; }

Property Value

string

ArtworkData

public ByteString ArtworkData { get; set; }

Property Value

ByteString

ArtworkDataHeight

public int ArtworkDataHeight { get; set; }

Property Value

int

ArtworkDataWidth

public int ArtworkDataWidth { get; set; }

Property Value

int

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

bool

HasArtworkData

Gets whether the "artworkData" field is set

public bool HasArtworkData { get; }

Property Value

bool

HasArtworkDataHeight

Gets whether the "artworkDataHeight" field is set

public bool HasArtworkDataHeight { get; }

Property Value

bool

HasArtworkDataWidth

Gets whether the "artworkDataWidth" field is set

public bool HasArtworkDataWidth { get; }

Property Value

bool

HasIdentifier

Gets whether the "identifier" field is set

public bool HasIdentifier { get; }

Property Value

bool

HasInfo

Gets whether the "info" field is set

public bool HasInfo { get; }

Property Value

bool

HasParentIdentifier

Gets whether the "parentIdentifier" field is set

public bool HasParentIdentifier { get; }

Property Value

bool

HasQueueIdentifier

Gets whether the "queueIdentifier" field is set

public bool HasQueueIdentifier { get; }

Property Value

bool

HasRequestIdentifier

Gets whether the "requestIdentifier" field is set

public bool HasRequestIdentifier { get; }

Property Value

bool

Identifier

public string Identifier { get; set; }

Property Value

string

Info

public string Info { get; set; }

Property Value

string

Metadata

public ContentItemMetadata Metadata { get; set; }

Property Value

ContentItemMetadata

ParentIdentifier

optional Lyrics lyrics = 7; repeated Sections sections = 8;

public string ParentIdentifier { get; set; }

Property Value

string

Parser

public static MessageParser<ContentItem> Parser { get; }

Property Value

MessageParser<ContentItem>

QueueIdentifier

public string QueueIdentifier { get; set; }

Property Value

string

RequestIdentifier

public string RequestIdentifier { get; set; }

Property Value

string

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

other ContentItem

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

other ContentItem

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

input CodedInputStream

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

output CodedOutputStream

Coded output stream to write the data to. Must not be null.