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

io.envoyproxy.pgv.validate.FieldRulesKt.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("-initializefieldRules")
public inline fun fieldRules(block: io.envoyproxy.pgv.validate.FieldRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.FieldRules =
  io.envoyproxy.pgv.validate.FieldRulesKt.Dsl._create(io.envoyproxy.pgv.validate.Validate.FieldRules.newBuilder()).apply { block() }._build()
public object FieldRulesKt {
  @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.FieldRules.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: io.envoyproxy.pgv.validate.Validate.FieldRules.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * optional .validate.MessageRules message = 17;
     */
    public var message: io.envoyproxy.pgv.validate.Validate.MessageRules
      @JvmName("getMessage")
      get() = _builder.getMessage()
      @JvmName("setMessage")
      set(value) {
        _builder.setMessage(value)
      }
    /**
     * optional .validate.MessageRules message = 17;
     */
    public fun clearMessage() {
      _builder.clearMessage()
    }
    /**
     * optional .validate.MessageRules message = 17;
     * @return Whether the message field is set.
     */
    public fun hasMessage(): kotlin.Boolean {
      return _builder.hasMessage()
    }
    public val FieldRulesKt.Dsl.messageOrNull: io.envoyproxy.pgv.validate.Validate.MessageRules?
      get() = _builder.messageOrNull

    /**
     * 
     * Scalar Field Types
     * 
* * .validate.FloatRules float = 1; */ public var float: io.envoyproxy.pgv.validate.Validate.FloatRules @JvmName("getFloat") get() = _builder.getFloat() @JvmName("setFloat") set(value) { _builder.setFloat(value) } /** *
     * Scalar Field Types
     * 
* * .validate.FloatRules float = 1; */ public fun clearFloat() { _builder.clearFloat() } /** *
     * Scalar Field Types
     * 
* * .validate.FloatRules float = 1; * @return Whether the float field is set. */ public fun hasFloat(): kotlin.Boolean { return _builder.hasFloat() } /** * .validate.DoubleRules double = 2; */ public var double: io.envoyproxy.pgv.validate.Validate.DoubleRules @JvmName("getDouble") get() = _builder.getDouble() @JvmName("setDouble") set(value) { _builder.setDouble(value) } /** * .validate.DoubleRules double = 2; */ public fun clearDouble() { _builder.clearDouble() } /** * .validate.DoubleRules double = 2; * @return Whether the double field is set. */ public fun hasDouble(): kotlin.Boolean { return _builder.hasDouble() } /** * .validate.Int32Rules int32 = 3; */ public var int32: io.envoyproxy.pgv.validate.Validate.Int32Rules @JvmName("getInt32") get() = _builder.getInt32() @JvmName("setInt32") set(value) { _builder.setInt32(value) } /** * .validate.Int32Rules int32 = 3; */ public fun clearInt32() { _builder.clearInt32() } /** * .validate.Int32Rules int32 = 3; * @return Whether the int32 field is set. */ public fun hasInt32(): kotlin.Boolean { return _builder.hasInt32() } /** * .validate.Int64Rules int64 = 4; */ public var int64: io.envoyproxy.pgv.validate.Validate.Int64Rules @JvmName("getInt64") get() = _builder.getInt64() @JvmName("setInt64") set(value) { _builder.setInt64(value) } /** * .validate.Int64Rules int64 = 4; */ public fun clearInt64() { _builder.clearInt64() } /** * .validate.Int64Rules int64 = 4; * @return Whether the int64 field is set. */ public fun hasInt64(): kotlin.Boolean { return _builder.hasInt64() } /** * .validate.UInt32Rules uint32 = 5; */ public var uint32: io.envoyproxy.pgv.validate.Validate.UInt32Rules @JvmName("getUint32") get() = _builder.getUint32() @JvmName("setUint32") set(value) { _builder.setUint32(value) } /** * .validate.UInt32Rules uint32 = 5; */ public fun clearUint32() { _builder.clearUint32() } /** * .validate.UInt32Rules uint32 = 5; * @return Whether the uint32 field is set. */ public fun hasUint32(): kotlin.Boolean { return _builder.hasUint32() } /** * .validate.UInt64Rules uint64 = 6; */ public var uint64: io.envoyproxy.pgv.validate.Validate.UInt64Rules @JvmName("getUint64") get() = _builder.getUint64() @JvmName("setUint64") set(value) { _builder.setUint64(value) } /** * .validate.UInt64Rules uint64 = 6; */ public fun clearUint64() { _builder.clearUint64() } /** * .validate.UInt64Rules uint64 = 6; * @return Whether the uint64 field is set. */ public fun hasUint64(): kotlin.Boolean { return _builder.hasUint64() } /** * .validate.SInt32Rules sint32 = 7; */ public var sint32: io.envoyproxy.pgv.validate.Validate.SInt32Rules @JvmName("getSint32") get() = _builder.getSint32() @JvmName("setSint32") set(value) { _builder.setSint32(value) } /** * .validate.SInt32Rules sint32 = 7; */ public fun clearSint32() { _builder.clearSint32() } /** * .validate.SInt32Rules sint32 = 7; * @return Whether the sint32 field is set. */ public fun hasSint32(): kotlin.Boolean { return _builder.hasSint32() } /** * .validate.SInt64Rules sint64 = 8; */ public var sint64: io.envoyproxy.pgv.validate.Validate.SInt64Rules @JvmName("getSint64") get() = _builder.getSint64() @JvmName("setSint64") set(value) { _builder.setSint64(value) } /** * .validate.SInt64Rules sint64 = 8; */ public fun clearSint64() { _builder.clearSint64() } /** * .validate.SInt64Rules sint64 = 8; * @return Whether the sint64 field is set. */ public fun hasSint64(): kotlin.Boolean { return _builder.hasSint64() } /** * .validate.Fixed32Rules fixed32 = 9; */ public var fixed32: io.envoyproxy.pgv.validate.Validate.Fixed32Rules @JvmName("getFixed32") get() = _builder.getFixed32() @JvmName("setFixed32") set(value) { _builder.setFixed32(value) } /** * .validate.Fixed32Rules fixed32 = 9; */ public fun clearFixed32() { _builder.clearFixed32() } /** * .validate.Fixed32Rules fixed32 = 9; * @return Whether the fixed32 field is set. */ public fun hasFixed32(): kotlin.Boolean { return _builder.hasFixed32() } /** * .validate.Fixed64Rules fixed64 = 10; */ public var fixed64: io.envoyproxy.pgv.validate.Validate.Fixed64Rules @JvmName("getFixed64") get() = _builder.getFixed64() @JvmName("setFixed64") set(value) { _builder.setFixed64(value) } /** * .validate.Fixed64Rules fixed64 = 10; */ public fun clearFixed64() { _builder.clearFixed64() } /** * .validate.Fixed64Rules fixed64 = 10; * @return Whether the fixed64 field is set. */ public fun hasFixed64(): kotlin.Boolean { return _builder.hasFixed64() } /** * .validate.SFixed32Rules sfixed32 = 11; */ public var sfixed32: io.envoyproxy.pgv.validate.Validate.SFixed32Rules @JvmName("getSfixed32") get() = _builder.getSfixed32() @JvmName("setSfixed32") set(value) { _builder.setSfixed32(value) } /** * .validate.SFixed32Rules sfixed32 = 11; */ public fun clearSfixed32() { _builder.clearSfixed32() } /** * .validate.SFixed32Rules sfixed32 = 11; * @return Whether the sfixed32 field is set. */ public fun hasSfixed32(): kotlin.Boolean { return _builder.hasSfixed32() } /** * .validate.SFixed64Rules sfixed64 = 12; */ public var sfixed64: io.envoyproxy.pgv.validate.Validate.SFixed64Rules @JvmName("getSfixed64") get() = _builder.getSfixed64() @JvmName("setSfixed64") set(value) { _builder.setSfixed64(value) } /** * .validate.SFixed64Rules sfixed64 = 12; */ public fun clearSfixed64() { _builder.clearSfixed64() } /** * .validate.SFixed64Rules sfixed64 = 12; * @return Whether the sfixed64 field is set. */ public fun hasSfixed64(): kotlin.Boolean { return _builder.hasSfixed64() } /** * .validate.BoolRules bool = 13; */ public var bool: io.envoyproxy.pgv.validate.Validate.BoolRules @JvmName("getBool") get() = _builder.getBool() @JvmName("setBool") set(value) { _builder.setBool(value) } /** * .validate.BoolRules bool = 13; */ public fun clearBool() { _builder.clearBool() } /** * .validate.BoolRules bool = 13; * @return Whether the bool field is set. */ public fun hasBool(): kotlin.Boolean { return _builder.hasBool() } /** * .validate.StringRules string = 14; */ public var string: io.envoyproxy.pgv.validate.Validate.StringRules @JvmName("getString") get() = _builder.getString() @JvmName("setString") set(value) { _builder.setString(value) } /** * .validate.StringRules string = 14; */ public fun clearString() { _builder.clearString() } /** * .validate.StringRules string = 14; * @return Whether the string field is set. */ public fun hasString(): kotlin.Boolean { return _builder.hasString() } /** * .validate.BytesRules bytes = 15; */ public var bytes: io.envoyproxy.pgv.validate.Validate.BytesRules @JvmName("getBytes") get() = _builder.getBytes() @JvmName("setBytes") set(value) { _builder.setBytes(value) } /** * .validate.BytesRules bytes = 15; */ public fun clearBytes() { _builder.clearBytes() } /** * .validate.BytesRules bytes = 15; * @return Whether the bytes field is set. */ public fun hasBytes(): kotlin.Boolean { return _builder.hasBytes() } /** *
     * Complex Field Types
     * 
* * .validate.EnumRules enum = 16; */ public var enum: io.envoyproxy.pgv.validate.Validate.EnumRules @JvmName("getEnum") get() = _builder.getEnum() @JvmName("setEnum") set(value) { _builder.setEnum(value) } /** *
     * Complex Field Types
     * 
* * .validate.EnumRules enum = 16; */ public fun clearEnum() { _builder.clearEnum() } /** *
     * Complex Field Types
     * 
* * .validate.EnumRules enum = 16; * @return Whether the enum field is set. */ public fun hasEnum(): kotlin.Boolean { return _builder.hasEnum() } /** * .validate.RepeatedRules repeated = 18; */ public var repeated: io.envoyproxy.pgv.validate.Validate.RepeatedRules @JvmName("getRepeated") get() = _builder.getRepeated() @JvmName("setRepeated") set(value) { _builder.setRepeated(value) } /** * .validate.RepeatedRules repeated = 18; */ public fun clearRepeated() { _builder.clearRepeated() } /** * .validate.RepeatedRules repeated = 18; * @return Whether the repeated field is set. */ public fun hasRepeated(): kotlin.Boolean { return _builder.hasRepeated() } /** * .validate.MapRules map = 19; */ public var map: io.envoyproxy.pgv.validate.Validate.MapRules @JvmName("getMap") get() = _builder.getMap() @JvmName("setMap") set(value) { _builder.setMap(value) } /** * .validate.MapRules map = 19; */ public fun clearMap() { _builder.clearMap() } /** * .validate.MapRules map = 19; * @return Whether the map field is set. */ public fun hasMap(): kotlin.Boolean { return _builder.hasMap() } /** *
     * Well-Known Field Types
     * 
* * .validate.AnyRules any = 20; */ public var any: io.envoyproxy.pgv.validate.Validate.AnyRules @JvmName("getAny") get() = _builder.getAny() @JvmName("setAny") set(value) { _builder.setAny(value) } /** *
     * Well-Known Field Types
     * 
* * .validate.AnyRules any = 20; */ public fun clearAny() { _builder.clearAny() } /** *
     * Well-Known Field Types
     * 
* * .validate.AnyRules any = 20; * @return Whether the any field is set. */ public fun hasAny(): kotlin.Boolean { return _builder.hasAny() } /** * .validate.DurationRules duration = 21; */ public var duration: io.envoyproxy.pgv.validate.Validate.DurationRules @JvmName("getDuration") get() = _builder.getDuration() @JvmName("setDuration") set(value) { _builder.setDuration(value) } /** * .validate.DurationRules duration = 21; */ public fun clearDuration() { _builder.clearDuration() } /** * .validate.DurationRules duration = 21; * @return Whether the duration field is set. */ public fun hasDuration(): kotlin.Boolean { return _builder.hasDuration() } /** * .validate.TimestampRules timestamp = 22; */ public var timestamp: io.envoyproxy.pgv.validate.Validate.TimestampRules @JvmName("getTimestamp") get() = _builder.getTimestamp() @JvmName("setTimestamp") set(value) { _builder.setTimestamp(value) } /** * .validate.TimestampRules timestamp = 22; */ public fun clearTimestamp() { _builder.clearTimestamp() } /** * .validate.TimestampRules timestamp = 22; * @return Whether the timestamp field is set. */ public fun hasTimestamp(): kotlin.Boolean { return _builder.hasTimestamp() } public val typeCase: io.envoyproxy.pgv.validate.Validate.FieldRules.TypeCase @JvmName("getTypeCase") get() = _builder.getTypeCase() public fun clearType() { _builder.clearType() } } } @kotlin.jvm.JvmSynthetic public inline fun io.envoyproxy.pgv.validate.Validate.FieldRules.copy(block: io.envoyproxy.pgv.validate.FieldRulesKt.Dsl.() -> kotlin.Unit): io.envoyproxy.pgv.validate.Validate.FieldRules = io.envoyproxy.pgv.validate.FieldRulesKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.messageOrNull: io.envoyproxy.pgv.validate.Validate.MessageRules? get() = if (hasMessage()) getMessage() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.floatOrNull: io.envoyproxy.pgv.validate.Validate.FloatRules? get() = if (hasFloat()) getFloat() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.doubleOrNull: io.envoyproxy.pgv.validate.Validate.DoubleRules? get() = if (hasDouble()) getDouble() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.int32OrNull: io.envoyproxy.pgv.validate.Validate.Int32Rules? get() = if (hasInt32()) getInt32() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.int64OrNull: io.envoyproxy.pgv.validate.Validate.Int64Rules? get() = if (hasInt64()) getInt64() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.uint32OrNull: io.envoyproxy.pgv.validate.Validate.UInt32Rules? get() = if (hasUint32()) getUint32() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.uint64OrNull: io.envoyproxy.pgv.validate.Validate.UInt64Rules? get() = if (hasUint64()) getUint64() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.sint32OrNull: io.envoyproxy.pgv.validate.Validate.SInt32Rules? get() = if (hasSint32()) getSint32() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.sint64OrNull: io.envoyproxy.pgv.validate.Validate.SInt64Rules? get() = if (hasSint64()) getSint64() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.fixed32OrNull: io.envoyproxy.pgv.validate.Validate.Fixed32Rules? get() = if (hasFixed32()) getFixed32() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.fixed64OrNull: io.envoyproxy.pgv.validate.Validate.Fixed64Rules? get() = if (hasFixed64()) getFixed64() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.sfixed32OrNull: io.envoyproxy.pgv.validate.Validate.SFixed32Rules? get() = if (hasSfixed32()) getSfixed32() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.sfixed64OrNull: io.envoyproxy.pgv.validate.Validate.SFixed64Rules? get() = if (hasSfixed64()) getSfixed64() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.boolOrNull: io.envoyproxy.pgv.validate.Validate.BoolRules? get() = if (hasBool()) getBool() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.stringOrNull: io.envoyproxy.pgv.validate.Validate.StringRules? get() = if (hasString()) getString() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.bytesOrNull: io.envoyproxy.pgv.validate.Validate.BytesRules? get() = if (hasBytes()) getBytes() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.enumOrNull: io.envoyproxy.pgv.validate.Validate.EnumRules? get() = if (hasEnum()) getEnum() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.repeatedOrNull: io.envoyproxy.pgv.validate.Validate.RepeatedRules? get() = if (hasRepeated()) getRepeated() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.mapOrNull: io.envoyproxy.pgv.validate.Validate.MapRules? get() = if (hasMap()) getMap() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.anyOrNull: io.envoyproxy.pgv.validate.Validate.AnyRules? get() = if (hasAny()) getAny() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.durationOrNull: io.envoyproxy.pgv.validate.Validate.DurationRules? get() = if (hasDuration()) getDuration() else null public val io.envoyproxy.pgv.validate.Validate.FieldRulesOrBuilder.timestampOrNull: io.envoyproxy.pgv.validate.Validate.TimestampRules? get() = if (hasTimestamp()) getTimestamp() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy