
com.google.protobuf.OneofDescriptorProtoKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeoneofDescriptorProto")
inline fun oneofDescriptorProto(block: com.google.protobuf.OneofDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.OneofDescriptorProto =
com.google.protobuf.OneofDescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.OneofDescriptorProto.newBuilder()).apply { block() }._build()
object OneofDescriptorProtoKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
class Dsl private constructor(
private val _builder: com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.OneofDescriptorProto = _builder.build()
/**
* optional string name = 1;
*/
var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* optional string name = 1;
*/
fun clearName() {
_builder.clearName()
}
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
fun hasName(): kotlin.Boolean {
return _builder.hasName()
}
/**
* optional .google.protobuf.OneofOptions options = 2;
*/
var options: com.google.protobuf.DescriptorProtos.OneofOptions
@JvmName("getOptions")
get() = _builder.getOptions()
@JvmName("setOptions")
set(value) {
_builder.setOptions(value)
}
/**
* optional .google.protobuf.OneofOptions options = 2;
*/
fun clearOptions() {
_builder.clearOptions()
}
/**
* optional .google.protobuf.OneofOptions options = 2;
* @return Whether the options field is set.
*/
fun hasOptions(): kotlin.Boolean {
return _builder.hasOptions()
}
val OneofDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.OneofOptions?
get() = _builder.optionsOrNull
}
}
@kotlin.jvm.JvmSynthetic
inline fun com.google.protobuf.DescriptorProtos.OneofDescriptorProto.copy(block: com.google.protobuf.OneofDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.OneofDescriptorProto =
com.google.protobuf.OneofDescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.OneofOptions?
get() = if (hasOptions()) getOptions() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy