class Collection

Defined at line 2139 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

Statically declares a component instance collection.

Public Methods

void Collection ()

Defined at line 2144 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void Collection (Collection && )

Defined at line 2145 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

void Collection (Storage_ storage)
void Collection (const Collection & other)
Collection & operator= (const Collection & other)
bool operator== (const Collection & other)
bool operator!= (const Collection & other)
bool IsEmpty ()
const std::optional< ::std::string> & name ()

(Required) The name of the collection. Instances created in the

collection are scoped to this name.

::std::optional< ::std::string> & name ()

(Required) The name of the collection. Instances created in the

collection are scoped to this name.

Collection & name (std::optional< ::std::string> value)

(Required) The name of the collection. Instances created in the

collection are scoped to this name.

const std::optional< ::fuchsia_component_decl::Durability> & durability ()

(Required) The durability of instances in the collection.

::std::optional< ::fuchsia_component_decl::Durability> & durability ()

(Required) The durability of instances in the collection.

Collection & durability (std::optional< ::fuchsia_component_decl::Durability> value)

(Required) The durability of instances in the collection.

const std::optional< ::std::string> & environment ()

(Optional) The environment assigned to child instances in this

collection.

May be unset, in which case children in this collection will inherit the

parent component's environment. If set, the name must reference an

environment defined in the `ComponentDecl` and it must contain only the

following characters: [a-z0-9-_.].

::std::optional< ::std::string> & environment ()

(Optional) The environment assigned to child instances in this

collection.

May be unset, in which case children in this collection will inherit the

parent component's environment. If set, the name must reference an

environment defined in the `ComponentDecl` and it must contain only the

following characters: [a-z0-9-_.].

Collection & environment (std::optional< ::std::string> value)

(Optional) The environment assigned to child instances in this

collection.

May be unset, in which case children in this collection will inherit the

parent component's environment. If set, the name must reference an

environment defined in the `ComponentDecl` and it must contain only the

following characters: [a-z0-9-_.].

const std::optional< ::fuchsia_component_decl::AllowedOffers> & allowed_offers ()

(Optional, defaults to `STATIC_ONLY`) The kinds of offers that can

target the child instances in this collection.

Only components using the `dynamic_offers` restricted feature may set

this field.

::std::optional< ::fuchsia_component_decl::AllowedOffers> & allowed_offers ()

(Optional, defaults to `STATIC_ONLY`) The kinds of offers that can

target the child instances in this collection.

Only components using the `dynamic_offers` restricted feature may set

this field.

Collection & allowed_offers (std::optional< ::fuchsia_component_decl::AllowedOffers> value)

(Optional, defaults to `STATIC_ONLY`) The kinds of offers that can

target the child instances in this collection.

Only components using the `dynamic_offers` restricted feature may set

this field.

const std::optional<bool> & allow_long_names ()

(Optional, defaults to `false`) Whether child instances in this

collection can have names longer than the default length limit of 100.

Only components using the `allow_long_names` restricted feature may set

this field.

::std::optional<bool> & allow_long_names ()

(Optional, defaults to `false`) Whether child instances in this

collection can have names longer than the default length limit of 100.

Only components using the `allow_long_names` restricted feature may set

this field.

Collection & allow_long_names (std::optional<bool> value)

(Optional, defaults to `false`) Whether child instances in this

collection can have names longer than the default length limit of 100.

Only components using the `allow_long_names` restricted feature may set

this field.

Collection & operator= (Collection && )

Defined at line 2146 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

const std::optional<bool> & persistent_storage ()

(Optional) Whether the data in isolated storage used by dynamic child

instances and their descendants will persist after the instances are

destroyed. New dynamic instances inherit the previous instances' data

stores.

This setting can be overridden by a lower-level collection that is a

descendant of a collection that enables/disables this setting.

This setting applies to all storage capabilities consumed by the

collection components and their descendants.

The default is the value inherited from an ancestral collection if set,

otherwise `false`.

::std::optional<bool> & persistent_storage ()

(Optional) Whether the data in isolated storage used by dynamic child

instances and their descendants will persist after the instances are

destroyed. New dynamic instances inherit the previous instances' data

stores.

This setting can be overridden by a lower-level collection that is a

descendant of a collection that enables/disables this setting.

This setting applies to all storage capabilities consumed by the

collection components and their descendants.

The default is the value inherited from an ancestral collection if set,

otherwise `false`.

Collection & persistent_storage (std::optional<bool> value)

(Optional) Whether the data in isolated storage used by dynamic child

instances and their descendants will persist after the instances are

destroyed. New dynamic instances inherit the previous instances' data

stores.

This setting can be overridden by a lower-level collection that is a

descendant of a collection that enables/disables this setting.

This setting applies to all storage capabilities consumed by the

collection components and their descendants.

The default is the value inherited from an ancestral collection if set,

otherwise `false`.

void Collection (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits