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

com.authzed.api.v1.ResolvedSubjectKt.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("-initializeresolvedSubject")
public inline fun resolvedSubject(block: com.authzed.api.v1.ResolvedSubjectKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.ResolvedSubject =
  com.authzed.api.v1.ResolvedSubjectKt.Dsl._create(com.authzed.api.v1.PermissionService.ResolvedSubject.newBuilder()).apply { block() }._build()
public object ResolvedSubjectKt {
  @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.ResolvedSubject.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.authzed.api.v1.PermissionService.ResolvedSubject.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.authzed.api.v1.PermissionService.ResolvedSubject = _builder.build()

    /**
     * 
     * subject_object_id is the Object ID of the subject found. May be a `*` if
     * a wildcard was found.
     * 
* * string subject_object_id = 1; */ public var subjectObjectId: kotlin.String @JvmName("getSubjectObjectId") get() = _builder.getSubjectObjectId() @JvmName("setSubjectObjectId") set(value) { _builder.setSubjectObjectId(value) } /** *
     * subject_object_id is the Object ID of the subject found. May be a `*` if
     * a wildcard was found.
     * 
* * string subject_object_id = 1; */ public fun clearSubjectObjectId() { _builder.clearSubjectObjectId() } /** *
     * permissionship indicates whether the response was partially evaluated or not
     * 
* * .authzed.api.v1.LookupPermissionship permissionship = 2 [(.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 = 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.ResolvedSubject.copy(block: com.authzed.api.v1.ResolvedSubjectKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.ResolvedSubject = com.authzed.api.v1.ResolvedSubjectKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val com.authzed.api.v1.PermissionService.ResolvedSubjectOrBuilder.partialCaveatInfoOrNull: com.authzed.api.v1.Core.PartialCaveatInfo? get() = if (hasPartialCaveatInfo()) getPartialCaveatInfo() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy