// device/bluetooth/public/mojom/gatt_characteristic_properties.mojom-send-validation.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_PROPERTIES_MOJOM_SEND_VALIDATION_H_
#define DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_PROPERTIES_MOJOM_SEND_VALIDATION_H_

#include "device/bluetooth/public/mojom/gatt_characteristic_properties.mojom-shared-internal.h"

#include "device/bluetooth/public/mojom/gatt_characteristic_properties.mojom-data-view.h"

#include "mojo/public/cpp/bindings/lib/send_validation_type.h"
#include "mojo/public/cpp/bindings/lib/send_validation.h"

namespace mojo::internal {

template <typename MaybeConstUserType, mojo::internal::SendValidation send_validation>
struct SendValidationSerializer<::bluetooth::mojom::GattCharacteristicPropertiesDataView, MaybeConstUserType, send_validation> {
  using UserType = typename std::remove_const<MaybeConstUserType>::type;
  using Traits = StructTraits<::bluetooth::mojom::GattCharacteristicPropertiesDataView, UserType>;
  static void Serialize(
      MaybeConstUserType& input,
      mojo::internal::MessageFragment<::bluetooth::mojom::internal::GattCharacteristicProperties_Data>& fragment) {
    if (CallIsNullIfExists<Traits>(input))
      return;
    fragment.Allocate();

      fragment->broadcast = Traits::broadcast(input);

      fragment->read = Traits::read(input);

      fragment->write_without_response = Traits::write_without_response(input);

      fragment->write = Traits::write(input);

      fragment->notify = Traits::notify(input);

      fragment->indicate = Traits::indicate(input);

      fragment->authenticated_signed_writes = Traits::authenticated_signed_writes(input);

      fragment->extended_properties = Traits::extended_properties(input);

      fragment->reliable_write = Traits::reliable_write(input);

      fragment->writable_auxiliaries = Traits::writable_auxiliaries(input);

      fragment->read_encrypted = Traits::read_encrypted(input);

      fragment->write_encrypted = Traits::write_encrypted(input);

      fragment->read_encrypted_authenticated = Traits::read_encrypted_authenticated(input);

      fragment->write_encrypted_authenticated = Traits::write_encrypted_authenticated(input);
  }
};

}  // namespace mojo::internal

#endif  // DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_PROPERTIES_MOJOM_SEND_VALIDATION_H_