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

org.xmtp.proto.message.contents.PublicKeyBundleKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/public_key.proto

package org.xmtp.proto.message.contents;

@kotlin.jvm.JvmName("-initializepublicKeyBundle")
public inline fun publicKeyBundle(block: org.xmtp.proto.message.contents.PublicKeyBundleKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle =
  org.xmtp.proto.message.contents.PublicKeyBundleKt.Dsl._create(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.newBuilder()).apply { block() }._build()
public object PublicKeyBundleKt {
  @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.PublicKeyOuterClass.PublicKeyBundle.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * 
     * Identity key MUST be signed by the wallet.
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public var identityKey: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey @JvmName("getIdentityKey") get() = _builder.getIdentityKey() @JvmName("setIdentityKey") set(value) { _builder.setIdentityKey(value) } /** *
     * Identity key MUST be signed by the wallet.
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public fun clearIdentityKey() { _builder.clearIdentityKey() } /** *
     * Identity key MUST be signed by the wallet.
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; * @return Whether the identityKey field is set. */ public fun hasIdentityKey(): kotlin.Boolean { return _builder.hasIdentityKey() } /** *
     * Pre-key MUST be signed by the identity key.
     * 
* * .xmtp.message_contents.PublicKey pre_key = 2; */ public var preKey: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey @JvmName("getPreKey") get() = _builder.getPreKey() @JvmName("setPreKey") set(value) { _builder.setPreKey(value) } /** *
     * Pre-key MUST be signed by the identity key.
     * 
* * .xmtp.message_contents.PublicKey pre_key = 2; */ public fun clearPreKey() { _builder.clearPreKey() } /** *
     * Pre-key MUST be signed by the identity key.
     * 
* * .xmtp.message_contents.PublicKey pre_key = 2; * @return Whether the preKey field is set. */ public fun hasPreKey(): kotlin.Boolean { return _builder.hasPreKey() } } } public inline fun org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.copy(block: org.xmtp.proto.message.contents.PublicKeyBundleKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle = org.xmtp.proto.message.contents.PublicKeyBundleKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundleOrBuilder.identityKeyOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey? get() = if (hasIdentityKey()) getIdentityKey() else null public val org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundleOrBuilder.preKeyOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey? get() = if (hasPreKey()) getPreKey() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy