org.xmtp.proto.message.contents.ConsentProofPayloadKt.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("-initializeconsentProofPayload")
public inline fun consentProofPayload(block: org.xmtp.proto.message.contents.ConsentProofPayloadKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.ConsentProofPayload =
org.xmtp.proto.message.contents.ConsentProofPayloadKt.Dsl._create(org.xmtp.proto.message.contents.Invitation.ConsentProofPayload.newBuilder()).apply { block() }._build()
public object ConsentProofPayloadKt {
@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.ConsentProofPayload.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.Invitation.ConsentProofPayload.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.Invitation.ConsentProofPayload = _builder.build()
/**
*
* the user's signature in hex format
*
*
* string signature = 1;
*/
public var signature: kotlin.String
@JvmName("getSignature")
get() = _builder.getSignature()
@JvmName("setSignature")
set(value) {
_builder.setSignature(value)
}
/**
*
* the user's signature in hex format
*
*
* string signature = 1;
*/
public fun clearSignature() {
_builder.clearSignature()
}
/**
*
* approximate time when the user signed
*
*
* uint64 timestamp = 2;
*/
public var timestamp: kotlin.Long
@JvmName("getTimestamp")
get() = _builder.getTimestamp()
@JvmName("setTimestamp")
set(value) {
_builder.setTimestamp(value)
}
/**
*
* approximate time when the user signed
*
*
* uint64 timestamp = 2;
*/
public fun clearTimestamp() {
_builder.clearTimestamp()
}
/**
*
* version of the payload
*
*
* .xmtp.message_contents.ConsentProofPayloadVersion payload_version = 3;
*/
public var payloadVersion: org.xmtp.proto.message.contents.Invitation.ConsentProofPayloadVersion
@JvmName("getPayloadVersion")
get() = _builder.getPayloadVersion()
@JvmName("setPayloadVersion")
set(value) {
_builder.setPayloadVersion(value)
}
/**
*
* version of the payload
*
*
* .xmtp.message_contents.ConsentProofPayloadVersion payload_version = 3;
*/
public fun clearPayloadVersion() {
_builder.clearPayloadVersion()
}
}
}
public inline fun org.xmtp.proto.message.contents.Invitation.ConsentProofPayload.copy(block: org.xmtp.proto.message.contents.ConsentProofPayloadKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Invitation.ConsentProofPayload =
org.xmtp.proto.message.contents.ConsentProofPayloadKt.Dsl._create(this.toBuilder()).apply { block() }._build()