Coverage Report

Created: 2025-06-24 06:17

/src/connectedhomeip/zzz_generated/app-common/clusters/TlsClientManagement/Structs.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Structs.h.zapt
20
21
#pragma once
22
23
#include <app/data-model/DecodableList.h>
24
#include <app/data-model/List.h>
25
#include <app/data-model/Nullable.h>
26
#include <lib/core/DataModelTypes.h>
27
#include <lib/core/Optional.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Structs.h>
32
33
#include <cstdint>
34
35
namespace chip {
36
namespace app {
37
namespace Clusters {
38
namespace TlsClientManagement {
39
namespace Structs {
40
namespace TLSEndpointStruct {
41
enum class Fields : uint8_t
42
{
43
    kEndpointID  = 0,
44
    kHostname    = 1,
45
    kPort        = 2,
46
    kCaid        = 3,
47
    kCcdid       = 4,
48
    kStatus      = 5,
49
    kFabricIndex = 254,
50
};
51
52
struct Type
53
{
54
public:
55
    uint16_t endpointID = static_cast<uint16_t>(0);
56
    chip::ByteSpan hostname;
57
    uint16_t port = static_cast<uint16_t>(0);
58
    uint16_t caid = static_cast<uint16_t>(0);
59
    DataModel::Nullable<uint16_t> ccdid;
60
    TLSEndpointStatusEnum status  = static_cast<TLSEndpointStatusEnum>(0);
61
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
62
63
    CHIP_ERROR Decode(TLV::TLVReader & reader);
64
65
    static constexpr bool kIsFabricScoped = true;
66
67
0
    auto GetFabricIndex() const { return fabricIndex; }
68
69
0
    void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; }
70
71
    CHIP_ERROR EncodeForWrite(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
72
    CHIP_ERROR EncodeForRead(TLV::TLVWriter & aWriter, TLV::Tag aTag, FabricIndex aAccessingFabricIndex) const;
73
74
private:
75
    CHIP_ERROR DoEncode(TLV::TLVWriter & aWriter, TLV::Tag aTag, const Optional<FabricIndex> & aAccessingFabricIndex) const;
76
};
77
78
using DecodableType = Type;
79
80
} // namespace TLSEndpointStruct
81
} // namespace Structs
82
} // namespace TlsClientManagement
83
} // namespace Clusters
84
} // namespace app
85
} // namespace chip