com.authzed.api.v1.CheckPermissionResponseKt.kt Maven / Gradle / Ivy
The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: authzed/api/v1/permission_service.proto
package com.authzed.api.v1;
@kotlin.jvm.JvmName("-initializecheckPermissionResponse")
public inline fun checkPermissionResponse(block: com.authzed.api.v1.CheckPermissionResponseKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.CheckPermissionResponse =
com.authzed.api.v1.CheckPermissionResponseKt.Dsl._create(com.authzed.api.v1.PermissionService.CheckPermissionResponse.newBuilder()).apply { block() }._build()
public object CheckPermissionResponseKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.authzed.api.v1.PermissionService.CheckPermissionResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.authzed.api.v1.PermissionService.CheckPermissionResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.authzed.api.v1.PermissionService.CheckPermissionResponse = _builder.build()
/**
* .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
*/
public var checkedAt: com.authzed.api.v1.Core.ZedToken
@JvmName("getCheckedAt")
get() = _builder.getCheckedAt()
@JvmName("setCheckedAt")
set(value) {
_builder.setCheckedAt(value)
}
/**
* .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
*/
public fun clearCheckedAt() {
_builder.clearCheckedAt()
}
/**
* .authzed.api.v1.ZedToken checked_at = 1 [(.validate.rules) = { ... }
* @return Whether the checkedAt field is set.
*/
public fun hasCheckedAt(): kotlin.Boolean {
return _builder.hasCheckedAt()
}
/**
*
* Permissionship communicates whether or not the subject has the requested
* permission or has a relationship with the given resource, over the given
* relation.
* This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the
* requested subject is a member of the computed permission set or there
* exists a relationship with the requested relation from the given resource
* to the given subject.
*
*
* .authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
*/
public var permissionship: com.authzed.api.v1.PermissionService.CheckPermissionResponse.Permissionship
@JvmName("getPermissionship")
get() = _builder.getPermissionship()
@JvmName("setPermissionship")
set(value) {
_builder.setPermissionship(value)
}
/**
*
* Permissionship communicates whether or not the subject has the requested
* permission or has a relationship with the given resource, over the given
* relation.
* This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the
* requested subject is a member of the computed permission set or there
* exists a relationship with the requested relation from the given resource
* to the given subject.
*
*
* .authzed.api.v1.CheckPermissionResponse.Permissionship permissionship = 2 [(.validate.rules) = { ... }
*/
public fun clearPermissionship() {
_builder.clearPermissionship()
}
/**
*
* partial_caveat_info holds information of a partially-evaluated caveated response
*
*
* .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
*/
public var partialCaveatInfo: com.authzed.api.v1.Core.PartialCaveatInfo
@JvmName("getPartialCaveatInfo")
get() = _builder.getPartialCaveatInfo()
@JvmName("setPartialCaveatInfo")
set(value) {
_builder.setPartialCaveatInfo(value)
}
/**
*
* partial_caveat_info holds information of a partially-evaluated caveated response
*
*
* .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
*/
public fun clearPartialCaveatInfo() {
_builder.clearPartialCaveatInfo()
}
/**
*
* partial_caveat_info holds information of a partially-evaluated caveated response
*
*
* .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 3 [(.validate.rules) = { ... }
* @return Whether the partialCaveatInfo field is set.
*/
public fun hasPartialCaveatInfo(): kotlin.Boolean {
return _builder.hasPartialCaveatInfo()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.authzed.api.v1.PermissionService.CheckPermissionResponse.copy(block: com.authzed.api.v1.CheckPermissionResponseKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.CheckPermissionResponse =
com.authzed.api.v1.CheckPermissionResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.authzed.api.v1.PermissionService.CheckPermissionResponseOrBuilder.checkedAtOrNull: com.authzed.api.v1.Core.ZedToken?
get() = if (hasCheckedAt()) getCheckedAt() else null
public val com.authzed.api.v1.PermissionService.CheckPermissionResponseOrBuilder.partialCaveatInfoOrNull: com.authzed.api.v1.Core.PartialCaveatInfo?
get() = if (hasPartialCaveatInfo()) getPartialCaveatInfo() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy