io.envoyproxy.pgv.validate.DurationRulesKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: validate/validate.proto
package io.envoyproxy.pgv.validate;
@kotlin.jvm.JvmName("-initializedurationRules")
public inline fun durationRules(block: io.envoyproxy.pgv.validate.DurationRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.DurationRules =
io.envoyproxy.pgv.validate.DurationRulesKt.Dsl._create(io.envoyproxy.pgv.validate.Validate.DurationRules.newBuilder()).apply { block() }._build()
public object DurationRulesKt {
@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.DurationRules.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: io.envoyproxy.pgv.validate.Validate.DurationRules.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): io.envoyproxy.pgv.validate.Validate.DurationRules = _builder.build()
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
*/
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 = 1;
*/
public fun clearRequired() {
_builder.clearRequired()
}
/**
*
* Required specifies that this field must be set
*
*
* optional bool required = 1;
* @return Whether the required field is set.
*/
public fun hasRequired(): kotlin.Boolean {
return _builder.hasRequired()
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public var const: com.google.protobuf.Duration
@JvmName("getConst")
get() = _builder.getConst()
@JvmName("setConst")
set(value) {
_builder.setConst(value)
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
*/
public fun clearConst() {
_builder.clearConst()
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional .google.protobuf.Duration const = 2;
* @return Whether the const field is set.
*/
public fun hasConst(): kotlin.Boolean {
return _builder.hasConst()
}
public val DurationRulesKt.Dsl.constOrNull: com.google.protobuf.Duration?
get() = _builder.constOrNull
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public var lt: com.google.protobuf.Duration
@JvmName("getLt")
get() = _builder.getLt()
@JvmName("setLt")
set(value) {
_builder.setLt(value)
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
*/
public fun clearLt() {
_builder.clearLt()
}
/**
*
* Lt specifies that this field must be less than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration lt = 3;
* @return Whether the lt field is set.
*/
public fun hasLt(): kotlin.Boolean {
return _builder.hasLt()
}
public val DurationRulesKt.Dsl.ltOrNull: com.google.protobuf.Duration?
get() = _builder.ltOrNull
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public var lte: com.google.protobuf.Duration
@JvmName("getLte")
get() = _builder.getLte()
@JvmName("setLte")
set(value) {
_builder.setLte(value)
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
*/
public fun clearLte() {
_builder.clearLte()
}
/**
*
* Lt specifies that this field must be less than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration lte = 4;
* @return Whether the lte field is set.
*/
public fun hasLte(): kotlin.Boolean {
return _builder.hasLte()
}
public val DurationRulesKt.Dsl.lteOrNull: com.google.protobuf.Duration?
get() = _builder.lteOrNull
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public var gt: com.google.protobuf.Duration
@JvmName("getGt")
get() = _builder.getGt()
@JvmName("setGt")
set(value) {
_builder.setGt(value)
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
*/
public fun clearGt() {
_builder.clearGt()
}
/**
*
* Gt specifies that this field must be greater than the specified value,
* exclusive
*
*
* optional .google.protobuf.Duration gt = 5;
* @return Whether the gt field is set.
*/
public fun hasGt(): kotlin.Boolean {
return _builder.hasGt()
}
public val DurationRulesKt.Dsl.gtOrNull: com.google.protobuf.Duration?
get() = _builder.gtOrNull
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public var gte: com.google.protobuf.Duration
@JvmName("getGte")
get() = _builder.getGte()
@JvmName("setGte")
set(value) {
_builder.setGte(value)
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
*/
public fun clearGte() {
_builder.clearGte()
}
/**
*
* Gte specifies that this field must be greater than the specified value,
* inclusive
*
*
* optional .google.protobuf.Duration gte = 6;
* @return Whether the gte field is set.
*/
public fun hasGte(): kotlin.Boolean {
return _builder.hasGte()
}
public val DurationRulesKt.Dsl.gteOrNull: com.google.protobuf.Duration?
get() = _builder.gteOrNull
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class In_Proxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
public val in_: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getInList()
)
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
* @param value The in to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addIn_")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Duration) {
_builder.addIn(value)
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
* @param value The in to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignIn_")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Duration) {
add(value)
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
* @param values The in to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllIn_")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllIn(values)
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
* @param values The in to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllIn_")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
* @param index The index to set the value at.
* @param value The in to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setIn_")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Duration) {
_builder.setIn(index, value)
}
/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration in = 7;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearIn_")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearIn()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class NotInProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
public val notIn: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getNotInList()
)
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
* @param value The notIn to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addNotIn")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Duration) {
_builder.addNotIn(value)
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
* @param value The notIn to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignNotIn")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Duration) {
add(value)
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
* @param values The notIn to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllNotIn")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllNotIn(values)
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
* @param values The notIn to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllNotIn")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
* @param index The index to set the value at.
* @param value The notIn to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setNotIn")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Duration) {
_builder.setNotIn(index, value)
}
/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated .google.protobuf.Duration not_in = 8;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearNotIn")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearNotIn()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun io.envoyproxy.pgv.validate.Validate.DurationRules.copy(block: io.envoyproxy.pgv.validate.DurationRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.DurationRules =
io.envoyproxy.pgv.validate.DurationRulesKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder.constOrNull: com.google.protobuf.Duration?
get() = if (hasConst()) getConst() else null
public val io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder.ltOrNull: com.google.protobuf.Duration?
get() = if (hasLt()) getLt() else null
public val io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder.lteOrNull: com.google.protobuf.Duration?
get() = if (hasLte()) getLte() else null
public val io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder.gtOrNull: com.google.protobuf.Duration?
get() = if (hasGt()) getGt() else null
public val io.envoyproxy.pgv.validate.Validate.DurationRulesOrBuilder.gteOrNull: com.google.protobuf.Duration?
get() = if (hasGte()) getGte() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy