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

commonMain.terra.dyncomm.v1beta1.query.converter.kt Maven / Gradle / Ivy

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

package terra.dyncomm.v1beta1

import google.protobuf.Any
import java.lang.IllegalStateException
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
import kr.jadekim.protobuf.converter.parseProtobuf

public expect object QueryParamsRequestConverter : ProtobufConverter

public fun QueryParamsRequest.toAny(): Any = Any(QueryParamsRequest.TYPE_URL,
    with(QueryParamsRequestConverter) { toByteArray() })

public fun Any.parse(converter: ProtobufConverter =
    QueryParamsRequestConverter): QueryParamsRequest {
  if (typeUrl != QueryParamsRequest.TYPE_URL) throw
      IllegalStateException("Please check the type_url")
  return value.parseProtobuf(converter)
}

public val QueryParamsRequest.Companion.converter: QueryParamsRequestConverter
  get() = QueryParamsRequestConverter

public expect object QueryParamsResponseConverter : ProtobufConverter

public fun QueryParamsResponse.toAny(): Any = Any(QueryParamsResponse.TYPE_URL,
    with(QueryParamsResponseConverter) { toByteArray() })

public fun Any.parse(converter: ProtobufConverter =
    QueryParamsResponseConverter): QueryParamsResponse {
  if (typeUrl != QueryParamsResponse.TYPE_URL) throw
      IllegalStateException("Please check the type_url")
  return value.parseProtobuf(converter)
}

public val QueryParamsResponse.Companion.converter: QueryParamsResponseConverter
  get() = QueryParamsResponseConverter

public expect object QueryRateRequestConverter : ProtobufConverter

public fun QueryRateRequest.toAny(): Any = Any(QueryRateRequest.TYPE_URL,
    with(QueryRateRequestConverter) { toByteArray() })

public fun Any.parse(converter: ProtobufConverter = QueryRateRequestConverter):
    QueryRateRequest {
  if (typeUrl != QueryRateRequest.TYPE_URL) throw IllegalStateException("Please check the type_url")
  return value.parseProtobuf(converter)
}

public val QueryRateRequest.Companion.converter: QueryRateRequestConverter
  get() = QueryRateRequestConverter

public expect object QueryRateResponseConverter : ProtobufConverter

public fun QueryRateResponse.toAny(): Any = Any(QueryRateResponse.TYPE_URL,
    with(QueryRateResponseConverter) { toByteArray() })

public fun Any.parse(converter: ProtobufConverter = QueryRateResponseConverter):
    QueryRateResponse {
  if (typeUrl != QueryRateResponse.TYPE_URL) throw
      IllegalStateException("Please check the type_url")
  return value.parseProtobuf(converter)
}

public val QueryRateResponse.Companion.converter: QueryRateResponseConverter
  get() = QueryRateResponseConverter




© 2015 - 2025 Weber Informatics LLC | Privacy Policy