com.google.protobuf.OneofDescriptorProtoKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin Show documentation
Show all versions of protobuf-kotlin Show documentation
Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/descriptor.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeoneofDescriptorProto")
public 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()
/**
* Protobuf type `google.protobuf.OneofDescriptorProto`
*/
public object OneofDescriptorProtoKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder
) {
public 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 [json_name = "name"];`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.name
@JvmName("setName")
set(value) {
_builder.name = value
}
/**
* `optional string name = 1 [json_name = "name"];`
*/
public fun clearName() {
_builder.clearName()
}
/**
* `optional string name = 1 [json_name = "name"];`
* @return Whether the name field is set.
*/
public fun hasName(): kotlin.Boolean {
return _builder.hasName()
}
/**
* `optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];`
*/
public var options: com.google.protobuf.DescriptorProtos.OneofOptions
@JvmName("getOptions")
get() = _builder.options
@JvmName("setOptions")
set(value) {
_builder.options = value
}
/**
* `optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];`
*/
public fun clearOptions() {
_builder.clearOptions()
}
/**
* `optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];`
* @return Whether the options field is set.
*/
public fun hasOptions(): kotlin.Boolean {
return _builder.hasOptions()
}
public val OneofDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.OneofOptions?
get() = _builder.optionsOrNull
}
}
@kotlin.jvm.JvmSynthetic
public 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()
public val com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.OneofOptions?
get() = if (hasOptions()) getOptions() else null
© 2015 - 2024 Weber Informatics LLC | Privacy Policy