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

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

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

    /**
     * 
     * encapsulates encoded MessageHeaderV2
     * 
* * bytes header_bytes = 1; */ public var headerBytes: com.google.protobuf.ByteString @JvmName("getHeaderBytes") get() = _builder.getHeaderBytes() @JvmName("setHeaderBytes") set(value) { _builder.setHeaderBytes(value) } /** *
     * encapsulates encoded MessageHeaderV2
     * 
* * bytes header_bytes = 1; */ public fun clearHeaderBytes() { _builder.clearHeaderBytes() } /** *
     * Ciphertext.payload MUST contain encrypted SignedContent
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; */ public var ciphertext: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext @JvmName("getCiphertext") get() = _builder.getCiphertext() @JvmName("setCiphertext") set(value) { _builder.setCiphertext(value) } /** *
     * Ciphertext.payload MUST contain encrypted SignedContent
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; */ public fun clearCiphertext() { _builder.clearCiphertext() } /** *
     * Ciphertext.payload MUST contain encrypted SignedContent
     * 
* * .xmtp.message_contents.Ciphertext ciphertext = 2; * @return Whether the ciphertext field is set. */ public fun hasCiphertext(): kotlin.Boolean { return _builder.hasCiphertext() } /** *
     * HMAC of the message ciphertext, with the HMAC key derived from the topic
     * key
     * 
* * optional bytes sender_hmac = 3; */ public var senderHmac: com.google.protobuf.ByteString @JvmName("getSenderHmac") get() = _builder.getSenderHmac() @JvmName("setSenderHmac") set(value) { _builder.setSenderHmac(value) } /** *
     * HMAC of the message ciphertext, with the HMAC key derived from the topic
     * key
     * 
* * optional bytes sender_hmac = 3; */ public fun clearSenderHmac() { _builder.clearSenderHmac() } /** *
     * HMAC of the message ciphertext, with the HMAC key derived from the topic
     * key
     * 
* * optional bytes sender_hmac = 3; * @return Whether the senderHmac field is set. */ public fun hasSenderHmac(): kotlin.Boolean { return _builder.hasSenderHmac() } /** *
     * Flag indicating whether the message should be pushed from a notification
     * server
     * 
* * optional bool should_push = 4; */ public var shouldPush: kotlin.Boolean @JvmName("getShouldPush") get() = _builder.getShouldPush() @JvmName("setShouldPush") set(value) { _builder.setShouldPush(value) } /** *
     * Flag indicating whether the message should be pushed from a notification
     * server
     * 
* * optional bool should_push = 4; */ public fun clearShouldPush() { _builder.clearShouldPush() } /** *
     * Flag indicating whether the message should be pushed from a notification
     * server
     * 
* * optional bool should_push = 4; * @return Whether the shouldPush field is set. */ public fun hasShouldPush(): kotlin.Boolean { return _builder.hasShouldPush() } } } public inline fun org.xmtp.proto.message.contents.MessageOuterClass.MessageV2.copy(block: org.xmtp.proto.message.contents.MessageV2Kt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.MessageOuterClass.MessageV2 = org.xmtp.proto.message.contents.MessageV2Kt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.MessageOuterClass.MessageV2OrBuilder.ciphertextOrNull: org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext? get() = if (hasCiphertext()) getCiphertext() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy