class Protocol

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

A protocol capability

Public Methods

void Protocol ()

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

void Protocol (Protocol && )

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

void Protocol (Storage_ storage)
void Protocol (const Protocol & other)
Protocol & operator= (const Protocol & other)
bool operator== (const Protocol & other)
bool operator!= (const Protocol & other)
bool IsEmpty ()
const std::optional< ::std::string> & name ()

The name of the capability. This is usually the name of the FIDL

protocol, e.g. `fuchsia.logger.LogSink`. If path is not set, the

protocol will be installed in a target component's namespace at

`/svc/{name}`.

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

The name of the capability. This is usually the name of the FIDL

protocol, e.g. `fuchsia.logger.LogSink`. If path is not set, the

protocol will be installed in a target component's namespace at

`/svc/{name}`.

Protocol & name (std::optional< ::std::string> value)

The name of the capability. This is usually the name of the FIDL

protocol, e.g. `fuchsia.logger.LogSink`. If path is not set, the

protocol will be installed in a target component's namespace at

`/svc/{name}`.

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

A rename of the capability, which can be set when routing to another

component. This field is optional.

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

A rename of the capability, which can be set when routing to another

component. This field is optional.

Protocol & as (std::optional< ::std::string> value)

A rename of the capability, which can be set when routing to another

component. This field is optional.

Protocol & operator= (Protocol && )

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

const std::optional< ::fuchsia_component_decl::DependencyType> & type ()

For information on this type, see

https://fuchsia.dev/go/components/declaration#DependencyType.

This field is optional and defaults to `STRONG`.

::std::optional< ::fuchsia_component_decl::DependencyType> & type ()

For information on this type, see

https://fuchsia.dev/go/components/declaration#DependencyType.

This field is optional and defaults to `STRONG`.

Protocol & type (std::optional< ::fuchsia_component_decl::DependencyType> value)

For information on this type, see

https://fuchsia.dev/go/components/declaration#DependencyType.

This field is optional and defaults to `STRONG`.

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

Override the path in which the protocol is installed. Instead of

`/svc/{name}`, this value will be used. Path should begin with a

leading slash and omit a trailing slash, e.g.

`/foo/fuchsia.logger.LogSink`. This field is optional.

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

Override the path in which the protocol is installed. Instead of

`/svc/{name}`, this value will be used. Path should begin with a

leading slash and omit a trailing slash, e.g.

`/foo/fuchsia.logger.LogSink`. This field is optional.

Protocol & path (std::optional< ::std::string> value)

Override the path in which the protocol is installed. Instead of

`/svc/{name}`, this value will be used. Path should begin with a

leading slash and omit a trailing slash, e.g.

`/foo/fuchsia.logger.LogSink`. This field is optional.

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

Optional. Cannot be set to `SameAsTarget` if `to` contains a local

component.

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

Optional. Cannot be set to `SameAsTarget` if `to` contains a local

component.

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

Optional. Cannot be set to `SameAsTarget` if `to` contains a local

component.

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

Optional. If set, the path to the dictionary routed by `from` which contains

the capability. Superseded by [`Realm.AddRouteFromDictionary`].

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

Optional. If set, the path to the dictionary routed by `from` which contains

the capability. Superseded by [`Realm.AddRouteFromDictionary`].

Protocol & from_dictionary (std::optional< ::std::string> value)

Optional. If set, the path to the dictionary routed by `from` which contains

the capability. Superseded by [`Realm.AddRouteFromDictionary`].

void Protocol (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits