org.plasmalabs.indexer.services.QueryByAssetLabelRequestValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.indexer.services
object QueryByAssetLabelRequestValidator extends scalapb.validate.Validator[org.plasmalabs.indexer.services.QueryByAssetLabelRequest] {
def validate(input: org.plasmalabs.indexer.services.QueryByAssetLabelRequest): scalapb.validate.Result =
org.plasmalabs.indexer.services.AssetLabelValidator.validate(input.assetLabel) &&
scalapb.validate.Result.optional(input.confidenceFactor) { _value =>
org.plasmalabs.indexer.services.ConfidenceFactorValidator.validate(_value)
}
}