commonMain.terra.treasury.v1beta1.gov.kt Maven / Gradle / Ivy
// Transform from terra/treasury/v1beta1/gov.proto
@file:GeneratorVersion(version = "0.5.2")
package terra.treasury.v1beta1
import kotlin.OptIn
import kotlin.String
import kotlin.collections.List
import kotlin.collections.emptyList
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Serializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.`annotation`.ProtobufIndex
import kr.jadekim.protobuf.kotlinx.ProtobufConverterDecoder
import kr.jadekim.protobuf.kotlinx.ProtobufConverterEncoder
import kr.jadekim.protobuf.`annotation`.ProtobufMessage as AnnotationProtobufMessage
import kr.jadekim.protobuf.type.ProtobufMessage as TypeProtobufMessage
@AnnotationProtobufMessage(typeUrl = AddBurnTaxExemptionAddressProposal.TYPE_URL)
@Serializable(with = AddBurnTaxExemptionAddressProposal.KotlinxSerializer::class)
@SerialName(value = AddBurnTaxExemptionAddressProposal.TYPE_URL)
public data class AddBurnTaxExemptionAddressProposal(
@ProtobufIndex(index = 1)
public val title: String = "",
@ProtobufIndex(index = 2)
public val description: String = "",
@ProtobufIndex(index = 3)
public val addresses: List = emptyList(),
) : TypeProtobufMessage {
public companion object {
public const val TYPE_URL: String = "/terra.treasury.v1beta1.AddBurnTaxExemptionAddressProposal"
}
@OptIn(ExperimentalSerializationApi::class)
@Serializer(forClass = AddBurnTaxExemptionAddressProposal::class)
private object ReflectSerializer
public object KotlinxSerializer : KSerializer {
private val delegator: KSerializer = ReflectSerializer
override val descriptor: SerialDescriptor = delegator.descriptor
override fun serialize(encoder: Encoder, `value`: AddBurnTaxExemptionAddressProposal) {
if (encoder is ProtobufConverterEncoder) {
encoder.serialize(AddBurnTaxExemptionAddressProposalConverter, value)
return
}
delegator.serialize(encoder, value)
}
override fun deserialize(decoder: Decoder): AddBurnTaxExemptionAddressProposal {
if (decoder is ProtobufConverterDecoder) {
return decoder.deserialize(AddBurnTaxExemptionAddressProposalConverter)
}
return delegator.deserialize(decoder)
}
}
}
@AnnotationProtobufMessage(typeUrl = RemoveBurnTaxExemptionAddressProposal.TYPE_URL)
@Serializable(with = RemoveBurnTaxExemptionAddressProposal.KotlinxSerializer::class)
@SerialName(value = RemoveBurnTaxExemptionAddressProposal.TYPE_URL)
public data class RemoveBurnTaxExemptionAddressProposal(
@ProtobufIndex(index = 1)
public val title: String = "",
@ProtobufIndex(index = 2)
public val description: String = "",
@ProtobufIndex(index = 3)
public val addresses: List = emptyList(),
) : TypeProtobufMessage {
public companion object {
public const val TYPE_URL: String =
"/terra.treasury.v1beta1.RemoveBurnTaxExemptionAddressProposal"
}
@OptIn(ExperimentalSerializationApi::class)
@Serializer(forClass = RemoveBurnTaxExemptionAddressProposal::class)
private object ReflectSerializer
public object KotlinxSerializer : KSerializer {
private val delegator: KSerializer = ReflectSerializer
override val descriptor: SerialDescriptor = delegator.descriptor
override fun serialize(encoder: Encoder, `value`: RemoveBurnTaxExemptionAddressProposal) {
if (encoder is ProtobufConverterEncoder) {
encoder.serialize(RemoveBurnTaxExemptionAddressProposalConverter, value)
return
}
delegator.serialize(encoder, value)
}
override fun deserialize(decoder: Decoder): RemoveBurnTaxExemptionAddressProposal {
if (decoder is ProtobufConverterDecoder) {
return decoder.deserialize(RemoveBurnTaxExemptionAddressProposalConverter)
}
return delegator.deserialize(decoder)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy