class AnnotationValue
Defined at line 228 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/cpp/fidl/fuchsia.element/cpp/natural_types.h
The value of an [`fuchsia.element/Annotation`].
The actual field used depends on the type of annotation.
Public Methods
void AnnotationValue (AnnotationValue && other)
AnnotationValue & operator= (AnnotationValue && other)
::fuchsia_element::AnnotationValue::Tag Which ()
AnnotationValue WithText (::std::string val)
const ::fidl::internal::UnionMemberView<1, Storage_> text ()
::fidl::internal::UnionMemberView<1, Storage_> text ()
AnnotationValue & text (::std::string value)
Sets the union to hold the text member.
AnnotationValue WithBuffer (::fuchsia_mem::Buffer val)
const ::fidl::internal::UnionMemberView<2, Storage_> buffer ()
::fidl::internal::UnionMemberView<2, Storage_> buffer ()
AnnotationValue & buffer (::fuchsia_mem::Buffer value)
Sets the union to hold the buffer member.
void AnnotationValue (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kText | 1 |
| kBuffer | 2 |
TODO: share union tag types between wire
&
natural.
Defined at line 236 of file fidling/gen/sdk/fidl/fuchsia.element/fuchsia.element/cpp/fidl/fuchsia.element/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits