org.xmtp.proto.message.contents.SealedInvitationHeaderV1Kt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/invitation.proto
package org.xmtp.proto.message.contents;
@kotlin.jvm.JvmName("-initializesealedInvitationHeaderV1")
public inline fun sealedInvitationHeaderV1(block: org.xmtp.proto.message.contents.SealedInvitationHeaderV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1 =
org.xmtp.proto.message.contents.SealedInvitationHeaderV1Kt.Dsl._create(org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1.newBuilder()).apply { block() }._build()
public object SealedInvitationHeaderV1Kt {
@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.Invitation.SealedInvitationHeaderV1.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1 = _builder.build()
/**
* .xmtp.message_contents.SignedPublicKeyBundle sender = 1;
*/
public var sender: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle
@JvmName("getSender")
get() = _builder.getSender()
@JvmName("setSender")
set(value) {
_builder.setSender(value)
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle sender = 1;
*/
public fun clearSender() {
_builder.clearSender()
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle sender = 1;
* @return Whether the sender field is set.
*/
public fun hasSender(): kotlin.Boolean {
return _builder.hasSender()
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle recipient = 2;
*/
public var recipient: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle
@JvmName("getRecipient")
get() = _builder.getRecipient()
@JvmName("setRecipient")
set(value) {
_builder.setRecipient(value)
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle recipient = 2;
*/
public fun clearRecipient() {
_builder.clearRecipient()
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle recipient = 2;
* @return Whether the recipient field is set.
*/
public fun hasRecipient(): kotlin.Boolean {
return _builder.hasRecipient()
}
/**
* uint64 created_ns = 3;
*/
public var createdNs: kotlin.Long
@JvmName("getCreatedNs")
get() = _builder.getCreatedNs()
@JvmName("setCreatedNs")
set(value) {
_builder.setCreatedNs(value)
}
/**
* uint64 created_ns = 3;
*/
public fun clearCreatedNs() {
_builder.clearCreatedNs()
}
}
}
public inline fun org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1.copy(block: org.xmtp.proto.message.contents.SealedInvitationHeaderV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1 =
org.xmtp.proto.message.contents.SealedInvitationHeaderV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1OrBuilder.senderOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle?
get() = if (hasSender()) getSender() else null
public val org.xmtp.proto.message.contents.Invitation.SealedInvitationHeaderV1OrBuilder.recipientOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle?
get() = if (hasRecipient()) getRecipient() else null