From 3fa497d239cd0f62ba2f78db07b3d86a226fe819 Mon Sep 17 00:00:00 2001 From: marcos <15697303+gmarcosb@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:31:44 -0700 Subject: [PATCH] Remove files from name changes --- ...tClusterPushAVStreamConfigurationStruct.kt | 75 ------- ...reamTransportCMAFContainerOptionsStruct.kt | 83 ------- ...AVStreamTransportContainerOptionsStruct.kt | 89 -------- ...hAVStreamTransportMetadataOptionsStruct.kt | 72 ------- ...TransportMotionTriggerTimeControlStruct.kt | 77 ------- ...usterPushAVStreamTransportOptionsStruct.kt | 202 ------------------ ...shAVStreamTransportTriggerOptionsStruct.kt | 169 --------------- ...tClusterPushAVStreamConfigurationStruct.kt | 76 ------- ...reamTransportCMAFContainerOptionsStruct.kt | 83 ------- ...AVStreamTransportContainerOptionsStruct.kt | 89 -------- ...hAVStreamTransportMetadataOptionsStruct.kt | 72 ------- ...TransportMotionTriggerTimeControlStruct.kt | 77 ------- ...usterPushAVStreamTransportOptionsStruct.kt | 202 ------------------ ...shAVStreamTransportTriggerOptionsStruct.kt | 169 --------------- 14 files changed, 1535 deletions(-) delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt deleted file mode 100644 index 70c5d13d6225c5..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt +++ /dev/null @@ -1,75 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamConfigurationStruct( - val connectionID: UInt, - val streamTransportStatus: UInt, - val streamTransportOptions: PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamConfigurationStruct {\n") - append("\tconnectionID : $connectionID\n") - append("\tstreamTransportStatus : $streamTransportStatus\n") - append("\tstreamTransportOptions : $streamTransportOptions\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CONNECTION_ID), connectionID) - put(ContextSpecificTag(TAG_STREAM_TRANSPORT_STATUS), streamTransportStatus) - streamTransportOptions.toTlv(ContextSpecificTag(TAG_STREAM_TRANSPORT_OPTIONS), this) - endStructure() - } - } - - companion object { - private const val TAG_CONNECTION_ID = 0 - private const val TAG_STREAM_TRANSPORT_STATUS = 1 - private const val TAG_STREAM_TRANSPORT_OPTIONS = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamConfigurationStruct { - tlvReader.enterStructure(tlvTag) - val connectionID = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_ID)) - val streamTransportStatus = tlvReader.getUInt(ContextSpecificTag(TAG_STREAM_TRANSPORT_STATUS)) - val streamTransportOptions = - PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.fromTlv( - ContextSpecificTag(TAG_STREAM_TRANSPORT_OPTIONS), - tlvReader, - ) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamConfigurationStruct( - connectionID, - streamTransportStatus, - streamTransportOptions, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt deleted file mode 100644 index 35618c8fe31db3..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt +++ /dev/null @@ -1,83 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import java.util.Optional -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct( - val chunkDuration: UInt, - val CENCKey: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct {\n") - append("\tchunkDuration : $chunkDuration\n") - append("\tCENCKey : $CENCKey\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CHUNK_DURATION), chunkDuration) - if (CENCKey != null) { - if (CENCKey.isPresent) { - val optCENCKey = CENCKey.get() - put(ContextSpecificTag(TAG_CENC_KEY), optCENCKey) - } - } else { - putNull(ContextSpecificTag(TAG_CENC_KEY)) - } - endStructure() - } - } - - companion object { - private const val TAG_CHUNK_DURATION = 0 - private const val TAG_CENC_KEY = 1 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val chunkDuration = tlvReader.getUInt(ContextSpecificTag(TAG_CHUNK_DURATION)) - val CENCKey = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CENC_KEY))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CENC_KEY))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CENC_KEY)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct( - chunkDuration, - CENCKey, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt deleted file mode 100644 index f0b335b9e7cf86..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt +++ /dev/null @@ -1,89 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import java.util.Optional -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct( - val containerType: UInt, - val CMAFContainerOptions: - Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct {\n") - append("\tcontainerType : $containerType\n") - append("\tCMAFContainerOptions : $CMAFContainerOptions\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CONTAINER_TYPE), containerType) - if (CMAFContainerOptions != null) { - if (CMAFContainerOptions.isPresent) { - val optCMAFContainerOptions = CMAFContainerOptions.get() - optCMAFContainerOptions.toTlv(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS), this) - } - } else { - putNull(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS)) - } - endStructure() - } - } - - companion object { - private const val TAG_CONTAINER_TYPE = 0 - private const val TAG_CMAF_CONTAINER_OPTIONS = 1 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val containerType = tlvReader.getUInt(ContextSpecificTag(TAG_CONTAINER_TYPE)) - val CMAFContainerOptions = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS), - tlvReader, - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct( - containerType, - CMAFContainerOptions, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt deleted file mode 100644 index 26a8c8307715c1..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt +++ /dev/null @@ -1,72 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct( - val multiplexing: UInt, - val includeMotionZones: Boolean, - val enableMetadataPrivacySensitive: Boolean, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct {\n") - append("\tmultiplexing : $multiplexing\n") - append("\tincludeMotionZones : $includeMotionZones\n") - append("\tenableMetadataPrivacySensitive : $enableMetadataPrivacySensitive\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_MULTIPLEXING), multiplexing) - put(ContextSpecificTag(TAG_INCLUDE_MOTION_ZONES), includeMotionZones) - put(ContextSpecificTag(TAG_ENABLE_METADATA_PRIVACY_SENSITIVE), enableMetadataPrivacySensitive) - endStructure() - } - } - - companion object { - private const val TAG_MULTIPLEXING = 0 - private const val TAG_INCLUDE_MOTION_ZONES = 1 - private const val TAG_ENABLE_METADATA_PRIVACY_SENSITIVE = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct { - tlvReader.enterStructure(tlvTag) - val multiplexing = tlvReader.getUInt(ContextSpecificTag(TAG_MULTIPLEXING)) - val includeMotionZones = tlvReader.getBoolean(ContextSpecificTag(TAG_INCLUDE_MOTION_ZONES)) - val enableMetadataPrivacySensitive = - tlvReader.getBoolean(ContextSpecificTag(TAG_ENABLE_METADATA_PRIVACY_SENSITIVE)) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct( - multiplexing, - includeMotionZones, - enableMetadataPrivacySensitive, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt deleted file mode 100644 index ab55a596563cc9..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt +++ /dev/null @@ -1,77 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct( - val initialDuration: UInt, - val augmentationDuration: UInt, - val maxDuration: ULong, - val blindDuration: UInt, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct {\n") - append("\tinitialDuration : $initialDuration\n") - append("\taugmentationDuration : $augmentationDuration\n") - append("\tmaxDuration : $maxDuration\n") - append("\tblindDuration : $blindDuration\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_INITIAL_DURATION), initialDuration) - put(ContextSpecificTag(TAG_AUGMENTATION_DURATION), augmentationDuration) - put(ContextSpecificTag(TAG_MAX_DURATION), maxDuration) - put(ContextSpecificTag(TAG_BLIND_DURATION), blindDuration) - endStructure() - } - } - - companion object { - private const val TAG_INITIAL_DURATION = 0 - private const val TAG_AUGMENTATION_DURATION = 1 - private const val TAG_MAX_DURATION = 2 - private const val TAG_BLIND_DURATION = 3 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct { - tlvReader.enterStructure(tlvTag) - val initialDuration = tlvReader.getUInt(ContextSpecificTag(TAG_INITIAL_DURATION)) - val augmentationDuration = tlvReader.getUInt(ContextSpecificTag(TAG_AUGMENTATION_DURATION)) - val maxDuration = tlvReader.getULong(ContextSpecificTag(TAG_MAX_DURATION)) - val blindDuration = tlvReader.getUInt(ContextSpecificTag(TAG_BLIND_DURATION)) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct( - initialDuration, - augmentationDuration, - maxDuration, - blindDuration, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt deleted file mode 100644 index eece75a24acf2b..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt +++ /dev/null @@ -1,202 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import java.util.Optional -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct( - val streamType: UInt, - val videoStreamID: Optional?, - val audioStreamID: Optional?, - val TLSEndpointID: UInt, - val url: String, - val triggerOptions: PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct, - val containerFormat: UInt, - val ingestMethod: UInt, - val containerOptions: PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct, - val metadataOptions: - Optional?, - val expiryTime: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct {\n") - append("\tstreamType : $streamType\n") - append("\tvideoStreamID : $videoStreamID\n") - append("\taudioStreamID : $audioStreamID\n") - append("\tTLSEndpointID : $TLSEndpointID\n") - append("\turl : $url\n") - append("\ttriggerOptions : $triggerOptions\n") - append("\tcontainerFormat : $containerFormat\n") - append("\tingestMethod : $ingestMethod\n") - append("\tcontainerOptions : $containerOptions\n") - append("\tmetadataOptions : $metadataOptions\n") - append("\texpiryTime : $expiryTime\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_STREAM_TYPE), streamType) - if (videoStreamID != null) { - if (videoStreamID.isPresent) { - val optvideoStreamID = videoStreamID.get() - put(ContextSpecificTag(TAG_VIDEO_STREAM_ID), optvideoStreamID) - } - } else { - putNull(ContextSpecificTag(TAG_VIDEO_STREAM_ID)) - } - if (audioStreamID != null) { - if (audioStreamID.isPresent) { - val optaudioStreamID = audioStreamID.get() - put(ContextSpecificTag(TAG_AUDIO_STREAM_ID), optaudioStreamID) - } - } else { - putNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID)) - } - put(ContextSpecificTag(TAG_TLS_ENDPOINT_ID), TLSEndpointID) - put(ContextSpecificTag(TAG_URL), url) - triggerOptions.toTlv(ContextSpecificTag(TAG_TRIGGER_OPTIONS), this) - put(ContextSpecificTag(TAG_CONTAINER_FORMAT), containerFormat) - put(ContextSpecificTag(TAG_INGEST_METHOD), ingestMethod) - containerOptions.toTlv(ContextSpecificTag(TAG_CONTAINER_OPTIONS), this) - if (metadataOptions != null) { - if (metadataOptions.isPresent) { - val optmetadataOptions = metadataOptions.get() - optmetadataOptions.toTlv(ContextSpecificTag(TAG_METADATA_OPTIONS), this) - } - } else { - putNull(ContextSpecificTag(TAG_METADATA_OPTIONS)) - } - if (expiryTime != null) { - if (expiryTime.isPresent) { - val optexpiryTime = expiryTime.get() - put(ContextSpecificTag(TAG_EXPIRY_TIME), optexpiryTime) - } - } else { - putNull(ContextSpecificTag(TAG_EXPIRY_TIME)) - } - endStructure() - } - } - - companion object { - private const val TAG_STREAM_TYPE = 0 - private const val TAG_VIDEO_STREAM_ID = 1 - private const val TAG_AUDIO_STREAM_ID = 2 - private const val TAG_TLS_ENDPOINT_ID = 3 - private const val TAG_URL = 4 - private const val TAG_TRIGGER_OPTIONS = 5 - private const val TAG_CONTAINER_FORMAT = 6 - private const val TAG_INGEST_METHOD = 7 - private const val TAG_CONTAINER_OPTIONS = 8 - private const val TAG_METADATA_OPTIONS = 9 - private const val TAG_EXPIRY_TIME = 10 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct { - tlvReader.enterStructure(tlvTag) - val streamType = tlvReader.getUInt(ContextSpecificTag(TAG_STREAM_TYPE)) - val videoStreamID = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_VIDEO_STREAM_ID))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_VIDEO_STREAM_ID))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VIDEO_STREAM_ID)) - null - } - val audioStreamID = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AUDIO_STREAM_ID))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_AUDIO_STREAM_ID))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID)) - null - } - val TLSEndpointID = tlvReader.getUInt(ContextSpecificTag(TAG_TLS_ENDPOINT_ID)) - val url = tlvReader.getString(ContextSpecificTag(TAG_URL)) - val triggerOptions = - PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_TRIGGER_OPTIONS), - tlvReader, - ) - val containerFormat = tlvReader.getUInt(ContextSpecificTag(TAG_CONTAINER_FORMAT)) - val ingestMethod = tlvReader.getUInt(ContextSpecificTag(TAG_INGEST_METHOD)) - val containerOptions = - PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_CONTAINER_OPTIONS), - tlvReader, - ) - val metadataOptions = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_METADATA_OPTIONS))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.fromTlv( - ContextSpecificTag(TAG_METADATA_OPTIONS), - tlvReader, - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_METADATA_OPTIONS)) - null - } - val expiryTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXPIRY_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_EXPIRY_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EXPIRY_TIME)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct( - streamType, - videoStreamID, - audioStreamID, - TLSEndpointID, - url, - triggerOptions, - containerFormat, - ingestMethod, - containerOptions, - metadataOptions, - expiryTime, - ) - } - } -} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt deleted file mode 100644 index 73e7ff2954a1c4..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt +++ /dev/null @@ -1,169 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import java.util.Optional -import matter.tlv.AnonymousTag -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct( - val triggerType: UInt, - val motionZones: Optional>?, - val motionSensitivity: Optional?, - val motionTimeControl: - Optional?, - val activationReason: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct {\n") - append("\ttriggerType : $triggerType\n") - append("\tmotionZones : $motionZones\n") - append("\tmotionSensitivity : $motionSensitivity\n") - append("\tmotionTimeControl : $motionTimeControl\n") - append("\tactivationReason : $activationReason\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_TRIGGER_TYPE), triggerType) - if (motionZones != null) { - if (motionZones.isPresent) { - val optmotionZones = motionZones.get() - startArray(ContextSpecificTag(TAG_MOTION_ZONES)) - for (item in optmotionZones.iterator()) { - put(AnonymousTag, item) - } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_ZONES)) - } - if (motionSensitivity != null) { - if (motionSensitivity.isPresent) { - val optmotionSensitivity = motionSensitivity.get() - put(ContextSpecificTag(TAG_MOTION_SENSITIVITY), optmotionSensitivity) - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_SENSITIVITY)) - } - if (motionTimeControl != null) { - if (motionTimeControl.isPresent) { - val optmotionTimeControl = motionTimeControl.get() - optmotionTimeControl.toTlv(ContextSpecificTag(TAG_MOTION_TIME_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_TIME_CONTROL)) - } - if (activationReason != null) { - if (activationReason.isPresent) { - val optactivationReason = activationReason.get() - put(ContextSpecificTag(TAG_ACTIVATION_REASON), optactivationReason) - } - } else { - putNull(ContextSpecificTag(TAG_ACTIVATION_REASON)) - } - endStructure() - } - } - - companion object { - private const val TAG_TRIGGER_TYPE = 0 - private const val TAG_MOTION_ZONES = 1 - private const val TAG_MOTION_SENSITIVITY = 2 - private const val TAG_MOTION_TIME_CONTROL = 3 - private const val TAG_ACTIVATION_REASON = 4 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val triggerType = tlvReader.getUInt(ContextSpecificTag(TAG_TRIGGER_TYPE)) - val motionZones = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_ZONES))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MOTION_ZONES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_ZONES)) - null - } - val motionSensitivity = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_SENSITIVITY))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MOTION_SENSITIVITY))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_SENSITIVITY)) - null - } - val motionTimeControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_TIME_CONTROL))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct - .fromTlv(ContextSpecificTag(TAG_MOTION_TIME_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_TIME_CONTROL)) - null - } - val activationReason = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ACTIVATION_REASON))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ACTIVATION_REASON))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ACTIVATION_REASON)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct( - triggerType, - motionZones, - motionSensitivity, - motionTimeControl, - activationReason, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt deleted file mode 100644 index 22c3c3b3f61064..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamConfigurationStruct.kt +++ /dev/null @@ -1,76 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamConfigurationStruct( - val connectionID: UShort, - val streamTransportStatus: UByte, - val streamTransportOptions: PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamConfigurationStruct {\n") - append("\tconnectionID : $connectionID\n") - append("\tstreamTransportStatus : $streamTransportStatus\n") - append("\tstreamTransportOptions : $streamTransportOptions\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CONNECTION_ID), connectionID) - put(ContextSpecificTag(TAG_STREAM_TRANSPORT_STATUS), streamTransportStatus) - streamTransportOptions.toTlv(ContextSpecificTag(TAG_STREAM_TRANSPORT_OPTIONS), this) - endStructure() - } - } - - companion object { - private const val TAG_CONNECTION_ID = 0 - private const val TAG_STREAM_TRANSPORT_STATUS = 1 - private const val TAG_STREAM_TRANSPORT_OPTIONS = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamConfigurationStruct { - tlvReader.enterStructure(tlvTag) - val connectionID = tlvReader.getUShort(ContextSpecificTag(TAG_CONNECTION_ID)) - val streamTransportStatus = - tlvReader.getUByte(ContextSpecificTag(TAG_STREAM_TRANSPORT_STATUS)) - val streamTransportOptions = - PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.fromTlv( - ContextSpecificTag(TAG_STREAM_TRANSPORT_OPTIONS), - tlvReader, - ) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamConfigurationStruct( - connectionID, - streamTransportStatus, - streamTransportOptions, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt deleted file mode 100644 index 5b17f1e2b4c1a9..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.kt +++ /dev/null @@ -1,83 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import java.util.Optional -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct( - val chunkDuration: UShort, - val CENCKey: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct {\n") - append("\tchunkDuration : $chunkDuration\n") - append("\tCENCKey : $CENCKey\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CHUNK_DURATION), chunkDuration) - if (CENCKey != null) { - if (CENCKey.isPresent) { - val optCENCKey = CENCKey.get() - put(ContextSpecificTag(TAG_CENC_KEY), optCENCKey) - } - } else { - putNull(ContextSpecificTag(TAG_CENC_KEY)) - } - endStructure() - } - } - - companion object { - private const val TAG_CHUNK_DURATION = 0 - private const val TAG_CENC_KEY = 1 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val chunkDuration = tlvReader.getUShort(ContextSpecificTag(TAG_CHUNK_DURATION)) - val CENCKey = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CENC_KEY))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CENC_KEY))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CENC_KEY)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct( - chunkDuration, - CENCKey, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt deleted file mode 100644 index 2ff39bedd407ae..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.kt +++ /dev/null @@ -1,89 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import java.util.Optional -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct( - val containerType: UByte, - val CMAFContainerOptions: - Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct {\n") - append("\tcontainerType : $containerType\n") - append("\tCMAFContainerOptions : $CMAFContainerOptions\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_CONTAINER_TYPE), containerType) - if (CMAFContainerOptions != null) { - if (CMAFContainerOptions.isPresent) { - val optCMAFContainerOptions = CMAFContainerOptions.get() - optCMAFContainerOptions.toTlv(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS), this) - } - } else { - putNull(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS)) - } - endStructure() - } - } - - companion object { - private const val TAG_CONTAINER_TYPE = 0 - private const val TAG_CMAF_CONTAINER_OPTIONS = 1 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val containerType = tlvReader.getUByte(ContextSpecificTag(TAG_CONTAINER_TYPE)) - val CMAFContainerOptions = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportCMAFContainerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS), - tlvReader, - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CMAF_CONTAINER_OPTIONS)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct( - containerType, - CMAFContainerOptions, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt deleted file mode 100644 index a9f26e1accd581..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.kt +++ /dev/null @@ -1,72 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct( - val multiplexing: UByte, - val includeMotionZones: Boolean, - val enableMetadataPrivacySensitive: Boolean, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct {\n") - append("\tmultiplexing : $multiplexing\n") - append("\tincludeMotionZones : $includeMotionZones\n") - append("\tenableMetadataPrivacySensitive : $enableMetadataPrivacySensitive\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_MULTIPLEXING), multiplexing) - put(ContextSpecificTag(TAG_INCLUDE_MOTION_ZONES), includeMotionZones) - put(ContextSpecificTag(TAG_ENABLE_METADATA_PRIVACY_SENSITIVE), enableMetadataPrivacySensitive) - endStructure() - } - } - - companion object { - private const val TAG_MULTIPLEXING = 0 - private const val TAG_INCLUDE_MOTION_ZONES = 1 - private const val TAG_ENABLE_METADATA_PRIVACY_SENSITIVE = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct { - tlvReader.enterStructure(tlvTag) - val multiplexing = tlvReader.getUByte(ContextSpecificTag(TAG_MULTIPLEXING)) - val includeMotionZones = tlvReader.getBoolean(ContextSpecificTag(TAG_INCLUDE_MOTION_ZONES)) - val enableMetadataPrivacySensitive = - tlvReader.getBoolean(ContextSpecificTag(TAG_ENABLE_METADATA_PRIVACY_SENSITIVE)) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct( - multiplexing, - includeMotionZones, - enableMetadataPrivacySensitive, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt deleted file mode 100644 index 988becdb66a59f..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct.kt +++ /dev/null @@ -1,77 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct( - val initialDuration: UShort, - val augmentationDuration: UShort, - val maxDuration: UInt, - val blindDuration: UShort, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct {\n") - append("\tinitialDuration : $initialDuration\n") - append("\taugmentationDuration : $augmentationDuration\n") - append("\tmaxDuration : $maxDuration\n") - append("\tblindDuration : $blindDuration\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_INITIAL_DURATION), initialDuration) - put(ContextSpecificTag(TAG_AUGMENTATION_DURATION), augmentationDuration) - put(ContextSpecificTag(TAG_MAX_DURATION), maxDuration) - put(ContextSpecificTag(TAG_BLIND_DURATION), blindDuration) - endStructure() - } - } - - companion object { - private const val TAG_INITIAL_DURATION = 0 - private const val TAG_AUGMENTATION_DURATION = 1 - private const val TAG_MAX_DURATION = 2 - private const val TAG_BLIND_DURATION = 3 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct { - tlvReader.enterStructure(tlvTag) - val initialDuration = tlvReader.getUShort(ContextSpecificTag(TAG_INITIAL_DURATION)) - val augmentationDuration = tlvReader.getUShort(ContextSpecificTag(TAG_AUGMENTATION_DURATION)) - val maxDuration = tlvReader.getUInt(ContextSpecificTag(TAG_MAX_DURATION)) - val blindDuration = tlvReader.getUShort(ContextSpecificTag(TAG_BLIND_DURATION)) - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct( - initialDuration, - augmentationDuration, - maxDuration, - blindDuration, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt deleted file mode 100644 index 49b3df53e29a7e..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct.kt +++ /dev/null @@ -1,202 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import java.util.Optional -import matter.controller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct( - val streamType: UByte, - val videoStreamID: Optional?, - val audioStreamID: Optional?, - val TLSEndpointID: UShort, - val url: String, - val triggerOptions: PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct, - val containerFormat: UByte, - val ingestMethod: UByte, - val containerOptions: PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct, - val metadataOptions: - Optional?, - val expiryTime: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct {\n") - append("\tstreamType : $streamType\n") - append("\tvideoStreamID : $videoStreamID\n") - append("\taudioStreamID : $audioStreamID\n") - append("\tTLSEndpointID : $TLSEndpointID\n") - append("\turl : $url\n") - append("\ttriggerOptions : $triggerOptions\n") - append("\tcontainerFormat : $containerFormat\n") - append("\tingestMethod : $ingestMethod\n") - append("\tcontainerOptions : $containerOptions\n") - append("\tmetadataOptions : $metadataOptions\n") - append("\texpiryTime : $expiryTime\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_STREAM_TYPE), streamType) - if (videoStreamID != null) { - if (videoStreamID.isPresent) { - val optvideoStreamID = videoStreamID.get() - put(ContextSpecificTag(TAG_VIDEO_STREAM_ID), optvideoStreamID) - } - } else { - putNull(ContextSpecificTag(TAG_VIDEO_STREAM_ID)) - } - if (audioStreamID != null) { - if (audioStreamID.isPresent) { - val optaudioStreamID = audioStreamID.get() - put(ContextSpecificTag(TAG_AUDIO_STREAM_ID), optaudioStreamID) - } - } else { - putNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID)) - } - put(ContextSpecificTag(TAG_TLS_ENDPOINT_ID), TLSEndpointID) - put(ContextSpecificTag(TAG_URL), url) - triggerOptions.toTlv(ContextSpecificTag(TAG_TRIGGER_OPTIONS), this) - put(ContextSpecificTag(TAG_CONTAINER_FORMAT), containerFormat) - put(ContextSpecificTag(TAG_INGEST_METHOD), ingestMethod) - containerOptions.toTlv(ContextSpecificTag(TAG_CONTAINER_OPTIONS), this) - if (metadataOptions != null) { - if (metadataOptions.isPresent) { - val optmetadataOptions = metadataOptions.get() - optmetadataOptions.toTlv(ContextSpecificTag(TAG_METADATA_OPTIONS), this) - } - } else { - putNull(ContextSpecificTag(TAG_METADATA_OPTIONS)) - } - if (expiryTime != null) { - if (expiryTime.isPresent) { - val optexpiryTime = expiryTime.get() - put(ContextSpecificTag(TAG_EXPIRY_TIME), optexpiryTime) - } - } else { - putNull(ContextSpecificTag(TAG_EXPIRY_TIME)) - } - endStructure() - } - } - - companion object { - private const val TAG_STREAM_TYPE = 0 - private const val TAG_VIDEO_STREAM_ID = 1 - private const val TAG_AUDIO_STREAM_ID = 2 - private const val TAG_TLS_ENDPOINT_ID = 3 - private const val TAG_URL = 4 - private const val TAG_TRIGGER_OPTIONS = 5 - private const val TAG_CONTAINER_FORMAT = 6 - private const val TAG_INGEST_METHOD = 7 - private const val TAG_CONTAINER_OPTIONS = 8 - private const val TAG_METADATA_OPTIONS = 9 - private const val TAG_EXPIRY_TIME = 10 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct { - tlvReader.enterStructure(tlvTag) - val streamType = tlvReader.getUByte(ContextSpecificTag(TAG_STREAM_TYPE)) - val videoStreamID = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_VIDEO_STREAM_ID))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_VIDEO_STREAM_ID))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VIDEO_STREAM_ID)) - null - } - val audioStreamID = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AUDIO_STREAM_ID))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_AUDIO_STREAM_ID))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID)) - null - } - val TLSEndpointID = tlvReader.getUShort(ContextSpecificTag(TAG_TLS_ENDPOINT_ID)) - val url = tlvReader.getString(ContextSpecificTag(TAG_URL)) - val triggerOptions = - PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_TRIGGER_OPTIONS), - tlvReader, - ) - val containerFormat = tlvReader.getUByte(ContextSpecificTag(TAG_CONTAINER_FORMAT)) - val ingestMethod = tlvReader.getUByte(ContextSpecificTag(TAG_INGEST_METHOD)) - val containerOptions = - PushAvStreamTransportClusterPushAVStreamTransportContainerOptionsStruct.fromTlv( - ContextSpecificTag(TAG_CONTAINER_OPTIONS), - tlvReader, - ) - val metadataOptions = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_METADATA_OPTIONS))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportMetadataOptionsStruct.fromTlv( - ContextSpecificTag(TAG_METADATA_OPTIONS), - tlvReader, - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_METADATA_OPTIONS)) - null - } - val expiryTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXPIRY_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_EXPIRY_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EXPIRY_TIME)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportOptionsStruct( - streamType, - videoStreamID, - audioStreamID, - TLSEndpointID, - url, - triggerOptions, - containerFormat, - ingestMethod, - containerOptions, - metadataOptions, - expiryTime, - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt deleted file mode 100644 index 1af935a9906e5d..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct.kt +++ /dev/null @@ -1,169 +0,0 @@ -/* - * - * Copyright (c) 2023 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. - */ -package matter.controller.cluster.structs - -import java.util.Optional -import matter.controller.cluster.* -import matter.tlv.AnonymousTag -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct( - val triggerType: UByte, - val motionZones: Optional>?, - val motionSensitivity: Optional?, - val motionTimeControl: - Optional?, - val activationReason: Optional?, -) { - override fun toString(): String = buildString { - append("PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct {\n") - append("\ttriggerType : $triggerType\n") - append("\tmotionZones : $motionZones\n") - append("\tmotionSensitivity : $motionSensitivity\n") - append("\tmotionTimeControl : $motionTimeControl\n") - append("\tactivationReason : $activationReason\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_TRIGGER_TYPE), triggerType) - if (motionZones != null) { - if (motionZones.isPresent) { - val optmotionZones = motionZones.get() - startArray(ContextSpecificTag(TAG_MOTION_ZONES)) - for (item in optmotionZones.iterator()) { - put(AnonymousTag, item) - } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_ZONES)) - } - if (motionSensitivity != null) { - if (motionSensitivity.isPresent) { - val optmotionSensitivity = motionSensitivity.get() - put(ContextSpecificTag(TAG_MOTION_SENSITIVITY), optmotionSensitivity) - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_SENSITIVITY)) - } - if (motionTimeControl != null) { - if (motionTimeControl.isPresent) { - val optmotionTimeControl = motionTimeControl.get() - optmotionTimeControl.toTlv(ContextSpecificTag(TAG_MOTION_TIME_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_MOTION_TIME_CONTROL)) - } - if (activationReason != null) { - if (activationReason.isPresent) { - val optactivationReason = activationReason.get() - put(ContextSpecificTag(TAG_ACTIVATION_REASON), optactivationReason) - } - } else { - putNull(ContextSpecificTag(TAG_ACTIVATION_REASON)) - } - endStructure() - } - } - - companion object { - private const val TAG_TRIGGER_TYPE = 0 - private const val TAG_MOTION_ZONES = 1 - private const val TAG_MOTION_SENSITIVITY = 2 - private const val TAG_MOTION_TIME_CONTROL = 3 - private const val TAG_ACTIVATION_REASON = 4 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader, - ): PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct { - tlvReader.enterStructure(tlvTag) - val triggerType = tlvReader.getUByte(ContextSpecificTag(TAG_TRIGGER_TYPE)) - val motionZones = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_ZONES))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MOTION_ZONES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_ZONES)) - null - } - val motionSensitivity = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_SENSITIVITY))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_MOTION_SENSITIVITY))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_SENSITIVITY)) - null - } - val motionTimeControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MOTION_TIME_CONTROL))) { - Optional.of( - PushAvStreamTransportClusterPushAVStreamTransportMotionTriggerTimeControlStruct - .fromTlv(ContextSpecificTag(TAG_MOTION_TIME_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MOTION_TIME_CONTROL)) - null - } - val activationReason = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ACTIVATION_REASON))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_ACTIVATION_REASON))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ACTIVATION_REASON)) - null - } - - tlvReader.exitContainer() - - return PushAvStreamTransportClusterPushAVStreamTransportTriggerOptionsStruct( - triggerType, - motionZones, - motionSensitivity, - motionTimeControl, - activationReason, - ) - } - } -}