class Protocol

Defined at line 13239 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 Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::Protocol>> && frame_ptr)
void Protocol ()

Defined at line 13241 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 13244 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 ()
Protocol & operator= (Protocol && other)

Defined at line 13245 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 ()
bool has_delivery ()
Protocol & operator= (const Protocol & other)

Defined at line 13243 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h

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 Protocol (const Protocol & other)

Defined at line 13242 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h

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

void ~Protocol ()

Defined at line 13247 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