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

org.xmtp.proto.message.contents.ConversationReferenceKt.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/conversation_reference.proto

package org.xmtp.proto.message.contents;

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

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

    /**
     * string topic = 1;
     */
    public var topic: kotlin.String
      @JvmName("getTopic")
      get() = _builder.getTopic()
      @JvmName("setTopic")
      set(value) {
        _builder.setTopic(value)
      }
    /**
     * string topic = 1;
     */
    public fun clearTopic() {
      _builder.clearTopic()
    }

    /**
     * string peer_address = 2;
     */
    public var peerAddress: kotlin.String
      @JvmName("getPeerAddress")
      get() = _builder.getPeerAddress()
      @JvmName("setPeerAddress")
      set(value) {
        _builder.setPeerAddress(value)
      }
    /**
     * string peer_address = 2;
     */
    public fun clearPeerAddress() {
      _builder.clearPeerAddress()
    }

    /**
     * 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()
    }

    /**
     * .xmtp.message_contents.InvitationV1.Context context = 4;
     */
    public var context: org.xmtp.proto.message.contents.Invitation.InvitationV1.Context
      @JvmName("getContext")
      get() = _builder.getContext()
      @JvmName("setContext")
      set(value) {
        _builder.setContext(value)
      }
    /**
     * .xmtp.message_contents.InvitationV1.Context context = 4;
     */
    public fun clearContext() {
      _builder.clearContext()
    }
    /**
     * .xmtp.message_contents.InvitationV1.Context context = 4;
     * @return Whether the context field is set.
     */
    public fun hasContext(): kotlin.Boolean {
      return _builder.hasContext()
    }
  }
}
public inline fun org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference.copy(block: org.xmtp.proto.message.contents.ConversationReferenceKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference =
  org.xmtp.proto.message.contents.ConversationReferenceKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReferenceOrBuilder.contextOrNull: org.xmtp.proto.message.contents.Invitation.InvitationV1.Context?
  get() = if (hasContext()) getContext() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy