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

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

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

    /**
     * .authzed.api.v1.AlgebraicSubjectSet intermediate = 1;
     */
    public var intermediate: com.authzed.api.v1.Core.AlgebraicSubjectSet
      @JvmName("getIntermediate")
      get() = _builder.getIntermediate()
      @JvmName("setIntermediate")
      set(value) {
        _builder.setIntermediate(value)
      }
    /**
     * .authzed.api.v1.AlgebraicSubjectSet intermediate = 1;
     */
    public fun clearIntermediate() {
      _builder.clearIntermediate()
    }
    /**
     * .authzed.api.v1.AlgebraicSubjectSet intermediate = 1;
     * @return Whether the intermediate field is set.
     */
    public fun hasIntermediate(): kotlin.Boolean {
      return _builder.hasIntermediate()
    }

    /**
     * .authzed.api.v1.DirectSubjectSet leaf = 2;
     */
    public var leaf: com.authzed.api.v1.Core.DirectSubjectSet
      @JvmName("getLeaf")
      get() = _builder.getLeaf()
      @JvmName("setLeaf")
      set(value) {
        _builder.setLeaf(value)
      }
    /**
     * .authzed.api.v1.DirectSubjectSet leaf = 2;
     */
    public fun clearLeaf() {
      _builder.clearLeaf()
    }
    /**
     * .authzed.api.v1.DirectSubjectSet leaf = 2;
     * @return Whether the leaf field is set.
     */
    public fun hasLeaf(): kotlin.Boolean {
      return _builder.hasLeaf()
    }

    /**
     * .authzed.api.v1.ObjectReference expanded_object = 3;
     */
    public var expandedObject: com.authzed.api.v1.Core.ObjectReference
      @JvmName("getExpandedObject")
      get() = _builder.getExpandedObject()
      @JvmName("setExpandedObject")
      set(value) {
        _builder.setExpandedObject(value)
      }
    /**
     * .authzed.api.v1.ObjectReference expanded_object = 3;
     */
    public fun clearExpandedObject() {
      _builder.clearExpandedObject()
    }
    /**
     * .authzed.api.v1.ObjectReference expanded_object = 3;
     * @return Whether the expandedObject field is set.
     */
    public fun hasExpandedObject(): kotlin.Boolean {
      return _builder.hasExpandedObject()
    }

    /**
     * string expanded_relation = 4;
     */
    public var expandedRelation: kotlin.String
      @JvmName("getExpandedRelation")
      get() = _builder.getExpandedRelation()
      @JvmName("setExpandedRelation")
      set(value) {
        _builder.setExpandedRelation(value)
      }
    /**
     * string expanded_relation = 4;
     */
    public fun clearExpandedRelation() {
      _builder.clearExpandedRelation()
    }
    public val treeTypeCase: com.authzed.api.v1.Core.PermissionRelationshipTree.TreeTypeCase
      @JvmName("getTreeTypeCase")
      get() = _builder.getTreeTypeCase()

    public fun clearTreeType() {
      _builder.clearTreeType()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.authzed.api.v1.Core.PermissionRelationshipTree.copy(block: com.authzed.api.v1.PermissionRelationshipTreeKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Core.PermissionRelationshipTree =
  com.authzed.api.v1.PermissionRelationshipTreeKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.authzed.api.v1.Core.PermissionRelationshipTreeOrBuilder.intermediateOrNull: com.authzed.api.v1.Core.AlgebraicSubjectSet?
  get() = if (hasIntermediate()) getIntermediate() else null

public val com.authzed.api.v1.Core.PermissionRelationshipTreeOrBuilder.leafOrNull: com.authzed.api.v1.Core.DirectSubjectSet?
  get() = if (hasLeaf()) getLeaf() else null

public val com.authzed.api.v1.Core.PermissionRelationshipTreeOrBuilder.expandedObjectOrNull: com.authzed.api.v1.Core.ObjectReference?
  get() = if (hasExpandedObject()) getExpandedObject() else null





© 2015 - 2025 Weber Informatics LLC | Privacy Policy