scalapb.validate.compiler

Type members

Classlikes

case object BuildInfo

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

object BytesRuleGen
object CodeGenerator extends CodeGenApp
case class CombineFieldRules(rules: Seq[Rule], op: String) extends Rule
object EnumRulesGen
case class FunctionCall(funcName: String, needsName: Boolean, args: Seq[String], inputTransform: Expression, outputTranform: Expression, imports: Seq[String], preamble: Seq[String]) extends Rule

Represents a generated function call that returns a Result.

Represents a generated function call that returns a Result.

funcName: fully qualified functin name. The function takes potentially the name (if needsName is true), then the value to be tested, then the list of args are passed: funcName([name], value, *args) needsName: whether the first argument is the name of the field being tested. args: arguments to pass after the value. inputTransform: transformation to apply to the value outputTransform: transformation to apply to the result of funcName imports: list of imports to add to the top of the file (no need to dedupe here) preamble: code to be added for static definitions. Can be used for constants that needs to be computed only once.

case class IgnoreEmptyRule(isEmpty: Rule, other: Rule) extends Rule
object MapRulesGen
Companion
class
class MessagePrinter(implicits: DescriptorImplicits, message: Descriptor)
Companion
object
case class OptionalFieldRule(rules: Seq[Rule]) extends Rule
class ProcessRequest(req: CodeGenRequest)
case class RepeatedFieldRule(rules: Seq[Rule], inputTransform: String => String) extends Rule
trait Rule
Companion
object
object Rule
Companion
class
object RulesGen
trait Show[T]
Companion
object
object Show
Companion
class

StringRulesGenerator helps generate the validation code for protocol buffer string typed field

StringRulesGenerator helps generate the validation code for protocol buffer string typed field

object ValidatePreprocessor extends CodeGenApp