template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 3224 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

Public Methods

::fuchsia_feedback::wire::LastReboot Build ()

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

bool has_graceful ()
void clear_graceful ()

Clears the graceful field.

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

O(number_of_fields) complexity.

bool & graceful ()

Whether the last reboot was graceful, i.e. the device didn't reboot in response to an error

and rebooted in a controlled manner.

This field allows clients to know whether the last reboot was graceful without having to

parse the optional |reason| field. This is useful when |reason| is not set, i.e. because

the system doesn't know more than the fact that the reboot was graceful, or when the API

evolves to support new RebootReason values and the clients hasn't been updated yet.

This field is always has a value if |reason| is provided. However, |reason| might not

always have a value this field is provided.

BuilderImpl & graceful (bool elem)

Whether the last reboot was graceful, i.e. the device didn't reboot in response to an error

and rebooted in a controlled manner.

This field allows clients to know whether the last reboot was graceful without having to

parse the optional |reason| field. This is useful when |reason| is not set, i.e. because

the system doesn't know more than the fact that the reboot was graceful, or when the API

evolves to support new RebootReason values and the clients hasn't been updated yet.

This field is always has a value if |reason| is provided. However, |reason| might not

always have a value this field is provided.

bool has_reason ()
void clear_reason ()

Clears the reason field.

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

O(number_of_fields) complexity.

::fuchsia_feedback::wire::RebootReason & reason ()

Why a device last rebooted.

BuilderImpl & reason (::fuchsia_feedback::wire::RebootReason elem)

Why a device last rebooted.

bool has_uptime ()
void clear_uptime ()

Clears the uptime field.

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

O(number_of_fields) complexity.

int64_t & uptime ()

The uptime of the device before it rebooted. This is the amount of time since boot,

including any time spent in suspend-to-idle.

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

The uptime of the device before it rebooted. This is the amount of time since boot,

including any time spent in suspend-to-idle.

bool has_planned ()
void clear_planned ()

Clears the planned field.

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

O(number_of_fields) complexity.

bool & planned ()

Whether the last reboot was planned, i.e. the device rebooted in accordance to a schedule

applied by the system.

This field allows clients to know whether the last reboot was planned without having to

parse the |reason| field.

Planned reboots are by nature, graceful.

BuilderImpl & planned (bool elem)

Whether the last reboot was planned, i.e. the device rebooted in accordance to a schedule

applied by the system.

This field allows clients to know whether the last reboot was planned without having to

parse the |reason| field.

Planned reboots are by nature, graceful.

bool has_runtime ()
void clear_runtime ()

Clears the runtime field.

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

O(number_of_fields) complexity.

int64_t & runtime ()

The runtime of the device before it rebooted. This is the amount of time since boot

excluding any time spent in suspend-to-idle.

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

The runtime of the device before it rebooted. This is the amount of time since boot

excluding any time spent in suspend-to-idle.

bool has_action ()
void clear_action ()

Clears the action field.

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

O(number_of_fields) complexity.

::fuchsia_feedback::wire::ShutdownAction & action ()

How a device last shutdown.

BuilderImpl & action (::fuchsia_feedback::wire::ShutdownAction elem)

How a device last shutdown.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_feedback::wire::LastReboot, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_feedback::wire::LastReboot>> && frame)

Records