class ExposeService

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

Declares a service exposed to a component's containing realm, such as a

service exposed by the component or one of its children at runtime.

To learn more about services, see:

https://fuchsia.dev/fuchsia-src/glossary#service

Public Methods

void ExposeService (Storage_ storage)
void ExposeService ()

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

void ExposeService (ExposeService && )

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

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

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

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

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

itself. Must be `self` or `child`, or `void`. If set to `void`, then the

target must expose, offer, or use the capability with `OPTIONAL` or

`TRANSITIONAL` availability.

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

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

itself. Must be `self` or `child`, or `void`. If set to `void`, then the

target must expose, offer, or use the capability with `OPTIONAL` or

`TRANSITIONAL` availability.

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

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

itself. Must be `self` or `child`, or `void`. If set to `void`, then the

target must expose, offer, or use the capability with `OPTIONAL` or

`TRANSITIONAL` availability.

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.

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

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

this component.

const std::optional< ::fuchsia_component_decl::Ref> & target ()

(Required) The destination to which the service is exposed: either the

component's realm or the framework.

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

(Required) The destination to which the service is exposed: either the

component's realm or the framework.

ExposeService & target (std::optional< ::fuchsia_component_decl::Ref> value)

(Required) The destination to which the service is exposed: either the

component's realm or the framework.

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

(Required) The name by which the capability is being exposed.

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

(Required) The name by which the capability is being exposed.

ExposeService & target_name (std::optional< ::std::string> value)

(Required) The name by which the capability is being exposed.

const std::optional< ::fuchsia_component_decl::Availability> & availability ()

(Optional, defaults to `REQUIRED`) The availability of this capability.

See [`Availability`].

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

(Optional, defaults to `REQUIRED`) The availability of this capability.

See [`Availability`].

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

(Optional, defaults to `REQUIRED`) The availability of this capability.

See [`Availability`].

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.

ExposeService & 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 ExposeService (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits