/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Enums-Check.h.zapt

#pragma once

#include <clusters/JointFabricDatastore/Enums.h>

namespace chip {
namespace app {
namespace Clusters {
static auto __attribute__((unused)) EnsureKnownEnumValue(
    JointFabricDatastore::DatastoreAccessControlEntryAuthModeEnum val) {
  using EnumType =
      JointFabricDatastore::DatastoreAccessControlEntryAuthModeEnum;
  switch (val) {
  case EnumType::kPase:
  case EnumType::kCase:
  case EnumType::kGroup:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused)) EnsureKnownEnumValue(
    JointFabricDatastore::DatastoreAccessControlEntryPrivilegeEnum val) {
  using EnumType =
      JointFabricDatastore::DatastoreAccessControlEntryPrivilegeEnum;
  switch (val) {
  case EnumType::kView:
  case EnumType::kProxyView:
  case EnumType::kOperate:
  case EnumType::kManage:
  case EnumType::kAdminister:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused)) EnsureKnownEnumValue(
    JointFabricDatastore::DatastoreGroupKeyMulticastPolicyEnum val) {
  using EnumType = JointFabricDatastore::DatastoreGroupKeyMulticastPolicyEnum;
  switch (val) {
  case EnumType::kPerGroupID:
  case EnumType::kAllNodes:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused)) EnsureKnownEnumValue(
    JointFabricDatastore::DatastoreGroupKeySecurityPolicyEnum val) {
  using EnumType = JointFabricDatastore::DatastoreGroupKeySecurityPolicyEnum;
  switch (val) {
  case EnumType::kTrustFirst:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
static auto __attribute__((unused))
EnsureKnownEnumValue(JointFabricDatastore::DatastoreStateEnum val) {
  using EnumType = JointFabricDatastore::DatastoreStateEnum;
  switch (val) {
  case EnumType::kPending:
  case EnumType::kCommitted:
  case EnumType::kDeletePending:
  case EnumType::kCommitFailed:
    return val;
  default:
    return EnumType::kUnknownEnumValue;
  }
}
} // namespace Clusters
} // namespace app
} // namespace chip
