org.xmtp.proto.mls.message.contents.GroupMutableMetadataV1Kt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/message_contents/group_mutable_metadata.proto
package org.xmtp.proto.mls.message.contents;
@kotlin.jvm.JvmName("-initializegroupMutableMetadataV1")
public inline fun groupMutableMetadataV1(block: org.xmtp.proto.mls.message.contents.GroupMutableMetadataV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 =
org.xmtp.proto.mls.message.contents.GroupMutableMetadataV1Kt.Dsl._create(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1.newBuilder()).apply { block() }._build()
public object GroupMutableMetadataV1Kt {
@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.GroupMutableMetadata.GroupMutableMetadataV1.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class AttributesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
public val attributes: com.google.protobuf.kotlin.DslMap
@kotlin.jvm.JvmSynthetic
@JvmName("getAttributesMap")
get() = com.google.protobuf.kotlin.DslMap(
_builder.getAttributesMap()
)
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@JvmName("putAttributes")
public fun com.google.protobuf.kotlin.DslMap
.put(key: kotlin.String, value: kotlin.String) {
_builder.putAttributes(key, value)
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("setAttributes")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslMap
.set(key: kotlin.String, value: kotlin.String) {
put(key, value)
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("removeAttributes")
public fun com.google.protobuf.kotlin.DslMap
.remove(key: kotlin.String) {
_builder.removeAttributes(key)
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("putAllAttributes")
public fun com.google.protobuf.kotlin.DslMap
.putAll(map: kotlin.collections.Map) {
_builder.putAllAttributes(map)
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("clearAttributes")
public fun com.google.protobuf.kotlin.DslMap
.clear() {
_builder.clearAttributes()
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public var adminList: org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes
@JvmName("getAdminList")
get() = _builder.getAdminList()
@JvmName("setAdminList")
set(value) {
_builder.setAdminList(value)
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public fun clearAdminList() {
_builder.clearAdminList()
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
* @return Whether the adminList field is set.
*/
public fun hasAdminList(): kotlin.Boolean {
return _builder.hasAdminList()
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public var superAdminList: org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes
@JvmName("getSuperAdminList")
get() = _builder.getSuperAdminList()
@JvmName("setSuperAdminList")
set(value) {
_builder.setSuperAdminList(value)
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public fun clearSuperAdminList() {
_builder.clearSuperAdminList()
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
* @return Whether the superAdminList field is set.
*/
public fun hasSuperAdminList(): kotlin.Boolean {
return _builder.hasSuperAdminList()
}
}
}
public inline fun org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1.copy(block: org.xmtp.proto.mls.message.contents.GroupMutableMetadataV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 =
org.xmtp.proto.mls.message.contents.GroupMutableMetadataV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1OrBuilder.adminListOrNull: org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes?
get() = if (hasAdminList()) getAdminList() else null
public val org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1OrBuilder.superAdminListOrNull: org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes?
get() = if (hasSuperAdminList()) getSuperAdminList() else null