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

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

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

    /**
     * .authzed.api.v1.ZedToken expanded_at = 1;
     */
    public var expandedAt: com.authzed.api.v1.Core.ZedToken
      @JvmName("getExpandedAt")
      get() = _builder.getExpandedAt()
      @JvmName("setExpandedAt")
      set(value) {
        _builder.setExpandedAt(value)
      }
    /**
     * .authzed.api.v1.ZedToken expanded_at = 1;
     */
    public fun clearExpandedAt() {
      _builder.clearExpandedAt()
    }
    /**
     * .authzed.api.v1.ZedToken expanded_at = 1;
     * @return Whether the expandedAt field is set.
     */
    public fun hasExpandedAt(): kotlin.Boolean {
      return _builder.hasExpandedAt()
    }

    /**
     * 
     * tree_root is a tree structure whose leaf nodes are subjects, and
     * intermediate nodes represent the various operations (union, intersection,
     * exclusion) to reach those subjects.
     * 
* * .authzed.api.v1.PermissionRelationshipTree tree_root = 2; */ public var treeRoot: com.authzed.api.v1.Core.PermissionRelationshipTree @JvmName("getTreeRoot") get() = _builder.getTreeRoot() @JvmName("setTreeRoot") set(value) { _builder.setTreeRoot(value) } /** *
     * tree_root is a tree structure whose leaf nodes are subjects, and
     * intermediate nodes represent the various operations (union, intersection,
     * exclusion) to reach those subjects.
     * 
* * .authzed.api.v1.PermissionRelationshipTree tree_root = 2; */ public fun clearTreeRoot() { _builder.clearTreeRoot() } /** *
     * tree_root is a tree structure whose leaf nodes are subjects, and
     * intermediate nodes represent the various operations (union, intersection,
     * exclusion) to reach those subjects.
     * 
* * .authzed.api.v1.PermissionRelationshipTree tree_root = 2; * @return Whether the treeRoot field is set. */ public fun hasTreeRoot(): kotlin.Boolean { return _builder.hasTreeRoot() } } } @kotlin.jvm.JvmSynthetic public inline fun com.authzed.api.v1.PermissionService.ExpandPermissionTreeResponse.copy(block: com.authzed.api.v1.ExpandPermissionTreeResponseKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.ExpandPermissionTreeResponse = com.authzed.api.v1.ExpandPermissionTreeResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val com.authzed.api.v1.PermissionService.ExpandPermissionTreeResponseOrBuilder.expandedAtOrNull: com.authzed.api.v1.Core.ZedToken? get() = if (hasExpandedAt()) getExpandedAt() else null public val com.authzed.api.v1.PermissionService.ExpandPermissionTreeResponseOrBuilder.treeRootOrNull: com.authzed.api.v1.Core.PermissionRelationshipTree? get() = if (hasTreeRoot()) getTreeRoot() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy