template <typename BuilderImpl>
class WireTableBaseBuilder
Defined at line 1061 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::LeaseSchema Build ()
Build and return the table. The builder should not be used after this.
bool has_lease_token ()
void clear_lease_token ()
Clears the lease_token field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::zx::eventpair & lease_token ()
The half of an eventpair to be held by the Power Broker. The other
half of the pair should be retained by the client. See `LeaseToken`
below for more usage details.
BuilderImpl & lease_token (::zx::eventpair elem)
The half of an eventpair to be held by the Power Broker. The other
half of the pair should be retained by the client. See `LeaseToken`
below for more usage details.
bool has_lease_name ()
void clear_lease_name ()
Clears the lease_name field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::StringView & lease_name ()
Human-readable name for logging and debug purposes.
BuilderImpl & lease_name (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)
Human-readable name for logging and debug purposes.
bool has_dependencies ()
void clear_dependencies ()
Clears the dependencies field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::VectorView< ::fuchsia_power_broker::wire::LeaseDependency> & dependencies ()
List of dependencies for this lease.
BuilderImpl & dependencies (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_power_broker::wire::LeaseDependency>>> elem)
List of dependencies for this lease.
bool has_should_return_pending_lease ()
void clear_should_return_pending_lease ()
Clears the should_return_pending_lease field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & should_return_pending_lease ()
(Optional) By default, `Topology.Lease` will wait until the lease is
`SATISFIED` before returning. If `should_return_pending_lease` is true,
it will instead return as soon as the lease has been granted by Power
Broker but it may still be `PENDING`. Clients can listen for
`LEASE_SIGNAL_SATISFIED` to know when the lease has been `SATISFIED`.
BuilderImpl & should_return_pending_lease (bool elem)
(Optional) By default, `Topology.Lease` will wait until the lease is
`SATISFIED` before returning. If `should_return_pending_lease` is true,
it will instead return as soon as the lease has been granted by Power
Broker but it may still be `PENDING`. Clients can listen for
`LEASE_SIGNAL_SATISFIED` to know when the lease has been `SATISFIED`.
Protected Methods
void WireTableBaseBuilder< ::fuchsia_power_broker::wire::LeaseSchema, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_power_broker::wire::LeaseSchema>> && frame)