class AttributionUpdate
Defined at line 584 of file fidling/gen/sdk/fidl/fuchsia.memory.attribution/fuchsia.memory.attribution/cpp/fidl/fuchsia.memory.attribution/cpp/natural_types.h
Describes a change affecting attribution of resources to a single principal.
Public Methods
void AttributionUpdate (AttributionUpdate && other)
AttributionUpdate & operator= (AttributionUpdate && other)
bool IsUnknown ()
::fuchsia_memory_attribution::AttributionUpdate::Tag Which ()
AttributionUpdate WithAdd (::fuchsia_memory_attribution::NewPrincipal val)
const ::fidl::internal::UnionMemberView<1, Storage_> add ()
::fidl::internal::UnionMemberView<1, Storage_> add ()
AttributionUpdate & add (::fuchsia_memory_attribution::NewPrincipal value)
Reports a new principal managed by the reporter.
Declaring a Principal means that the declarer/reporter is providing the
resources for the Principal to run. Typically, Component Framework
Runners will declare the components they run as Principals.
AttributionUpdate WithUpdate (::fuchsia_memory_attribution::UpdatedPrincipal val)
const ::fidl::internal::UnionMemberView<2, Storage_> update ()
::fidl::internal::UnionMemberView<2, Storage_> update ()
AttributionUpdate & update (::fuchsia_memory_attribution::UpdatedPrincipal value)
Replaces the attribution information for a Principal.
When this is received, the client is should discard any attribution
information received by this channel for the Principal, and replace it
with this information.
AttributionUpdate WithRemove (uint64_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> remove ()
::fidl::internal::UnionMemberView<3, Storage_> remove ()
AttributionUpdate & remove (uint64_t value)
Removes a Principal.
Declares that a Principal is no longer active on the system. All
attribution information for this Principal can be removed after this
message. Any remaining resources will still be attributed according to
the default attribution rules.
void AttributionUpdate (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kAdd | 1 |
| kUpdate | 2 |
| kRemove | 3 |
| _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 592 of file fidling/gen/sdk/fidl/fuchsia.memory.attribution/fuchsia.memory.attribution/cpp/fidl/fuchsia.memory.attribution/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits