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

grpc.gateway.protoc_gen_openapiv2.options.ParametersKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protoc-gen-openapiv2/options/openapiv2.proto

package grpc.gateway.protoc_gen_openapiv2.options;

@kotlin.jvm.JvmName("-initializeparameters")
public inline fun parameters(block: grpc.gateway.protoc_gen_openapiv2.options.ParametersKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters =
  grpc.gateway.protoc_gen_openapiv2.options.ParametersKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.newBuilder()).apply { block() }._build()
public object ParametersKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters = _builder.build()

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class HeadersProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * 
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public val headers: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getHeadersList() ) /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; * @param value The headers to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addHeaders") public fun com.google.protobuf.kotlin.DslList.add(value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter) { _builder.addHeaders(value) } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; * @param value The headers to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignHeaders") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter) { add(value) } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; * @param values The headers to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllHeaders") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllHeaders(values) } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; * @param values The headers to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllHeaders") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; * @param index The index to set the value at. * @param value The headers to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setHeaders") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter) { _builder.setHeaders(index, value) } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearHeaders") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearHeaders() } } } @kotlin.jvm.JvmSynthetic public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.copy(block: grpc.gateway.protoc_gen_openapiv2.options.ParametersKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters = grpc.gateway.protoc_gen_openapiv2.options.ParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy