class Protocol

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

Declares a protocol capability backed by this component.

To learn more about protocols, see:

https://fuchsia.dev/fuchsia-src/glossary#protocol

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

Protocol & set_name (::std::string _value)
Protocol & set_source_path (::std::string _value)
Protocol & set_delivery (::fuchsia::component::decl::DeliveryType _value)
void Protocol ()
void Protocol (Protocol && other)
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)
const ::std::string & name ()

(Required) The name of this protocol.

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

bool has_name ()

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

::std::string * mutable_name ()

(Required) The name of this protocol.

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

void clear_name ()

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

const ::std::string & source_path ()

(Optional) The path to the protocol in the component's outgoing

directory.

Not set for built-in capabilities.

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

bool has_source_path ()

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

::std::string * mutable_source_path ()

(Optional) The path to the protocol in the component's outgoing

directory.

Not set for built-in capabilities.

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

void clear_source_path ()

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

const ::fuchsia::component::decl::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`.

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

bool has_delivery ()

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

::fuchsia::component::decl::DeliveryType * mutable_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`.

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

void clear_delivery ()

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