// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/subscription/v1/keyapis_subscription_subscription_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.subscription.v1; @kotlin.jvm.JvmName("-initializesubscription") public inline fun subscription(block: ru.keyapis.subscription.v1.SubscriptionKt.Dsl.() -> kotlin.Unit): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription = ru.keyapis.subscription.v1.SubscriptionKt.Dsl._create(ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.newBuilder()).apply { block() }._build() /** * ``` * Подписка * ``` * * Protobuf type `keyapis.subscription.v1.Subscription` */ public object SubscriptionKt { @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.Subscription.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription = _builder.build() /** * ``` * Идентификатор. * Может быть явно задан при создании. * Тип: Guid * ``` * * `string id = 1;` */ public var id: kotlin.String @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор. * Может быть явно задан при создании. * Тип: Guid * ``` * * `string id = 1;` */ public fun clearId() { _builder.clearId() } /** * ``` * ОРПОН. * Идентификатор дома * ``` * * `int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var orpon: kotlin.Long @JvmName("getOrpon") get() = _builder.getOrpon() @JvmName("setOrpon") set(value) { _builder.setOrpon(value) } /** * ``` * ОРПОН. * Идентификатор дома * ``` * * `int64 orpon = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearOrpon() { _builder.clearOrpon() } /** * ``` * Номер квартиры * ``` * * `string flat_number = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var flatNumber: kotlin.String @JvmName("getFlatNumber") get() = _builder.getFlatNumber() @JvmName("setFlatNumber") set(value) { _builder.setFlatNumber(value) } /** * ``` * Номер квартиры * ``` * * `string flat_number = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearFlatNumber() { _builder.clearFlatNumber() } /** * ``` * Идентификатор коммерческой возможности(КВ). * Заполняется сервером на основе идентификатора из технологического плана(ТП) * ``` * * `int32 offer_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var offerId: kotlin.Int @JvmName("getOfferId") get() = _builder.getOfferId() @JvmName("setOfferId") set(value) { _builder.setOfferId(value) } /** * ``` * Идентификатор коммерческой возможности(КВ). * Заполняется сервером на основе идентификатора из технологического плана(ТП) * ``` * * `int32 offer_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearOfferId() { _builder.clearOfferId() } /** * ``` * Cтатус подписки. * При создании может быть: SETUP, ACTIVE * ``` * * `.keyapis.subscription.v1.Subscription.StatusType status_type = 5 [(.google.api.field_behavior) = REQUIRED];` */ public var statusType: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.StatusType @JvmName("getStatusType") get() = _builder.getStatusType() @JvmName("setStatusType") set(value) { _builder.setStatusType(value) } public var statusTypeValue: kotlin.Int @JvmName("getStatusTypeValue") get() = _builder.getStatusTypeValue() @JvmName("setStatusTypeValue") set(value) { _builder.setStatusTypeValue(value) } /** * ``` * Cтатус подписки. * При создании может быть: SETUP, ACTIVE * ``` * * `.keyapis.subscription.v1.Subscription.StatusType status_type = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearStatusType() { _builder.clearStatusType() } /** * ``` * Предыдущий статус подписки. * В справочник входят только финальные статусы. * Заполняется сервером при изменении статусов * ``` * * `.keyapis.subscription.v1.Subscription.StatusType previous_status_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var previousStatusType: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.StatusType @JvmName("getPreviousStatusType") get() = _builder.getPreviousStatusType() @JvmName("setPreviousStatusType") set(value) { _builder.setPreviousStatusType(value) } public var previousStatusTypeValue: kotlin.Int @JvmName("getPreviousStatusTypeValue") get() = _builder.getPreviousStatusTypeValue() @JvmName("setPreviousStatusTypeValue") set(value) { _builder.setPreviousStatusTypeValue(value) } /** * ``` * Предыдущий статус подписки. * В справочник входят только финальные статусы. * Заполняется сервером при изменении статусов * ``` * * `.keyapis.subscription.v1.Subscription.StatusType previous_status_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearPreviousStatusType() { _builder.clearPreviousStatusType() } /** * ``` * Цена * ``` * * `.google.protobuf.DoubleValue price = 7;` */ public var price: com.google.protobuf.DoubleValue @JvmName("getPrice") get() = _builder.getPrice() @JvmName("setPrice") set(value) { _builder.setPrice(value) } /** * ``` * Цена * ``` * * `.google.protobuf.DoubleValue price = 7;` */ public fun clearPrice() { _builder.clearPrice() } /** * ``` * Цена * ``` * * `.google.protobuf.DoubleValue price = 7;` * @return Whether the price field is set. */ public fun hasPrice(): kotlin.Boolean { return _builder.hasPrice() } /** * ``` * Дата создания записи. * Заполняется сервером * ``` * * `.google.protobuf.Timestamp created_at = 8 [(.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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearCreatedAt() { _builder.clearCreatedAt() } /** * ``` * Дата создания записи. * Заполняется сервером * ``` * * `.google.protobuf.Timestamp created_at = 8 [(.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 = 9 [(.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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearChangedAt() { _builder.clearChangedAt() } /** * ``` * Дата последнего изменения. * Заполняется и обновляется сервером. * Заполняется при создании и изменении. * Является версией объекта * ``` * * `.google.protobuf.Timestamp changed_at = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the changedAt field is set. */ public fun hasChangedAt(): kotlin.Boolean { return _builder.hasChangedAt() } /** * ``` * Признак для определения автоподписок. * Редактировать флаг запрещено. * Проставляется сервером в true при создании через задачу на автоподписку * ``` * * `bool is_enable_auto_subscribe = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var isEnableAutoSubscribe: kotlin.Boolean @JvmName("getIsEnableAutoSubscribe") get() = _builder.getIsEnableAutoSubscribe() @JvmName("setIsEnableAutoSubscribe") set(value) { _builder.setIsEnableAutoSubscribe(value) } /** * ``` * Признак для определения автоподписок. * Редактировать флаг запрещено. * Проставляется сервером в true при создании через задачу на автоподписку * ``` * * `bool is_enable_auto_subscribe = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearIsEnableAutoSubscribe() { _builder.clearIsEnableAutoSubscribe() } /** * ``` * Тип биллинга * ``` * * `.keyapis.subscription.v1.Subscription.BillingType billing_type = 11;` */ public var billingType: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.BillingType @JvmName("getBillingType") get() = _builder.getBillingType() @JvmName("setBillingType") set(value) { _builder.setBillingType(value) } public var billingTypeValue: kotlin.Int @JvmName("getBillingTypeValue") get() = _builder.getBillingTypeValue() @JvmName("setBillingTypeValue") set(value) { _builder.setBillingTypeValue(value) } /** * ``` * Тип биллинга * ``` * * `.keyapis.subscription.v1.Subscription.BillingType billing_type = 11;` */ public fun clearBillingType() { _builder.clearBillingType() } /** * ``` * Срок действия. * Проставляется при создании * ``` * * `.google.protobuf.Timestamp expired_at = 12;` */ public var expiredAt: com.google.protobuf.Timestamp @JvmName("getExpiredAt") get() = _builder.getExpiredAt() @JvmName("setExpiredAt") set(value) { _builder.setExpiredAt(value) } /** * ``` * Срок действия. * Проставляется при создании * ``` * * `.google.protobuf.Timestamp expired_at = 12;` */ public fun clearExpiredAt() { _builder.clearExpiredAt() } /** * ``` * Срок действия. * Проставляется при создании * ``` * * `.google.protobuf.Timestamp expired_at = 12;` * @return Whether the expiredAt field is set. */ public fun hasExpiredAt(): kotlin.Boolean { return _builder.hasExpiredAt() } /** * ``` * Идентификатор подписки, в зависимости от которой подключена данная. * Заполняется в подписках на опции. * Тип: Guid * ``` * * `.google.protobuf.StringValue parent_id = 13;` */ public var parentId: com.google.protobuf.StringValue @JvmName("getParentId") get() = _builder.getParentId() @JvmName("setParentId") set(value) { _builder.setParentId(value) } /** * ``` * Идентификатор подписки, в зависимости от которой подключена данная. * Заполняется в подписках на опции. * Тип: Guid * ``` * * `.google.protobuf.StringValue parent_id = 13;` */ public fun clearParentId() { _builder.clearParentId() } /** * ``` * Идентификатор подписки, в зависимости от которой подключена данная. * Заполняется в подписках на опции. * Тип: Guid * ``` * * `.google.protobuf.StringValue parent_id = 13;` * @return Whether the parentId field is set. */ public fun hasParentId(): kotlin.Boolean { return _builder.hasParentId() } /** * ``` * Аккаунт * ``` * * `.google.protobuf.Int64Value account = 14;` */ public var account: com.google.protobuf.Int64Value @JvmName("getAccount") get() = _builder.getAccount() @JvmName("setAccount") set(value) { _builder.setAccount(value) } /** * ``` * Аккаунт * ``` * * `.google.protobuf.Int64Value account = 14;` */ public fun clearAccount() { _builder.clearAccount() } /** * ``` * Аккаунт * ``` * * `.google.protobuf.Int64Value account = 14;` * @return Whether the account field is set. */ public fun hasAccount(): kotlin.Boolean { return _builder.hasAccount() } /** * ``` * Снапшот состояния коммерческой возможности на момент создания подписки. * В данный момент это ссылка в базе на запись, в будущем это будет снапшот * ``` * * `.keyapis.subscription.v1.Offer offer = 15;` */ public var offer: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Offer @JvmName("getOffer") get() = _builder.getOffer() @JvmName("setOffer") set(value) { _builder.setOffer(value) } /** * ``` * Снапшот состояния коммерческой возможности на момент создания подписки. * В данный момент это ссылка в базе на запись, в будущем это будет снапшот * ``` * * `.keyapis.subscription.v1.Offer offer = 15;` */ public fun clearOffer() { _builder.clearOffer() } /** * ``` * Снапшот состояния коммерческой возможности на момент создания подписки. * В данный момент это ссылка в базе на запись, в будущем это будет снапшот * ``` * * `.keyapis.subscription.v1.Offer offer = 15;` * @return Whether the offer field is set. */ public fun hasOffer(): kotlin.Boolean { return _builder.hasOffer() } /** * ``` * Цена по скидки. * Заполнена если оплата подписки прошла по скидке, иначе очищается * ``` * * `.google.protobuf.DoubleValue discount_price = 16;` */ public var discountPrice: com.google.protobuf.DoubleValue @JvmName("getDiscountPrice") get() = _builder.getDiscountPrice() @JvmName("setDiscountPrice") set(value) { _builder.setDiscountPrice(value) } /** * ``` * Цена по скидки. * Заполнена если оплата подписки прошла по скидке, иначе очищается * ``` * * `.google.protobuf.DoubleValue discount_price = 16;` */ public fun clearDiscountPrice() { _builder.clearDiscountPrice() } /** * ``` * Цена по скидки. * Заполнена если оплата подписки прошла по скидке, иначе очищается * ``` * * `.google.protobuf.DoubleValue discount_price = 16;` * @return Whether the discountPrice field is set. */ public fun hasDiscountPrice(): kotlin.Boolean { return _builder.hasDiscountPrice() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription.copy(block: ru.keyapis.subscription.v1.SubscriptionKt.Dsl.() -> kotlin.Unit): ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Subscription = ru.keyapis.subscription.v1.SubscriptionKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.priceOrNull: com.google.protobuf.DoubleValue? get() = if (hasPrice()) getPrice() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp? get() = if (hasCreatedAt()) getCreatedAt() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.changedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasChangedAt()) getChangedAt() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.expiredAtOrNull: com.google.protobuf.Timestamp? get() = if (hasExpiredAt()) getExpiredAt() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.parentIdOrNull: com.google.protobuf.StringValue? get() = if (hasParentId()) getParentId() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.accountOrNull: com.google.protobuf.Int64Value? get() = if (hasAccount()) getAccount() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.offerOrNull: ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.Offer? get() = if (hasOffer()) getOffer() else null public val ru.keyapis.subscription.v1.KeyapisSubscriptionV1Proto.SubscriptionOrBuilder.discountPriceOrNull: com.google.protobuf.DoubleValue? get() = if (hasDiscountPrice()) getDiscountPrice() else null