class Protocol
Defined at line 13411 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Declares a protocol capability backed by this component.
To learn more about protocols, see:
https://fuchsia.dev/fuchsia-src/glossary#protocol
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_component_decl::wire::Protocol> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_component_decl::wire::Protocol> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Protocol>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void Protocol ()
Defined at line 13413 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void Protocol (const Protocol & other)
Defined at line 13414 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
::fidl::StringView & name ()
(Required) The name of this protocol.
bool has_name ()
::fuchsia_component_decl::wire::DeliveryType & delivery ()
(Optional, defaults to `EAGER`) specifies when the framework will open
the protocol from this component's outgoing directory when someone
requests the capability. See details on `DeliveryType`.
bool has_delivery ()
Protocol & operator= (const Protocol & other)
Defined at line 13415 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void Protocol (Protocol && other)
Defined at line 13416 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Protocol & operator= (Protocol && other)
Defined at line 13417 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
::fidl::StringView & source_path ()
(Optional) The path to the protocol in the component's outgoing
directory.
Not set for built-in capabilities.
bool has_source_path ()
Protocol & set_name (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_name (std::nullptr_t )
Protocol & clear_name ()
Protocol & set_source_path (::fidl::ObjectView< ::fidl::StringView> elem)
Protocol & set_source_path (std::nullptr_t )
Protocol & clear_source_path ()
Protocol & set_delivery (::fuchsia_component_decl::wire::DeliveryType elem)
Protocol & clear_delivery ()
void Protocol (::fidl::AnyArena & allocator)
void Protocol (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::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.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Protocol>> && frame_ptr)
void ~Protocol ()
Defined at line 13419 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder