class Protocol
Defined at line 10680 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 10687 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 10691 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 10696 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 10704 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 10716 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 10720 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 10728 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 10736 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 10747 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 10751 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 10758 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 10766 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/hlcpp/fuchsia/component/decl/cpp/fidl.h