class Service

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

A service capability

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

Service & set_name (::std::string _value)
Service & set_as (::std::string _value)
Service & set_path (::std::string _value)
Service & set_availability (::fuchsia::component::decl::Availability _value)
Service & set_from_dictionary (::std::string _value)
void Service ()
void Service (Service && other)
void ~Service ()
Service & operator= (Service && other)
::std::unique_ptr<Service> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Service * _value, size_t _offset)
zx_status_t Clone (Service * _result)
const ::std::string & name ()

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

service, e.g. `fuchsia.echo.EchoService`. If path is not set, the

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

`/svc/{name}`.

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

bool has_name ()

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

::std::string * mutable_name ()

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

service, e.g. `fuchsia.echo.EchoService`. If path is not set, the

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

`/svc/{name}`.

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

void clear_name ()

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

const ::std::string & as ()

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

component. This field is optional.

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

bool has_as ()

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

::std::string * mutable_as ()

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

component. This field is optional.

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

void clear_as ()

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

const ::std::string & path ()

Override the path in which the service 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.echo.EchoService`. This field is optional.

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

bool has_path ()

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

::std::string * mutable_path ()

Override the path in which the service 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.echo.EchoService`. This field is optional.

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

void clear_path ()

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

const ::fuchsia::component::decl::Availability & availability ()

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

component.

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

bool has_availability ()

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

::fuchsia::component::decl::Availability * mutable_availability ()

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

component.

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

void clear_availability ()

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

const ::std::string & from_dictionary ()

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

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

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

bool has_from_dictionary ()

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

::std::string * mutable_from_dictionary ()

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

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

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

void clear_from_dictionary ()

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