// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/subscription/v1/keyapis_subscription_service_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.subscription.v1; @kotlin.jvm.JvmName("-initializeserviceKind") public inline fun serviceKind(block: ru.keyapis.subscription.v1.ServiceKindKt.Dsl.() -> kotlin.Unit): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind = ru.keyapis.subscription.v1.ServiceKindKt.Dsl._create(ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind.newBuilder()).apply { block() }._build() /** * ``` * Элемент справочника видов услуг * ``` * * Protobuf type `keyapis.subscription.v1.ServiceKind` */ public object ServiceKindKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind = _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() } /** * ``` * Категория услуги. * Аналогично V1ServiceDto.type * ``` * * `string category = 2;` */ public var category: kotlin.String @JvmName("getCategory") get() = _builder.getCategory() @JvmName("setCategory") set(value) { _builder.setCategory(value) } /** * ``` * Категория услуги. * Аналогично V1ServiceDto.type * ``` * * `string category = 2;` */ public fun clearCategory() { _builder.clearCategory() } /** * ``` * Название услуги на английском * ``` * * `string name = 3;` */ public var name: kotlin.String @JvmName("getName") get() = _builder.getName() @JvmName("setName") set(value) { _builder.setName(value) } /** * ``` * Название услуги на английском * ``` * * `string name = 3;` */ public fun clearName() { _builder.clearName() } /** * ``` * Название услуги * ``` * * `string title = 4;` */ public var title: kotlin.String @JvmName("getTitle") get() = _builder.getTitle() @JvmName("setTitle") set(value) { _builder.setTitle(value) } /** * ``` * Название услуги * ``` * * `string title = 4;` */ public fun clearTitle() { _builder.clearTitle() } /** * ``` * Описание услуги * ``` * * `.google.protobuf.StringValue description = 5;` */ public var description: com.google.protobuf.StringValue @JvmName("getDescription") get() = _builder.getDescription() @JvmName("setDescription") set(value) { _builder.setDescription(value) } /** * ``` * Описание услуги * ``` * * `.google.protobuf.StringValue description = 5;` */ public fun clearDescription() { _builder.clearDescription() } /** * ``` * Описание услуги * ``` * * `.google.protobuf.StringValue description = 5;` * @return Whether the description field is set. */ public fun hasDescription(): kotlin.Boolean { return _builder.hasDescription() } /** * ``` * Идентификатор родительской услуги * ``` * * `.google.protobuf.Int32Value parent_id = 6;` */ public var parentId: com.google.protobuf.Int32Value @JvmName("getParentId") get() = _builder.getParentId() @JvmName("setParentId") set(value) { _builder.setParentId(value) } /** * ``` * Идентификатор родительской услуги * ``` * * `.google.protobuf.Int32Value parent_id = 6;` */ public fun clearParentId() { _builder.clearParentId() } /** * ``` * Идентификатор родительской услуги * ``` * * `.google.protobuf.Int32Value parent_id = 6;` * @return Whether the parentId field is set. */ public fun hasParentId(): kotlin.Boolean { return _builder.hasParentId() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind.copy(block: ru.keyapis.subscription.v1.ServiceKindKt.Dsl.() -> kotlin.Unit): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKind = ru.keyapis.subscription.v1.ServiceKindKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKindOrBuilder.descriptionOrNull: com.google.protobuf.StringValue? get() = if (hasDescription()) getDescription() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.ServiceKindOrBuilder.parentIdOrNull: com.google.protobuf.Int32Value? get() = if (hasParentId()) getParentId() else null