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

org.xmtp.proto.message.contents.PrivatePreferencesPayloadKt.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/private_preferences.proto

package org.xmtp.proto.message.contents;

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

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

    /**
     * .xmtp.message_contents.Ciphertext v1 = 1;
     */
    public var v1: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext
      @JvmName("getV1")
      get() = _builder.getV1()
      @JvmName("setV1")
      set(value) {
        _builder.setV1(value)
      }
    /**
     * .xmtp.message_contents.Ciphertext v1 = 1;
     */
    public fun clearV1() {
      _builder.clearV1()
    }
    /**
     * .xmtp.message_contents.Ciphertext v1 = 1;
     * @return Whether the v1 field is set.
     */
    public fun hasV1(): kotlin.Boolean {
      return _builder.hasV1()
    }
    public val versionCase: org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload.VersionCase
      @JvmName("getVersionCase")
      get() = _builder.getVersionCase()

    public fun clearVersion() {
      _builder.clearVersion()
    }
  }
}
public inline fun org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload.copy(block: org.xmtp.proto.message.contents.PrivatePreferencesPayloadKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload =
  org.xmtp.proto.message.contents.PrivatePreferencesPayloadKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayloadOrBuilder.v1OrNull: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext?
  get() = if (hasV1()) getV1() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy