org.xmtp.proto.message.contents.PrivateKeyBundleV1Kt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/private_key.proto
package org.xmtp.proto.message.contents;
@kotlin.jvm.JvmName("-initializeprivateKeyBundleV1")
public inline fun privateKeyBundleV1(block: org.xmtp.proto.message.contents.PrivateKeyBundleV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1 =
org.xmtp.proto.message.contents.PrivateKeyBundleV1Kt.Dsl._create(org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1.newBuilder()).apply { block() }._build()
public object PrivateKeyBundleV1Kt {
@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.PrivateKeyBundleV1.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1 = _builder.build()
/**
* .xmtp.message_contents.PrivateKey identity_key = 1;
*/
public var identityKey: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKey
@JvmName("getIdentityKey")
get() = _builder.getIdentityKey()
@JvmName("setIdentityKey")
set(value) {
_builder.setIdentityKey(value)
}
/**
* .xmtp.message_contents.PrivateKey identity_key = 1;
*/
public fun clearIdentityKey() {
_builder.clearIdentityKey()
}
/**
* .xmtp.message_contents.PrivateKey identity_key = 1;
* @return Whether the identityKey field is set.
*/
public fun hasIdentityKey(): kotlin.Boolean {
return _builder.hasIdentityKey()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class PreKeysProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
*/
public val preKeys: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getPreKeysList()
)
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
* @param value The preKeys to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addPreKeys")
public fun com.google.protobuf.kotlin.DslList.add(value: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKey) {
_builder.addPreKeys(value)
}
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
* @param value The preKeys to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignPreKeys")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKey) {
add(value)
}
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
* @param values The preKeys to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllPreKeys")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllPreKeys(values)
}
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
* @param values The preKeys to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllPreKeys")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
* @param index The index to set the value at.
* @param value The preKeys to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setPreKeys")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKey) {
_builder.setPreKeys(index, value)
}
/**
*
* all the known pre-keys, newer keys first,
*
*
* repeated .xmtp.message_contents.PrivateKey pre_keys = 2;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearPreKeys")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearPreKeys()
}
}
}
public inline fun org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1.copy(block: org.xmtp.proto.message.contents.PrivateKeyBundleV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1 =
org.xmtp.proto.message.contents.PrivateKeyBundleV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKeyBundleV1OrBuilder.identityKeyOrNull: org.xmtp.proto.message.contents.PrivateKeyOuterClass.PrivateKey?
get() = if (hasIdentityKey()) getIdentityKey() else null