// Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_sip_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.deviceapis.device.v1; @kotlin.jvm.JvmName("-initializesipAccount") public inline fun sipAccount(block: ru.deviceapis.device.v1.SipAccountKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount = ru.deviceapis.device.v1.SipAccountKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount.newBuilder()).apply { block() }._build() /** * ``` *Sip-аккаунт * ``` * * Protobuf type `deviceapis.device.v1.SipAccount` */ public object SipAccountKt { @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.SipAccount.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount = _builder.build() /** * ``` * ID Sip-аккаунта * ``` * * `string account_id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var accountId: kotlin.String @JvmName("getAccountId") get() = _builder.getAccountId() @JvmName("setAccountId") set(value) { _builder.setAccountId(value) } /** * ``` * ID Sip-аккаунта * ``` * * `string account_id = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearAccountId() { _builder.clearAccountId() } /** * ``` * Имя * ``` * * `.google.protobuf.StringValue name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var name: com.google.protobuf.StringValue @JvmName("getName") get() = _builder.getName() @JvmName("setName") set(value) { _builder.setName(value) } /** * ``` * Имя * ``` * * `.google.protobuf.StringValue name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearName() { _builder.clearName() } /** * ``` * Имя * ``` * * `.google.protobuf.StringValue name = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the name field is set. */ public fun hasName(): kotlin.Boolean { return _builder.hasName() } /** * ``` * Номер * ``` * * `.google.protobuf.StringValue number = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var number: com.google.protobuf.StringValue @JvmName("getNumber") get() = _builder.getNumber() @JvmName("setNumber") set(value) { _builder.setNumber(value) } /** * ``` * Номер * ``` * * `.google.protobuf.StringValue number = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearNumber() { _builder.clearNumber() } /** * ``` * Номер * ``` * * `.google.protobuf.StringValue number = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the number field is set. */ public fun hasNumber(): kotlin.Boolean { return _builder.hasNumber() } /** * ``` * Имя пользователя * ``` * * `.google.protobuf.StringValue user = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var user: com.google.protobuf.StringValue @JvmName("getUser") get() = _builder.getUser() @JvmName("setUser") set(value) { _builder.setUser(value) } /** * ``` * Имя пользователя * ``` * * `.google.protobuf.StringValue user = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearUser() { _builder.clearUser() } /** * ``` * Имя пользователя * ``` * * `.google.protobuf.StringValue user = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the user field is set. */ public fun hasUser(): kotlin.Boolean { return _builder.hasUser() } /** * ``` * Пароль. * Не возвращается с сервера. * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах * ``` * * `.google.protobuf.StringValue password = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var password: com.google.protobuf.StringValue @JvmName("getPassword") get() = _builder.getPassword() @JvmName("setPassword") set(value) { _builder.setPassword(value) } /** * ``` * Пароль. * Не возвращается с сервера. * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах * ``` * * `.google.protobuf.StringValue password = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearPassword() { _builder.clearPassword() } /** * ``` * Пароль. * Не возвращается с сервера. * TODO: в генерации сваггера не показывать INPUT_ONLY поля в ответах * ``` * * `.google.protobuf.StringValue password = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the password field is set. */ public fun hasPassword(): kotlin.Boolean { return _builder.hasPassword() } /** * ``` * Адрес REG-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, reg.acme.io:5060 * ``` * * `.google.protobuf.StringValue reg_server_address = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var regServerAddress: com.google.protobuf.StringValue @JvmName("getRegServerAddress") get() = _builder.getRegServerAddress() @JvmName("setRegServerAddress") set(value) { _builder.setRegServerAddress(value) } /** * ``` * Адрес REG-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, reg.acme.io:5060 * ``` * * `.google.protobuf.StringValue reg_server_address = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearRegServerAddress() { _builder.clearRegServerAddress() } /** * ``` * Адрес REG-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, reg.acme.io:5060 * ``` * * `.google.protobuf.StringValue reg_server_address = 6 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the regServerAddress field is set. */ public fun hasRegServerAddress(): kotlin.Boolean { return _builder.hasRegServerAddress() } /** * ``` * Адрес SIP-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, sip.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_server_address = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var sipServerAddress: com.google.protobuf.StringValue @JvmName("getSipServerAddress") get() = _builder.getSipServerAddress() @JvmName("setSipServerAddress") set(value) { _builder.setSipServerAddress(value) } /** * ``` * Адрес SIP-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, sip.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_server_address = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearSipServerAddress() { _builder.clearSipServerAddress() } /** * ``` * Адрес SIP-сервера. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, sip.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_server_address = 7 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the sipServerAddress field is set. */ public fun hasSipServerAddress(): kotlin.Boolean { return _builder.hasSipServerAddress() } /** * ``` * Адрес SIP-прокси. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, proxy.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_proxy_address = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var sipProxyAddress: com.google.protobuf.StringValue @JvmName("getSipProxyAddress") get() = _builder.getSipProxyAddress() @JvmName("setSipProxyAddress") set(value) { _builder.setSipProxyAddress(value) } /** * ``` * Адрес SIP-прокси. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, proxy.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_proxy_address = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearSipProxyAddress() { _builder.clearSipProxyAddress() } /** * ``` * Адрес SIP-прокси. * Сетевой адрес и порт. * Пример: 192.168.0.1:5060, proxy.acme.io:5060 * ``` * * `.google.protobuf.StringValue sip_proxy_address = 8 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` * @return Whether the sipProxyAddress field is set. */ public fun hasSipProxyAddress(): kotlin.Boolean { return _builder.hasSipProxyAddress() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount.copy(block: ru.deviceapis.device.v1.SipAccountKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccount = ru.deviceapis.device.v1.SipAccountKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.nameOrNull: com.google.protobuf.StringValue? get() = if (hasName()) getName() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.numberOrNull: com.google.protobuf.StringValue? get() = if (hasNumber()) getNumber() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.userOrNull: com.google.protobuf.StringValue? get() = if (hasUser()) getUser() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.passwordOrNull: com.google.protobuf.StringValue? get() = if (hasPassword()) getPassword() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.regServerAddressOrNull: com.google.protobuf.StringValue? get() = if (hasRegServerAddress()) getRegServerAddress() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.sipServerAddressOrNull: com.google.protobuf.StringValue? get() = if (hasSipServerAddress()) getSipServerAddress() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.SipAccountOrBuilder.sipProxyAddressOrNull: com.google.protobuf.StringValue? get() = if (hasSipProxyAddress()) getSipProxyAddress() else null