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

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

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

package org.xmtp.proto.message.contents;

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

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

    /**
     * 
     * serialized Ecies message
     * 
* * bytes ecies_bytes = 1; */ public var eciesBytes: com.google.protobuf.ByteString @JvmName("getEciesBytes") get() = _builder.getEciesBytes() @JvmName("setEciesBytes") set(value) { _builder.setEciesBytes(value) } /** *
     * serialized Ecies message
     * 
* * bytes ecies_bytes = 1; */ public fun clearEciesBytes() { _builder.clearEciesBytes() } /** *
     * signature of sha256(ecies_bytes) signed with the IdentityKey
     * 
* * .xmtp.message_contents.Signature signature = 2; */ public var signature: org.xmtp.proto.message.contents.SignatureOuterClass.Signature @JvmName("getSignature") get() = _builder.getSignature() @JvmName("setSignature") set(value) { _builder.setSignature(value) } /** *
     * signature of sha256(ecies_bytes) signed with the IdentityKey
     * 
* * .xmtp.message_contents.Signature signature = 2; */ public fun clearSignature() { _builder.clearSignature() } /** *
     * signature of sha256(ecies_bytes) signed with the IdentityKey
     * 
* * .xmtp.message_contents.Signature signature = 2; * @return Whether the signature field is set. */ public fun hasSignature(): kotlin.Boolean { return _builder.hasSignature() } } @kotlin.jvm.JvmName("-initializeecies") public inline fun ecies(block: org.xmtp.proto.message.contents.SignedEciesCiphertextKt.EciesKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies = org.xmtp.proto.message.contents.SignedEciesCiphertextKt.EciesKt.Dsl._create(org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies.newBuilder()).apply { block() }._build() public object EciesKt { @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.CiphertextOuterClass.SignedEciesCiphertext.Ecies.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies = _builder.build() /** *
       * 65 bytes
       * 
* * bytes ephemeral_public_key = 1; */ public var ephemeralPublicKey: com.google.protobuf.ByteString @JvmName("getEphemeralPublicKey") get() = _builder.getEphemeralPublicKey() @JvmName("setEphemeralPublicKey") set(value) { _builder.setEphemeralPublicKey(value) } /** *
       * 65 bytes
       * 
* * bytes ephemeral_public_key = 1; */ public fun clearEphemeralPublicKey() { _builder.clearEphemeralPublicKey() } /** *
       * 16 bytes
       * 
* * bytes iv = 2; */ public var iv: com.google.protobuf.ByteString @JvmName("getIv") get() = _builder.getIv() @JvmName("setIv") set(value) { _builder.setIv(value) } /** *
       * 16 bytes
       * 
* * bytes iv = 2; */ public fun clearIv() { _builder.clearIv() } /** *
       * 32 bytes
       * 
* * bytes mac = 3; */ public var mac: com.google.protobuf.ByteString @JvmName("getMac") get() = _builder.getMac() @JvmName("setMac") set(value) { _builder.setMac(value) } /** *
       * 32 bytes
       * 
* * bytes mac = 3; */ public fun clearMac() { _builder.clearMac() } /** *
       * encrypted payload with block size of 16
       * 
* * bytes ciphertext = 4; */ public var ciphertext: com.google.protobuf.ByteString @JvmName("getCiphertext") get() = _builder.getCiphertext() @JvmName("setCiphertext") set(value) { _builder.setCiphertext(value) } /** *
       * encrypted payload with block size of 16
       * 
* * bytes ciphertext = 4; */ public fun clearCiphertext() { _builder.clearCiphertext() } } } } public inline fun org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.copy(block: org.xmtp.proto.message.contents.SignedEciesCiphertextKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext = org.xmtp.proto.message.contents.SignedEciesCiphertextKt.Dsl._create(this.toBuilder()).apply { block() }._build() public inline fun org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies.copy(block: org.xmtp.proto.message.contents.SignedEciesCiphertextKt.EciesKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies = org.xmtp.proto.message.contents.SignedEciesCiphertextKt.EciesKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertextOrBuilder.signatureOrNull: org.xmtp.proto.message.contents.SignatureOuterClass.Signature? get() = if (hasSignature()) getSignature() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy