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

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

There is a newer version: 1.2.13
Show newest version
// 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("-initializebackendRule")
public inline fun backendRule(block: com.google.api.BackendRuleKt.Dsl.() -> kotlin.Unit): com.google.api.BackendRule =
  com.google.api.BackendRuleKt.Dsl._create(com.google.api.BackendRule.newBuilder()).apply { block() }._build()
/**
 * ```
 * A backend rule provides configuration for an individual API element.
 * ```
 *
 * Protobuf type `google.api.BackendRule`
 */
public object BackendRuleKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.BackendRule.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.BackendRule.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * Selects the methods to which this rule applies.
     *
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * ```
     *
     * `string selector = 1;`
     */
    public var selector: kotlin.String
      @JvmName("getSelector")
      get() = _builder.getSelector()
      @JvmName("setSelector")
      set(value) {
        _builder.setSelector(value)
      }
    /**
     * ```
     * Selects the methods to which this rule applies.
     *
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * ```
     *
     * `string selector = 1;`
     */
    public fun clearSelector() {
      _builder.clearSelector()
    }

    /**
     * ```
     * The address of the API backend.
     * ```
     *
     * `string address = 2;`
     */
    public var address: kotlin.String
      @JvmName("getAddress")
      get() = _builder.getAddress()
      @JvmName("setAddress")
      set(value) {
        _builder.setAddress(value)
      }
    /**
     * ```
     * The address of the API backend.
     * ```
     *
     * `string address = 2;`
     */
    public fun clearAddress() {
      _builder.clearAddress()
    }

    /**
     * ```
     * The number of seconds to wait for a response from a request.  The default
     * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
     * ```
     *
     * `double deadline = 3;`
     */
    public var deadline: kotlin.Double
      @JvmName("getDeadline")
      get() = _builder.getDeadline()
      @JvmName("setDeadline")
      set(value) {
        _builder.setDeadline(value)
      }
    /**
     * ```
     * The number of seconds to wait for a response from a request.  The default
     * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
     * ```
     *
     * `double deadline = 3;`
     */
    public fun clearDeadline() {
      _builder.clearDeadline()
    }

    /**
     * ```
     * Minimum deadline in seconds needed for this method. Calls having deadline
     * value lower than this will be rejected.
     * ```
     *
     * `double min_deadline = 4;`
     */
    public var minDeadline: kotlin.Double
      @JvmName("getMinDeadline")
      get() = _builder.getMinDeadline()
      @JvmName("setMinDeadline")
      set(value) {
        _builder.setMinDeadline(value)
      }
    /**
     * ```
     * Minimum deadline in seconds needed for this method. Calls having deadline
     * value lower than this will be rejected.
     * ```
     *
     * `double min_deadline = 4;`
     */
    public fun clearMinDeadline() {
      _builder.clearMinDeadline()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.BackendRule.copy(block: `com.google.api`.BackendRuleKt.Dsl.() -> kotlin.Unit): com.google.api.BackendRule =
  `com.google.api`.BackendRuleKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2025 Weber Informatics LLC | Privacy Policy