blob: eaafe6be71402aed5a8886b8d030837a37c59108 [file] [log] [blame]
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/unittest_proto3.proto
package proto3_unittest;
@kotlin.jvm.JvmSynthetic
inline fun testMessageWithDummy(block: proto3_unittest.TestMessageWithDummyKt.Dsl.() -> Unit): proto3_unittest.UnittestProto3.TestMessageWithDummy =
proto3_unittest.TestMessageWithDummyKt.Dsl._create(proto3_unittest.UnittestProto3.TestMessageWithDummy.newBuilder()).apply { block() }._build()
object TestMessageWithDummyKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
class Dsl private constructor(
@kotlin.jvm.JvmField private val _builder: proto3_unittest.UnittestProto3.TestMessageWithDummy.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: proto3_unittest.UnittestProto3.TestMessageWithDummy.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): proto3_unittest.UnittestProto3.TestMessageWithDummy = _builder.build()
/**
* <pre>
* This field is only here for triggering copy-on-write; it's not intended to
* be serialized.
* </pre>
*
* <code>bool dummy = 536870911;</code>
*/
var dummy: kotlin.Boolean
@JvmName("getDummy")
get() = _builder.getDummy()
@JvmName("setDummy")
set(value) {
_builder.setDummy(value)
}
/**
* <pre>
* This field is only here for triggering copy-on-write; it's not intended to
* be serialized.
* </pre>
*
* <code>bool dummy = 536870911;</code>
*/
fun clearDummy() {
_builder.clearDummy()
}
}
}
inline fun proto3_unittest.UnittestProto3.TestMessageWithDummy.copy(block: proto3_unittest.TestMessageWithDummyKt.Dsl.() -> Unit): proto3_unittest.UnittestProto3.TestMessageWithDummy =
proto3_unittest.TestMessageWithDummyKt.Dsl._create(this.toBuilder()).apply { block() }._build()