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

jvmMain.terra.treasury.v1beta1.query.converter.jvm.kt Maven / Gradle / Ivy

There is a newer version: 3.1.6-4
Show newest version
// Transform from terra/treasury/v1beta1/query.proto
@file:GeneratorVersion(version = "0.5.2")

package terra.treasury.v1beta1

import com.google.protobuf.Descriptors
import com.google.protobuf.Parser
import cosmos.base.query.v1beta1.PageRequestConverter
import cosmos.base.query.v1beta1.PageResponseConverter
import cosmos.base.v1beta1.CoinConverter
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.mapper.ProtobufTypeMapper

public open class QueryTaxRateRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxRateRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxRateRequest.parser()

  override val default: QueryOuterClass.QueryTaxRateRequest =
      QueryOuterClass.QueryTaxRateRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxRateRequest): QueryTaxRateRequest =
      QueryTaxRateRequest(
  )

  override fun convert(obj: QueryTaxRateRequest): QueryOuterClass.QueryTaxRateRequest {
    val builder = QueryOuterClass.QueryTaxRateRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryTaxRateResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxRateResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxRateResponse.parser()

  override val default: QueryOuterClass.QueryTaxRateResponse =
      QueryOuterClass.QueryTaxRateResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxRateResponse): QueryTaxRateResponse =
      QueryTaxRateResponse(
  	taxRate = obj.getTaxRate(),
  )

  override fun convert(obj: QueryTaxRateResponse): QueryOuterClass.QueryTaxRateResponse {
    val builder = QueryOuterClass.QueryTaxRateResponse.newBuilder()
    builder.setTaxRate(obj.taxRate)
    return builder.build()
  }
}

public open class QueryTaxCapRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxCapRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxCapRequest.parser()

  override val default: QueryOuterClass.QueryTaxCapRequest =
      QueryOuterClass.QueryTaxCapRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxCapRequest): QueryTaxCapRequest =
      QueryTaxCapRequest(
  	denom = obj.getDenom(),
  )

  override fun convert(obj: QueryTaxCapRequest): QueryOuterClass.QueryTaxCapRequest {
    val builder = QueryOuterClass.QueryTaxCapRequest.newBuilder()
    builder.setDenom(obj.denom)
    return builder.build()
  }
}

public open class QueryTaxCapResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxCapResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxCapResponse.parser()

  override val default: QueryOuterClass.QueryTaxCapResponse =
      QueryOuterClass.QueryTaxCapResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxCapResponse): QueryTaxCapResponse =
      QueryTaxCapResponse(
  	taxCap = obj.getTaxCap(),
  )

  override fun convert(obj: QueryTaxCapResponse): QueryOuterClass.QueryTaxCapResponse {
    val builder = QueryOuterClass.QueryTaxCapResponse.newBuilder()
    builder.setTaxCap(obj.taxCap)
    return builder.build()
  }
}

public open class QueryTaxCapsRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxCapsRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxCapsRequest.parser()

  override val default: QueryOuterClass.QueryTaxCapsRequest =
      QueryOuterClass.QueryTaxCapsRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxCapsRequest): QueryTaxCapsRequest =
      QueryTaxCapsRequest(
  )

  override fun convert(obj: QueryTaxCapsRequest): QueryOuterClass.QueryTaxCapsRequest {
    val builder = QueryOuterClass.QueryTaxCapsRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryTaxCapsResponseItemJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxCapsResponseItem.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxCapsResponseItem.parser()

  override val default: QueryOuterClass.QueryTaxCapsResponseItem =
      QueryOuterClass.QueryTaxCapsResponseItem.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxCapsResponseItem): QueryTaxCapsResponseItem =
      QueryTaxCapsResponseItem(
  	denom = obj.getDenom(),
  	taxCap = obj.getTaxCap(),
  )

  override fun convert(obj: QueryTaxCapsResponseItem): QueryOuterClass.QueryTaxCapsResponseItem {
    val builder = QueryOuterClass.QueryTaxCapsResponseItem.newBuilder()
    builder.setDenom(obj.denom)
    builder.setTaxCap(obj.taxCap)
    return builder.build()
  }
}

public open class QueryTaxCapsResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxCapsResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxCapsResponse.parser()

  override val default: QueryOuterClass.QueryTaxCapsResponse =
      QueryOuterClass.QueryTaxCapsResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxCapsResponse): QueryTaxCapsResponse =
      QueryTaxCapsResponse(
  	taxCaps = obj.getTaxCapsList().map { QueryTaxCapsResponseItemConverter.convert(it) },
  )

  override fun convert(obj: QueryTaxCapsResponse): QueryOuterClass.QueryTaxCapsResponse {
    val builder = QueryOuterClass.QueryTaxCapsResponse.newBuilder()
    builder.addAllTaxCaps(obj.taxCaps.map { QueryTaxCapsResponseItemConverter.convert(it) })
    return builder.build()
  }
}

public open class QueryRewardWeightRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryRewardWeightRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryRewardWeightRequest.parser()

  override val default: QueryOuterClass.QueryRewardWeightRequest =
      QueryOuterClass.QueryRewardWeightRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryRewardWeightRequest): QueryRewardWeightRequest =
      QueryRewardWeightRequest(
  )

  override fun convert(obj: QueryRewardWeightRequest): QueryOuterClass.QueryRewardWeightRequest {
    val builder = QueryOuterClass.QueryRewardWeightRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryRewardWeightResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryRewardWeightResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryRewardWeightResponse.parser()

  override val default: QueryOuterClass.QueryRewardWeightResponse =
      QueryOuterClass.QueryRewardWeightResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryRewardWeightResponse): QueryRewardWeightResponse =
      QueryRewardWeightResponse(
  	rewardWeight = obj.getRewardWeight(),
  )

  override fun convert(obj: QueryRewardWeightResponse): QueryOuterClass.QueryRewardWeightResponse {
    val builder = QueryOuterClass.QueryRewardWeightResponse.newBuilder()
    builder.setRewardWeight(obj.rewardWeight)
    return builder.build()
  }
}

public open class QueryTaxProceedsRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxProceedsRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxProceedsRequest.parser()

  override val default: QueryOuterClass.QueryTaxProceedsRequest =
      QueryOuterClass.QueryTaxProceedsRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxProceedsRequest): QueryTaxProceedsRequest =
      QueryTaxProceedsRequest(
  )

  override fun convert(obj: QueryTaxProceedsRequest): QueryOuterClass.QueryTaxProceedsRequest {
    val builder = QueryOuterClass.QueryTaxProceedsRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryTaxProceedsResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryTaxProceedsResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryTaxProceedsResponse.parser()

  override val default: QueryOuterClass.QueryTaxProceedsResponse =
      QueryOuterClass.QueryTaxProceedsResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryTaxProceedsResponse): QueryTaxProceedsResponse =
      QueryTaxProceedsResponse(
  	taxProceeds = obj.getTaxProceedsList().map { CoinConverter.convert(it) },
  )

  override fun convert(obj: QueryTaxProceedsResponse): QueryOuterClass.QueryTaxProceedsResponse {
    val builder = QueryOuterClass.QueryTaxProceedsResponse.newBuilder()
    builder.addAllTaxProceeds(obj.taxProceeds.map { CoinConverter.convert(it) })
    return builder.build()
  }
}

public open class QuerySeigniorageProceedsRequestJvmConverter :
    ProtobufTypeMapper
    {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QuerySeigniorageProceedsRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QuerySeigniorageProceedsRequest.parser()

  override val default: QueryOuterClass.QuerySeigniorageProceedsRequest =
      QueryOuterClass.QuerySeigniorageProceedsRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QuerySeigniorageProceedsRequest):
      QuerySeigniorageProceedsRequest = QuerySeigniorageProceedsRequest(
  )

  override fun convert(obj: QuerySeigniorageProceedsRequest):
      QueryOuterClass.QuerySeigniorageProceedsRequest {
    val builder = QueryOuterClass.QuerySeigniorageProceedsRequest.newBuilder()
    return builder.build()
  }
}

public open class QuerySeigniorageProceedsResponseJvmConverter :
    ProtobufTypeMapper
    {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QuerySeigniorageProceedsResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QuerySeigniorageProceedsResponse.parser()

  override val default: QueryOuterClass.QuerySeigniorageProceedsResponse =
      QueryOuterClass.QuerySeigniorageProceedsResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QuerySeigniorageProceedsResponse):
      QuerySeigniorageProceedsResponse = QuerySeigniorageProceedsResponse(
  	seigniorageProceeds = obj.getSeigniorageProceeds(),
  )

  override fun convert(obj: QuerySeigniorageProceedsResponse):
      QueryOuterClass.QuerySeigniorageProceedsResponse {
    val builder = QueryOuterClass.QuerySeigniorageProceedsResponse.newBuilder()
    builder.setSeigniorageProceeds(obj.seigniorageProceeds)
    return builder.build()
  }
}

public open class QueryIndicatorsRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryIndicatorsRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryIndicatorsRequest.parser()

  override val default: QueryOuterClass.QueryIndicatorsRequest =
      QueryOuterClass.QueryIndicatorsRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryIndicatorsRequest): QueryIndicatorsRequest =
      QueryIndicatorsRequest(
  )

  override fun convert(obj: QueryIndicatorsRequest): QueryOuterClass.QueryIndicatorsRequest {
    val builder = QueryOuterClass.QueryIndicatorsRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryIndicatorsResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryIndicatorsResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryIndicatorsResponse.parser()

  override val default: QueryOuterClass.QueryIndicatorsResponse =
      QueryOuterClass.QueryIndicatorsResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryIndicatorsResponse): QueryIndicatorsResponse =
      QueryIndicatorsResponse(
  	trlYear = obj.getTrlYear(),
  	trlMonth = obj.getTrlMonth(),
  )

  override fun convert(obj: QueryIndicatorsResponse): QueryOuterClass.QueryIndicatorsResponse {
    val builder = QueryOuterClass.QueryIndicatorsResponse.newBuilder()
    builder.setTrlYear(obj.trlYear)
    builder.setTrlMonth(obj.trlMonth)
    return builder.build()
  }
}

public open class QueryParamsRequestJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryParamsRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryParamsRequest.parser()

  override val default: QueryOuterClass.QueryParamsRequest =
      QueryOuterClass.QueryParamsRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryParamsRequest): QueryParamsRequest =
      QueryParamsRequest(
  )

  override fun convert(obj: QueryParamsRequest): QueryOuterClass.QueryParamsRequest {
    val builder = QueryOuterClass.QueryParamsRequest.newBuilder()
    return builder.build()
  }
}

public open class QueryParamsResponseJvmConverter :
    ProtobufTypeMapper {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryParamsResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryParamsResponse.parser()

  override val default: QueryOuterClass.QueryParamsResponse =
      QueryOuterClass.QueryParamsResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryParamsResponse): QueryParamsResponse =
      QueryParamsResponse(
  	params = ParamsConverter.convert(obj.getParams()),
  )

  override fun convert(obj: QueryParamsResponse): QueryOuterClass.QueryParamsResponse {
    val builder = QueryOuterClass.QueryParamsResponse.newBuilder()
    builder.setParams(ParamsConverter.convert(obj.params))
    return builder.build()
  }
}

public open class QueryBurnTaxExemptionListRequestJvmConverter :
    ProtobufTypeMapper
    {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryBurnTaxExemptionListRequest.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryBurnTaxExemptionListRequest.parser()

  override val default: QueryOuterClass.QueryBurnTaxExemptionListRequest =
      QueryOuterClass.QueryBurnTaxExemptionListRequest.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryBurnTaxExemptionListRequest):
      QueryBurnTaxExemptionListRequest = QueryBurnTaxExemptionListRequest(
  	pagination = PageRequestConverter.convert(obj.getPagination()),
  )

  override fun convert(obj: QueryBurnTaxExemptionListRequest):
      QueryOuterClass.QueryBurnTaxExemptionListRequest {
    val builder = QueryOuterClass.QueryBurnTaxExemptionListRequest.newBuilder()
    builder.setPagination(PageRequestConverter.convert(obj.pagination))
    return builder.build()
  }
}

public open class QueryBurnTaxExemptionListResponseJvmConverter :
    ProtobufTypeMapper
    {
  override val descriptor: Descriptors.Descriptor =
      QueryOuterClass.QueryBurnTaxExemptionListResponse.getDescriptor()

  override val parser: Parser =
      QueryOuterClass.QueryBurnTaxExemptionListResponse.parser()

  override val default: QueryOuterClass.QueryBurnTaxExemptionListResponse =
      QueryOuterClass.QueryBurnTaxExemptionListResponse.getDefaultInstance()

  override fun convert(obj: QueryOuterClass.QueryBurnTaxExemptionListResponse):
      QueryBurnTaxExemptionListResponse = QueryBurnTaxExemptionListResponse(
  	addresses = obj.getAddressesList().map { it },
  	pagination = PageResponseConverter.convert(obj.getPagination()),
  )

  override fun convert(obj: QueryBurnTaxExemptionListResponse):
      QueryOuterClass.QueryBurnTaxExemptionListResponse {
    val builder = QueryOuterClass.QueryBurnTaxExemptionListResponse.newBuilder()
    builder.addAllAddresses(obj.addresses.map { it })
    builder.setPagination(PageResponseConverter.convert(obj.pagination))
    return builder.build()
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy