All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmtp.proto.message.contents.EncryptedPrivateKeyBundleV1Kt.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("-initializeencryptedPrivateKeyBundleV1")
public inline fun encryptedPrivateKeyBundleV1(block: org.xmtp.proto.message.contents.EncryptedPrivateKeyBundleV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1 =
  org.xmtp.proto.message.contents.EncryptedPrivateKeyBundleV1Kt.Dsl._create(org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1.newBuilder()).apply { block() }._build()
public object EncryptedPrivateKeyBundleV1Kt {
  @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.EncryptedPrivateKeyBundleV1.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1 = _builder.build()

    /**
     * 
     * randomly generated pre-key
     * 
* * bytes wallet_pre_key = 1; */ public var walletPreKey: com.google.protobuf.ByteString @JvmName("getWalletPreKey") get() = _builder.getWalletPreKey() @JvmName("setWalletPreKey") set(value) { _builder.setWalletPreKey(value) } /** *
     * randomly generated pre-key
     * 
* * bytes wallet_pre_key = 1; */ public fun clearWalletPreKey() { _builder.clearWalletPreKey() } /** *
     * MUST contain encrypted PrivateKeyBundle
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; */ public var ciphertext: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext @JvmName("getCiphertext") get() = _builder.getCiphertext() @JvmName("setCiphertext") set(value) { _builder.setCiphertext(value) } /** *
     * MUST contain encrypted PrivateKeyBundle
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; */ public fun clearCiphertext() { _builder.clearCiphertext() } /** *
     * MUST contain encrypted PrivateKeyBundle
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; * @return Whether the ciphertext field is set. */ public fun hasCiphertext(): kotlin.Boolean { return _builder.hasCiphertext() } } } public inline fun org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1.copy(block: org.xmtp.proto.message.contents.EncryptedPrivateKeyBundleV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1 = org.xmtp.proto.message.contents.EncryptedPrivateKeyBundleV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.PrivateKeyOuterClass.EncryptedPrivateKeyBundleV1OrBuilder.ciphertextOrNull: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext? get() = if (hasCiphertext()) getCiphertext() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy