org.xmtp.proto.mls.message.contents.MembershipChangeKt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/message_contents/transcript_messages.proto
package org.xmtp.proto.mls.message.contents;
@kotlin.jvm.JvmName("-initializemembershipChange")
public inline fun membershipChange(block: org.xmtp.proto.mls.message.contents.MembershipChangeKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange =
org.xmtp.proto.mls.message.contents.MembershipChangeKt.Dsl._create(org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange.newBuilder()).apply { block() }._build()
public object MembershipChangeKt {
@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.message.contents.TranscriptMessages.MembershipChange.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class InstallationIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* repeated bytes installation_ids = 1;
*/
public val installationIds: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getInstallationIdsList()
)
/**
* repeated bytes installation_ids = 1;
* @param value The installationIds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addInstallationIds")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.ByteString) {
_builder.addInstallationIds(value)
}/**
* repeated bytes installation_ids = 1;
* @param value The installationIds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignInstallationIds")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.ByteString) {
add(value)
}/**
* repeated bytes installation_ids = 1;
* @param values The installationIds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllInstallationIds")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllInstallationIds(values)
}/**
* repeated bytes installation_ids = 1;
* @param values The installationIds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllInstallationIds")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* repeated bytes installation_ids = 1;
* @param index The index to set the value at.
* @param value The installationIds to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setInstallationIds")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.ByteString) {
_builder.setInstallationIds(index, value)
}/**
* repeated bytes installation_ids = 1;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearInstallationIds")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearInstallationIds()
}
/**
* string account_address = 2;
*/
public var accountAddress: kotlin.String
@JvmName("getAccountAddress")
get() = _builder.getAccountAddress()
@JvmName("setAccountAddress")
set(value) {
_builder.setAccountAddress(value)
}
/**
* string account_address = 2;
*/
public fun clearAccountAddress() {
_builder.clearAccountAddress()
}
/**
* string initiated_by_account_address = 3;
*/
public var initiatedByAccountAddress: kotlin.String
@JvmName("getInitiatedByAccountAddress")
get() = _builder.getInitiatedByAccountAddress()
@JvmName("setInitiatedByAccountAddress")
set(value) {
_builder.setInitiatedByAccountAddress(value)
}
/**
* string initiated_by_account_address = 3;
*/
public fun clearInitiatedByAccountAddress() {
_builder.clearInitiatedByAccountAddress()
}
}
}
public inline fun org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange.copy(block: org.xmtp.proto.mls.message.contents.MembershipChangeKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.TranscriptMessages.MembershipChange =
org.xmtp.proto.mls.message.contents.MembershipChangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()