com.google.protobuf.BoolValueKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeboolValue")
public inline fun boolValue(block: com.google.protobuf.BoolValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.BoolValue =
com.google.protobuf.BoolValueKt.Dsl._create(com.google.protobuf.BoolValue.newBuilder()).apply { block() }._build()
/**
* ```
* Wrapper message for `bool`.
*
* The JSON representation for `BoolValue` is JSON `true` and `false`.
* ```
*
* Protobuf type `google.protobuf.BoolValue`
*/
public object BoolValueKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.BoolValue.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.BoolValue.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.BoolValue = _builder.build()
/**
* ```
* The bool value.
* ```
*
* `bool value = 1;`
*/
public var value: kotlin.Boolean
@JvmName("getValue")
get() = _builder.getValue()
@JvmName("setValue")
set(value) {
_builder.setValue(value)
}
/**
* ```
* The bool value.
* ```
*
* `bool value = 1;`
*/
public fun clearValue() {
_builder.clearValue()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.BoolValue.copy(block: `com.google.protobuf`.BoolValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.BoolValue =
`com.google.protobuf`.BoolValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()