games.mythical.saga.sdk.proto.common.MetadataAttributeKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saga-sdk-proto Show documentation
Show all versions of saga-sdk-proto Show documentation
Saga SDK for Java game servers
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/common.proto
package games.mythical.saga.sdk.proto.common;
@kotlin.jvm.JvmName("-initializemetadataAttribute")
inline fun metadataAttribute(block: games.mythical.saga.sdk.proto.common.MetadataAttributeKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.MetadataAttribute =
games.mythical.saga.sdk.proto.common.MetadataAttributeKt.Dsl._create(games.mythical.saga.sdk.proto.common.MetadataAttribute.newBuilder()).apply { block() }._build()
object MetadataAttributeKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
class Dsl private constructor(
private val _builder: games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.common.MetadataAttribute.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.common.MetadataAttribute = _builder.build()
/**
*
* Name of the trait/attribute
*
*
* string trait_type = 1;
*/
var traitType: kotlin.String
@JvmName("getTraitType")
get() = _builder.getTraitType()
@JvmName("setTraitType")
set(value) {
_builder.setTraitType(value)
}
/**
*
* Name of the trait/attribute
*
*
* string trait_type = 1;
*/
fun clearTraitType() {
_builder.clearTraitType()
}
/**
*
* Display type (number, date, etc.). Not needed for string traits
*
*
* string display_type = 2;
*/
var displayType: kotlin.String
@JvmName("getDisplayType")
get() = _builder.getDisplayType()
@JvmName("setDisplayType")
set(value) {
_builder.setDisplayType(value)
}
/**
*
* Display type (number, date, etc.). Not needed for string traits
*
*
* string display_type = 2;
*/
fun clearDisplayType() {
_builder.clearDisplayType()
}
/**
*
* For numeric traits, a maximum allowed value
*
*
* .google.protobuf.DoubleValue max_value = 3;
*/
var maxValue: com.google.protobuf.DoubleValue
@JvmName("getMaxValue")
get() = _builder.getMaxValue()
@JvmName("setMaxValue")
set(value) {
_builder.setMaxValue(value)
}
/**
*
* For numeric traits, a maximum allowed value
*
*
* .google.protobuf.DoubleValue max_value = 3;
*/
fun clearMaxValue() {
_builder.clearMaxValue()
}
/**
*
* For numeric traits, a maximum allowed value
*
*
* .google.protobuf.DoubleValue max_value = 3;
* @return Whether the maxValue field is set.
*/
fun hasMaxValue(): kotlin.Boolean {
return _builder.hasMaxValue()
}
/**
* string str_value = 4;
*/
var strValue: kotlin.String
@JvmName("getStrValue")
get() = _builder.getStrValue()
@JvmName("setStrValue")
set(value) {
_builder.setStrValue(value)
}
/**
* string str_value = 4;
*/
fun clearStrValue() {
_builder.clearStrValue()
}
/**
* string str_value = 4;
* @return Whether the strValue field is set.
*/
fun hasStrValue(): kotlin.Boolean {
return _builder.hasStrValue()
}
/**
* int64 int_value = 5;
*/
var intValue: kotlin.Long
@JvmName("getIntValue")
get() = _builder.getIntValue()
@JvmName("setIntValue")
set(value) {
_builder.setIntValue(value)
}
/**
* int64 int_value = 5;
*/
fun clearIntValue() {
_builder.clearIntValue()
}
/**
* int64 int_value = 5;
* @return Whether the intValue field is set.
*/
fun hasIntValue(): kotlin.Boolean {
return _builder.hasIntValue()
}
/**
* double double_value = 6;
*/
var doubleValue: kotlin.Double
@JvmName("getDoubleValue")
get() = _builder.getDoubleValue()
@JvmName("setDoubleValue")
set(value) {
_builder.setDoubleValue(value)
}
/**
* double double_value = 6;
*/
fun clearDoubleValue() {
_builder.clearDoubleValue()
}
/**
* double double_value = 6;
* @return Whether the doubleValue field is set.
*/
fun hasDoubleValue(): kotlin.Boolean {
return _builder.hasDoubleValue()
}
val valueCase: games.mythical.saga.sdk.proto.common.MetadataAttribute.ValueCase
@JvmName("getValueCase")
get() = _builder.getValueCase()
fun clearValue() {
_builder.clearValue()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.common.MetadataAttribute.copy(block: games.mythical.saga.sdk.proto.common.MetadataAttributeKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.MetadataAttribute =
games.mythical.saga.sdk.proto.common.MetadataAttributeKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.common.MetadataAttributeOrBuilder.maxValueOrNull: com.google.protobuf.DoubleValue?
get() = if (hasMaxValue()) getMaxValue() else null