com.authzed.api.v1.LookupResourcesResponseKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: authzed/api/v1/permission_service.proto
package com.authzed.api.v1;
@kotlin.jvm.JvmName("-initializelookupResourcesResponse")
public inline fun lookupResourcesResponse(block: com.authzed.api.v1.LookupResourcesResponseKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.LookupResourcesResponse =
com.authzed.api.v1.LookupResourcesResponseKt.Dsl._create(com.authzed.api.v1.PermissionService.LookupResourcesResponse.newBuilder()).apply { block() }._build()
public object LookupResourcesResponseKt {
@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.LookupResourcesResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.authzed.api.v1.PermissionService.LookupResourcesResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.authzed.api.v1.PermissionService.LookupResourcesResponse = _builder.build()
/**
* .authzed.api.v1.ZedToken looked_up_at = 1;
*/
public var lookedUpAt: com.authzed.api.v1.Core.ZedToken
@JvmName("getLookedUpAt")
get() = _builder.getLookedUpAt()
@JvmName("setLookedUpAt")
set(value) {
_builder.setLookedUpAt(value)
}
/**
* .authzed.api.v1.ZedToken looked_up_at = 1;
*/
public fun clearLookedUpAt() {
_builder.clearLookedUpAt()
}
/**
* .authzed.api.v1.ZedToken looked_up_at = 1;
* @return Whether the lookedUpAt field is set.
*/
public fun hasLookedUpAt(): kotlin.Boolean {
return _builder.hasLookedUpAt()
}
/**
* string resource_object_id = 2;
*/
public var resourceObjectId: kotlin.String
@JvmName("getResourceObjectId")
get() = _builder.getResourceObjectId()
@JvmName("setResourceObjectId")
set(value) {
_builder.setResourceObjectId(value)
}
/**
* string resource_object_id = 2;
*/
public fun clearResourceObjectId() {
_builder.clearResourceObjectId()
}
/**
*
* permissionship indicates whether the response was partially evaluated or not
*
*
* .authzed.api.v1.LookupPermissionship permissionship = 3 [(.validate.rules) = { ... }
*/
public var permissionship: com.authzed.api.v1.PermissionService.LookupPermissionship
@JvmName("getPermissionship")
get() = _builder.getPermissionship()
@JvmName("setPermissionship")
set(value) {
_builder.setPermissionship(value)
}
/**
*
* permissionship indicates whether the response was partially evaluated or not
*
*
* .authzed.api.v1.LookupPermissionship permissionship = 3 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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.LookupResourcesResponse.copy(block: com.authzed.api.v1.LookupResourcesResponseKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.LookupResourcesResponse =
com.authzed.api.v1.LookupResourcesResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.authzed.api.v1.PermissionService.LookupResourcesResponseOrBuilder.lookedUpAtOrNull: com.authzed.api.v1.Core.ZedToken?
get() = if (hasLookedUpAt()) getLookedUpAt() else null
public val com.authzed.api.v1.PermissionService.LookupResourcesResponseOrBuilder.partialCaveatInfoOrNull: com.authzed.api.v1.Core.PartialCaveatInfo?
get() = if (hasPartialCaveatInfo()) getPartialCaveatInfo() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy