io.envoyproxy.pgv.validate.EnumRulesKt.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("-initializeenumRules")
public inline fun enumRules(block: io.envoyproxy.pgv.validate.EnumRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.EnumRules =
io.envoyproxy.pgv.validate.EnumRulesKt.Dsl._create(io.envoyproxy.pgv.validate.Validate.EnumRules.newBuilder()).apply { block() }._build()
public object EnumRulesKt {
@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.EnumRules.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: io.envoyproxy.pgv.validate.Validate.EnumRules.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): io.envoyproxy.pgv.validate.Validate.EnumRules = _builder.build()
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public var const: kotlin.Int
@JvmName("getConst")
get() = _builder.getConst()
@JvmName("setConst")
set(value) {
_builder.setConst(value)
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
*/
public fun clearConst() {
_builder.clearConst()
}
/**
*
* Const specifies that this field must be exactly the specified value
*
*
* optional int32 const = 1;
* @return Whether the const field is set.
*/
public fun hasConst(): kotlin.Boolean {
return _builder.hasConst()
}
/**
*
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*
*
* optional bool defined_only = 2;
*/
public var definedOnly: kotlin.Boolean
@JvmName("getDefinedOnly")
get() = _builder.getDefinedOnly()
@JvmName("setDefinedOnly")
set(value) {
_builder.setDefinedOnly(value)
}
/**
*
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*
*
* optional bool defined_only = 2;
*/
public fun clearDefinedOnly() {
_builder.clearDefinedOnly()
}
/**
*
* DefinedOnly specifies that this field must be only one of the defined
* values for this enum, failing on any undefined value.
*
*
* optional bool defined_only = 2;
* @return Whether the definedOnly field is set.
*/
public fun hasDefinedOnly(): kotlin.Boolean {
return _builder.hasDefinedOnly()
}
/**
* 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 int32 in = 3;
*/
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 int32 in = 3;
* @param value The in to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addIn_")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) {
_builder.addIn(value)
}/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @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: kotlin.Int) {
add(value)
}/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
* @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 int32 in = 3;
* @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 int32 in = 3;
* @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: kotlin.Int) {
_builder.setIn(index, value)
}/**
*
* In specifies that this field must be equal to one of the specified
* values
*
*
* repeated int32 in = 3;
*/
@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 int32 not_in = 4;
*/
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 int32 not_in = 4;
* @param value The notIn to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addNotIn")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) {
_builder.addNotIn(value)
}/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @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: kotlin.Int) {
add(value)
}/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
* @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 int32 not_in = 4;
* @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 int32 not_in = 4;
* @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: kotlin.Int) {
_builder.setNotIn(index, value)
}/**
*
* NotIn specifies that this field cannot be equal to one of the specified
* values
*
*
* repeated int32 not_in = 4;
*/
@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.EnumRules.copy(block: io.envoyproxy.pgv.validate.EnumRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.EnumRules =
io.envoyproxy.pgv.validate.EnumRulesKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy