//Generated by the protocol buffer compiler. DO NOT EDIT! // source: yats-grpc.proto package com.kevwe.yats.protobuf; @kotlin.jvm.JvmName("-initializecreateMetricResponse") public inline fun createMetricResponse(block: com.kevwe.yats.protobuf.CreateMetricResponseKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.CreateMetricResponse = com.kevwe.yats.protobuf.CreateMetricResponseKt.Dsl._create(com.kevwe.yats.protobuf.CreateMetricResponse.newBuilder()).apply { block() }._build() public object CreateMetricResponseKt { @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.CreateMetricResponse.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: com.kevwe.yats.protobuf.CreateMetricResponse.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): com.kevwe.yats.protobuf.CreateMetricResponse = _builder.build() /** * .yats.Metric metric = 1; */ public var metric: com.kevwe.yats.protobuf.Metric @JvmName("getMetric") get() = _builder.getMetric() @JvmName("setMetric") set(value) { _builder.setMetric(value) } /** * .yats.Metric metric = 1; */ public fun clearMetric() { _builder.clearMetric() } /** * .yats.Metric metric = 1; * @return Whether the metric field is set. */ public fun hasMetric(): kotlin.Boolean { return _builder.hasMetric() } } } @kotlin.jvm.JvmSynthetic public inline fun com.kevwe.yats.protobuf.CreateMetricResponse.copy(block: com.kevwe.yats.protobuf.CreateMetricResponseKt.Dsl.() -> kotlin.Unit): com.kevwe.yats.protobuf.CreateMetricResponse = com.kevwe.yats.protobuf.CreateMetricResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val com.kevwe.yats.protobuf.CreateMetricResponseOrBuilder.metricOrNull: com.kevwe.yats.protobuf.Metric? get() = if (hasMetric()) getMetric() else null