// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/vc/v1/keyapis_vc_camera_video_data_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.vc.v1; @kotlin.jvm.JvmName("-initializegetCameraVideoDataListResponse") public inline fun getCameraVideoDataListResponse(block: ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse = ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.Dsl._create(ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.newBuilder()).apply { block() }._build() /** * ``` * Ответ на получение списка камер * ``` * * Protobuf type `keyapis.vc.v1.GetCameraVideoDataListResponse` */ public object GetCameraVideoDataListResponseKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse = _builder.build() /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class DataProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` */ public val data: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getDataList() ) /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` * @param value The data to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addData") public fun com.google.protobuf.kotlin.DslList.add(value: ru.keyapis.vc.v1.KeyapisVcV1Proto.CameraVideoData) { _builder.addData(value) } /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` * @param value The data to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignData") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: ru.keyapis.vc.v1.KeyapisVcV1Proto.CameraVideoData) { add(value) } /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` * @param values The data to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllData") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllData(values) } /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` * @param values The data to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllData") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` * @param index The index to set the value at. * @param value The data to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setData") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: ru.keyapis.vc.v1.KeyapisVcV1Proto.CameraVideoData) { _builder.setData(index, value) } /** * ``` * Камера * ``` * * `repeated .keyapis.vc.v1.CameraVideoData data = 1;` */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearData") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearData() } /** * ``` * Ошибка * ``` * * `.keyapis.vc.v1.GetCameraVideoDataListResponse.Error error = 2;` */ public var error: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error @JvmName("getError") get() = _builder.getError() @JvmName("setError") set(value) { _builder.setError(value) } /** * ``` * Ошибка * ``` * * `.keyapis.vc.v1.GetCameraVideoDataListResponse.Error error = 2;` */ public fun clearError() { _builder.clearError() } /** * ``` * Ошибка * ``` * * `.keyapis.vc.v1.GetCameraVideoDataListResponse.Error error = 2;` * @return Whether the error field is set. */ public fun hasError(): kotlin.Boolean { return _builder.hasError() } } @kotlin.jvm.JvmName("-initializeerror") public inline fun error(block: ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error = ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.ErrorKt.Dsl._create(ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error.newBuilder()).apply { block() }._build() /** * ``` * Ошибка запроса * ``` * * Protobuf type `keyapis.vc.v1.GetCameraVideoDataListResponse.Error` */ public object ErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error = _builder.build() /** * ``` * Ошибка валидации * ``` * * `.keyapis.vc.v1.ValidationError validation = 1;` */ public var validation: ru.keyapis.vc.v1.KeyapisVcV1Proto.ValidationError @JvmName("getValidation") get() = _builder.getValidation() @JvmName("setValidation") set(value) { _builder.setValidation(value) } /** * ``` * Ошибка валидации * ``` * * `.keyapis.vc.v1.ValidationError validation = 1;` */ public fun clearValidation() { _builder.clearValidation() } /** * ``` * Ошибка валидации * ``` * * `.keyapis.vc.v1.ValidationError validation = 1;` * @return Whether the validation field is set. */ public fun hasValidation(): kotlin.Boolean { return _builder.hasValidation() } public val reasonCase: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.copy(block: ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse = ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error.copy(block: ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error = ru.keyapis.vc.v1.GetCameraVideoDataListResponseKt.ErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.ErrorOrBuilder.validationOrNull: ru.keyapis.vc.v1.KeyapisVcV1Proto.ValidationError? get() = if (hasValidation()) getValidation() else null public val ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponseOrBuilder.errorOrNull: ru.keyapis.vc.v1.KeyapisVcV1Proto.GetCameraVideoDataListResponse.Error? get() = if (hasError()) getError() else null