All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmtp.proto.message.contents.DecodedMessageKt.kt Maven / Gradle / Ivy

There is a newer version: 3.70.1
Show newest version
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/message.proto

package org.xmtp.proto.message.contents;

@kotlin.jvm.JvmName("-initializedecodedMessage")
public inline fun decodedMessage(block: org.xmtp.proto.message.contents.DecodedMessageKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage =
  org.xmtp.proto.message.contents.DecodedMessageKt.Dsl._create(org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage.newBuilder()).apply { block() }._build()
public object DecodedMessageKt {
  @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.MessageOuterClass.DecodedMessage.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage = _builder.build()

    /**
     * string id = 1;
     */
    public var id: kotlin.String
      @JvmName("getId")
      get() = _builder.getId()
      @JvmName("setId")
      set(value) {
        _builder.setId(value)
      }
    /**
     * string id = 1;
     */
    public fun clearId() {
      _builder.clearId()
    }

    /**
     * string message_version = 2;
     */
    public var messageVersion: kotlin.String
      @JvmName("getMessageVersion")
      get() = _builder.getMessageVersion()
      @JvmName("setMessageVersion")
      set(value) {
        _builder.setMessageVersion(value)
      }
    /**
     * string message_version = 2;
     */
    public fun clearMessageVersion() {
      _builder.clearMessageVersion()
    }

    /**
     * string sender_address = 3;
     */
    public var senderAddress: kotlin.String
      @JvmName("getSenderAddress")
      get() = _builder.getSenderAddress()
      @JvmName("setSenderAddress")
      set(value) {
        _builder.setSenderAddress(value)
      }
    /**
     * string sender_address = 3;
     */
    public fun clearSenderAddress() {
      _builder.clearSenderAddress()
    }

    /**
     * optional string recipient_address = 4;
     */
    public var recipientAddress: kotlin.String
      @JvmName("getRecipientAddress")
      get() = _builder.getRecipientAddress()
      @JvmName("setRecipientAddress")
      set(value) {
        _builder.setRecipientAddress(value)
      }
    /**
     * optional string recipient_address = 4;
     */
    public fun clearRecipientAddress() {
      _builder.clearRecipientAddress()
    }
    /**
     * optional string recipient_address = 4;
     * @return Whether the recipientAddress field is set.
     */
    public fun hasRecipientAddress(): kotlin.Boolean {
      return _builder.hasRecipientAddress()
    }

    /**
     * uint64 sent_ns = 5;
     */
    public var sentNs: kotlin.Long
      @JvmName("getSentNs")
      get() = _builder.getSentNs()
      @JvmName("setSentNs")
      set(value) {
        _builder.setSentNs(value)
      }
    /**
     * uint64 sent_ns = 5;
     */
    public fun clearSentNs() {
      _builder.clearSentNs()
    }

    /**
     * string content_topic = 6;
     */
    public var contentTopic: kotlin.String
      @JvmName("getContentTopic")
      get() = _builder.getContentTopic()
      @JvmName("setContentTopic")
      set(value) {
        _builder.setContentTopic(value)
      }
    /**
     * string content_topic = 6;
     */
    public fun clearContentTopic() {
      _builder.clearContentTopic()
    }

    /**
     * .xmtp.message_contents.ConversationReference conversation = 7;
     */
    public var conversation: org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference
      @JvmName("getConversation")
      get() = _builder.getConversation()
      @JvmName("setConversation")
      set(value) {
        _builder.setConversation(value)
      }
    /**
     * .xmtp.message_contents.ConversationReference conversation = 7;
     */
    public fun clearConversation() {
      _builder.clearConversation()
    }
    /**
     * .xmtp.message_contents.ConversationReference conversation = 7;
     * @return Whether the conversation field is set.
     */
    public fun hasConversation(): kotlin.Boolean {
      return _builder.hasConversation()
    }

    /**
     * 
     * encapsulates EncodedContent
     * 
* * bytes content_bytes = 8; */ public var contentBytes: com.google.protobuf.ByteString @JvmName("getContentBytes") get() = _builder.getContentBytes() @JvmName("setContentBytes") set(value) { _builder.setContentBytes(value) } /** *
     * encapsulates EncodedContent
     * 
* * bytes content_bytes = 8; */ public fun clearContentBytes() { _builder.clearContentBytes() } } } public inline fun org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage.copy(block: org.xmtp.proto.message.contents.DecodedMessageKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessage = org.xmtp.proto.message.contents.DecodedMessageKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.MessageOuterClass.DecodedMessageOrBuilder.conversationOrNull: org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference? get() = if (hasConversation()) getConversation() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy