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

org.xmtp.proto.message.api.v1.EnvelopeKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_api/v1/message_api.proto

package org.xmtp.proto.message.api.v1;

@kotlin.jvm.JvmName("-initializeenvelope")
public inline fun envelope(block: org.xmtp.proto.message.api.v1.EnvelopeKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope =
  org.xmtp.proto.message.api.v1.EnvelopeKt.Dsl._create(org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope.newBuilder()).apply { block() }._build()
public object EnvelopeKt {
  @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.api.v1.MessageApiOuterClass.Envelope.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope = _builder.build()

    /**
     * 
     * The topic the message belongs to,
     * If the message includes the topic as well
     * it MUST be the same as the topic in the envelope.
     * 
* * string content_topic = 1; */ public var contentTopic: kotlin.String @JvmName("getContentTopic") get() = _builder.getContentTopic() @JvmName("setContentTopic") set(value) { _builder.setContentTopic(value) } /** *
     * The topic the message belongs to,
     * If the message includes the topic as well
     * it MUST be the same as the topic in the envelope.
     * 
* * string content_topic = 1; */ public fun clearContentTopic() { _builder.clearContentTopic() } /** *
     * Message creation timestamp
     * If the message includes the timestamp as well
     * it MUST be equivalent to the timestamp in the envelope.
     * 
* * uint64 timestamp_ns = 2; */ public var timestampNs: kotlin.Long @JvmName("getTimestampNs") get() = _builder.getTimestampNs() @JvmName("setTimestampNs") set(value) { _builder.setTimestampNs(value) } /** *
     * Message creation timestamp
     * If the message includes the timestamp as well
     * it MUST be equivalent to the timestamp in the envelope.
     * 
* * uint64 timestamp_ns = 2; */ public fun clearTimestampNs() { _builder.clearTimestampNs() } /** * bytes message = 3; */ public var message: com.google.protobuf.ByteString @JvmName("getMessage") get() = _builder.getMessage() @JvmName("setMessage") set(value) { _builder.setMessage(value) } /** * bytes message = 3; */ public fun clearMessage() { _builder.clearMessage() } } } public inline fun org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope.copy(block: org.xmtp.proto.message.api.v1.EnvelopeKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.api.v1.MessageApiOuterClass.Envelope = org.xmtp.proto.message.api.v1.EnvelopeKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy