jvmMain.terra.treasury.v1beta1.gov.converter.jvm.kt Maven / Gradle / Ivy
// Transform from terra/treasury/v1beta1/gov.proto
@file:GeneratorVersion(version = "0.5.2")
package terra.treasury.v1beta1
import com.google.protobuf.Descriptors
import com.google.protobuf.Parser
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.mapper.ProtobufTypeMapper
public open class AddBurnTaxExemptionAddressProposalJvmConverter :
ProtobufTypeMapper {
override val descriptor: Descriptors.Descriptor =
Gov.AddBurnTaxExemptionAddressProposal.getDescriptor()
override val parser: Parser =
Gov.AddBurnTaxExemptionAddressProposal.parser()
override val default: Gov.AddBurnTaxExemptionAddressProposal =
Gov.AddBurnTaxExemptionAddressProposal.getDefaultInstance()
override fun convert(obj: Gov.AddBurnTaxExemptionAddressProposal):
AddBurnTaxExemptionAddressProposal = AddBurnTaxExemptionAddressProposal(
title = obj.getTitle(),
description = obj.getDescription(),
addresses = obj.getAddressesList().map { it },
)
override fun convert(obj: AddBurnTaxExemptionAddressProposal):
Gov.AddBurnTaxExemptionAddressProposal {
val builder = Gov.AddBurnTaxExemptionAddressProposal.newBuilder()
builder.setTitle(obj.title)
builder.setDescription(obj.description)
builder.addAllAddresses(obj.addresses.map { it })
return builder.build()
}
}
public open class RemoveBurnTaxExemptionAddressProposalJvmConverter :
ProtobufTypeMapper
{
override val descriptor: Descriptors.Descriptor =
Gov.RemoveBurnTaxExemptionAddressProposal.getDescriptor()
override val parser: Parser =
Gov.RemoveBurnTaxExemptionAddressProposal.parser()
override val default: Gov.RemoveBurnTaxExemptionAddressProposal =
Gov.RemoveBurnTaxExemptionAddressProposal.getDefaultInstance()
override fun convert(obj: Gov.RemoveBurnTaxExemptionAddressProposal):
RemoveBurnTaxExemptionAddressProposal = RemoveBurnTaxExemptionAddressProposal(
title = obj.getTitle(),
description = obj.getDescription(),
addresses = obj.getAddressesList().map { it },
)
override fun convert(obj: RemoveBurnTaxExemptionAddressProposal):
Gov.RemoveBurnTaxExemptionAddressProposal {
val builder = Gov.RemoveBurnTaxExemptionAddressProposal.newBuilder()
builder.setTitle(obj.title)
builder.setDescription(obj.description)
builder.addAllAddresses(obj.addresses.map { it })
return builder.build()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy