class Protocol
Defined at line 366 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
A protocol capability
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_component_test::wire::Protocol> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_component_test::wire::Protocol> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_test::wire::Protocol>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_test::wire::Protocol>> && frame_ptr)
void Protocol ()
Defined at line 368 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
void Protocol (const Protocol & other)
Defined at line 369 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
void Protocol (Protocol && other)
Defined at line 371 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
::fidl::StringView & 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}`.
bool has_name ()
::fidl::StringView & as ()
A rename of the capability, which can be set when routing to another
component. This field is optional.
bool has_as ()
::fuchsia_component_decl::wire::DependencyType & type ()
For information on this type, see
https://fuchsia.dev/go/components/declaration#DependencyType.
This field is optional and defaults to `STRONG`.
bool has_type ()
::fidl::StringView & 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.
bool has_path ()
::fuchsia_component_decl::wire::Availability & availability ()
Optional. Cannot be set to `SameAsTarget` if `to` contains a local
component.
bool has_availability ()
::fidl::StringView & from_dictionary ()
Optional. If set, the path to the dictionary routed by `from` which contains
the capability. Superseded by [`Realm.AddRouteFromDictionary`].
bool has_from_dictionary ()
Protocol & set_name (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_name (std::nullptr_t )
Protocol & clear_name ()
Protocol & operator= (const Protocol & other)
Defined at line 370 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
Protocol & set_as (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_as (std::nullptr_t )
Protocol & clear_as ()
Protocol & set_type (::fuchsia_component_decl::wire::DependencyType elem)
Protocol & clear_type ()
Protocol & set_path (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_path (std::nullptr_t )
Protocol & clear_path ()
Protocol & set_availability (::fuchsia_component_decl::wire::Availability elem)
Protocol & clear_availability ()
Protocol & set_from_dictionary (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_from_dictionary (std::nullptr_t )
Protocol & clear_from_dictionary ()
void Protocol (::fidl::AnyArena & allocator)
void Protocol (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_test::wire::Protocol>> && frame)
This constructor allows a user controlled allocation (not using a Arena).
It should only be used when performance is key.
As soon as the frame is given to the table, it must not be used directly or for another table.
Protocol & operator= (Protocol && other)
Defined at line 372 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
void ~Protocol ()
Defined at line 374 of file fidling/gen/sdk/fidl/fuchsia.component.test/fuchsia.component.test/cpp/fidl/fuchsia.component.test/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder