org.xmtp.proto.mls.api.v1.WelcomeMessageKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/api/v1/mls.proto
package org.xmtp.proto.mls.api.v1;
@kotlin.jvm.JvmName("-initializewelcomeMessage")
public inline fun welcomeMessage(block: org.xmtp.proto.mls.api.v1.WelcomeMessageKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage =
org.xmtp.proto.mls.api.v1.WelcomeMessageKt.Dsl._create(org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.newBuilder()).apply { block() }._build()
public object WelcomeMessageKt {
@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.api.v1.Mls.WelcomeMessage.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage = _builder.build()
/**
* .xmtp.mls.api.v1.WelcomeMessage.V1 v1 = 1;
*/
public var v1: org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1
@JvmName("getV1")
get() = _builder.getV1()
@JvmName("setV1")
set(value) {
_builder.setV1(value)
}
/**
* .xmtp.mls.api.v1.WelcomeMessage.V1 v1 = 1;
*/
public fun clearV1() {
_builder.clearV1()
}
/**
* .xmtp.mls.api.v1.WelcomeMessage.V1 v1 = 1;
* @return Whether the v1 field is set.
*/
public fun hasV1(): kotlin.Boolean {
return _builder.hasV1()
}
public val versionCase: org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.VersionCase
@JvmName("getVersionCase")
get() = _builder.getVersionCase()
public fun clearVersion() {
_builder.clearVersion()
}
}
@kotlin.jvm.JvmName("-initializev1")
public inline fun v1(block: org.xmtp.proto.mls.api.v1.WelcomeMessageKt.V1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1 =
org.xmtp.proto.mls.api.v1.WelcomeMessageKt.V1Kt.Dsl._create(org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1.newBuilder()).apply { block() }._build()
public object V1Kt {
@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.api.v1.Mls.WelcomeMessage.V1.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1 = _builder.build()
/**
* uint64 id = 1;
*/
public var id: kotlin.Long
@JvmName("getId")
get() = _builder.getId()
@JvmName("setId")
set(value) {
_builder.setId(value)
}
/**
* uint64 id = 1;
*/
public fun clearId() {
_builder.clearId()
}
/**
* uint64 created_ns = 2;
*/
public var createdNs: kotlin.Long
@JvmName("getCreatedNs")
get() = _builder.getCreatedNs()
@JvmName("setCreatedNs")
set(value) {
_builder.setCreatedNs(value)
}
/**
* uint64 created_ns = 2;
*/
public fun clearCreatedNs() {
_builder.clearCreatedNs()
}
/**
* bytes installation_key = 3;
*/
public var installationKey: com.google.protobuf.ByteString
@JvmName("getInstallationKey")
get() = _builder.getInstallationKey()
@JvmName("setInstallationKey")
set(value) {
_builder.setInstallationKey(value)
}
/**
* bytes installation_key = 3;
*/
public fun clearInstallationKey() {
_builder.clearInstallationKey()
}
/**
* bytes data = 4;
*/
public var data: com.google.protobuf.ByteString
@JvmName("getData")
get() = _builder.getData()
@JvmName("setData")
set(value) {
_builder.setData(value)
}
/**
* bytes data = 4;
*/
public fun clearData() {
_builder.clearData()
}
/**
* bytes hpke_public_key = 5;
*/
public var hpkePublicKey: com.google.protobuf.ByteString
@JvmName("getHpkePublicKey")
get() = _builder.getHpkePublicKey()
@JvmName("setHpkePublicKey")
set(value) {
_builder.setHpkePublicKey(value)
}
/**
* bytes hpke_public_key = 5;
*/
public fun clearHpkePublicKey() {
_builder.clearHpkePublicKey()
}
}
}
}
public inline fun org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.copy(block: org.xmtp.proto.mls.api.v1.WelcomeMessageKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage =
org.xmtp.proto.mls.api.v1.WelcomeMessageKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public inline fun org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1.copy(block: org.xmtp.proto.mls.api.v1.WelcomeMessageKt.V1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1 =
org.xmtp.proto.mls.api.v1.WelcomeMessageKt.V1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.mls.api.v1.Mls.WelcomeMessageOrBuilder.v1OrNull: org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.V1?
get() = if (hasV1()) getV1() else null