template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 741 of file fidling/gen/sdk/fidl/fuchsia.media.sessions2/fuchsia.media.sessions2/cpp/fidl/fuchsia.media.sessions2/cpp/wire_types.h

Public Methods

::fuchsia_media_sessions2::wire::PlayerStatus Build ()

Build and return the table. The builder should not be used after this.

bool has_duration ()
void clear_duration ()

Clears the duration field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

int64_t & duration ()

Total duration of playing media.

If this value is omitted, the duration is unknown, not applicable or unchanged. Initially,

the duration is assumed to be unknown.

BuilderImpl & duration (Wrapper_Ignore_Me_< ::fidl::ObjectView<int64_t>> elem)

Total duration of playing media.

If this value is omitted, the duration is unknown, not applicable or unchanged. Initially,

the duration is assumed to be unknown.

bool has_player_state ()
void clear_player_state ()

Clears the player_state field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_media_sessions2::wire::PlayerState & player_state ()

State of the player.

If this field is omitted, the value is unchanged. Initially, the value is `IDLE`.

BuilderImpl & player_state (::fuchsia_media_sessions2::wire::PlayerState elem)

State of the player.

If this field is omitted, the value is unchanged. Initially, the value is `IDLE`.

bool has_timeline_function ()
void clear_timeline_function ()

Clears the timeline_function field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_media::wire::TimelineFunction & timeline_function ()

A playback function that describes the position and rate of

play through the media as a function of `CLOCK_MONOTONIC`.

If this field is omitted, the value is unchanged. Initially, `reference_delta` is 1 and

the remaining constituent fields are 0.

BuilderImpl & timeline_function (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_media::wire::TimelineFunction>> elem)

A playback function that describes the position and rate of

play through the media as a function of `CLOCK_MONOTONIC`.

If this field is omitted, the value is unchanged. Initially, `reference_delta` is 1 and

the remaining constituent fields are 0.

bool has_repeat_mode ()
void clear_repeat_mode ()

Clears the repeat_mode field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_media_sessions2::wire::RepeatMode & repeat_mode ()

Repeat mode of the player.

If this field is omitted, the value is unchanged. Initially, the value is `NONE`.

BuilderImpl & repeat_mode (::fuchsia_media_sessions2::wire::RepeatMode elem)

Repeat mode of the player.

If this field is omitted, the value is unchanged. Initially, the value is `NONE`.

bool has_shuffle_on ()
void clear_shuffle_on ()

Clears the shuffle_on field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

bool & shuffle_on ()

Shuffle mode of the player.

If this field is omitted, the value is unchanged. Initially, the value is false.

BuilderImpl & shuffle_on (bool elem)

Shuffle mode of the player.

If this field is omitted, the value is unchanged. Initially, the value is false.

bool has_content_type ()
void clear_content_type ()

Clears the content_type field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_media_sessions2::wire::ContentType & content_type ()

The type of content playing back.

If this field is omitted, the value is unchanged. Initially, the value is `OTHER`.

BuilderImpl & content_type (::fuchsia_media_sessions2::wire::ContentType elem)

The type of content playing back.

If this field is omitted, the value is unchanged. Initially, the value is `OTHER`.

bool has_error ()
void clear_error ()

Clears the error field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_media_sessions2::wire::Error & error ()

An error the player may have encountered.

This field is omitted unless there is an error. Once an error is indicated, it cannot

be rescinded.

BuilderImpl & error (::fuchsia_media_sessions2::wire::Error elem)

An error the player may have encountered.

This field is omitted unless there is an error. Once an error is indicated, it cannot

be rescinded.

bool has_is_live ()
void clear_is_live ()

Clears the is_live field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

bool & is_live ()

Whether the playing media is live (such as television or a live stream).

If this field is omitted, the value is unchanged. Initially, the value is false.

BuilderImpl & is_live (bool elem)

Whether the playing media is live (such as television or a live stream).

If this field is omitted, the value is unchanged. Initially, the value is false.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_media_sessions2::wire::PlayerStatus, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_media_sessions2::wire::PlayerStatus>> && frame)

Records