// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_control/v1/keyapis_telemetry_control_template_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.telemetry_control.v1; @kotlin.jvm.JvmName("-initializetemplateIndicator") public inline fun templateIndicator(block: ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator = ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.Dsl._create(ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.newBuilder()).apply { block() }._build() /** * ``` * Шаблон индикатора * ``` * * Protobuf type `keyapis.telemetry_control.v1.TemplateIndicator` */ public object TemplateIndicatorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator = _builder.build() /** * ``` * Идентификатор * ``` * * `int32 id = 1;` */ public var id: kotlin.Int @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор * ``` * * `int32 id = 1;` */ public fun clearId() { _builder.clearId() } /** * ``` * Дата создания * ``` * * `.google.protobuf.Timestamp created_at = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var createdAt: com.google.protobuf.Timestamp @JvmName("getCreatedAt") get() = _builder.getCreatedAt() @JvmName("setCreatedAt") set(value) { _builder.setCreatedAt(value) } /** * ``` * Дата создания * ``` * * `.google.protobuf.Timestamp created_at = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearCreatedAt() { _builder.clearCreatedAt() } /** * ``` * Дата создания * ``` * * `.google.protobuf.Timestamp created_at = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the createdAt field is set. */ public fun hasCreatedAt(): kotlin.Boolean { return _builder.hasCreatedAt() } /** * ``` * Дата последнего изменения. * Заполняется и обновляется сервером. * Заполняется при создании и изменении * ``` * * `.google.protobuf.Timestamp changed_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var changedAt: com.google.protobuf.Timestamp @JvmName("getChangedAt") get() = _builder.getChangedAt() @JvmName("setChangedAt") set(value) { _builder.setChangedAt(value) } /** * ``` * Дата последнего изменения. * Заполняется и обновляется сервером. * Заполняется при создании и изменении * ``` * * `.google.protobuf.Timestamp changed_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearChangedAt() { _builder.clearChangedAt() } /** * ``` * Дата последнего изменения. * Заполняется и обновляется сервером. * Заполняется при создании и изменении * ``` * * `.google.protobuf.Timestamp changed_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the changedAt field is set. */ public fun hasChangedAt(): kotlin.Boolean { return _builder.hasChangedAt() } /** * ``` * Шаблонное название индикатора * ``` * * `string title = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var title: kotlin.String @JvmName("getTitle") get() = _builder.getTitle() @JvmName("setTitle") set(value) { _builder.setTitle(value) } /** * ``` * Шаблонное название индикатора * ``` * * `string title = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearTitle() { _builder.clearTitle() } /** * ``` * Тип единицы измерения, в которой интерпретировано, получаемое измерение * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.UnitType unit_type = 5 [(.google.api.field_behavior) = REQUIRED];` */ public var unitType: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.UnitType @JvmName("getUnitType") get() = _builder.getUnitType() @JvmName("setUnitType") set(value) { _builder.setUnitType(value) } public var unitTypeValue: kotlin.Int @JvmName("getUnitTypeValue") get() = _builder.getUnitTypeValue() @JvmName("setUnitTypeValue") set(value) { _builder.setUnitTypeValue(value) } /** * ``` * Тип единицы измерения, в которой интерпретировано, получаемое измерение * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.UnitType unit_type = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearUnitType() { _builder.clearUnitType() } /** * ``` * Тип измерения * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.SignType sign_type = 6 [(.google.api.field_behavior) = REQUIRED];` */ public var signType: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.SignType @JvmName("getSignType") get() = _builder.getSignType() @JvmName("setSignType") set(value) { _builder.setSignType(value) } public var signTypeValue: kotlin.Int @JvmName("getSignTypeValue") get() = _builder.getSignTypeValue() @JvmName("setSignTypeValue") set(value) { _builder.setSignTypeValue(value) } /** * ``` * Тип измерения * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.SignType sign_type = 6 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearSignType() { _builder.clearSignType() } /** * ``` * Тип архивности показаний * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.ArchiveType archive_type = 7;` */ public var archiveType: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ArchiveType @JvmName("getArchiveType") get() = _builder.getArchiveType() @JvmName("setArchiveType") set(value) { _builder.setArchiveType(value) } public var archiveTypeValue: kotlin.Int @JvmName("getArchiveTypeValue") get() = _builder.getArchiveTypeValue() @JvmName("setArchiveTypeValue") set(value) { _builder.setArchiveTypeValue(value) } /** * ``` * Тип архивности показаний * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.ArchiveType archive_type = 7;` */ public fun clearArchiveType() { _builder.clearArchiveType() } /** * ``` * Тип единицы измерения для отображения измерения. * При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит. * Применяется после коэффициента * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.UnitType presentation_unit_type = 8;` */ public var presentationUnitType: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.UnitType @JvmName("getPresentationUnitType") get() = _builder.getPresentationUnitType() @JvmName("setPresentationUnitType") set(value) { _builder.setPresentationUnitType(value) } public var presentationUnitTypeValue: kotlin.Int @JvmName("getPresentationUnitTypeValue") get() = _builder.getPresentationUnitTypeValue() @JvmName("setPresentationUnitTypeValue") set(value) { _builder.setPresentationUnitTypeValue(value) } /** * ``` * Тип единицы измерения для отображения измерения. * При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит. * Применяется после коэффициента * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.UnitType presentation_unit_type = 8;` */ public fun clearPresentationUnitType() { _builder.clearPresentationUnitType() } /** * ``` * Код для совместимости с поставщиком метрик * ``` * * `.google.protobuf.StringValue compatibility_code = 9;` */ public var compatibilityCode: com.google.protobuf.StringValue @JvmName("getCompatibilityCode") get() = _builder.getCompatibilityCode() @JvmName("setCompatibilityCode") set(value) { _builder.setCompatibilityCode(value) } /** * ``` * Код для совместимости с поставщиком метрик * ``` * * `.google.protobuf.StringValue compatibility_code = 9;` */ public fun clearCompatibilityCode() { _builder.clearCompatibilityCode() } /** * ``` * Код для совместимости с поставщиком метрик * ``` * * `.google.protobuf.StringValue compatibility_code = 9;` * @return Whether the compatibilityCode field is set. */ public fun hasCompatibilityCode(): kotlin.Boolean { return _builder.hasCompatibilityCode() } /** * ``` * Флаг видимости индикатора для клиента ФЛ * ``` * * `bool is_individual = 10;` */ public var isIndividual: kotlin.Boolean @JvmName("getIsIndividual") get() = _builder.getIsIndividual() @JvmName("setIsIndividual") set(value) { _builder.setIsIndividual(value) } /** * ``` * Флаг видимости индикатора для клиента ФЛ * ``` * * `bool is_individual = 10;` */ public fun clearIsIndividual() { _builder.clearIsIndividual() } /** * ``` * Коэффициент, на который умножается отображаемое значение. * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки * ``` * * `.google.protobuf.FloatValue coefficient = 11;` */ public var coefficient: com.google.protobuf.FloatValue @JvmName("getCoefficient") get() = _builder.getCoefficient() @JvmName("setCoefficient") set(value) { _builder.setCoefficient(value) } /** * ``` * Коэффициент, на который умножается отображаемое значение. * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки * ``` * * `.google.protobuf.FloatValue coefficient = 11;` */ public fun clearCoefficient() { _builder.clearCoefficient() } /** * ``` * Коэффициент, на который умножается отображаемое значение. * Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки * ``` * * `.google.protobuf.FloatValue coefficient = 11;` * @return Whether the coefficient field is set. */ public fun hasCoefficient(): kotlin.Boolean { return _builder.hasCoefficient() } /** * ``` * Величина поправки к отображаемому значению. * Применяется перед применением коэффициента * ``` * * `.google.protobuf.FloatValue shift = 12;` */ public var shift: com.google.protobuf.FloatValue @JvmName("getShift") get() = _builder.getShift() @JvmName("setShift") set(value) { _builder.setShift(value) } /** * ``` * Величина поправки к отображаемому значению. * Применяется перед применением коэффициента * ``` * * `.google.protobuf.FloatValue shift = 12;` */ public fun clearShift() { _builder.clearShift() } /** * ``` * Величина поправки к отображаемому значению. * Применяется перед применением коэффициента * ``` * * `.google.protobuf.FloatValue shift = 12;` * @return Whether the shift field is set. */ public fun hasShift(): kotlin.Boolean { return _builder.hasShift() } /** * ``` * Количество возвращаемых десятичных знаков при округлении итогового значения. * При пустом параметре округления не происходит. * Применяется после преобразования единиц измерения * ``` * * `.google.protobuf.Int32Value round_decimal_digits = 13;` */ public var roundDecimalDigits: com.google.protobuf.Int32Value @JvmName("getRoundDecimalDigits") get() = _builder.getRoundDecimalDigits() @JvmName("setRoundDecimalDigits") set(value) { _builder.setRoundDecimalDigits(value) } /** * ``` * Количество возвращаемых десятичных знаков при округлении итогового значения. * При пустом параметре округления не происходит. * Применяется после преобразования единиц измерения * ``` * * `.google.protobuf.Int32Value round_decimal_digits = 13;` */ public fun clearRoundDecimalDigits() { _builder.clearRoundDecimalDigits() } /** * ``` * Количество возвращаемых десятичных знаков при округлении итогового значения. * При пустом параметре округления не происходит. * Применяется после преобразования единиц измерения * ``` * * `.google.protobuf.Int32Value round_decimal_digits = 13;` * @return Whether the roundDecimalDigits field is set. */ public fun hasRoundDecimalDigits(): kotlin.Boolean { return _builder.hasRoundDecimalDigits() } /** * ``` * Ожидаемая частота поступления показаний в днях * ``` * * `int32 metric_expected_freq = 14;` */ public var metricExpectedFreq: kotlin.Int @JvmName("getMetricExpectedFreq") get() = _builder.getMetricExpectedFreq() @JvmName("setMetricExpectedFreq") set(value) { _builder.setMetricExpectedFreq(value) } /** * ``` * Ожидаемая частота поступления показаний в днях * ``` * * `int32 metric_expected_freq = 14;` */ public fun clearMetricExpectedFreq() { _builder.clearMetricExpectedFreq() } /** * ``` * Посредник получения показаний * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_type = 15;` */ public var indicatorVendorType: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.VendorType @JvmName("getIndicatorVendorType") get() = _builder.getIndicatorVendorType() @JvmName("setIndicatorVendorType") set(value) { _builder.setIndicatorVendorType(value) } public var indicatorVendorTypeValue: kotlin.Int @JvmName("getIndicatorVendorTypeValue") get() = _builder.getIndicatorVendorTypeValue() @JvmName("setIndicatorVendorTypeValue") set(value) { _builder.setIndicatorVendorTypeValue(value) } /** * ``` * Посредник получения показаний * ``` * * `.keyapis.telemetry_control.v1.TemplateIndicator.VendorType indicator_vendor_type = 15;` */ public fun clearIndicatorVendorType() { _builder.clearIndicatorVendorType() } } @kotlin.jvm.JvmName("-initializevalidationError") public inline fun validationError(block: ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.ValidationErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError = ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.ValidationErrorKt.Dsl._create(ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError.newBuilder()).apply { block() }._build() /** * ``` * Ошибки валидации. * Эти проверки выполняются до обращения в базу данных * ``` * * Protobuf type `keyapis.telemetry_control.v1.TemplateIndicator.ValidationError` */ public object ValidationErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError = _builder.build() /** * ``` * Путь к полю в формате наименования protobuf * ``` * * `string path = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var path: kotlin.String @JvmName("getPath") get() = _builder.getPath() @JvmName("setPath") set(value) { _builder.setPath(value) } /** * ``` * Путь к полю в формате наименования protobuf * ``` * * `string path = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearPath() { _builder.clearPath() } /** * ``` * Валидационное сообщение * ``` * * `string message = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var message: kotlin.String @JvmName("getMessage") get() = _builder.getMessage() @JvmName("setMessage") set(value) { _builder.setMessage(value) } /** * ``` * Валидационное сообщение * ``` * * `string message = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearMessage() { _builder.clearMessage() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.copy(block: ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator = ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError.copy(block: ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.ValidationErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicator.ValidationError = ru.keyapis.telemetry_control.v1.TemplateIndicatorKt.ValidationErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp? get() = if (hasCreatedAt()) getCreatedAt() else null public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.changedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasChangedAt()) getChangedAt() else null public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.compatibilityCodeOrNull: com.google.protobuf.StringValue? get() = if (hasCompatibilityCode()) getCompatibilityCode() else null public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.coefficientOrNull: com.google.protobuf.FloatValue? get() = if (hasCoefficient()) getCoefficient() else null public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.shiftOrNull: com.google.protobuf.FloatValue? get() = if (hasShift()) getShift() else null public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.TemplateIndicatorOrBuilder.roundDecimalDigitsOrNull: com.google.protobuf.Int32Value? get() = if (hasRoundDecimalDigits()) getRoundDecimalDigits() else null