// Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_system_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.deviceapis.device.v1; @kotlin.jvm.JvmName("-initializedeviceInfo") public inline fun deviceInfo(block: ru.deviceapis.device.v1.DeviceInfoKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo = ru.deviceapis.device.v1.DeviceInfoKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo.newBuilder()).apply { block() }._build() /** * ``` * Общая информация об устройстве * ``` * * Protobuf type `deviceapis.device.v1.DeviceInfo` */ public object DeviceInfoKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo = _builder.build() /** * ``` * Версия программного обеспечения * ``` * * `string firmware_version = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var firmwareVersion: kotlin.String @JvmName("getFirmwareVersion") get() = _builder.getFirmwareVersion() @JvmName("setFirmwareVersion") set(value) { _builder.setFirmwareVersion(value) } /** * ``` * Версия программного обеспечения * ``` * * `string firmware_version = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearFirmwareVersion() { _builder.clearFirmwareVersion() } /** * ``` * Версия аппаратного обеспечения * ``` * * `string hardware_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var hardwareVersion: kotlin.String @JvmName("getHardwareVersion") get() = _builder.getHardwareVersion() @JvmName("setHardwareVersion") set(value) { _builder.setHardwareVersion(value) } /** * ``` * Версия аппаратного обеспечения * ``` * * `string hardware_version = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearHardwareVersion() { _builder.clearHardwareVersion() } /** * ``` * Модель * ``` * * `string model = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var model: kotlin.String @JvmName("getModel") get() = _builder.getModel() @JvmName("setModel") set(value) { _builder.setModel(value) } /** * ``` * Модель * ``` * * `string model = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearModel() { _builder.clearModel() } /** * ``` * MAC-адрес. * Диапазон: 17..17. * Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ * ``` * * `string mac_address = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var macAddress: kotlin.String @JvmName("getMacAddress") get() = _builder.getMacAddress() @JvmName("setMacAddress") set(value) { _builder.setMacAddress(value) } /** * ``` * MAC-адрес. * Диапазон: 17..17. * Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ * ``` * * `string mac_address = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearMacAddress() { _builder.clearMacAddress() } /** * ``` * IP адрес. * Диапазон: 7..15. * Паттерн: /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ * ``` * * `string ip = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var ip: kotlin.String @JvmName("getIp") get() = _builder.getIp() @JvmName("setIp") set(value) { _builder.setIp(value) } /** * ``` * IP адрес. * Диапазон: 7..15. * Паттерн: /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ * ``` * * `string ip = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearIp() { _builder.clearIp() } /** * ``` * Серийный номер * ``` * * `string serial_number = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var serialNumber: kotlin.String @JvmName("getSerialNumber") get() = _builder.getSerialNumber() @JvmName("setSerialNumber") set(value) { _builder.setSerialNumber(value) } /** * ``` * Серийный номер * ``` * * `string serial_number = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearSerialNumber() { _builder.clearSerialNumber() } /** * ``` * Время работы в секундах. * Диапазон: 0..2147483647 * ``` * * `int32 uptime = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var uptime: kotlin.Int @JvmName("getUptime") get() = _builder.getUptime() @JvmName("setUptime") set(value) { _builder.setUptime(value) } /** * ``` * Время работы в секундах. * Диапазон: 0..2147483647 * ``` * * `int32 uptime = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearUptime() { _builder.clearUptime() } /** * ``` * Версия программного обеспечения микроконтроллера * ``` * * `string mc_firmware_version = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var mcFirmwareVersion: kotlin.String @JvmName("getMcFirmwareVersion") get() = _builder.getMcFirmwareVersion() @JvmName("setMcFirmwareVersion") set(value) { _builder.setMcFirmwareVersion(value) } /** * ``` * Версия программного обеспечения микроконтроллера * ``` * * `string mc_firmware_version = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearMcFirmwareVersion() { _builder.clearMcFirmwareVersion() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo.copy(block: ru.deviceapis.device.v1.DeviceInfoKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.DeviceInfo = ru.deviceapis.device.v1.DeviceInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build()