games.mythical.saga.sdk.proto.api.item.IssueItemRequestKt.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: api/item/definition.proto
package games.mythical.saga.sdk.proto.api.item;
@kotlin.jvm.JvmName("-initializeissueItemRequest")
inline fun issueItemRequest(block: games.mythical.saga.sdk.proto.api.item.IssueItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemRequest =
games.mythical.saga.sdk.proto.api.item.IssueItemRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.IssueItemRequest.newBuilder()).apply { block() }._build()
object IssueItemRequestKt {
@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.IssueItemRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.IssueItemRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.IssueItemRequest = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
class ItemsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
*/
val items: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getItemsList()
)
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
* @param value The items to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addItems")
fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.api.item.IssueItemProto) {
_builder.addItems(value)
}
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
* @param value The items to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignItems")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.api.item.IssueItemProto) {
add(value)
}
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
* @param values The items to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllItems")
fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllItems(values)
}
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
* @param values The items to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllItems")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
* @param index The index to set the value at.
* @param value The items to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setItems")
operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.api.item.IssueItemProto) {
_builder.setItems(index, value)
}
/**
*
* Repeated items so that metadata is unique per item
*
*
* repeated .saga.api.item.IssueItemProto items = 1;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearItems")
fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearItems()
}
/**
*
* Oauth id of wallet accepting items
*
*
* string recipient_oauth_id = 2;
*/
var recipientOauthId: kotlin.String
@JvmName("getRecipientOauthId")
get() = _builder.getRecipientOauthId()
@JvmName("setRecipientOauthId")
set(value) {
_builder.setRecipientOauthId(value)
}
/**
*
* Oauth id of wallet accepting items
*
*
* string recipient_oauth_id = 2;
*/
fun clearRecipientOauthId() {
_builder.clearRecipientOauthId()
}
/**
*
* Unique id set for your game of the Item being issued
*
*
* string item_type_id = 3;
*/
var itemTypeId: kotlin.String
@JvmName("getItemTypeId")
get() = _builder.getItemTypeId()
@JvmName("setItemTypeId")
set(value) {
_builder.setItemTypeId(value)
}
/**
*
* Unique id set for your game of the Item being issued
*
*
* string item_type_id = 3;
*/
fun clearItemTypeId() {
_builder.clearItemTypeId()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.IssueItemRequest.copy(block: games.mythical.saga.sdk.proto.api.item.IssueItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemRequest =
games.mythical.saga.sdk.proto.api.item.IssueItemRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()