//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yats-grpc.proto
package com.kevwe.yats.protobuf;
@kotlin.jvm.JvmName("-initializecreateEventRequest")
public inline fun createEventRequest(block: com.kevwe.yats.protobuf.CreateEventRequestKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.CreateEventRequest =
com.kevwe.yats.protobuf.CreateEventRequestKt.Dsl._create(com.kevwe.yats.protobuf.CreateEventRequest.newBuilder()).apply { block() }._build()
public object CreateEventRequestKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.kevwe.yats.protobuf.CreateEventRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.kevwe.yats.protobuf.CreateEventRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.kevwe.yats.protobuf.CreateEventRequest = _builder.build()
/**
* .yats.Event event = 1;
*/
public var event: com.kevwe.yats.protobuf.Event
@JvmName("getEvent")
get() = _builder.getEvent()
@JvmName("setEvent")
set(value) {
_builder.setEvent(value)
}
/**
* .yats.Event event = 1;
*/
public fun clearEvent() {
_builder.clearEvent()
}
/**
* .yats.Event event = 1;
* @return Whether the event field is set.
*/
public fun hasEvent(): kotlin.Boolean {
return _builder.hasEvent()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.kevwe.yats.protobuf.CreateEventRequest.copy(block: com.kevwe.yats.protobuf.CreateEventRequestKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.CreateEventRequest =
com.kevwe.yats.protobuf.CreateEventRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.kevwe.yats.protobuf.CreateEventRequestOrBuilder.eventOrNull: com.kevwe.yats.protobuf.Event?
get() = if (hasEvent()) getEvent() else null