All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.DescriptorProtoKt.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("-initializedescriptorProto")
public inline fun descriptorProto(block: com.google.protobuf.DescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto =
  com.google.protobuf.DescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder()).apply { block() }._build()
/**
 * ```
 * Describes a message type.
 * ```
 *
 * Protobuf type `google.protobuf.DescriptorProto`
 */
public object DescriptorProtoKt {
  @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.DescriptorProto.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.DescriptorProto.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.DescriptorProtos.DescriptorProto = _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 FieldProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     */
     public val field: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getFieldList()
      )
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     * @param value The field to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addField")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      _builder.addField(value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     * @param value The field to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignField")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     * @param values The field to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllField")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllField(values)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     * @param values The field to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllField")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     * @param index The index to set the value at.
     * @param value The field to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setField")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      _builder.setField(index, value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto field = 2;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearField")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearField()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ExtensionProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     */
     public val extension: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getExtensionList()
      )
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     * @param value The extension to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addExtension")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      _builder.addExtension(value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     * @param value The extension to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignExtension")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     * @param values The extension to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllExtension")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllExtension(values)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     * @param values The extension to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllExtension")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     * @param index The index to set the value at.
     * @param value The extension to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setExtension")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
      _builder.setExtension(index, value)
    }
    /**
     * `repeated .google.protobuf.FieldDescriptorProto extension = 6;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearExtension")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearExtension()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class NestedTypeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     */
     public val nestedType: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getNestedTypeList()
      )
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     * @param value The nestedType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addNestedType")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
      _builder.addNestedType(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     * @param value The nestedType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignNestedType")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     * @param values The nestedType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllNestedType")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllNestedType(values)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     * @param values The nestedType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllNestedType")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     * @param index The index to set the value at.
     * @param value The nestedType to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setNestedType")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
      _builder.setNestedType(index, value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto nested_type = 3;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearNestedType")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearNestedType()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class EnumTypeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     */
     public val enumType: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getEnumTypeList()
      )
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     * @param value The enumType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addEnumType")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
      _builder.addEnumType(value)
    }
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     * @param value The enumType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignEnumType")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     * @param values The enumType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllEnumType")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllEnumType(values)
    }
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     * @param values The enumType to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllEnumType")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     * @param index The index to set the value at.
     * @param value The enumType to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setEnumType")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
      _builder.setEnumType(index, value)
    }
    /**
     * `repeated .google.protobuf.EnumDescriptorProto enum_type = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearEnumType")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearEnumType()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ExtensionRangeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     */
     public val extensionRange: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getExtensionRangeList()
      )
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     * @param value The extensionRange to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addExtensionRange")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) {
      _builder.addExtensionRange(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     * @param value The extensionRange to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignExtensionRange")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     * @param values The extensionRange to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllExtensionRange")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllExtensionRange(values)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     * @param values The extensionRange to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllExtensionRange")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     * @param index The index to set the value at.
     * @param value The extensionRange to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setExtensionRange")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) {
      _builder.setExtensionRange(index, value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearExtensionRange")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearExtensionRange()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class OneofDeclProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     */
     public val oneofDecl: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getOneofDeclList()
      )
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     * @param value The oneofDecl to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addOneofDecl")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.OneofDescriptorProto) {
      _builder.addOneofDecl(value)
    }
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     * @param value The oneofDecl to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignOneofDecl")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.OneofDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     * @param values The oneofDecl to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllOneofDecl")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllOneofDecl(values)
    }
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     * @param values The oneofDecl to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllOneofDecl")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     * @param index The index to set the value at.
     * @param value The oneofDecl to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setOneofDecl")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.OneofDescriptorProto) {
      _builder.setOneofDecl(index, value)
    }
    /**
     * `repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearOneofDecl")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearOneofDecl()
    }


    /**
     * `optional .google.protobuf.MessageOptions options = 7;`
     */
    public var options: com.google.protobuf.DescriptorProtos.MessageOptions
      @JvmName("getOptions")
      get() = _builder.getOptions()
      @JvmName("setOptions")
      set(value) {
        _builder.setOptions(value)
      }
    /**
     * `optional .google.protobuf.MessageOptions options = 7;`
     */
    public fun clearOptions() {
      _builder.clearOptions()
    }
    /**
     * `optional .google.protobuf.MessageOptions options = 7;`
     * @return Whether the options field is set.
     */
    public fun hasOptions(): kotlin.Boolean {
      return _builder.hasOptions()
    }
    public val DescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.MessageOptions?
      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()
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     */
     public val reservedRange: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getReservedRangeList()
      )
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     * @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.DescriptorProto.ReservedRange) {
      _builder.addReservedRange(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     * @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.DescriptorProto.ReservedRange) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     * @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)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     * @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)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     * @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.DescriptorProto.ReservedRange) {
      _builder.setReservedRange(index, value)
    }
    /**
     * `repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;`
     */
    @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     * @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 field names, which may not be used by fields in the same message.
     * A given name may only be reserved once.
     * ```
     *
     * `repeated string reserved_name = 10;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearReservedName")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearReservedName()
    }}
  @kotlin.jvm.JvmName("-initializeextensionRange")
  public inline fun extensionRange(block: com.google.protobuf.DescriptorProtoKt.ExtensionRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange =
    com.google.protobuf.DescriptorProtoKt.ExtensionRangeKt.Dsl._create(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder()).apply { block() }._build()
  /**
   * Protobuf type `google.protobuf.DescriptorProto.ExtensionRange`
   */
  public object ExtensionRangeKt {
    @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.DescriptorProto.ExtensionRange.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder): Dsl = Dsl(builder)
      }

      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _build(): com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange = _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()
      }

      /**
       * ```
       * Exclusive.
       * ```
       *
       * `optional int32 end = 2;`
       */
      public var end: kotlin.Int
        @JvmName("getEnd")
        get() = _builder.getEnd()
        @JvmName("setEnd")
        set(value) {
          _builder.setEnd(value)
        }
      /**
       * ```
       * Exclusive.
       * ```
       *
       * `optional int32 end = 2;`
       */
      public fun clearEnd() {
        _builder.clearEnd()
      }
      /**
       * ```
       * Exclusive.
       * ```
       *
       * `optional int32 end = 2;`
       * @return Whether the end field is set.
       */
      public fun hasEnd(): kotlin.Boolean {
        return _builder.hasEnd()
      }

      /**
       * `optional .google.protobuf.ExtensionRangeOptions options = 3;`
       */
      public var options: com.google.protobuf.DescriptorProtos.ExtensionRangeOptions
        @JvmName("getOptions")
        get() = _builder.getOptions()
        @JvmName("setOptions")
        set(value) {
          _builder.setOptions(value)
        }
      /**
       * `optional .google.protobuf.ExtensionRangeOptions options = 3;`
       */
      public fun clearOptions() {
        _builder.clearOptions()
      }
      /**
       * `optional .google.protobuf.ExtensionRangeOptions options = 3;`
       * @return Whether the options field is set.
       */
      public fun hasOptions(): kotlin.Boolean {
        return _builder.hasOptions()
      }
      public val ExtensionRangeKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.ExtensionRangeOptions?
        get() = _builder.optionsOrNull
    }
  }
  @kotlin.jvm.JvmName("-initializereservedRange")
  public inline fun reservedRange(block: com.google.protobuf.DescriptorProtoKt.ReservedRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange =
    com.google.protobuf.DescriptorProtoKt.ReservedRangeKt.Dsl._create(com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.newBuilder()).apply { block() }._build()
  /**
   * ```
   * Range of reserved tag numbers. Reserved tag numbers may not be used by
   * fields or extension ranges in the same message. Reserved ranges may
   * not overlap.
   * ```
   *
   * Protobuf type `google.protobuf.DescriptorProto.ReservedRange`
   */
  public object ReservedRangeKt {
    @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.DescriptorProto.ReservedRange.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.Builder): Dsl = Dsl(builder)
      }

      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _build(): com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange = _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()
      }

      /**
       * ```
       * Exclusive.
       * ```
       *
       * `optional int32 end = 2;`
       */
      public var end: kotlin.Int
        @JvmName("getEnd")
        get() = _builder.getEnd()
        @JvmName("setEnd")
        set(value) {
          _builder.setEnd(value)
        }
      /**
       * ```
       * Exclusive.
       * ```
       *
       * `optional int32 end = 2;`
       */
      public fun clearEnd() {
        _builder.clearEnd()
      }
      /**
       * ```
       * Exclusive.
       * ```
       *
       * `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.DescriptorProto.copy(block: `com.google.protobuf`.DescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto =
  `com.google.protobuf`.DescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()

@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.copy(block: `com.google.protobuf`.DescriptorProtoKt.ExtensionRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange =
  `com.google.protobuf`.DescriptorProtoKt.ExtensionRangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.ExtensionRangeOptions?
  get() = if (hasOptions()) getOptions() else null

@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange.copy(block: `com.google.protobuf`.DescriptorProtoKt.ReservedRangeKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange =
  `com.google.protobuf`.DescriptorProtoKt.ReservedRangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.MessageOptions?
  get() = if (hasOptions()) getOptions() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy