org.xmtp.proto.message.contents.SealedInvitationV1Kt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/invitation.proto
package org.xmtp.proto.message.contents;
@kotlin.jvm.JvmName("-initializesealedInvitationV1")
public inline fun sealedInvitationV1(block: org.xmtp.proto.message.contents.SealedInvitationV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.SealedInvitationV1 =
org.xmtp.proto.message.contents.SealedInvitationV1Kt.Dsl._create(org.xmtp.proto.message.contents.Invitation.SealedInvitationV1.newBuilder()).apply { block() }._build()
public object SealedInvitationV1Kt {
@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.SealedInvitationV1.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.Invitation.SealedInvitationV1.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.Invitation.SealedInvitationV1 = _builder.build()
/**
*
* encoded SealedInvitationHeaderV1 used as associated data for Ciphertext
*
*
* bytes header_bytes = 1;
*/
public var headerBytes: com.google.protobuf.ByteString
@JvmName("getHeaderBytes")
get() = _builder.getHeaderBytes()
@JvmName("setHeaderBytes")
set(value) {
_builder.setHeaderBytes(value)
}
/**
*
* encoded SealedInvitationHeaderV1 used as associated data for Ciphertext
*
*
* bytes header_bytes = 1;
*/
public fun clearHeaderBytes() {
_builder.clearHeaderBytes()
}
/**
*
* Ciphertext.payload MUST contain encrypted InvitationV1.
*
*
* .xmtp.message_contents.Ciphertext ciphertext = 2;
*/
public var ciphertext: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext
@JvmName("getCiphertext")
get() = _builder.getCiphertext()
@JvmName("setCiphertext")
set(value) {
_builder.setCiphertext(value)
}
/**
*
* Ciphertext.payload MUST contain encrypted InvitationV1.
*
*
* .xmtp.message_contents.Ciphertext ciphertext = 2;
*/
public fun clearCiphertext() {
_builder.clearCiphertext()
}
/**
*
* Ciphertext.payload MUST contain encrypted InvitationV1.
*
*
* .xmtp.message_contents.Ciphertext ciphertext = 2;
* @return Whether the ciphertext field is set.
*/
public fun hasCiphertext(): kotlin.Boolean {
return _builder.hasCiphertext()
}
}
}
public inline fun org.xmtp.proto.message.contents.Invitation.SealedInvitationV1.copy(block: org.xmtp.proto.message.contents.SealedInvitationV1Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.SealedInvitationV1 =
org.xmtp.proto.message.contents.SealedInvitationV1Kt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val org.xmtp.proto.message.contents.Invitation.SealedInvitationV1OrBuilder.ciphertextOrNull: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext?
get() = if (hasCiphertext()) getCiphertext() else null