SyntaxRules

interface SyntaxRules

A set of rules which defines schema requirements for a specific Syntax.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getEncodeMode(protoType: ProtoType, label: Field.Label?, isPacked: Boolean, isOneOf: Boolean): Field.EncodeMode
Link copied to clipboard
abstract fun isPackedByDefault(type: ProtoType, label: Field.Label?): Boolean
Link copied to clipboard
abstract fun jsonName(name: String, declaredJsonName: String?): String
Link copied to clipboard
abstract fun validateDefaultValue(hasDefaultValue: Boolean, errors: ErrorCollector)
Link copied to clipboard
abstract fun validateEnumConstants(constants: List<EnumConstant>, errors: ErrorCollector)
Link copied to clipboard
abstract fun validateExtension(protoType: ProtoType, errors: ErrorCollector)
Link copied to clipboard
abstract fun validateTypeReference(type: Type?, errors: ErrorCollector)