class Protocol

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

A protocol capability

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::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}`.

Defined at line 1021 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 1025 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

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}`.

Defined at line 1033 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 1041 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 1051 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 1055 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 1061 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 1069 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/hlcpp/fuchsia/component/test/cpp/fidl.h

bool has_type ()

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

::fuchsia::component::decl::DependencyType * mutable_type ()

For information on this type, see

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

This field is optional and defaults to `STRONG`.

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

void clear_type ()

Defined at line 1099 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 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.

Defined at line 1111 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 1115 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 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.

Defined at line 1123 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 1131 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 1141 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 1145 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 1151 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 1159 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 1169 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 1173 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 1179 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 1187 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/hlcpp/fuchsia/component/test/cpp/fidl.h

Protocol & set_name (::std::string _value)
Protocol & set_as (::std::string _value)
Protocol & set_type (::fuchsia::component::decl::DependencyType _value)
Protocol & set_path (::std::string _value)
Protocol & set_availability (::fuchsia::component::decl::Availability _value)
Protocol & set_from_dictionary (::std::string _value)
void Protocol ()
void Protocol (Protocol && other)
const ::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`.

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

void ~Protocol ()
Protocol & operator= (Protocol && other)
::std::unique_ptr<Protocol> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Protocol * _value, size_t _offset)
zx_status_t Clone (Protocol * _result)