class OfferStorage
Defined at line 8115 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
Declares a storage capability offered by a component to one of its children,
such as meta storage offered by the component's containing realm or cache
storage offered by the component itself.
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::OfferStorage> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_component_decl::wire::OfferStorage> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::OfferStorage>> 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::OfferStorage>> && frame_ptr)
void OfferStorage ()
Defined at line 8117 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void OfferStorage (const OfferStorage & other)
Defined at line 8118 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void OfferStorage (OfferStorage && other)
Defined at line 8120 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
::fidl::StringView & source_name ()
(Required) The name of the storage capability being offered
bool has_source_name ()
::fuchsia_component_decl::wire::Ref & source ()
(Required) The provider of the capability relative to the component
itself. Must be `parent`, `self`, `child`, or `void`.
If set to `void`, then the target must offer or use the capability with
`OPTIONAL` or `TRANSITIONAL` availability.
bool has_source ()
::fuchsia_component_decl::wire::Ref & target ()
(Required) Reference to the target. Must be `child`, `collection`, or
a dictionary `capability`.
bool has_target ()
::fidl::StringView & target_name ()
(Required) The name the storage capability is being offered as
bool has_target_name ()
::fuchsia_component_decl::wire::Availability & availability ()
(Optional, defaults to `REQUIRED`) The availability of this capability.
If set to `required`, the target may use or offer the capability with
either `required` or `optional` availability. If set to `optional`, the
target must use or offer the capability with `optional` availability.
The `same_as_target` value causes this offer's availability to match the
availability set in the target.
bool has_availability ()
OfferStorage & set_source_name (::fidl::ObjectView< ::fidl::StringView> elem)
OfferStorage & set_source_name (std::nullptr_t )
OfferStorage & clear_source_name ()
OfferStorage & operator= (const OfferStorage & other)
Defined at line 8119 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
OfferStorage & set_source (::fidl::ObjectView< ::fuchsia_component_decl::wire::Ref> elem)
OfferStorage & set_source (std::nullptr_t )
OfferStorage & clear_source ()
OfferStorage & set_target (::fidl::ObjectView< ::fuchsia_component_decl::wire::Ref> elem)
OfferStorage & set_target (std::nullptr_t )
OfferStorage & clear_target ()
OfferStorage & set_target_name (::fidl::ObjectView< ::fidl::StringView> elem)
OfferStorage & set_target_name (std::nullptr_t )
OfferStorage & clear_target_name ()
OfferStorage & set_availability (::fuchsia_component_decl::wire::Availability elem)
OfferStorage & clear_availability ()
void OfferStorage (::fidl::AnyArena & allocator)
void OfferStorage (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_component_decl::wire::OfferStorage>> && 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.
OfferStorage & operator= (OfferStorage && other)
Defined at line 8121 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/wire_types.h
void ~OfferStorage ()
Defined at line 8123 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