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

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

//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: authzed/api/v1/permission_service.proto

package com.authzed.api.v1;

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

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class UpdatesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     */
     public val updates: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getUpdatesList()
      )
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     * @param value The updates to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addUpdates")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.authzed.api.v1.Core.RelationshipUpdate) {
      _builder.addUpdates(value)
    }
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     * @param value The updates to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignUpdates")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.authzed.api.v1.Core.RelationshipUpdate) {
      add(value)
    }
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     * @param values The updates to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllUpdates")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllUpdates(values)
    }
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     * @param values The updates to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllUpdates")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     * @param index The index to set the value at.
     * @param value The updates to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setUpdates")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.authzed.api.v1.Core.RelationshipUpdate) {
      _builder.setUpdates(index, value)
    }
    /**
     * repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearUpdates")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearUpdates()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class OptionalPreconditionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * 
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } */ public val optionalPreconditions: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getOptionalPreconditionsList() ) /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } * @param value The optionalPreconditions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addOptionalPreconditions") public fun com.google.protobuf.kotlin.DslList.add(value: com.authzed.api.v1.PermissionService.Precondition) { _builder.addOptionalPreconditions(value) } /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } * @param value The optionalPreconditions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignOptionalPreconditions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.authzed.api.v1.PermissionService.Precondition) { add(value) } /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } * @param values The optionalPreconditions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllOptionalPreconditions") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllOptionalPreconditions(values) } /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } * @param values The optionalPreconditions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllOptionalPreconditions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } * @param index The index to set the value at. * @param value The optionalPreconditions to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setOptionalPreconditions") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.authzed.api.v1.PermissionService.Precondition) { _builder.setOptionalPreconditions(index, value) } /** *
     * To be bounded by configuration
     * 
* * repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... } */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearOptionalPreconditions") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearOptionalPreconditions() } } } @kotlin.jvm.JvmSynthetic public inline fun com.authzed.api.v1.PermissionService.WriteRelationshipsRequest.copy(block: com.authzed.api.v1.WriteRelationshipsRequestKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.PermissionService.WriteRelationshipsRequest = com.authzed.api.v1.WriteRelationshipsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy