template <typename BuilderImpl>

class WireTableBaseBuilder

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

Public Methods

::fuchsia_power_broker::wire::LeaseDependency Build ()

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

bool has_requires_token ()
void clear_requires_token ()

Clears the requires_token field.

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

O(number_of_fields) complexity.

::zx::event & requires_token ()

Must supply a token registered via the RegisterDependencyToken call of

the required element's ElementControl protocol.

BuilderImpl & requires_token (::zx::event elem)

Must supply a token registered via the RegisterDependencyToken call of

the required element's ElementControl protocol.

bool has_requires_level ()
void clear_requires_level ()

Clears the requires_level field.

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

O(number_of_fields) complexity.

uint8_t & requires_level ()

Level of the element required. Most clients will want to use this, but

for forward compatibility, requires_level_by_preference may be used

instead.

BuilderImpl & requires_level (uint8_t elem)

Level of the element required. Most clients will want to use this, but

for forward compatibility, requires_level_by_preference may be used

instead.

bool has_requires_level_by_preference ()
void clear_requires_level_by_preference ()

Clears the requires_level_by_preference field.

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

O(number_of_fields) complexity.

::fidl::VectorView<uint8_t> & requires_level_by_preference ()

Advanced Options

(Optional) For forward compatibility, the list of levels in decreasing

preferential order that power broker should attempt to make required for

this dependency to be satisfied. The first level in list that is a valid

level will become the required level. If this is set, `requires_level`

will be ignored.

Platform clients can use this list to keep backwards compatibility with

dependencies by providing multiple levels that the dependency may have

implemented in older API levels.

BuilderImpl & requires_level_by_preference (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView<uint8_t>>> elem)

Advanced Options

(Optional) For forward compatibility, the list of levels in decreasing

preferential order that power broker should attempt to make required for

this dependency to be satisfied. The first level in list that is a valid

level will become the required level. If this is set, `requires_level`

will be ignored.

Platform clients can use this list to keep backwards compatibility with

dependencies by providing multiple levels that the dependency may have

implemented in older API levels.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_power_broker::wire::LeaseDependency, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_broker::wire::LeaseDependency>> && frame)

Records