Options

class Options(optionType: ProtoType, optionElements: List<OptionElement>)

A set of options declared on a message declaration, field declaration, enum declaration, enum constant declaration, service declaration, RPC method declaration, or proto file declaration. Options values may be arbitrary protocol buffer messages, but must be valid protocol buffer messages.

Constructors

Link copied to clipboard
constructor(optionType: ProtoType, optionElements: List<OptionElement>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val elements: List<OptionElement>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun get(protoMember: ProtoMember): Any?
Link copied to clipboard
fun link(linker: Linker, location: Location, validate: Boolean)
Link copied to clipboard
fun optionMatches(namePattern: String, valuePattern: String): Boolean

Returns true if any of the options in entries matches both of the regular expressions provided: its name matches the option's name and its value matches the option's value.

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