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

org.xmtp.proto.mls.database.PostCommitActionKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/database/intents.proto

package org.xmtp.proto.mls.database;

@kotlin.jvm.JvmName("-initializepostCommitAction")
public inline fun postCommitAction(block: org.xmtp.proto.mls.database.PostCommitActionKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction =
  org.xmtp.proto.mls.database.PostCommitActionKt.Dsl._create(org.xmtp.proto.mls.database.Intents.PostCommitAction.newBuilder()).apply { block() }._build()
public object PostCommitActionKt {
  @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.database.Intents.PostCommitAction.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.mls.database.Intents.PostCommitAction.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): org.xmtp.proto.mls.database.Intents.PostCommitAction = _builder.build()

    /**
     * .xmtp.mls.database.PostCommitAction.SendWelcomes send_welcomes = 1;
     */
    public var sendWelcomes: org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes
      @JvmName("getSendWelcomes")
      get() = _builder.getSendWelcomes()
      @JvmName("setSendWelcomes")
      set(value) {
        _builder.setSendWelcomes(value)
      }
    /**
     * .xmtp.mls.database.PostCommitAction.SendWelcomes send_welcomes = 1;
     */
    public fun clearSendWelcomes() {
      _builder.clearSendWelcomes()
    }
    /**
     * .xmtp.mls.database.PostCommitAction.SendWelcomes send_welcomes = 1;
     * @return Whether the sendWelcomes field is set.
     */
    public fun hasSendWelcomes(): kotlin.Boolean {
      return _builder.hasSendWelcomes()
    }
    public val kindCase: org.xmtp.proto.mls.database.Intents.PostCommitAction.KindCase
      @JvmName("getKindCase")
      get() = _builder.getKindCase()

    public fun clearKind() {
      _builder.clearKind()
    }
  }
  @kotlin.jvm.JvmName("-initializeinstallation")
  public inline fun installation(block: org.xmtp.proto.mls.database.PostCommitActionKt.InstallationKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation =
    org.xmtp.proto.mls.database.PostCommitActionKt.InstallationKt.Dsl._create(org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation.newBuilder()).apply { block() }._build()
  public object InstallationKt {
    @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.database.Intents.PostCommitAction.Installation.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation.Builder): Dsl = Dsl(builder)
      }

      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _build(): org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation = _builder.build()

      /**
       * bytes installation_key = 1;
       */
      public var installationKey: com.google.protobuf.ByteString
        @JvmName("getInstallationKey")
        get() = _builder.getInstallationKey()
        @JvmName("setInstallationKey")
        set(value) {
          _builder.setInstallationKey(value)
        }
      /**
       * bytes installation_key = 1;
       */
      public fun clearInstallationKey() {
        _builder.clearInstallationKey()
      }

      /**
       * bytes hpke_public_key = 2;
       */
      public var hpkePublicKey: com.google.protobuf.ByteString
        @JvmName("getHpkePublicKey")
        get() = _builder.getHpkePublicKey()
        @JvmName("setHpkePublicKey")
        set(value) {
          _builder.setHpkePublicKey(value)
        }
      /**
       * bytes hpke_public_key = 2;
       */
      public fun clearHpkePublicKey() {
        _builder.clearHpkePublicKey()
      }
    }
  }
  @kotlin.jvm.JvmName("-initializesendWelcomes")
  public inline fun sendWelcomes(block: org.xmtp.proto.mls.database.PostCommitActionKt.SendWelcomesKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes =
    org.xmtp.proto.mls.database.PostCommitActionKt.SendWelcomesKt.Dsl._create(org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes.newBuilder()).apply { block() }._build()
  public object SendWelcomesKt {
    @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.database.Intents.PostCommitAction.SendWelcomes.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes.Builder): Dsl = Dsl(builder)
      }

      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _build(): org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes = _builder.build()

      /**
       * An uninstantiable, behaviorless type to represent the field in
       * generics.
       */
      @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
      public class InstallationsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       */
       public val installations: com.google.protobuf.kotlin.DslList
        @kotlin.jvm.JvmSynthetic
        get() = com.google.protobuf.kotlin.DslList(
          _builder.getInstallationsList()
        )
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       * @param value The installations to add.
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("addInstallations")
      public fun com.google.protobuf.kotlin.DslList.add(value: org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation) {
        _builder.addInstallations(value)
      }
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       * @param value The installations to add.
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("plusAssignInstallations")
      @Suppress("NOTHING_TO_INLINE")
      public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation) {
        add(value)
      }
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       * @param values The installations to add.
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("addAllInstallations")
      public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
        _builder.addAllInstallations(values)
      }
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       * @param values The installations to add.
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("plusAssignAllInstallations")
      @Suppress("NOTHING_TO_INLINE")
      public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
        addAll(values)
      }
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       * @param index The index to set the value at.
       * @param value The installations to set.
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("setInstallations")
      public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation) {
        _builder.setInstallations(index, value)
      }
      /**
       * repeated .xmtp.mls.database.PostCommitAction.Installation installations = 1;
       */
      @kotlin.jvm.JvmSynthetic
      @kotlin.jvm.JvmName("clearInstallations")
      public fun com.google.protobuf.kotlin.DslList.clear() {
        _builder.clearInstallations()
      }

      /**
       * bytes welcome_message = 2;
       */
      public var welcomeMessage: com.google.protobuf.ByteString
        @JvmName("getWelcomeMessage")
        get() = _builder.getWelcomeMessage()
        @JvmName("setWelcomeMessage")
        set(value) {
          _builder.setWelcomeMessage(value)
        }
      /**
       * bytes welcome_message = 2;
       */
      public fun clearWelcomeMessage() {
        _builder.clearWelcomeMessage()
      }
    }
  }
}
public inline fun org.xmtp.proto.mls.database.Intents.PostCommitAction.copy(block: org.xmtp.proto.mls.database.PostCommitActionKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction =
  org.xmtp.proto.mls.database.PostCommitActionKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public inline fun org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation.copy(block: org.xmtp.proto.mls.database.PostCommitActionKt.InstallationKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction.Installation =
  org.xmtp.proto.mls.database.PostCommitActionKt.InstallationKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public inline fun org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes.copy(block: org.xmtp.proto.mls.database.PostCommitActionKt.SendWelcomesKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes =
  org.xmtp.proto.mls.database.PostCommitActionKt.SendWelcomesKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val org.xmtp.proto.mls.database.Intents.PostCommitActionOrBuilder.sendWelcomesOrNull: org.xmtp.proto.mls.database.Intents.PostCommitAction.SendWelcomes?
  get() = if (hasSendWelcomes()) getSendWelcomes() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy