class Capability
Defined at line 6989 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
Declares a capability defined by this component.
Public Methods
void Capability (Capability && other)
Capability & operator= (Capability && other)
void Capability (const Capability & other)
Capability & operator= (const Capability & other)
bool operator== (const Capability & other)
bool operator!= (const Capability & other)
bool IsUnknown ()
::fuchsia_component_decl::Capability::Tag Which ()
Capability WithService (::fuchsia_component_decl::Service val)
const ::fidl::internal::UnionMemberView<1, Storage_> service ()
::fidl::internal::UnionMemberView<1, Storage_> service ()
Capability & service (::fuchsia_component_decl::Service value)
Sets the union to hold the service member.
Capability WithProtocol (::fuchsia_component_decl::Protocol val)
const ::fidl::internal::UnionMemberView<2, Storage_> protocol ()
::fidl::internal::UnionMemberView<2, Storage_> protocol ()
Capability & protocol (::fuchsia_component_decl::Protocol value)
Sets the union to hold the protocol member.
Capability WithDirectory (::fuchsia_component_decl::Directory val)
const ::fidl::internal::UnionMemberView<3, Storage_> directory ()
::fidl::internal::UnionMemberView<3, Storage_> directory ()
Capability & directory (::fuchsia_component_decl::Directory value)
Sets the union to hold the directory member.
Capability WithStorage (::fuchsia_component_decl::Storage val)
const ::fidl::internal::UnionMemberView<4, Storage_> storage ()
::fidl::internal::UnionMemberView<4, Storage_> storage ()
Capability & storage (::fuchsia_component_decl::Storage value)
Sets the union to hold the storage member.
Capability WithRunner (::fuchsia_component_decl::Runner val)
const ::fidl::internal::UnionMemberView<5, Storage_> runner ()
::fidl::internal::UnionMemberView<5, Storage_> runner ()
Capability & runner (::fuchsia_component_decl::Runner value)
Sets the union to hold the runner member.
Capability WithResolver (::fuchsia_component_decl::Resolver val)
const ::fidl::internal::UnionMemberView<6, Storage_> resolver ()
::fidl::internal::UnionMemberView<6, Storage_> resolver ()
Capability & resolver (::fuchsia_component_decl::Resolver value)
Sets the union to hold the resolver member.
Capability WithEventStream (::fuchsia_component_decl::EventStream val)
const ::fidl::internal::UnionMemberView<7, Storage_> event_stream ()
::fidl::internal::UnionMemberView<7, Storage_> event_stream ()
Capability & event_stream (::fuchsia_component_decl::EventStream value)
Sets the union to hold the event_stream member.
Capability WithDictionary (::fuchsia_component_decl::Dictionary val)
const ::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
Capability & dictionary (::fuchsia_component_decl::Dictionary value)
Sets the union to hold the dictionary member.
Capability WithConfig (::fuchsia_component_decl::Configuration val)
const ::fidl::internal::UnionMemberView<9, Storage_> config ()
::fidl::internal::UnionMemberView<9, Storage_> config ()
Capability & config (::fuchsia_component_decl::Configuration value)
Sets the union to hold the config member.
void Capability (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kService | 1 |
| kProtocol | 2 |
| kDirectory | 3 |
| kStorage | 4 |
| kRunner | 5 |
| kResolver | 6 |
| kEventStream | 8 |
| kDictionary | 9 |
| kConfig | 10 |
| _do_not_handle_this__write_a_default_case_instead | ::std::numeric_limits<::fidl_union_tag_t>::max() |
TODO: share union tag types between wire
&
natural.
Defined at line 7006 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits