class Offer
Defined at line 6753 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
Declares a capability offered by a component to one of its children, which
may have been offered by the component's containing realm, the component
itself, or one of its other children.
Public Methods
void Offer (Offer && other)
Offer & operator= (Offer && other)
void Offer (const Offer & other)
Offer & operator= (const Offer & other)
bool operator== (const Offer & other)
bool operator!= (const Offer & other)
bool IsUnknown ()
::fuchsia_component_decl::Offer::Tag Which ()
Offer WithService (::fuchsia_component_decl::OfferService val)
const ::fidl::internal::UnionMemberView<1, Storage_> service ()
::fidl::internal::UnionMemberView<1, Storage_> service ()
Offer & service (::fuchsia_component_decl::OfferService value)
Sets the union to hold the service member.
Offer WithProtocol (::fuchsia_component_decl::OfferProtocol val)
const ::fidl::internal::UnionMemberView<2, Storage_> protocol ()
::fidl::internal::UnionMemberView<2, Storage_> protocol ()
Offer & protocol (::fuchsia_component_decl::OfferProtocol value)
Sets the union to hold the protocol member.
Offer WithDirectory (::fuchsia_component_decl::OfferDirectory val)
const ::fidl::internal::UnionMemberView<3, Storage_> directory ()
::fidl::internal::UnionMemberView<3, Storage_> directory ()
Offer & directory (::fuchsia_component_decl::OfferDirectory value)
Sets the union to hold the directory member.
Offer WithStorage (::fuchsia_component_decl::OfferStorage val)
const ::fidl::internal::UnionMemberView<4, Storage_> storage ()
::fidl::internal::UnionMemberView<4, Storage_> storage ()
Offer & storage (::fuchsia_component_decl::OfferStorage value)
Sets the union to hold the storage member.
Offer WithRunner (::fuchsia_component_decl::OfferRunner val)
const ::fidl::internal::UnionMemberView<5, Storage_> runner ()
::fidl::internal::UnionMemberView<5, Storage_> runner ()
Offer & runner (::fuchsia_component_decl::OfferRunner value)
Sets the union to hold the runner member.
Offer WithResolver (::fuchsia_component_decl::OfferResolver val)
const ::fidl::internal::UnionMemberView<6, Storage_> resolver ()
::fidl::internal::UnionMemberView<6, Storage_> resolver ()
Offer & resolver (::fuchsia_component_decl::OfferResolver value)
Sets the union to hold the resolver member.
Offer WithEventStream (::fuchsia_component_decl::OfferEventStream val)
const ::fidl::internal::UnionMemberView<7, Storage_> event_stream ()
::fidl::internal::UnionMemberView<7, Storage_> event_stream ()
Offer & event_stream (::fuchsia_component_decl::OfferEventStream value)
Sets the union to hold the event_stream member.
Offer WithDictionary (::fuchsia_component_decl::OfferDictionary val)
const ::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
Offer & dictionary (::fuchsia_component_decl::OfferDictionary value)
Sets the union to hold the dictionary member.
Offer WithConfig (::fuchsia_component_decl::OfferConfiguration val)
const ::fidl::internal::UnionMemberView<9, Storage_> config ()
::fidl::internal::UnionMemberView<9, Storage_> config ()
Offer & config (::fuchsia_component_decl::OfferConfiguration value)
Sets the union to hold the config member.
void Offer (::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 6770 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits