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

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

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

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class SecurityRequirementProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * 
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public val securityRequirement: com.google.protobuf.kotlin.DslMap @kotlin.jvm.JvmSynthetic @JvmName("getSecurityRequirementMap") get() = com.google.protobuf.kotlin.DslMap( _builder.getSecurityRequirementMap() ) /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @JvmName("putSecurityRequirement") public fun com.google.protobuf.kotlin.DslMap .put(key: kotlin.String, value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) { _builder.putSecurityRequirement(key, value) } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @kotlin.jvm.JvmSynthetic @JvmName("setSecurityRequirement") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslMap .set(key: kotlin.String, value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) { put(key, value) } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @kotlin.jvm.JvmSynthetic @JvmName("removeSecurityRequirement") public fun com.google.protobuf.kotlin.DslMap .remove(key: kotlin.String) { _builder.removeSecurityRequirement(key) } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @kotlin.jvm.JvmSynthetic @JvmName("putAllSecurityRequirement") public fun com.google.protobuf.kotlin.DslMap .putAll(map: kotlin.collections.Map) { _builder.putAllSecurityRequirement(map) } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @kotlin.jvm.JvmSynthetic @JvmName("clearSecurityRequirement") public fun com.google.protobuf.kotlin.DslMap .clear() { _builder.clearSecurityRequirement() } } @kotlin.jvm.JvmName("-initializesecurityRequirementValue") public inline fun securityRequirementValue(block: grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.SecurityRequirementValueKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue = grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.SecurityRequirementValueKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.newBuilder()).apply { block() }._build() public object SecurityRequirementValueKt { @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.SecurityRequirement.SecurityRequirementValue.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue = _builder.build() /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class ScopeProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * repeated string scope = 1; * @return A list containing the scope. */ public val scope: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getScopeList() ) /** * repeated string scope = 1; * @param value The scope to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addScope") public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { _builder.addScope(value) } /** * repeated string scope = 1; * @param value The scope to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignScope") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { add(value) } /** * repeated string scope = 1; * @param values The scope to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllScope") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllScope(values) } /** * repeated string scope = 1; * @param values The scope to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllScope") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * repeated string scope = 1; * @param index The index to set the value at. * @param value The scope to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setScope") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { _builder.setScope(index, value) }/** * repeated string scope = 1; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearScope") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearScope() }} } } @kotlin.jvm.JvmSynthetic public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.copy(block: grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement = grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.copy(block: grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.SecurityRequirementValueKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue = grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementKt.SecurityRequirementValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy