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

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

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

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

@kotlin.jvm.JvmName("-initializebackend")
public inline fun backend(block: com.google.api.BackendKt.Dsl.() -> kotlin.Unit): com.google.api.Backend =
  com.google.api.BackendKt.Dsl._create(com.google.api.Backend.newBuilder()).apply { block() }._build()
/**
 * ```
 * `Backend` defines the backend configuration for a service.
 * ```
 *
 * Protobuf type `google.api.Backend`
 */
public object BackendKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.Backend.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.Backend.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class RulesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     */
     public val rules: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getRulesList()
      )
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     * @param value The rules to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addRules")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.BackendRule) {
      _builder.addRules(value)
    }
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     * @param value The rules to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignRules")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.BackendRule) {
      add(value)
    }
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     * @param values The rules to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllRules")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllRules(values)
    }
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     * @param values The rules to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllRules")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     * @param index The index to set the value at.
     * @param value The rules to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setRules")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.BackendRule) {
      _builder.setRules(index, value)
    }
    /**
     * ```
     * A list of API backend rules that apply to individual API methods.
     *
     * **NOTE:** All service configuration rules follow "last one wins" order.
     * ```
     *
     * `repeated .google.api.BackendRule rules = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearRules")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearRules()
    }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy