class OfferEventStream
Defined at line 4837 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
Declares an event stream offered by a component.
Public Methods
void OfferEventStream (Storage_ storage)
void OfferEventStream ()
Defined at line 4842 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
void OfferEventStream (OfferEventStream && )
Defined at line 4843 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
void OfferEventStream (const OfferEventStream & other)
OfferEventStream & operator= (OfferEventStream && )
Defined at line 4844 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h
OfferEventStream & operator= (const OfferEventStream & other)
bool operator== (const OfferEventStream & other)
bool operator!= (const OfferEventStream & other)
bool IsEmpty ()
const std::optional< ::fuchsia_component_decl::Ref> & source ()
(Required) The provider of the capability relative to the component
itself. Must be `parent`, `framework`, `child`, or `void`. If set to
`void`, then the target must offer or use the capability with `OPTIONAL`
or `TRANSITIONAL` availability.
::std::optional< ::fuchsia_component_decl::Ref> & source ()
(Required) The provider of the capability relative to the component
itself. Must be `parent`, `framework`, `child`, or `void`. If set to
`void`, then the target must offer or use the capability with `OPTIONAL`
or `TRANSITIONAL` availability.
OfferEventStream & source (std::optional< ::fuchsia_component_decl::Ref> value)
(Required) The provider of the capability relative to the component
itself. Must be `parent`, `framework`, `child`, or `void`. If set to
`void`, then the target must offer or use the capability with `OPTIONAL`
or `TRANSITIONAL` availability.
const std::optional< ::std::string> & source_name ()
(Required) Name of the event being offered.
::std::optional< ::std::string> & source_name ()
(Required) Name of the event being offered.
OfferEventStream & source_name (std::optional< ::std::string> value)
(Required) Name of the event being offered.
const std::optional< ::std::vector< ::fuchsia_component_decl::Ref>> & scope ()
(Optional) When an event is offered from framework, the scope is
required and allows one to define the child (or array of children) which
the event is about. When the event is offered from parent, the scope can
be used to downscope the event to a certain child scope, otherwise the
event will carry the scope coming from the parent.
::std::optional< ::std::vector< ::fuchsia_component_decl::Ref>> & scope ()
(Optional) When an event is offered from framework, the scope is
required and allows one to define the child (or array of children) which
the event is about. When the event is offered from parent, the scope can
be used to downscope the event to a certain child scope, otherwise the
event will carry the scope coming from the parent.
OfferEventStream & scope (std::optional< ::std::vector< ::fuchsia_component_decl::Ref>> value)
(Optional) When an event is offered from framework, the scope is
required and allows one to define the child (or array of children) which
the event is about. When the event is offered from parent, the scope can
be used to downscope the event to a certain child scope, otherwise the
event will carry the scope coming from the parent.
const std::optional< ::fuchsia_component_decl::Ref> & target ()
(Required) The destination to which the event stream is offered.
::std::optional< ::fuchsia_component_decl::Ref> & target ()
(Required) The destination to which the event stream is offered.
OfferEventStream & target (std::optional< ::fuchsia_component_decl::Ref> value)
(Required) The destination to which the event stream is offered.
const std::optional< ::std::string> & target_name ()
(Required) Name under which the event stream is being offered.
::std::optional< ::std::string> & target_name ()
(Required) Name under which the event stream is being offered.
OfferEventStream & target_name (std::optional< ::std::string> value)
(Required) Name under which the event stream is being offered.
const std::optional< ::fuchsia_component_decl::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.
::std::optional< ::fuchsia_component_decl::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.
OfferEventStream & availability (std::optional< ::fuchsia_component_decl::Availability> value)
(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.
void OfferEventStream (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits