template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 2798 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h

Public Methods

::fuchsia_settings::wire::DoNotDisturbSettings Build ()

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

bool has_user_initiated_do_not_disturb ()
void clear_user_initiated_do_not_disturb ()

Clears the user_initiated_do_not_disturb field.

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

O(number_of_fields) complexity.

bool & user_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're directly responding to a user-initiated event.

Note that the device could still be in DND mode even if this is set to

`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To

actually disable DND mode, set both fields to `false`.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

BuilderImpl & user_initiated_do_not_disturb (bool elem)

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're directly responding to a user-initiated event.

Note that the device could still be in DND mode even if this is set to

`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To

actually disable DND mode, set both fields to `false`.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

bool has_night_mode_initiated_do_not_disturb ()
void clear_night_mode_initiated_do_not_disturb ()

Clears the night_mode_initiated_do_not_disturb field.

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

O(number_of_fields) complexity.

bool & night_mode_initiated_do_not_disturb ()

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're trying to enable or disable DND based on a nightly schedule.

Note that the device could still be in DND mode even if this is set to

`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not

set that field to `false` unless you're directly responding to a

user-initiated event.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

BuilderImpl & night_mode_initiated_do_not_disturb (bool elem)

If true, the device is in do-not-disturb (DND) mode. Change this value

if you're trying to enable or disable DND based on a nightly schedule.

Note that the device could still be in DND mode even if this is set to

`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not

set that field to `false` unless you're directly responding to a

user-initiated event.

To know whether DND is enabled, you need to do a boolean OR of both

fields.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_settings::wire::DoNotDisturbSettings, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_settings::wire::DoNotDisturbSettings>> && frame)

Records