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

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

There is a newer version: 3.70.1
Show newest version
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/contact.proto

package org.xmtp.proto.message.contents;

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

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

    /**
     * .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
     */
    public var keyBundle: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle
      @JvmName("getKeyBundle")
      get() = _builder.getKeyBundle()
      @JvmName("setKeyBundle")
      set(value) {
        _builder.setKeyBundle(value)
      }
    /**
     * .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
     */
    public fun clearKeyBundle() {
      _builder.clearKeyBundle()
    }
    /**
     * .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
     * @return Whether the keyBundle field is set.
     */
    public fun hasKeyBundle(): kotlin.Boolean {
      return _builder.hasKeyBundle()
    }
  }
}
public inline fun org.xmtp.proto.message.contents.Contact.ContactBundleV1.copy(block: org.xmtp.proto.message.contents.ContactBundleV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Contact.ContactBundleV1 =
  org.xmtp.proto.message.contents.ContactBundleV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val org.xmtp.proto.message.contents.Contact.ContactBundleV1OrBuilder.keyBundleOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle?
  get() = if (hasKeyBundle()) getKeyBundle() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy