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

io.envoyproxy.pgv.validate.MessageRulesKt.kt Maven / Gradle / Ivy

The newest version!
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: validate/validate.proto

package io.envoyproxy.pgv.validate;

@kotlin.jvm.JvmName("-initializemessageRules")
public inline fun messageRules(block: io.envoyproxy.pgv.validate.MessageRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.MessageRules =
  io.envoyproxy.pgv.validate.MessageRulesKt.Dsl._create(io.envoyproxy.pgv.validate.Validate.MessageRules.newBuilder()).apply { block() }._build()
public object MessageRulesKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: io.envoyproxy.pgv.validate.Validate.MessageRules.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: io.envoyproxy.pgv.validate.Validate.MessageRules.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): io.envoyproxy.pgv.validate.Validate.MessageRules = _builder.build()

    /**
     * 
     * Skip specifies that the validation rules of this field should not be
     * evaluated
     * 
* * optional bool skip = 1; */ public var skip: kotlin.Boolean @JvmName("getSkip") get() = _builder.getSkip() @JvmName("setSkip") set(value) { _builder.setSkip(value) } /** *
     * Skip specifies that the validation rules of this field should not be
     * evaluated
     * 
* * optional bool skip = 1; */ public fun clearSkip() { _builder.clearSkip() } /** *
     * Skip specifies that the validation rules of this field should not be
     * evaluated
     * 
* * optional bool skip = 1; * @return Whether the skip field is set. */ public fun hasSkip(): kotlin.Boolean { return _builder.hasSkip() } /** *
     * Required specifies that this field must be set
     * 
* * optional bool required = 2; */ public var required: kotlin.Boolean @JvmName("getRequired") get() = _builder.getRequired() @JvmName("setRequired") set(value) { _builder.setRequired(value) } /** *
     * Required specifies that this field must be set
     * 
* * optional bool required = 2; */ public fun clearRequired() { _builder.clearRequired() } /** *
     * Required specifies that this field must be set
     * 
* * optional bool required = 2; * @return Whether the required field is set. */ public fun hasRequired(): kotlin.Boolean { return _builder.hasRequired() } } } @kotlin.jvm.JvmSynthetic public inline fun io.envoyproxy.pgv.validate.Validate.MessageRules.copy(block: io.envoyproxy.pgv.validate.MessageRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.MessageRules = io.envoyproxy.pgv.validate.MessageRulesKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy