com.google.protobuf.Int32ValueKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin-lite Show documentation
Show all versions of protobuf-kotlin-lite Show documentation
Lite version of Kotlin Protocol Buffers library. This version is optimized for code size, but does
not guarantee API/ABI stability.
The newest version!
// 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("-initializeint32Value")
public inline fun int32Value(block: com.google.protobuf.Int32ValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Int32Value =
com.google.protobuf.Int32ValueKt.Dsl._create(com.google.protobuf.Int32Value.newBuilder()).apply { block() }._build()
/**
* ```
* Wrapper message for `int32`.
*
* The JSON representation for `Int32Value` is JSON number.
* ```
*
* Protobuf type `google.protobuf.Int32Value`
*/
public object Int32ValueKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.Int32Value.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.Int32Value.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.Int32Value = _builder.build()
/**
*
* The int32 value.
*
*
* int32 value = 1;
*/
public var value: kotlin.Int
@JvmName("getValue")
get() = _builder.getValue()
@JvmName("setValue")
set(value) {
_builder.setValue(value)
}
/**
* ```
* The int32 value.
* ```
*
* `int32 value = 1;`
*/
public fun clearValue() {
_builder.clearValue()
}
}
}
public inline fun com.google.protobuf.Int32Value.copy(block: com.google.protobuf.Int32ValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Int32Value =
com.google.protobuf.Int32ValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()