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

com.google.api.SourceInfoKt.kt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/source_info.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;

@kotlin.jvm.JvmName("-initializesourceInfo")
public inline fun sourceInfo(block: com.google.api.SourceInfoKt.Dsl.() -> kotlin.Unit): com.google.api.SourceInfo =
  com.google.api.SourceInfoKt.Dsl._create(com.google.api.SourceInfo.newBuilder()).apply { block() }._build()
/**
 * ```
 * Source information used to create a Service Config
 * ```
 *
 * Protobuf type `google.api.SourceInfo`
 */
public object SourceInfoKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.SourceInfo.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.SourceInfo.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.api.SourceInfo = _builder.build()

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class SourceFilesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     */
     public val sourceFiles: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getSourceFilesList()
      )
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     * @param value The sourceFiles to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addSourceFiles")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Any) {
      _builder.addSourceFiles(value)
    }
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     * @param value The sourceFiles to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignSourceFiles")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Any) {
      add(value)
    }
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     * @param values The sourceFiles to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllSourceFiles")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllSourceFiles(values)
    }
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     * @param values The sourceFiles to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllSourceFiles")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     * @param index The index to set the value at.
     * @param value The sourceFiles to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setSourceFiles")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Any) {
      _builder.setSourceFiles(index, value)
    }
    /**
     * ```
     * All files used during config generation.
     * ```
     *
     * `repeated .google.protobuf.Any source_files = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearSourceFiles")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearSourceFiles()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.SourceInfo.copy(block: `com.google.api`.SourceInfoKt.Dsl.() -> kotlin.Unit): com.google.api.SourceInfo =
  `com.google.api`.SourceInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy