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

grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterKt.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("-initializeheaderParameter")
public inline fun headerParameter(block: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter =
  grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.newBuilder()).apply { block() }._build()
public object HeaderParameterKt {
  @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.HeaderParameter.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * 
     * `Name` is the header name.
     * 
* * string name = 1; */ public var name: kotlin.String @JvmName("getName") get() = _builder.getName() @JvmName("setName") set(value) { _builder.setName(value) } /** *
     * `Name` is the header name.
     * 
* * string name = 1; */ public fun clearName() { _builder.clearName() } /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; */ public var description: kotlin.String @JvmName("getDescription") get() = _builder.getDescription() @JvmName("setDescription") set(value) { _builder.setDescription(value) } /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; */ public fun clearDescription() { _builder.clearDescription() } /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; */ public var type: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type @JvmName("getType") get() = _builder.getType() @JvmName("setType") set(value) { _builder.setType(value) } /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; */ public fun clearType() { _builder.clearType() } /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; */ public var format: kotlin.String @JvmName("getFormat") get() = _builder.getFormat() @JvmName("setFormat") set(value) { _builder.setFormat(value) } /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; */ public fun clearFormat() { _builder.clearFormat() } /** *
     * `Required` indicates if the header is optional
     * 
* * bool required = 5; */ public var required: kotlin.Boolean @JvmName("getRequired") get() = _builder.getRequired() @JvmName("setRequired") set(value) { _builder.setRequired(value) } /** *
     * `Required` indicates if the header is optional
     * 
* * bool required = 5; */ public fun clearRequired() { _builder.clearRequired() } } } @kotlin.jvm.JvmSynthetic public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.copy(block: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter = grpc.gateway.protoc_gen_openapiv2.options.HeaderParameterKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy