org.xmtp.proto.mls.api.v1.QueryWelcomeMessagesRequestKt.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("-initializequeryWelcomeMessagesRequest")
public inline fun queryWelcomeMessagesRequest(block: org.xmtp.proto.mls.api.v1.QueryWelcomeMessagesRequestKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest =
org.xmtp.proto.mls.api.v1.QueryWelcomeMessagesRequestKt.Dsl._create(org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest.newBuilder()).apply { block() }._build()
public object QueryWelcomeMessagesRequestKt {
@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.QueryWelcomeMessagesRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest = _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()
}
/**
* .xmtp.mls.api.v1.PagingInfo paging_info = 2;
*/
public var pagingInfo: org.xmtp.proto.mls.api.v1.Mls.PagingInfo
@JvmName("getPagingInfo")
get() = _builder.getPagingInfo()
@JvmName("setPagingInfo")
set(value) {
_builder.setPagingInfo(value)
}
/**
* .xmtp.mls.api.v1.PagingInfo paging_info = 2;
*/
public fun clearPagingInfo() {
_builder.clearPagingInfo()
}
/**
* .xmtp.mls.api.v1.PagingInfo paging_info = 2;
* @return Whether the pagingInfo field is set.
*/
public fun hasPagingInfo(): kotlin.Boolean {
return _builder.hasPagingInfo()
}
}
}
public inline fun org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest.copy(block: org.xmtp.proto.mls.api.v1.QueryWelcomeMessagesRequestKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest =
org.xmtp.proto.mls.api.v1.QueryWelcomeMessagesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequestOrBuilder.pagingInfoOrNull: org.xmtp.proto.mls.api.v1.Mls.PagingInfo?
get() = if (hasPagingInfo()) getPagingInfo() else null