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

org.xmtp.proto.message.api.v1.TokenKt.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_api/v1/authn.proto

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

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

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

    /**
     * 
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public var identityKey: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey @JvmName("getIdentityKey") get() = _builder.getIdentityKey() @JvmName("setIdentityKey") set(value) { _builder.setIdentityKey(value) } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public fun clearIdentityKey() { _builder.clearIdentityKey() } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; * @return Whether the identityKey field is set. */ public fun hasIdentityKey(): kotlin.Boolean { return _builder.hasIdentityKey() } /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; */ public var authDataBytes: com.google.protobuf.ByteString @JvmName("getAuthDataBytes") get() = _builder.getAuthDataBytes() @JvmName("setAuthDataBytes") set(value) { _builder.setAuthDataBytes(value) } /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; */ public fun clearAuthDataBytes() { _builder.clearAuthDataBytes() } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public var authDataSignature: org.xmtp.proto.message.contents.SignatureOuterClass.Signature @JvmName("getAuthDataSignature") get() = _builder.getAuthDataSignature() @JvmName("setAuthDataSignature") set(value) { _builder.setAuthDataSignature(value) } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public fun clearAuthDataSignature() { _builder.clearAuthDataSignature() } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; * @return Whether the authDataSignature field is set. */ public fun hasAuthDataSignature(): kotlin.Boolean { return _builder.hasAuthDataSignature() } } } public inline fun org.xmtp.proto.message.api.v1.Authn.Token.copy(block: org.xmtp.proto.message.api.v1.TokenKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.message.api.v1.Authn.Token = org.xmtp.proto.message.api.v1.TokenKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.message.api.v1.Authn.TokenOrBuilder.identityKeyOrNull: org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey? get() = if (hasIdentityKey()) getIdentityKey() else null public val org.xmtp.proto.message.api.v1.Authn.TokenOrBuilder.authDataSignatureOrNull: org.xmtp.proto.message.contents.SignatureOuterClass.Signature? get() = if (hasAuthDataSignature()) getAuthDataSignature() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy