org.xmtp.proto.mls.api.v1.KeyPackageUploadKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/api/v1/mls.proto
package org.xmtp.proto.mls.api.v1;
@kotlin.jvm.JvmName("-initializekeyPackageUpload")
public inline fun keyPackageUpload(block: org.xmtp.proto.mls.api.v1.KeyPackageUploadKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload =
org.xmtp.proto.mls.api.v1.KeyPackageUploadKt.Dsl._create(org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload.newBuilder()).apply { block() }._build()
public object KeyPackageUploadKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload = _builder.build()
/**
*
* The owner's wallet address would be extracted from the identity
* credential in the key package, and all signatures would be validated.
*
*
* bytes key_package_tls_serialized = 1;
*/
public var keyPackageTlsSerialized: com.google.protobuf.ByteString
@JvmName("getKeyPackageTlsSerialized")
get() = _builder.getKeyPackageTlsSerialized()
@JvmName("setKeyPackageTlsSerialized")
set(value) {
_builder.setKeyPackageTlsSerialized(value)
}
/**
*
* The owner's wallet address would be extracted from the identity
* credential in the key package, and all signatures would be validated.
*
*
* bytes key_package_tls_serialized = 1;
*/
public fun clearKeyPackageTlsSerialized() {
_builder.clearKeyPackageTlsSerialized()
}
}
}
public inline fun org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload.copy(block: org.xmtp.proto.mls.api.v1.KeyPackageUploadKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.KeyPackageUpload =
org.xmtp.proto.mls.api.v1.KeyPackageUploadKt.Dsl._create(this.toBuilder()).apply { block() }._build()