template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 1107 of file fidling/gen/sdk/fidl/fuchsia.pkg/fuchsia.pkg/cpp/fidl/fuchsia.pkg/cpp/wire_types.h

Public Methods

::fuchsia_pkg::wire::RepositoryConfig Build ()

Build and return the table. The builder should not be used after this.

bool has_repo_url ()
void clear_repo_url ()

Clears the repo_url field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fidl::StringView & repo_url ()

A fuchsia-pkg URL identifying the repository. Required.

Example: fuchsia-pkg://example.com/

BuilderImpl & repo_url (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

A fuchsia-pkg URL identifying the repository. Required.

Example: fuchsia-pkg://example.com/

bool has_root_keys ()
void clear_root_keys ()

Clears the root_keys field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fidl::VectorView< ::fuchsia_pkg::wire::RepositoryKeyConfig> & root_keys ()

A vector of public keys that have signed the initial trusted root

metadata. Required.

These keys must match one of the trusted keys known to the system.

BuilderImpl & root_keys (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_pkg::wire::RepositoryKeyConfig>>> elem)

A vector of public keys that have signed the initial trusted root

metadata. Required.

These keys must match one of the trusted keys known to the system.

bool has_mirrors ()
void clear_mirrors ()

Clears the mirrors field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fidl::VectorView< ::fuchsia_pkg::wire::MirrorConfig> & mirrors ()

The repository mirrors that serve the package contents. Required.

BuilderImpl & mirrors (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_pkg::wire::MirrorConfig>>> elem)

The repository mirrors that serve the package contents. Required.

bool has_root_version ()
void clear_root_version ()

Clears the root_version field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & root_version ()

The initial trusted root metadata version. Optional, if absent presumed

to be 1.

This value describes the initial root metadata version the resolver will

fetch to initialize trust, once it's signatures has been verified by the

`root_keys`. It will then walk the chain of N+1, N+2, and etc to the

latest version before the resolver fetches any targets.

It is recommended that this `root_version` number and `root_keys ` are

kept reasonably in sync with the most recent published version of the

root metadata, as that avoids the risk of an old and unused root key

being used to compromise resolvers during the trust initialization.

BuilderImpl & root_version (uint32_t elem)

The initial trusted root metadata version. Optional, if absent presumed

to be 1.

This value describes the initial root metadata version the resolver will

fetch to initialize trust, once it's signatures has been verified by the

`root_keys`. It will then walk the chain of N+1, N+2, and etc to the

latest version before the resolver fetches any targets.

It is recommended that this `root_version` number and `root_keys ` are

kept reasonably in sync with the most recent published version of the

root metadata, as that avoids the risk of an old and unused root key

being used to compromise resolvers during the trust initialization.

bool has_root_threshold ()
void clear_root_threshold ()

Clears the root_threshold field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & root_threshold ()

The number of `root_keys` that need to have signed the root metadata for it

to be considered trusted. This value must be greater than or equal to 1.

Optional, if absent presumed to be 1.

BuilderImpl & root_threshold (uint32_t elem)

The number of `root_keys` that need to have signed the root metadata for it

to be considered trusted. This value must be greater than or equal to 1.

Optional, if absent presumed to be 1.

bool has_use_local_mirror ()
void clear_use_local_mirror ()

Clears the use_local_mirror field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

bool & use_local_mirror ()

Whether the package resolver should check attached storage for blobs and

repository metadata. Optional, if absent presumed to be false.

BuilderImpl & use_local_mirror (bool elem)

Whether the package resolver should check attached storage for blobs and

repository metadata. Optional, if absent presumed to be false.

bool has_storage_type ()
void clear_storage_type ()

Clears the storage_type field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_pkg::wire::RepositoryStorageType & storage_type ()

Controls how repository metadata is persisted across reboots. Optional, if absent presumed

to be EPHEMERAL.

BuilderImpl & storage_type (::fuchsia_pkg::wire::RepositoryStorageType elem)

Controls how repository metadata is persisted across reboots. Optional, if absent presumed

to be EPHEMERAL.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_pkg::wire::RepositoryConfig, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_pkg::wire::RepositoryConfig>> && frame)

Records