template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 569 of file fidling/gen/sdk/fidl/fuchsia.driver.framework/fuchsia.driver.framework/cpp/fidl/fuchsia.driver.framework/cpp/wire_types.h

Public Methods

::fuchsia_driver_framework::wire::DriverInfo Build ()

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

bool has_url ()
void clear_url ()

Clears the url field.

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

O(number_of_fields) complexity.

::fidl::StringView & url ()

URL of the driver component.

BuilderImpl & url (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

URL of the driver component.

bool has_name ()
void clear_name ()

Clears the name field.

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

O(number_of_fields) complexity.

::fidl::StringView & name ()

Name of the driver, taken from the first field of the `ZIRCON_DRIVER`

macro in the driver.

BuilderImpl & name (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

Name of the driver, taken from the first field of the `ZIRCON_DRIVER`

macro in the driver.

bool has_colocate ()
void clear_colocate ()

Clears the colocate field.

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

O(number_of_fields) complexity.

bool & colocate ()

If this is true then the driver should be colocated in its parent's DriverHost.

BuilderImpl & colocate (bool elem)

If this is true then the driver should be colocated in its parent's DriverHost.

bool has_package_type ()
void clear_package_type ()

Clears the package_type field.

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

O(number_of_fields) complexity.

::fuchsia_driver_framework::wire::DriverPackageType & package_type ()

The type of package this driver is in.

BuilderImpl & package_type (::fuchsia_driver_framework::wire::DriverPackageType elem)

The type of package this driver is in.

bool has_is_fallback ()
void clear_is_fallback ()

Clears the is_fallback field.

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

O(number_of_fields) complexity.

bool & is_fallback ()

If this is true then the driver is a fallback driver. Fallback drivers have a

lesser priority for binding, so they will only be chosen for binding if there

is no non-fallback driver that has matched.

BuilderImpl & is_fallback (bool elem)

If this is true then the driver is a fallback driver. Fallback drivers have a

lesser priority for binding, so they will only be chosen for binding if there

is no non-fallback driver that has matched.

bool has_device_categories ()
void clear_device_categories ()

Clears the device_categories field.

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

O(number_of_fields) complexity.

::fidl::VectorView< ::fuchsia_driver_framework::wire::DeviceCategory> & device_categories ()

Device categories

BuilderImpl & device_categories (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_driver_framework::wire::DeviceCategory>>> elem)

Device categories

bool has_bind_rules_bytecode ()
void clear_bind_rules_bytecode ()

Clears the bind_rules_bytecode field.

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

O(number_of_fields) complexity.

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

Bind rules which declare set of constraints to evaluate in order to

determine whether the driver indexer should bind this driver to a

device.

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

Bind rules which declare set of constraints to evaluate in order to

determine whether the driver indexer should bind this driver to a

device.

bool has_driver_framework_version ()
void clear_driver_framework_version ()

Clears the driver_framework_version field.

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

O(number_of_fields) complexity.

uint8_t & driver_framework_version ()

The version of the driver framework that this driver is using.

Supported values are 1 (DFv1) and 2 (DFv2).

If not provided, 1 is the assumed version.

BuilderImpl & driver_framework_version (uint8_t elem)

The version of the driver framework that this driver is using.

Supported values are 1 (DFv1) and 2 (DFv2).

If not provided, 1 is the assumed version.

bool has_is_disabled ()
void clear_is_disabled ()

Clears the is_disabled field.

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

O(number_of_fields) complexity.

bool & is_disabled ()

Whether the driver is disabled. If true, this driver is not chosen to bind to nodes.

BuilderImpl & is_disabled (bool elem)

Whether the driver is disabled. If true, this driver is not chosen to bind to nodes.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_driver_framework::wire::DriverInfo, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_driver_framework::wire::DriverInfo>> && frame)

Records