template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 507 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/wire_types.h

Public Methods

::fuchsia_power_battery::wire::BatteryInfo Build ()

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

bool has_status ()
void clear_status ()

Clears the status field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::BatteryStatus & status ()

General battery status with respect to presence

&

availability.

BuilderImpl & status (::fuchsia_power_battery::wire::BatteryStatus elem)

General battery status with respect to presence

&

availability.

bool has_charge_status ()
void clear_charge_status ()

Clears the charge_status field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::ChargeStatus & charge_status ()

The current state of the battery with respect to charging.

BuilderImpl & charge_status (::fuchsia_power_battery::wire::ChargeStatus elem)

The current state of the battery with respect to charging.

bool has_charge_source ()
void clear_charge_source ()

Clears the charge_source field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::ChargeSource & charge_source ()

The charge source while battery is actively charging.

When not actively charging, this will reflect that the source is

NONE (not charging) or UNKNOWN.

BuilderImpl & charge_source (::fuchsia_power_battery::wire::ChargeSource elem)

The charge source while battery is actively charging.

When not actively charging, this will reflect that the source is

NONE (not charging) or UNKNOWN.

bool has_level_percent ()
void clear_level_percent ()

Clears the level_percent field.

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

O(number_of_fields) complexity.

float & level_percent ()

Battery level in percentage. Level percent is only available if

level status is known.

BuilderImpl & level_percent (float elem)

Battery level in percentage. Level percent is only available if

level status is known.

bool has_level_status ()
void clear_level_status ()

Clears the level_status field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::LevelStatus & level_status ()

Battery level as a general status, including low and critical.

BuilderImpl & level_status (::fuchsia_power_battery::wire::LevelStatus elem)

Battery level as a general status, including low and critical.

bool has_health ()
void clear_health ()

Clears the health field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::HealthStatus & health ()

Overall battery health.

BuilderImpl & health (::fuchsia_power_battery::wire::HealthStatus elem)

Overall battery health.

bool has_time_remaining ()
void clear_time_remaining ()

Clears the time_remaining field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::TimeRemaining & time_remaining ()

Time remaining relative to the current charge status.

BuilderImpl & time_remaining (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_power_battery::wire::TimeRemaining>> elem)

Time remaining relative to the current charge status.

bool has_timestamp ()
void clear_timestamp ()

Clears the timestamp field.

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

O(number_of_fields) complexity.

int64_t & timestamp ()

Marking the time for measurement of battery level.

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

Marking the time for measurement of battery level.

bool has_present_voltage_mv ()
void clear_present_voltage_mv ()

Clears the present_voltage_mv field.

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

O(number_of_fields) complexity.

uint32_t & present_voltage_mv ()

Forward the voltage level in mv.

BuilderImpl & present_voltage_mv (uint32_t elem)

Forward the voltage level in mv.

bool has_remaining_capacity_uah ()
void clear_remaining_capacity_uah ()

Clears the remaining_capacity_uah field.

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

O(number_of_fields) complexity.

uint32_t & remaining_capacity_uah ()

Forward the battery capqacity in uAh.

BuilderImpl & remaining_capacity_uah (uint32_t elem)

Forward the battery capqacity in uAh.

bool has_battery_spec ()
void clear_battery_spec ()

Clears the battery_spec field.

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

O(number_of_fields) complexity.

::fuchsia_power_battery::wire::BatterySpec & battery_spec ()

Battery spec.

BuilderImpl & battery_spec (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_power_battery::wire::BatterySpec>> elem)

Battery spec.

bool has_full_capacity_uah ()
void clear_full_capacity_uah ()

Clears the full_capacity_uah field.

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

O(number_of_fields) complexity.

int32_t & full_capacity_uah ()

Full Charge Capacity in uAh.

BuilderImpl & full_capacity_uah (int32_t elem)

Full Charge Capacity in uAh.

bool has_temperature_mc ()
void clear_temperature_mc ()

Clears the temperature_mc field.

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

O(number_of_fields) complexity.

int32_t & temperature_mc ()

Temperature in MilliCelsius.

BuilderImpl & temperature_mc (int32_t elem)

Temperature in MilliCelsius.

bool has_present_charging_current_ua ()
void clear_present_charging_current_ua ()

Clears the present_charging_current_ua field.

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

O(number_of_fields) complexity.

int32_t & present_charging_current_ua ()

Current in MicroAmps. Positive for charging.

BuilderImpl & present_charging_current_ua (int32_t elem)

Current in MicroAmps. Positive for charging.

bool has_average_charging_current_ua ()
void clear_average_charging_current_ua ()

Clears the average_charging_current_ua field.

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

O(number_of_fields) complexity.

int32_t & average_charging_current_ua ()

Average Current in MicroAmps. Positive for charging.

BuilderImpl & average_charging_current_ua (int32_t elem)

Average Current in MicroAmps. Positive for charging.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_power_battery::wire::BatteryInfo, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_battery::wire::BatteryInfo>> && frame)

Records