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

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

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

package com.authzed.api.v1;

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

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

    /**
     * 
     ** caveat_name is the name of the caveat expression to use, as defined in the schema *
     * 
* * string caveat_name = 1 [(.validate.rules) = { ... } */ 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 expression to use, as defined in the schema *
     * 
* * string caveat_name = 1 [(.validate.rules) = { ... } */ public fun clearCaveatName() { _builder.clearCaveatName() } /** *
     ** context consists of any named values that are defined at write time for the caveat expression *
     * 
* * .google.protobuf.Struct context = 2 [(.validate.rules) = { ... } */ 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 are defined at write time for the caveat expression *
     * 
* * .google.protobuf.Struct context = 2 [(.validate.rules) = { ... } */ public fun clearContext() { _builder.clearContext() } /** *
     ** context consists of any named values that are defined at write time for the caveat expression *
     * 
* * .google.protobuf.Struct context = 2 [(.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.Core.ContextualizedCaveat.copy(block: com.authzed.api.v1.ContextualizedCaveatKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Core.ContextualizedCaveat = com.authzed.api.v1.ContextualizedCaveatKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val com.authzed.api.v1.Core.ContextualizedCaveatOrBuilder.contextOrNull: com.google.protobuf.Struct? get() = if (hasContext()) getContext() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy