class ComponentData

Defined at line 2663 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

Data known to a component, but not exposed to the platform, to attach to feedback reports.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::std::string & namespace_ ()

The top-level namespace associated with the data:

* Is intended to group related data together and reduce data key collisions across

namespaces.

* May be shared by multiple clients, e.g., there could be multiple clients within the same

component or across components that want to expose related data and they would all use

the same namespace.

* Will be prefixed to every data key passed within that namespace in all feedback reports,

e.g., the annotation "version" would appear as "foo.version" in all feedback reports if

the namespace is "foo".

* Must match [a-z

\

-]+, i.e. only lowercase letters and hyphens or this will result in a

ZX_ERR_INVALID_ARGS epitaph.

* Must not match a reserved namespace used internally for platform data, e.g., "build", or

this will result in a ZX_ERR_INVALID_ARGS epitaph. The list of reserved namespaces is

internal and subject to change for now.

Defined at line 2683 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

bool has_namespace ()

Defined at line 2687 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

::std::string * mutable_namespace_ ()

The top-level namespace associated with the data:

* Is intended to group related data together and reduce data key collisions across

namespaces.

* May be shared by multiple clients, e.g., there could be multiple clients within the same

component or across components that want to expose related data and they would all use

the same namespace.

* Will be prefixed to every data key passed within that namespace in all feedback reports,

e.g., the annotation "version" would appear as "foo.version" in all feedback reports if

the namespace is "foo".

* Must match [a-z

\

-]+, i.e. only lowercase letters and hyphens or this will result in a

ZX_ERR_INVALID_ARGS epitaph.

* Must not match a reserved namespace used internally for platform data, e.g., "build", or

this will result in a ZX_ERR_INVALID_ARGS epitaph. The list of reserved namespaces is

internal and subject to change for now.

Defined at line 2705 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

void clear_namespace ()

Defined at line 2713 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

const ::std::vector< ::fuchsia::feedback::Annotation> & annotations ()

A vector of key-value string pairs, e.g., `

<

"version", "1.2.3.45">`.

Keys:

* Should be unique as only the latest value for a given key in the vector will be

considered.

* Must match [a-z

\

-

.

]+, i.e. only lowercase letters, hyphens and periods. Use periods for

sub-namespacing, e.g., "build.label" and "build.type", so that related annotations are

grouped together (here related to "build") when sorted lexicographically.

Defined at line 2729 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

bool has_annotations ()

Defined at line 2733 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

::std::vector< ::fuchsia::feedback::Annotation> * mutable_annotations ()

A vector of key-value string pairs, e.g., `

<

"version", "1.2.3.45">`.

Keys:

* Should be unique as only the latest value for a given key in the vector will be

considered.

* Must match [a-z

\

-

.

]+, i.e. only lowercase letters, hyphens and periods. Use periods for

sub-namespacing, e.g., "build.label" and "build.type", so that related annotations are

grouped together (here related to "build") when sorted lexicographically.

Defined at line 2745 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

void clear_annotations ()

Defined at line 2753 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h

ComponentData & set_namespace_ (::std::string _value)
ComponentData & set_annotations (::std::vector< ::fuchsia::feedback::Annotation> _value)
void ComponentData ()
void ComponentData (ComponentData && other)
void ~ComponentData ()
ComponentData & operator= (ComponentData && other)
::std::unique_ptr<ComponentData> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ComponentData * _value, size_t _offset)
zx_status_t Clone (ComponentData * _result)