com.authzed.api.v1.LookupResourcesRequestKt.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("-initializelookupResourcesRequest")
public inline fun lookupResourcesRequest(block: com.authzed.api.v1.LookupResourcesRequestKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.LookupResourcesRequest =
com.authzed.api.v1.LookupResourcesRequestKt.Dsl._create(com.authzed.api.v1.PermissionService.LookupResourcesRequest.newBuilder()).apply { block() }._build()
public object LookupResourcesRequestKt {
@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.LookupResourcesRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.authzed.api.v1.PermissionService.LookupResourcesRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.authzed.api.v1.PermissionService.LookupResourcesRequest = _builder.build()
/**
* .authzed.api.v1.Consistency consistency = 1;
*/
public var consistency: com.authzed.api.v1.PermissionService.Consistency
@JvmName("getConsistency")
get() = _builder.getConsistency()
@JvmName("setConsistency")
set(value) {
_builder.setConsistency(value)
}
/**
* .authzed.api.v1.Consistency consistency = 1;
*/
public fun clearConsistency() {
_builder.clearConsistency()
}
/**
* .authzed.api.v1.Consistency consistency = 1;
* @return Whether the consistency field is set.
*/
public fun hasConsistency(): kotlin.Boolean {
return _builder.hasConsistency()
}
/**
*
* resource_object_type is the type of resource object for which the IDs will
* be returned.
*
*
* string resource_object_type = 2 [(.validate.rules) = { ... }
*/
public var resourceObjectType: kotlin.String
@JvmName("getResourceObjectType")
get() = _builder.getResourceObjectType()
@JvmName("setResourceObjectType")
set(value) {
_builder.setResourceObjectType(value)
}
/**
*
* resource_object_type is the type of resource object for which the IDs will
* be returned.
*
*
* string resource_object_type = 2 [(.validate.rules) = { ... }
*/
public fun clearResourceObjectType() {
_builder.clearResourceObjectType()
}
/**
*
* permission is the name of the permission or relation for which the subject
* must Check.
*
*
* string permission = 3 [(.validate.rules) = { ... }
*/
public var permission: kotlin.String
@JvmName("getPermission")
get() = _builder.getPermission()
@JvmName("setPermission")
set(value) {
_builder.setPermission(value)
}
/**
*
* permission is the name of the permission or relation for which the subject
* must Check.
*
*
* string permission = 3 [(.validate.rules) = { ... }
*/
public fun clearPermission() {
_builder.clearPermission()
}
/**
*
* subject is the subject with access to the resources.
*
*
* .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
*/
public var subject: com.authzed.api.v1.Core.SubjectReference
@JvmName("getSubject")
get() = _builder.getSubject()
@JvmName("setSubject")
set(value) {
_builder.setSubject(value)
}
/**
*
* subject is the subject with access to the resources.
*
*
* .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
*/
public fun clearSubject() {
_builder.clearSubject()
}
/**
*
* subject is the subject with access to the resources.
*
*
* .authzed.api.v1.SubjectReference subject = 4 [(.validate.rules) = { ... }
* @return Whether the subject field is set.
*/
public fun hasSubject(): kotlin.Boolean {
return _builder.hasSubject()
}
/**
*
** context consists of named values that are injected into the caveat evaluation context *
*
*
* .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
*/
public var context: com.google.protobuf.Struct
@JvmName("getContext")
get() = _builder.getContext()
@JvmName("setContext")
set(value) {
_builder.setContext(value)
}
/**
*
** context consists of named values that are injected into the caveat evaluation context *
*
*
* .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
*/
public fun clearContext() {
_builder.clearContext()
}
/**
*
** context consists of named values that are injected into the caveat evaluation context *
*
*
* .google.protobuf.Struct context = 5 [(.validate.rules) = { ... }
* @return Whether the context field is set.
*/
public fun hasContext(): kotlin.Boolean {
return _builder.hasContext()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.authzed.api.v1.PermissionService.LookupResourcesRequest.copy(block: com.authzed.api.v1.LookupResourcesRequestKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.LookupResourcesRequest =
com.authzed.api.v1.LookupResourcesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.authzed.api.v1.PermissionService.LookupResourcesRequestOrBuilder.consistencyOrNull: com.authzed.api.v1.PermissionService.Consistency?
get() = if (hasConsistency()) getConsistency() else null
public val com.authzed.api.v1.PermissionService.LookupResourcesRequestOrBuilder.subjectOrNull: com.authzed.api.v1.Core.SubjectReference?
get() = if (hasSubject()) getSubject() else null
public val com.authzed.api.v1.PermissionService.LookupResourcesRequestOrBuilder.contextOrNull: com.google.protobuf.Struct?
get() = if (hasContext()) getContext() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy