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

org.xmtp.proto.mls.message.contents.CredentialRevocationKt.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: mls/message_contents/credential.proto

package org.xmtp.proto.mls.message.contents;

@kotlin.jvm.JvmName("-initializecredentialRevocation")
public inline fun credentialRevocation(block: org.xmtp.proto.mls.message.contents.CredentialRevocationKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation =
  org.xmtp.proto.mls.message.contents.CredentialRevocationKt.Dsl._create(org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.newBuilder()).apply { block() }._build()
public object CredentialRevocationKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * 
     * The 'installation_public_key' field of the MlsCredential proto
     * 
* * bytes installation_key = 1; */ public var installationKey: com.google.protobuf.ByteString @JvmName("getInstallationKey") get() = _builder.getInstallationKey() @JvmName("setInstallationKey") set(value) { _builder.setInstallationKey(value) } /** *
     * The 'installation_public_key' field of the MlsCredential proto
     * 
* * bytes installation_key = 1; */ public fun clearInstallationKey() { _builder.clearInstallationKey() } /** *
     * The 'installation_public_key' field of the MlsCredential proto
     * 
* * bytes installation_key = 1; * @return Whether the installationKey field is set. */ public fun hasInstallationKey(): kotlin.Boolean { return _builder.hasInstallationKey() } /** *
     * The 'key_bytes' field of the legacy SignedPublicKey proto
     * 
* * bytes unsigned_legacy_create_identity_key = 2; */ public var unsignedLegacyCreateIdentityKey: com.google.protobuf.ByteString @JvmName("getUnsignedLegacyCreateIdentityKey") get() = _builder.getUnsignedLegacyCreateIdentityKey() @JvmName("setUnsignedLegacyCreateIdentityKey") set(value) { _builder.setUnsignedLegacyCreateIdentityKey(value) } /** *
     * The 'key_bytes' field of the legacy SignedPublicKey proto
     * 
* * bytes unsigned_legacy_create_identity_key = 2; */ public fun clearUnsignedLegacyCreateIdentityKey() { _builder.clearUnsignedLegacyCreateIdentityKey() } /** *
     * The 'key_bytes' field of the legacy SignedPublicKey proto
     * 
* * bytes unsigned_legacy_create_identity_key = 2; * @return Whether the unsignedLegacyCreateIdentityKey field is set. */ public fun hasUnsignedLegacyCreateIdentityKey(): kotlin.Boolean { return _builder.hasUnsignedLegacyCreateIdentityKey() } /** * .xmtp.mls.message_contents.RevokeMessagingAccessAssociation messaging_access = 3; */ public var messagingAccess: org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation @JvmName("getMessagingAccess") get() = _builder.getMessagingAccess() @JvmName("setMessagingAccess") set(value) { _builder.setMessagingAccess(value) } /** * .xmtp.mls.message_contents.RevokeMessagingAccessAssociation messaging_access = 3; */ public fun clearMessagingAccess() { _builder.clearMessagingAccess() } /** * .xmtp.mls.message_contents.RevokeMessagingAccessAssociation messaging_access = 3; * @return Whether the messagingAccess field is set. */ public fun hasMessagingAccess(): kotlin.Boolean { return _builder.hasMessagingAccess() } public val publicKeyCase: org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.PublicKeyCase @JvmName("getPublicKeyCase") get() = _builder.getPublicKeyCase() public fun clearPublicKey() { _builder.clearPublicKey() } public val associationCase: org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.AssociationCase @JvmName("getAssociationCase") get() = _builder.getAssociationCase() public fun clearAssociation() { _builder.clearAssociation() } } } public inline fun org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation.copy(block: org.xmtp.proto.mls.message.contents.CredentialRevocationKt.Dsl.() -> kotlin.Unit): org.xmtp.proto.mls.message.contents.Credential.CredentialRevocation = org.xmtp.proto.mls.message.contents.CredentialRevocationKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val org.xmtp.proto.mls.message.contents.Credential.CredentialRevocationOrBuilder.messagingAccessOrNull: org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation? get() = if (hasMessagingAccess()) getMessagingAccess() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy