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

games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.kt Maven / Gradle / Ivy

There is a newer version: 1.1.30
Show newest version
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api/item/definition.proto

package games.mythical.saga.sdk.proto.api.item;

@kotlin.jvm.JvmName("-initializeissueItemProto")
inline fun issueItemProto(block: games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemProto =
  games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.IssueItemProto.newBuilder()).apply { block() }._build()
object IssueItemProtoKt {
  @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.api.item.IssueItemProto.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.IssueItemProto.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.api.item.IssueItemProto = _builder.build()

    /**
     * 
     * GameInventory Ids of Items being issued 
     * 
* * string inventory_id = 1; */ var inventoryId: kotlin.String @JvmName("getInventoryId") get() = _builder.getInventoryId() @JvmName("setInventoryId") set(value) { _builder.setInventoryId(value) } /** *
     * GameInventory Ids of Items being issued 
     * 
* * string inventory_id = 1; */ fun clearInventoryId() { _builder.clearInventoryId() } /** *
     * Metadata associated to Item being issued 
     * 
* * .saga.common.Metadata metadata = 2; */ var metadata: games.mythical.saga.sdk.proto.common.Metadata @JvmName("getMetadata") get() = _builder.getMetadata() @JvmName("setMetadata") set(value) { _builder.setMetadata(value) } /** *
     * Metadata associated to Item being issued 
     * 
* * .saga.common.Metadata metadata = 2; */ fun clearMetadata() { _builder.clearMetadata() } /** *
     * Metadata associated to Item being issued 
     * 
* * .saga.common.Metadata metadata = 2; * @return Whether the metadata field is set. */ fun hasMetadata(): kotlin.Boolean { return _builder.hasMetadata() } /** *
     * TokenId associated to Item being issued 
     * 
* * uint64 token_id = 4; */ var tokenId: kotlin.Long @JvmName("getTokenId") get() = _builder.getTokenId() @JvmName("setTokenId") set(value) { _builder.setTokenId(value) } /** *
     * TokenId associated to Item being issued 
     * 
* * uint64 token_id = 4; */ fun clearTokenId() { _builder.clearTokenId() } } } @kotlin.jvm.JvmSynthetic inline fun games.mythical.saga.sdk.proto.api.item.IssueItemProto.copy(block: games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemProto = games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build() val games.mythical.saga.sdk.proto.api.item.IssueItemProtoOrBuilder.metadataOrNull: games.mythical.saga.sdk.proto.common.Metadata? get() = if (hasMetadata()) getMetadata() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy