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

com.authzed.api.v1.CaveatEvalInfoKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: authzed/api/v1/debug.proto

package com.authzed.api.v1;

@kotlin.jvm.JvmName("-initializecaveatEvalInfo")
public inline fun caveatEvalInfo(block: com.authzed.api.v1.CaveatEvalInfoKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Debug.CaveatEvalInfo =
  com.authzed.api.v1.CaveatEvalInfoKt.Dsl._create(com.authzed.api.v1.Debug.CaveatEvalInfo.newBuilder()).apply { block() }._build()
public object CaveatEvalInfoKt {
  @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.Debug.CaveatEvalInfo.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.authzed.api.v1.Debug.CaveatEvalInfo.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * 
     * expression is the expression that was evaluated.
     * 
* * string expression = 1; */ public var expression: kotlin.String @JvmName("getExpression") get() = _builder.getExpression() @JvmName("setExpression") set(value) { _builder.setExpression(value) } /** *
     * expression is the expression that was evaluated.
     * 
* * string expression = 1; */ public fun clearExpression() { _builder.clearExpression() } /** *
     * result is the result of the evaluation.
     * 
* * .authzed.api.v1.CaveatEvalInfo.Result result = 2; */ public var result: com.authzed.api.v1.Debug.CaveatEvalInfo.Result @JvmName("getResult") get() = _builder.getResult() @JvmName("setResult") set(value) { _builder.setResult(value) } /** *
     * result is the result of the evaluation.
     * 
* * .authzed.api.v1.CaveatEvalInfo.Result result = 2; */ public fun clearResult() { _builder.clearResult() } /** *
     * context consists of any named values that were used for evaluating the caveat expression.
     * 
* * .google.protobuf.Struct context = 3; */ public var context: com.google.protobuf.Struct @JvmName("getContext") get() = _builder.getContext() @JvmName("setContext") set(value) { _builder.setContext(value) } /** *
     * context consists of any named values that were used for evaluating the caveat expression.
     * 
* * .google.protobuf.Struct context = 3; */ public fun clearContext() { _builder.clearContext() } /** *
     * context consists of any named values that were used for evaluating the caveat expression.
     * 
* * .google.protobuf.Struct context = 3; * @return Whether the context field is set. */ public fun hasContext(): kotlin.Boolean { return _builder.hasContext() } /** *
     * partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
     * 
* * .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; */ 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, if applicable.
     * 
* * .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; */ public fun clearPartialCaveatInfo() { _builder.clearPartialCaveatInfo() } /** *
     * partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
     * 
* * .authzed.api.v1.PartialCaveatInfo partial_caveat_info = 4; * @return Whether the partialCaveatInfo field is set. */ public fun hasPartialCaveatInfo(): kotlin.Boolean { return _builder.hasPartialCaveatInfo() } /** *
     * caveat_name is the name of the caveat that was executed, if applicable.
     * 
* * string caveat_name = 5; */ public var caveatName: kotlin.String @JvmName("getCaveatName") get() = _builder.getCaveatName() @JvmName("setCaveatName") set(value) { _builder.setCaveatName(value) } /** *
     * caveat_name is the name of the caveat that was executed, if applicable.
     * 
* * string caveat_name = 5; */ public fun clearCaveatName() { _builder.clearCaveatName() } } } @kotlin.jvm.JvmSynthetic public inline fun com.authzed.api.v1.Debug.CaveatEvalInfo.copy(block: com.authzed.api.v1.CaveatEvalInfoKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Debug.CaveatEvalInfo = com.authzed.api.v1.CaveatEvalInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val com.authzed.api.v1.Debug.CaveatEvalInfoOrBuilder.contextOrNull: com.google.protobuf.Struct? get() = if (hasContext()) getContext() else null public val com.authzed.api.v1.Debug.CaveatEvalInfoOrBuilder.partialCaveatInfoOrNull: com.authzed.api.v1.Core.PartialCaveatInfo? get() = if (hasPartialCaveatInfo()) getPartialCaveatInfo() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy