class UseService
Defined at line 13506 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Declares a service used by a component, which was offered to it.
To learn more about services, see:
https://fuchsia.dev/fuchsia-src/glossary#service
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_component_decl::wire::UseService> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_component_decl::wire::UseService> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::UseService>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::UseService>> && frame_ptr)
void UseService ()
Defined at line 13508 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void UseService (const UseService & other)
Defined at line 13509 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void UseService (UseService && other)
Defined at line 13511 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
::fuchsia_component_decl::wire::Ref & source ()
(Required) The provider of the protocol relative to the component
itself. Must be `parent`, `framework`, `self`, or `child`.
bool has_source ()
::fidl::StringView & source_name ()
(Required) Name identifying the service, by which it was presented to
this component.
bool has_source_name ()
::fidl::StringView & target_path ()
(Required) The path where the capability should be installed in the
component's namespace.
Must be an absolute path starting with /.
bool has_target_path ()
::fuchsia_component_decl::wire::DependencyType & dependency_type ()
(Required) The dependency type this use represents.
A component which offers a capability to a child from itself and uses a
capability from the same child, must mark the dependency as `weak`. A
`weak` dependency implies that the capability may become unavailable at
any point. Taking a strong dependency on a child's capability will
cause the child to shut down before its parent. When using a weak
dependency, the parent shuts down before the child.
bool has_dependency_type ()
::fuchsia_component_decl::wire::Availability & availability ()
(Optional, defaults to `REQUIRED`) The availability of this capability.
If set to `required`, the component is likely to malfunction if this
capability is not provided. If set to `optional`, the component can
handle the capability's absence.
bool has_availability ()
::fidl::StringView & source_dictionary ()
(Optional) Path in a dictionary provided by `source` which contains `source_name`.
If this field is absent, `source_name` identifies a capability directly routed
by `source`. If set, `source_name` identifies a capability nested inside this
dictionary.
bool has_source_dictionary ()
UseService & set_source (::fidl::ObjectView< ::fuchsia_component_decl::wire::Ref> elem)
UseService & set_source (std::nullptr_t )
UseService & clear_source ()
UseService & operator= (const UseService & other)
Defined at line 13510 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
UseService & set_source_name (::fidl::ObjectView< ::fidl::StringView> elem)
UseService & set_source_name (std::nullptr_t )
UseService & clear_source_name ()
UseService & set_target_path (::fidl::ObjectView< ::fidl::StringView> elem)
UseService & set_target_path (std::nullptr_t )
UseService & clear_target_path ()
UseService & set_dependency_type (::fuchsia_component_decl::wire::DependencyType elem)
UseService & clear_dependency_type ()
UseService & set_availability (::fuchsia_component_decl::wire::Availability elem)
UseService & clear_availability ()
UseService & set_source_dictionary (::fidl::ObjectView< ::fidl::StringView> elem)
UseService & set_source_dictionary (std::nullptr_t )
UseService & clear_source_dictionary ()
void UseService (::fidl::AnyArena & allocator)
void UseService (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::UseService>> && 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.
UseService & operator= (UseService && other)
Defined at line 13512 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void ~UseService ()
Defined at line 13514 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