class AttributePermissions

Defined at line 3110 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

Specifies the access permissions for a specific attribute value.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

AttributePermissions & set_read (::fuchsia::bluetooth::gatt2::SecurityRequirements _value)
AttributePermissions & set_write (::fuchsia::bluetooth::gatt2::SecurityRequirements _value)
AttributePermissions & set_update (::fuchsia::bluetooth::gatt2::SecurityRequirements _value)
void AttributePermissions ()
void AttributePermissions (AttributePermissions && other)
void ~AttributePermissions ()
AttributePermissions & operator= (AttributePermissions && other)
::std::unique_ptr<AttributePermissions> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, AttributePermissions * _value, size_t _offset)
zx_status_t Clone (AttributePermissions * _result)
const ::fuchsia::bluetooth::gatt2::SecurityRequirements & read ()

Specifies whether an attribute has the read permission. If not present,

the attribute value cannot be read. Otherwise, it can be read only if the

permissions specified in the SecurityRequirements table are satisfied.

Defined at line 3119 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

bool has_read ()

Defined at line 3123 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

::fuchsia::bluetooth::gatt2::SecurityRequirements * mutable_read ()

Specifies whether an attribute has the read permission. If not present,

the attribute value cannot be read. Otherwise, it can be read only if the

permissions specified in the SecurityRequirements table are satisfied.

Defined at line 3130 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

void clear_read ()

Defined at line 3138 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

const ::fuchsia::bluetooth::gatt2::SecurityRequirements & write ()

Specifies whether an attribute has the write permission. If not present,

the attribute value cannot be written. Otherwise, it can be written only

if the permissions specified in the SecurityRequirements table are satisfied.

Defined at line 3149 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

bool has_write ()

Defined at line 3153 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

::fuchsia::bluetooth::gatt2::SecurityRequirements * mutable_write ()

Specifies whether an attribute has the write permission. If not present,

the attribute value cannot be written. Otherwise, it can be written only

if the permissions specified in the SecurityRequirements table are satisfied.

Defined at line 3160 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

void clear_write ()

Defined at line 3168 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

const ::fuchsia::bluetooth::gatt2::SecurityRequirements & update ()

Specifies the security requirements for a client to subscribe to

notifications or indications on a characteristic. A characteristic's

support for notifications or indiciations is specified using the NOTIFY and

INDICATE characteristic properties. If a local characteristic has one of

these properties then this field must be present. Otherwise, this field

must not be present.

This field is ignored for Descriptors.

Defined at line 3184 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

bool has_update ()

Defined at line 3188 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

::fuchsia::bluetooth::gatt2::SecurityRequirements * mutable_update ()

Specifies the security requirements for a client to subscribe to

notifications or indications on a characteristic. A characteristic's

support for notifications or indiciations is specified using the NOTIFY and

INDICATE characteristic properties. If a local characteristic has one of

these properties then this field must be present. Otherwise, this field

must not be present.

This field is ignored for Descriptors.

Defined at line 3200 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

void clear_update ()

Defined at line 3208 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h