class UseService

Defined at line 7130 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_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

void UseService (Storage_ storage)
void UseService ()

Defined at line 7135 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void UseService (UseService && )

Defined at line 7136 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void UseService (const UseService & other)
UseService & operator= (UseService && )

Defined at line 7137 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

UseService & operator= (const UseService & other)
bool operator== (const UseService & other)
bool operator!= (const UseService & other)
bool IsEmpty ()
const std::optional< ::fuchsia_component_decl::Ref> & source ()

(Required) The provider of the protocol relative to the component

itself. Must be `parent`, `framework`, `self`, or `child`.

::std::optional< ::fuchsia_component_decl::Ref> & source ()

(Required) The provider of the protocol relative to the component

itself. Must be `parent`, `framework`, `self`, or `child`.

UseService & source (std::optional< ::fuchsia_component_decl::Ref> value)

(Required) The provider of the protocol relative to the component

itself. Must be `parent`, `framework`, `self`, or `child`.

const std::optional< ::std::string> & source_name ()

(Required) Name identifying the service, by which it was presented to

this component.

::std::optional< ::std::string> & source_name ()

(Required) Name identifying the service, by which it was presented to

this component.

UseService & source_name (std::optional< ::std::string> value)

(Required) Name identifying the service, by which it was presented to

this component.

const std::optional< ::std::string> & target_path ()

(Required) The path where the capability should be installed in the

component's namespace.

Must be an absolute path starting with /.

::std::optional< ::std::string> & target_path ()

(Required) The path where the capability should be installed in the

component's namespace.

Must be an absolute path starting with /.

UseService & target_path (std::optional< ::std::string> value)

(Required) The path where the capability should be installed in the

component's namespace.

Must be an absolute path starting with /.

const std::optional< ::fuchsia_component_decl::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.

::std::optional< ::fuchsia_component_decl::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.

UseService & dependency_type (std::optional< ::fuchsia_component_decl::DependencyType> value)

(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.

const std::optional< ::fuchsia_component_decl::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.

::std::optional< ::fuchsia_component_decl::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.

UseService & availability (std::optional< ::fuchsia_component_decl::Availability> value)

(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.

const std::optional< ::std::string> & 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.

::std::optional< ::std::string> & 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.

UseService & source_dictionary (std::optional< ::std::string> value)

(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.

void UseService (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits