class Component
Defined at line 16794 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
A component declaration.
This information is typically encoded in the component manifest (.cm file)
if it has one or may be generated at runtime by a component resolver for
those that don't.
Public Methods
void Component ()
Defined at line 16796 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void Component (const Component & other)
Defined at line 16797 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void Component (Component && other)
Defined at line 16799 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_component_decl::wire::Component> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_component_decl::wire::Component> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Component>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
::fuchsia_component_decl::wire::Program & program ()
(Optional) Information about the program to run when the component is executed.
Omitted for non-executable components.
bool has_program ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Use> & uses ()
(Optional) List of capabilities used by the component. These consist of
capabilities offered to the component that are installed in its incoming
namespace.
The used capabilities must be unique and non-overlapping.
bool has_uses ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Expose> & exposes ()
(Optional) List of capabilities exposed by the component. These consist of
capabilities that are made visible to the parent. The parent
may `offer` these capabilities to its children, but not `use` them.
The exposed capabilities must be unique and non-overlapping.
bool has_exposes ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Offer> & offers ()
(Optional) List of capabilities offered to the component's children. These consist
of capabilities that the given children may `use`, which may come from a
child, the parent, or the component's own outgoing namespace.
The offered capabilities must be unique and non-overlapping.
bool has_offers ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Capability> & capabilities ()
(Optional) List of capabilities defined by the component.
bool has_capabilities ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Child> & children ()
(Optional) The component's statically instantiated children. The children must have
unique names.
bool has_children ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Collection> & collections ()
(Optional) The component's collections. The collections must have unique names.
bool has_collections ()
::fidl::VectorView< ::fuchsia_component_decl::wire::Environment> & environments ()
(Optional) List of environments created by this component.
Environments are assigned to children and control aspects of a child component's
runtime.
bool has_environments ()
::fuchsia_data::wire::Dictionary & facets ()
(Optional) Additional metadata about the component.
bool has_facets ()
::fuchsia_component_decl::wire::ConfigSchema & config ()
(Optional) The schema of the component's configuration interface.
bool has_config ()
Component & set_program (::fidl::ObjectView< ::fuchsia_component_decl::wire::Program> elem)
Component & set_program (std::nullptr_t )
Component & clear_program ()
Component & set_uses (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Use>> elem)
Component & set_uses (std::nullptr_t )
Component & clear_uses ()
Component & set_exposes (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Expose>> elem)
Component & set_exposes (std::nullptr_t )
Component & clear_exposes ()
Component & set_offers (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Offer>> elem)
Component & set_offers (std::nullptr_t )
Component & clear_offers ()
Component & set_capabilities (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Capability>> elem)
Component & set_capabilities (std::nullptr_t )
Component & clear_capabilities ()
Component & set_children (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Child>> elem)
Component & set_children (std::nullptr_t )
Component & clear_children ()
Component & set_collections (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Collection>> elem)
Component & set_collections (std::nullptr_t )
Component & clear_collections ()
Component & set_environments (::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_component_decl::wire::Environment>> elem)
Component & set_environments (std::nullptr_t )
Component & clear_environments ()
Component & set_facets (::fidl::ObjectView< ::fuchsia_data::wire::Dictionary> elem)
Component & set_facets (std::nullptr_t )
Component & clear_facets ()
Component & set_config (::fidl::ObjectView< ::fuchsia_component_decl::wire::ConfigSchema> elem)
Component & set_config (std::nullptr_t )
Component & clear_config ()
void Component (::fidl::AnyArena & allocator)
void Component (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Component>> && frame)
This constructor allows a user controlled allocation (not using a Arena).
It should only be used when performance is key.
As soon as the frame is given to the table, it must not be used directly or for another table.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Component>> && frame_ptr)
Component & operator= (const Component & other)
Defined at line 16798 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Component & operator= (Component && other)
Defined at line 16800 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void ~Component ()
Defined at line 16802 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder