class ServiceInfo

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

Represents a local or remote GATT service.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

ServiceInfo & set_handle (::fuchsia::bluetooth::gatt2::ServiceHandle _value)
ServiceInfo & set_kind (::fuchsia::bluetooth::gatt2::ServiceKind _value)
ServiceInfo & set_type (::fuchsia::bluetooth::Uuid _value)
ServiceInfo & set_characteristics (::std::vector< ::fuchsia::bluetooth::gatt2::Characteristic> _value)
ServiceInfo & set_includes (::std::vector< ::fuchsia::bluetooth::gatt2::ServiceHandle> _value)
void ServiceInfo ()
void ServiceInfo (ServiceInfo && other)
void ~ServiceInfo ()
ServiceInfo & operator= (ServiceInfo && other)
::std::unique_ptr<ServiceInfo> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ServiceInfo * _value, size_t _offset)
zx_status_t Clone (ServiceInfo * _result)
const ::fuchsia::bluetooth::gatt2::ServiceHandle & handle ()

Unique identifier for this GATT service.

Always present if this represents a remote service, in which case this is unique across the

Client that returned this ServiceInfo.

Required for local services, in which case this must be unique across all services published

to a single Server instance. Can be used in the `ServiceInfo.includes` of other

PublishService calls to the Server where this service is published.

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

bool has_handle ()

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

::fuchsia::bluetooth::gatt2::ServiceHandle * mutable_handle ()

Unique identifier for this GATT service.

Always present if this represents a remote service, in which case this is unique across the

Client that returned this ServiceInfo.

Required for local services, in which case this must be unique across all services published

to a single Server instance. Can be used in the `ServiceInfo.includes` of other

PublishService calls to the Server where this service is published.

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

void clear_handle ()

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

const ::fuchsia::bluetooth::gatt2::ServiceKind & kind ()

Indicates whether this is a primary or secondary service.

Always present for remote services. Optional for local services

Default: ServiceKind::PRIMARY

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

bool has_kind ()

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

::fuchsia::bluetooth::gatt2::ServiceKind * mutable_kind ()

Indicates whether this is a primary or secondary service.

Always present for remote services. Optional for local services

Default: ServiceKind::PRIMARY

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

void clear_kind ()

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

const ::fuchsia::bluetooth::Uuid & type ()

The UUID that identifies the type of this service.

There may be multiple services with the same UUID.

Always present for remote services. Required for local services.

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

bool has_type ()

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

::fuchsia::bluetooth::Uuid * mutable_type ()

The UUID that identifies the type of this service.

There may be multiple services with the same UUID.

Always present for remote services. Required for local services.

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

void clear_type ()

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

const ::std::vector< ::fuchsia::bluetooth::gatt2::Characteristic> & characteristics ()

The characteristics of this service.

Required for local services. Never present for remote services.

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

bool has_characteristics ()

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

::std::vector< ::fuchsia::bluetooth::gatt2::Characteristic> * mutable_characteristics ()

The characteristics of this service.

Required for local services. Never present for remote services.

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

void clear_characteristics ()

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

const ::std::vector< ::fuchsia::bluetooth::gatt2::ServiceHandle> & includes ()

Handles of other services that are included by this service.

Optional for local services. Never present for remote services.

TODO(https://fxbug.dev/42147529): This is not currently supported for local services.

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

bool has_includes ()

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

::std::vector< ::fuchsia::bluetooth::gatt2::ServiceHandle> * mutable_includes ()

Handles of other services that are included by this service.

Optional for local services. Never present for remote services.

TODO(https://fxbug.dev/42147529): This is not currently supported for local services.

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

void clear_includes ()

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