com.google.protobuf.EnumDescriptorProtoKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeenumDescriptorProto")
public inline fun enumDescriptorProto(block: com.google.protobuf.EnumDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.EnumDescriptorProto =
com.google.protobuf.EnumDescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder()).apply { block() }._build()
/**
* ```
* Describes an enum type.
* ```
*
* Protobuf type `google.protobuf.EnumDescriptorProto`
*/
public object EnumDescriptorProtoKt {
@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.EnumDescriptorProto.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.EnumDescriptorProto = _builder.build()
/**
* `optional string name = 1;`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* `optional string name = 1;`
*/
public fun clearName() {
_builder.clearName()
}
/**
* `optional string name = 1;`
* @return Whether the name field is set.
*/
public fun hasName(): kotlin.Boolean {
return _builder.hasName()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ValueProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
*/
public val value: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getValueList()
)
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
* @param value The value to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addValue")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) {
_builder.addValue(value)
}
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
* @param value The value to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignValue")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) {
add(value)
}
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
* @param values The value to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllValue")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllValue(values)
}
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
* @param values The value to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllValue")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
* @param index The index to set the value at.
* @param value The value to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setValue")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto) {
_builder.setValue(index, value)
}
/**
* `repeated .google.protobuf.EnumValueDescriptorProto value = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearValue")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearValue()
}
/**
* `optional .google.protobuf.EnumOptions options = 3;`
*/
public var options: com.google.protobuf.DescriptorProtos.EnumOptions
@JvmName("getOptions")
get() = _builder.getOptions()
@JvmName("setOptions")
set(value) {
_builder.setOptions(value)
}
/**
* `optional .google.protobuf.EnumOptions options = 3;`
*/
public fun clearOptions() {
_builder.clearOptions()
}
/**
* `optional .google.protobuf.EnumOptions options = 3;`
* @return Whether the options field is set.
*/
public fun hasOptions(): kotlin.Boolean {
return _builder.hasOptions()
}
public val EnumDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.EnumOptions?
get() = _builder.optionsOrNull
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ReservedRangeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
*/
public val reservedRange: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getReservedRangeList()
)
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
* @param value The reservedRange to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addReservedRange")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) {
_builder.addReservedRange(value)
}
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
* @param value The reservedRange to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignReservedRange")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) {
add(value)
}
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
* @param values The reservedRange to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllReservedRange")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllReservedRange(values)
}
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
* @param values The reservedRange to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllReservedRange")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
* @param index The index to set the value at.
* @param value The reservedRange to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setReservedRange")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange) {
_builder.setReservedRange(index, value)
}
/**
* ```
* Range of reserved numeric values. Reserved numeric values may not be used
* by enum values in the same enum declaration. Reserved ranges may not
* overlap.
* ```
*
* `repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearReservedRange")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearReservedRange()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ReservedNameProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @return A list containing the reservedName.
*/
public val reservedName: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getReservedNameList()
)
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @param value The reservedName to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addReservedName")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addReservedName(value)
}
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @param value The reservedName to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignReservedName")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @param values The reservedName to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllReservedName")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllReservedName(values)
}
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @param values The reservedName to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllReservedName")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
* @param index The index to set the value at.
* @param value The reservedName to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setReservedName")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setReservedName(index, value)
}/**
* ```
* Reserved enum value names, which may not be reused. A given name may only
* be reserved once.
* ```
*
* `repeated string reserved_name = 5;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearReservedName")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearReservedName()
}}
@kotlin.jvm.JvmName("-initializeenumReservedRange")
public inline fun enumReservedRange(block: com.google.protobuf.EnumDescriptorProtoKt.EnumReservedRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange =
com.google.protobuf.EnumDescriptorProtoKt.EnumReservedRangeKt.Dsl._create(com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.newBuilder()).apply { block() }._build()
/**
* ```
* Range of reserved numeric values. Reserved values may not be used by
* entries in the same enum. Reserved ranges may not overlap.
*
* Note that this is distinct from DescriptorProto.ReservedRange in that it
* is inclusive such that it can appropriately represent the entire int32
* domain.
* ```
*
* Protobuf type `google.protobuf.EnumDescriptorProto.EnumReservedRange`
*/
public object EnumReservedRangeKt {
@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.EnumDescriptorProto.EnumReservedRange.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange = _builder.build()
/**
* ```
* Inclusive.
* ```
*
* `optional int32 start = 1;`
*/
public var start: kotlin.Int
@JvmName("getStart")
get() = _builder.getStart()
@JvmName("setStart")
set(value) {
_builder.setStart(value)
}
/**
* ```
* Inclusive.
* ```
*
* `optional int32 start = 1;`
*/
public fun clearStart() {
_builder.clearStart()
}
/**
* ```
* Inclusive.
* ```
*
* `optional int32 start = 1;`
* @return Whether the start field is set.
*/
public fun hasStart(): kotlin.Boolean {
return _builder.hasStart()
}
/**
* ```
* Inclusive.
* ```
*
* `optional int32 end = 2;`
*/
public var end: kotlin.Int
@JvmName("getEnd")
get() = _builder.getEnd()
@JvmName("setEnd")
set(value) {
_builder.setEnd(value)
}
/**
* ```
* Inclusive.
* ```
*
* `optional int32 end = 2;`
*/
public fun clearEnd() {
_builder.clearEnd()
}
/**
* ```
* Inclusive.
* ```
*
* `optional int32 end = 2;`
* @return Whether the end field is set.
*/
public fun hasEnd(): kotlin.Boolean {
return _builder.hasEnd()
}
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.EnumDescriptorProto.copy(block: `com.google.protobuf`.EnumDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.EnumDescriptorProto =
`com.google.protobuf`.EnumDescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.copy(block: `com.google.protobuf`.EnumDescriptorProtoKt.EnumReservedRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRange =
`com.google.protobuf`.EnumDescriptorProtoKt.EnumReservedRangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.EnumOptions?
get() = if (hasOptions()) getOptions() else null