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

com.google.protobuf.FileDescriptorSetKt.kt Maven / Gradle / Ivy

Go to download

Kotlin lite Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

The newest version!
// 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("-initializefileDescriptorSet")
public inline fun fileDescriptorSet(block: com.google.protobuf.FileDescriptorSetKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileDescriptorSet =
  com.google.protobuf.FileDescriptorSetKt.Dsl._create(com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `google.protobuf.FileDescriptorSet`
 */
public object FileDescriptorSetKt {
  @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.FileDescriptorSet.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
  @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.DescriptorProtos.FileDescriptorSet = _builder.build()

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class FileProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     */
     public val file: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
  get() = com.google.protobuf.kotlin.DslList(
        _builder.fileList
      )
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     * @param value The file to add.
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addFile")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.addFile(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     * @param value The file to add.
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignFile")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     * @param values The file to add.
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllFile")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllFile(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     * @param values The file to add.
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllFile")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     * @param index The index to set the value at.
     * @param value The file to set.
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setFile")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.setFile(index, value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto file = 1 [json_name = "file"];`
     */
    @kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearFile")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearFile()
    }
    @Suppress("UNCHECKED_CAST")
    @kotlin.jvm.JvmSynthetic
public operator fun  get(extension: com.google.protobuf.ExtensionLite): T {
      return if (extension.isRepeated) {
        get(extension as com.google.protobuf.ExtensionLite>) as T
      } else {
        _builder.getExtension(extension)
      }
    }

    @kotlin.jvm.JvmSynthetic
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    @kotlin.jvm.JvmName("-getRepeatedExtension")
    public operator fun  get(
      extension: com.google.protobuf.ExtensionLite>
    ): com.google.protobuf.kotlin.ExtensionList {
      return com.google.protobuf.kotlin.ExtensionList(extension, _builder.getExtension(extension))
    }

    @kotlin.jvm.JvmSynthetic
public operator fun contains(extension: com.google.protobuf.ExtensionLite): Boolean {
      return _builder.hasExtension(extension)
    }

    @kotlin.jvm.JvmSynthetic
public fun clear(extension: com.google.protobuf.ExtensionLite) {
      _builder.clearExtension(extension)
    }

    @kotlin.jvm.JvmSynthetic
public fun  setExtension(extension: com.google.protobuf.ExtensionLite, value: T) {
      _builder.setExtension(extension, value)
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline operator fun > set(
      extension: com.google.protobuf.ExtensionLite,
      value: T
    ) {
      setExtension(extension, value)
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline operator fun set(
      extension: com.google.protobuf.ExtensionLite,
      value: com.google.protobuf.ByteString
    ) {
      setExtension(extension, value)
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline operator fun  set(
      extension: com.google.protobuf.ExtensionLite,
      value: T
    ) {
      setExtension(extension, value)
    }

    @kotlin.jvm.JvmSynthetic
public fun  com.google.protobuf.kotlin.ExtensionList.add(value: E) {
      _builder.addExtension(this.extension, value)
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline operator fun  com.google.protobuf.kotlin.ExtensionList.plusAssign(value: E) {
      add(value)
    }

    @kotlin.jvm.JvmSynthetic
public fun  com.google.protobuf.kotlin.ExtensionList.addAll(values: Iterable) {
      for (value in values) {
        add(value)
      }
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline operator fun  com.google.protobuf.kotlin.ExtensionList.plusAssign(values: Iterable) {
      addAll(values)
    }

    @kotlin.jvm.JvmSynthetic
public operator fun  com.google.protobuf.kotlin.ExtensionList.set(index: Int, value: E) {
      _builder.setExtension(this.extension, index, value)
    }

    @kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
    public inline fun com.google.protobuf.kotlin.ExtensionList<*, com.google.protobuf.DescriptorProtos.FileDescriptorSet>.clear() {
      clear(extension)
    }

  }
}
public inline fun com.google.protobuf.DescriptorProtos.FileDescriptorSet.copy(block: `com.google.protobuf`.FileDescriptorSetKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileDescriptorSet =
  `com.google.protobuf`.FileDescriptorSetKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy