com.authzed.api.v1.RelationshipUpdateKt.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("-initializerelationshipUpdate")
public inline fun relationshipUpdate(block: com.authzed.api.v1.RelationshipUpdateKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Core.RelationshipUpdate =
com.authzed.api.v1.RelationshipUpdateKt.Dsl._create(com.authzed.api.v1.Core.RelationshipUpdate.newBuilder()).apply { block() }._build()
public object RelationshipUpdateKt {
@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.RelationshipUpdate.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.authzed.api.v1.Core.RelationshipUpdate.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.authzed.api.v1.Core.RelationshipUpdate = _builder.build()
/**
* .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
*/
public var operation: com.authzed.api.v1.Core.RelationshipUpdate.Operation
@JvmName("getOperation")
get() = _builder.getOperation()
@JvmName("setOperation")
set(value) {
_builder.setOperation(value)
}
/**
* .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
*/
public fun clearOperation() {
_builder.clearOperation()
}
/**
* .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
*/
public var relationship: com.authzed.api.v1.Core.Relationship
@JvmName("getRelationship")
get() = _builder.getRelationship()
@JvmName("setRelationship")
set(value) {
_builder.setRelationship(value)
}
/**
* .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
*/
public fun clearRelationship() {
_builder.clearRelationship()
}
/**
* .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
* @return Whether the relationship field is set.
*/
public fun hasRelationship(): kotlin.Boolean {
return _builder.hasRelationship()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.authzed.api.v1.Core.RelationshipUpdate.copy(block: com.authzed.api.v1.RelationshipUpdateKt.Dsl.() -> kotlin.Unit): com.authzed.api.v1.Core.RelationshipUpdate =
com.authzed.api.v1.RelationshipUpdateKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.authzed.api.v1.Core.RelationshipUpdateOrBuilder.relationshipOrNull: com.authzed.api.v1.Core.Relationship?
get() = if (hasRelationship()) getRelationship() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy