# GCKMediaQueueDataBuilder Class

[Instance Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#pub-methods) \| [Properties](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#properties) GCKMediaQueueDataBuilder Class Reference

## Overview

A builder object for constructing new or derived `GCKMediaQueueData` instances.

The builder may be used to derive `GCKMediaQueueData` from an existing one.

Since
:   4.4.1

Inherits NSObject.

|---|---|
| ## Instance Method Summary ||
| (instancetype) | - [initWithQueueType:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#abf376b9d154c50b591f211d2bd910614) |
|   | Constructs a new `GCKMediaQueueData` with the given required attributes, and all other attributes initialized to default values. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#abf376b9d154c50b591f211d2bd910614) |
|   ||
| (instancetype) | - [initWithQueueData:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a30290f858d893b2a2995dbfebd52dc9e) |
|   | Constructs a new `GCKMediaQueueData` with the given `GCKMediaQueueData` instance. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a30290f858d893b2a2995dbfebd52dc9e) |
|   ||
| (instancetype) | - **init** |
|   ||
| ([GCKMediaQueueData](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data.md.txt) \*) | - [build](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a7b0654e7bb8a1c32091aa520523029eb) |
|   | Builds a `GCKMediaQueueData` using the builder's current attributes. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a7b0654e7bb8a1c32091aa520523029eb) |
|   ||

|---|---|
| ## Property Summary ||
| [GCKMediaQueueType](https://developers.google.com/cast/docs/reference/ios/g_c_k_media_queue_data_8h.md.txt#a86077ae076b4f939158e54de26ab6b12) | [queueType](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#af22e4c00eb1b891719b263e100676e54) |
|   | The queue type. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#af22e4c00eb1b891719b263e100676e54) |
|   ||
| NSString \* | [queueID](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a5ac23e031453097110674fb6be30239e) |
|   | The queue id. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a5ac23e031453097110674fb6be30239e) |
|   ||
| NSString \* | [name](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a838651e5fcd6171be75f7dfb62ed318a) |
|   | The display name for queue. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a838651e5fcd6171be75f7dfb62ed318a) |
|   ||
| NSString \* | [entity](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#aa2fb5fbbd3a1fd984bcf06e9518ac686) |
|   | The deep link for the media as used by Google Assistant, if any. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#aa2fb5fbbd3a1fd984bcf06e9518ac686) |
|   ||
| [GCKMediaRepeatMode](https://developers.google.com/cast/docs/reference/ios/g_c_k_media_common_8h.md.txt#aad72b610da8ac7e1785975bd5f251406) | [repeatMode](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#ad65a67973ae265a0608a5ba7b4b3d5b8) |
|   | The repeat mode of queue. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#ad65a67973ae265a0608a5ba7b4b3d5b8) |
|   ||
| [GCKMediaQueueContainerMetadata](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_container_metadata.md.txt) \* | [containerMetadata](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a460179b35debb10aa0fbd8f8737bfee6) |
|   | The container metadata. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a460179b35debb10aa0fbd8f8737bfee6) |
|   ||
| NSUInteger | [startIndex](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a755826add2a1c57525f0c132b51a77a9) |
|   | The index of the item to start playing with. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a755826add2a1c57525f0c132b51a77a9) |
|   ||
| NSTimeInterval | [startTime](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#affc0c06bf57b46cb6edc2c1fb22498b0) |
|   | The playback start time, in seconds. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#affc0c06bf57b46cb6edc2c1fb22498b0) |
|   ||
| NSArray\< [GCKMediaQueueItem](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_item.md.txt) \* \> \* | [items](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a0fa413b3a57ab872565ff6450e6c8531) |
|   | The queueItems. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data_builder.md.txt#a0fa413b3a57ab872565ff6450e6c8531) |
|   ||

## Method Detail

|---|---|---|---|---|
| - (instancetype) initWithQueueType: |   | ([GCKMediaQueueType](https://developers.google.com/cast/docs/reference/ios/g_c_k_media_queue_data_8h.md.txt#a86077ae076b4f939158e54de26ab6b12)) | *queueType* |   |

Constructs a new `GCKMediaQueueData` with the given required attributes, and all other attributes initialized to default values.

|---|---|---|---|---|
| - (instancetype) initWithQueueData: |   | ([GCKMediaQueueData](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data.md.txt) \*) | *queueData* |   |

Constructs a new `GCKMediaQueueData` with the given `GCKMediaQueueData` instance.

|---|---|---|---|
| - ([GCKMediaQueueData](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_data.md.txt) \*) build |   |   |   |

Builds a `GCKMediaQueueData` using the builder's current attributes.

Returns
:   The new `GCKMediaQueueData` instance.

## Property Detail

- ([GCKMediaQueueType](https://developers.google.com/cast/docs/reference/ios/g_c_k_media_queue_data_8h.md.txt#a86077ae076b4f939158e54de26ab6b12)) queueType readwritenonatomicassign The queue type.
- (NSString\*) queueID readwritenonatomiccopy The queue id.
- (NSString\*) name readwritenonatomiccopy The display name for queue.
- (NSString\*) entity readwritenonatomiccopy The deep link for the media as used by Google Assistant, if any.
- ([GCKMediaRepeatMode](https://developers.google.com/cast/docs/reference/ios/g_c_k_media_common_8h.md.txt#aad72b610da8ac7e1785975bd5f251406)) repeatMode readwritenonatomicassign The repeat mode of queue.
- ([GCKMediaQueueContainerMetadata](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_container_metadata.md.txt)\*) containerMetadata readwritenonatomiccopy The container metadata.
- (NSUInteger) startIndex readwritenonatomicassign The index of the item to start playing with.

Only for load request.
- (NSTimeInterval) startTime readwritenonatomicassign The playback start time, in seconds.

Only for load request. If not set, the receiver will set the start time depending on the stream type. For non-live streams: loaded from 0. For live streams: loaded from the most recent position.
- (NSArray\<[GCKMediaQueueItem](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_media_queue_item.md.txt) \*\>\*) items readwritenonatomiccopy The queueItems.

Only for load requests.