template <typename BuilderImpl>
class WireTableBaseBuilder
Defined at line 1658 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_types.h
Public Methods
::fuchsia_virtualization::wire::GuestConfig Build ()
Build and return the table. The builder should not be used after this.
bool has_kernel_type ()
void clear_kernel_type ()
Clears the kernel_type field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fuchsia_virtualization::wire::KernelType & kernel_type ()
Type of kernel to load. Cannot be changed from the command-line.
BuilderImpl & kernel_type (::fuchsia_virtualization::wire::KernelType elem)
Type of kernel to load. Cannot be changed from the command-line.
bool has_kernel ()
void clear_kernel ()
Clears the kernel field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::ClientEnd< ::fuchsia_io::File> & kernel ()
File to load the kernel from. Cannot be changed from the command-line.
BuilderImpl & kernel (::fidl::ClientEnd< ::fuchsia_io::File> elem)
File to load the kernel from. Cannot be changed from the command-line.
bool has_ramdisk ()
void clear_ramdisk ()
Clears the ramdisk field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::ClientEnd< ::fuchsia_io::File> & ramdisk ()
File to load the initial RAM disk from. Cannot be changed from the
command-line.
BuilderImpl & ramdisk (::fidl::ClientEnd< ::fuchsia_io::File> elem)
File to load the initial RAM disk from. Cannot be changed from the
command-line.
bool has_dtb_overlay ()
void clear_dtb_overlay ()
Clears the dtb_overlay field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::ClientEnd< ::fuchsia_io::File> & dtb_overlay ()
File to load the dtb overlay for a Linux kernel from. Cannot be changed
from the command-line.
BuilderImpl & dtb_overlay (::fidl::ClientEnd< ::fuchsia_io::File> elem)
File to load the dtb overlay for a Linux kernel from. Cannot be changed
from the command-line.
bool has_cmdline ()
void clear_cmdline ()
Clears the cmdline field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::StringView & cmdline ()
Kernel command-line to use. Cannot be changed from the command-line.
BuilderImpl & cmdline (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)
Kernel command-line to use. Cannot be changed from the command-line.
bool has_cmdline_add ()
void clear_cmdline_add ()
Clears the cmdline_add field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::VectorView< ::fidl::StringView> & cmdline_add ()
Additional kernel command-lines to append to the main command-line.
BuilderImpl & cmdline_add (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fidl::StringView>>> elem)
Additional kernel command-lines to append to the main command-line.
bool has_cpus ()
void clear_cpus ()
Clears the cpus field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint8_t & cpus ()
The number of CPUs to provide to a guest.
BuilderImpl & cpus (uint8_t elem)
The number of CPUs to provide to a guest.
bool has_guest_memory ()
void clear_guest_memory ()
Clears the guest_memory field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & guest_memory ()
Amount of guest memory required, in bytes. This value may be rounded up depending on
the system configuration.
BuilderImpl & guest_memory (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Amount of guest memory required, in bytes. This value may be rounded up depending on
the system configuration.
bool has_block_devices ()
void clear_block_devices ()
Clears the block_devices field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::VectorView< ::fuchsia_virtualization::wire::BlockSpec> & block_devices ()
A list of block devices to give a guest. Cannot be changed from the
command-line.
BuilderImpl & block_devices (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_virtualization::wire::BlockSpec>>> elem)
A list of block devices to give a guest. Cannot be changed from the
command-line.
bool has_net_devices ()
void clear_net_devices ()
Clears the net_devices field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::VectorView< ::fuchsia_virtualization::wire::NetSpec> & net_devices ()
A list of specifications for network devices.
BuilderImpl & net_devices (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_virtualization::wire::NetSpec>>> elem)
A list of specifications for network devices.
bool has_default_net ()
void clear_default_net ()
Clears the default_net field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & default_net ()
"11: wayland_device WaylandDevice" was removed
"12: magma_device MagmaDevice" was removed
Whether to add a default network device.
BuilderImpl & default_net (bool elem)
"11: wayland_device WaylandDevice" was removed
"12: magma_device MagmaDevice" was removed
Whether to add a default network device.
bool has_virtio_balloon ()
void clear_virtio_balloon ()
Clears the virtio_balloon field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_balloon ()
Enable virtio-balloon.
BuilderImpl & virtio_balloon (bool elem)
Enable virtio-balloon.
bool has_virtio_console ()
void clear_virtio_console ()
Clears the virtio_console field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_console ()
Enable virtio-console.
BuilderImpl & virtio_console (bool elem)
Enable virtio-console.
bool has_virtio_gpu ()
void clear_virtio_gpu ()
Clears the virtio_gpu field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_gpu ()
Enable virtio-gpu.
BuilderImpl & virtio_gpu (bool elem)
Enable virtio-gpu.
bool has_virtio_rng ()
void clear_virtio_rng ()
Clears the virtio_rng field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_rng ()
Enable virtio-rng.
BuilderImpl & virtio_rng (bool elem)
Enable virtio-rng.
bool has_virtio_vsock ()
void clear_virtio_vsock ()
Clears the virtio_vsock field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_vsock ()
Enable virtio-vsock.
BuilderImpl & virtio_vsock (bool elem)
Enable virtio-vsock.
bool has_virtio_sound ()
void clear_virtio_sound ()
Clears the virtio_sound field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_sound ()
Enable virtio-sound.
BuilderImpl & virtio_sound (bool elem)
Enable virtio-sound.
bool has_virtio_sound_input ()
void clear_virtio_sound_input ()
Clears the virtio_sound_input field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_sound_input ()
Enable input streams (capture) for virtio-sound.
BuilderImpl & virtio_sound_input (bool elem)
Enable input streams (capture) for virtio-sound.
bool has_vsock_listeners ()
void clear_vsock_listeners ()
Clears the vsock_listeners field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
::fidl::VectorView< ::fuchsia_virtualization::wire::Listener> & vsock_listeners ()
Host ports to listen for guest initiated vsock connections on. This can be used for
simplicity if a Listener is known at config creation time, or if a Listener must be
available at the moment of guest creation for timing reasons.
To add a Listener after a guest starts, see HostVsockEndpoint::Listen.
BuilderImpl & vsock_listeners (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_virtualization::wire::Listener>>> elem)
Host ports to listen for guest initiated vsock connections on. This can be used for
simplicity if a Listener is known at config creation time, or if a Listener must be
available at the moment of guest creation for timing reasons.
To add a Listener after a guest starts, see HostVsockEndpoint::Listen.
bool has_virtio_mem ()
void clear_virtio_mem ()
Clears the virtio_mem field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
bool & virtio_mem ()
Enable virtio-mem
BuilderImpl & virtio_mem (bool elem)
Enable virtio-mem
bool has_virtio_mem_block_size ()
void clear_virtio_mem_block_size ()
Clears the virtio_mem_block_size field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & virtio_mem_block_size ()
Size of the dynamically (un)pluggable memory block.
Memory can be (un)plugged at this granularity.
Smaller block size increases changes of successful unplug at the cost of increasing
the size of tracking bitmap.
BuilderImpl & virtio_mem_block_size (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Size of the dynamically (un)pluggable memory block.
Memory can be (un)plugged at this granularity.
Smaller block size increases changes of successful unplug at the cost of increasing
the size of tracking bitmap.
bool has_virtio_mem_region_size ()
void clear_virtio_mem_region_size ()
Clears the virtio_mem_region_size field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & virtio_mem_region_size ()
Size of the entire dynamically pluggable memory region
BuilderImpl & virtio_mem_region_size (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Size of the entire dynamically pluggable memory region
bool has_virtio_mem_region_alignment ()
void clear_virtio_mem_region_alignment ()
Clears the virtio_mem_region_alignment field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & virtio_mem_region_alignment ()
Required alignment of the dynamically pluggable memory region
BuilderImpl & virtio_mem_region_alignment (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Required alignment of the dynamically pluggable memory region
Protected Methods
void WireTableBaseBuilder< ::fuchsia_virtualization::wire::GuestConfig, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_virtualization::wire::GuestConfig>> && frame)