org.xmtp.proto.message.contents.PrivateKeyBundleKt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/private_key.proto
package org.xmtp.proto.message.contents;
@kotlin.jvm.JvmName("-initializeprivateKeyBundle")
public inline fun privateKeyBundle(block: org.xmtp.proto.message.contents.PrivateKeyBundleKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle =
org.xmtp.proto.message.contents.PrivateKeyBundleKt.Dsl._create(org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle.newBuilder()).apply { block() }._build()
public object PrivateKeyBundleKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle = _builder.build()
/**
* .xmtp.message_contents.PrivateKeyBundleV1 v1 = 1;
*/
public var v1: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1
@JvmName("getV1")
get() = _builder.getV1()
@JvmName("setV1")
set(value) {
_builder.setV1(value)
}
/**
* .xmtp.message_contents.PrivateKeyBundleV1 v1 = 1;
*/
public fun clearV1() {
_builder.clearV1()
}
/**
* .xmtp.message_contents.PrivateKeyBundleV1 v1 = 1;
* @return Whether the v1 field is set.
*/
public fun hasV1(): kotlin.Boolean {
return _builder.hasV1()
}
/**
* .xmtp.message_contents.PrivateKeyBundleV2 v2 = 2;
*/
public var v2: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV2
@JvmName("getV2")
get() = _builder.getV2()
@JvmName("setV2")
set(value) {
_builder.setV2(value)
}
/**
* .xmtp.message_contents.PrivateKeyBundleV2 v2 = 2;
*/
public fun clearV2() {
_builder.clearV2()
}
/**
* .xmtp.message_contents.PrivateKeyBundleV2 v2 = 2;
* @return Whether the v2 field is set.
*/
public fun hasV2(): kotlin.Boolean {
return _builder.hasV2()
}
public val versionCase: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle.VersionCase
@JvmName("getVersionCase")
get() = _builder.getVersionCase()
public fun clearVersion() {
_builder.clearVersion()
}
}
}
public inline fun org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle.copy(block: org.xmtp.proto.message.contents.PrivateKeyBundleKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundle =
org.xmtp.proto.message.contents.PrivateKeyBundleKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleOrBuilder.v1OrNull: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1?
get() = if (hasV1()) getV1() else null
public val org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleOrBuilder.v2OrNull: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV2?
get() = if (hasV2()) getV2() else null