ProtoFile

data class ProtoFile(val location: Location, val imports: List<String>, val publicImports: List<String>, val packageName: String?, val types: List<Type>, val services: List<Service>, val extendList: List<Extend>, val options: Options, val syntax: Syntax?)

Constructors

Link copied to clipboard
constructor(location: Location, imports: List<String>, publicImports: List<String>, packageName: String?, types: List<Type>, services: List<Service>, extendList: List<Extend>, options: Options, syntax: Syntax?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val syntax: Syntax?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun linkOptions(linker: Linker, validate: Boolean)
Link copied to clipboard
fun name(): String

Returns the name of this proto file, like simple_message for squareup/protos/person/simple_message.proto.

Link copied to clipboard
fun retainAll(schema: Schema, markSet: MarkSet): ProtoFile

Returns a new proto file that omits types, services, extensions, and options not in pruningRules.

Link copied to clipboard

Returns a new proto file that omits unnecessary imports.

Link copied to clipboard
fun retainLinked(linkedTypes: Set<ProtoType>, linkedFields: Set<Field>): ProtoFile

Return a copy of this file with only the marked types.

Link copied to clipboard
fun toElement(): ProtoFileElement
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns all types and subtypes which are found in the proto file.

Link copied to clipboard