org.xmtp.proto.message.contents.FrameActionBodyKt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/frames.proto
package org.xmtp.proto.message.contents;
@kotlin.jvm.JvmName("-initializeframeActionBody")
public inline fun frameActionBody(block: org.xmtp.proto.message.contents.FrameActionBodyKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Frames.FrameActionBody =
org.xmtp.proto.message.contents.FrameActionBodyKt.Dsl._create(org.xmtp.proto.message.contents.Frames.FrameActionBody.newBuilder()).apply { block() }._build()
public object FrameActionBodyKt {
@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.Frames.FrameActionBody.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: org.xmtp.proto.message.contents.Frames.FrameActionBody.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): org.xmtp.proto.message.contents.Frames.FrameActionBody = _builder.build()
/**
*
* The URL of the frame that was clicked
* May be different from `post_url`
*
*
* string frame_url = 1;
*/
public var frameUrl: kotlin.String
@JvmName("getFrameUrl")
get() = _builder.getFrameUrl()
@JvmName("setFrameUrl")
set(value) {
_builder.setFrameUrl(value)
}
/**
*
* The URL of the frame that was clicked
* May be different from `post_url`
*
*
* string frame_url = 1;
*/
public fun clearFrameUrl() {
_builder.clearFrameUrl()
}
/**
*
* The 1-indexed button that was clicked
*
*
* int32 button_index = 2;
*/
public var buttonIndex: kotlin.Int
@JvmName("getButtonIndex")
get() = _builder.getButtonIndex()
@JvmName("setButtonIndex")
set(value) {
_builder.setButtonIndex(value)
}
/**
*
* The 1-indexed button that was clicked
*
*
* int32 button_index = 2;
*/
public fun clearButtonIndex() {
_builder.clearButtonIndex()
}
/**
*
* Timestamp of the click in milliseconds since the epoch
*
*
* uint64 timestamp = 3 [deprecated = true];
*/
@kotlin.Deprecated(message = "Field timestamp is deprecated") public var timestamp: kotlin.Long
@JvmName("getTimestamp")
get() = _builder.getTimestamp()
@JvmName("setTimestamp")
set(value) {
_builder.setTimestamp(value)
}
/**
*
* Timestamp of the click in milliseconds since the epoch
*
*
* uint64 timestamp = 3 [deprecated = true];
* @deprecated xmtp.message_contents.FrameActionBody.timestamp is deprecated.
* See message_contents/frames.proto;l=20
*/
public fun clearTimestamp() {
_builder.clearTimestamp()
}
/**
*
* A unique identifier for the conversation, not tied to anything on the
* network. Will not match the topic or conversation_id
*
*
* string opaque_conversation_identifier = 4;
*/
public var opaqueConversationIdentifier: kotlin.String
@JvmName("getOpaqueConversationIdentifier")
get() = _builder.getOpaqueConversationIdentifier()
@JvmName("setOpaqueConversationIdentifier")
set(value) {
_builder.setOpaqueConversationIdentifier(value)
}
/**
*
* A unique identifier for the conversation, not tied to anything on the
* network. Will not match the topic or conversation_id
*
*
* string opaque_conversation_identifier = 4;
*/
public fun clearOpaqueConversationIdentifier() {
_builder.clearOpaqueConversationIdentifier()
}
/**
*
* Unix timestamp
*
*
* uint32 unix_timestamp = 5;
*/
public var unixTimestamp: kotlin.Int
@JvmName("getUnixTimestamp")
get() = _builder.getUnixTimestamp()
@JvmName("setUnixTimestamp")
set(value) {
_builder.setUnixTimestamp(value)
}
/**
*
* Unix timestamp
*
*
* uint32 unix_timestamp = 5;
*/
public fun clearUnixTimestamp() {
_builder.clearUnixTimestamp()
}
/**
*
* Input text from a text input field
*
*
* string input_text = 6;
*/
public var inputText: kotlin.String
@JvmName("getInputText")
get() = _builder.getInputText()
@JvmName("setInputText")
set(value) {
_builder.setInputText(value)
}
/**
*
* Input text from a text input field
*
*
* string input_text = 6;
*/
public fun clearInputText() {
_builder.clearInputText()
}
/**
*
* A state serialized to a string (for example via JSON.stringify()). Maximum 4096 bytes.
*
*
* string state = 7;
*/
public var state: kotlin.String
@JvmName("getState")
get() = _builder.getState()
@JvmName("setState")
set(value) {
_builder.setState(value)
}
/**
*
* A state serialized to a string (for example via JSON.stringify()). Maximum 4096 bytes.
*
*
* string state = 7;
*/
public fun clearState() {
_builder.clearState()
}
/**
*
* A 0x wallet address
*
*
* string address = 8;
*/
public var address: kotlin.String
@JvmName("getAddress")
get() = _builder.getAddress()
@JvmName("setAddress")
set(value) {
_builder.setAddress(value)
}
/**
*
* A 0x wallet address
*
*
* string address = 8;
*/
public fun clearAddress() {
_builder.clearAddress()
}
/**
*
* A hash from a transaction
*
*
* string transaction_id = 9;
*/
public var transactionId: kotlin.String
@JvmName("getTransactionId")
get() = _builder.getTransactionId()
@JvmName("setTransactionId")
set(value) {
_builder.setTransactionId(value)
}
/**
*
* A hash from a transaction
*
*
* string transaction_id = 9;
*/
public fun clearTransactionId() {
_builder.clearTransactionId()
}
}
}
public inline fun org.xmtp.proto.message.contents.Frames.FrameActionBody.copy(block: org.xmtp.proto.message.contents.FrameActionBodyKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Frames.FrameActionBody =
org.xmtp.proto.message.contents.FrameActionBodyKt.Dsl._create(this.toBuilder()).apply { block() }._build()