com.google.protobuf.StringValueKt.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("-initializestringValue")
public inline fun stringValue(block: com.google.protobuf.StringValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.StringValue =
com.google.protobuf.StringValueKt.Dsl._create(com.google.protobuf.StringValue.newBuilder()).apply { block() }._build()
/**
* ```
* Wrapper message for `string`.
*
* The JSON representation for `StringValue` is JSON string.
* ```
*
* Protobuf type `google.protobuf.StringValue`
*/
public object StringValueKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.StringValue.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.StringValue.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.StringValue = _builder.build()
/**
* ```
* The string value.
* ```
*
* `string value = 1;`
*/
public var value: kotlin.String
@JvmName("getValue")
get() = _builder.getValue()
@JvmName("setValue")
set(value) {
_builder.setValue(value)
}
/**
* ```
* The string value.
* ```
*
* `string value = 1;`
*/
public fun clearValue() {
_builder.clearValue()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.StringValue.copy(block: `com.google.protobuf`.StringValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.StringValue =
`com.google.protobuf`.StringValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()