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

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

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

package org.xmtp.proto.message.contents;

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

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

    /**
     * .xmtp.message_contents.Signature signature = 1;
     */
    public var signature: org.xmtp.proto.message.contents.SignatureOuterClass.Signature
      @JvmName("getSignature")
      get() = _builder.getSignature()
      @JvmName("setSignature")
      set(value) {
        _builder.setSignature(value)
      }
    /**
     * .xmtp.message_contents.Signature signature = 1;
     */
    public fun clearSignature() {
      _builder.clearSignature()
    }
    /**
     * .xmtp.message_contents.Signature signature = 1;
     * @return Whether the signature field is set.
     */
    public fun hasSignature(): kotlin.Boolean {
      return _builder.hasSignature()
    }

    /**
     * 
     * The SignedPublicKeyBundle of the signer, used to link the XMTP signature
     * with a blockchain account through a chain of signatures.
     * 
* * .xmtp.message_contents.SignedPublicKeyBundle signed_public_key_bundle = 2; */ public var signedPublicKeyBundle: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle @JvmName("getSignedPublicKeyBundle") get() = _builder.getSignedPublicKeyBundle() @JvmName("setSignedPublicKeyBundle") set(value) { _builder.setSignedPublicKeyBundle(value) } /** *
     * The SignedPublicKeyBundle of the signer, used to link the XMTP signature
     * with a blockchain account through a chain of signatures.
     * 
* * .xmtp.message_contents.SignedPublicKeyBundle signed_public_key_bundle = 2; */ public fun clearSignedPublicKeyBundle() { _builder.clearSignedPublicKeyBundle() } /** *
     * The SignedPublicKeyBundle of the signer, used to link the XMTP signature
     * with a blockchain account through a chain of signatures.
     * 
* * .xmtp.message_contents.SignedPublicKeyBundle signed_public_key_bundle = 2; * @return Whether the signedPublicKeyBundle field is set. */ public fun hasSignedPublicKeyBundle(): kotlin.Boolean { return _builder.hasSignedPublicKeyBundle() } /** *
     * Serialized FrameActionBody message, so that the signature verification can
     * happen on a byte-perfect representation of the message
     * 
* * bytes action_body = 3; */ public var actionBody: com.google.protobuf.ByteString @JvmName("getActionBody") get() = _builder.getActionBody() @JvmName("setActionBody") set(value) { _builder.setActionBody(value) } /** *
     * Serialized FrameActionBody message, so that the signature verification can
     * happen on a byte-perfect representation of the message
     * 
* * bytes action_body = 3; */ public fun clearActionBody() { _builder.clearActionBody() } } } public inline fun org.xmtp.proto.message.contents.Frames.FrameAction.copy(block: org.xmtp.proto.message.contents.FrameActionKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.contents.Frames.FrameAction = org.xmtp.proto.message.contents.FrameActionKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.contents.Frames.FrameActionOrBuilder.signatureOrNull: org.xmtp.proto.message.contents.SignatureOuterClass.Signature? get() = if (hasSignature()) getSignature() else null public val org.xmtp.proto.message.contents.Frames.FrameActionOrBuilder.signedPublicKeyBundleOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle? get() = if (hasSignedPublicKeyBundle()) getSignedPublicKeyBundle() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy