Type

interface Type(source)

A protocol buffer message type.

Properties

Link copied to clipboard
abstract val edition: String

The source edition string, only valid when syntax is SYNTAX_EDITIONS.

Link copied to clipboard
abstract val fields: List<Field>

The list of fields.

Link copied to clipboard
abstract val name: String

The fully qualified message name.

Link copied to clipboard
abstract val oneofs: List<String>

The list of types appearing in oneof definitions in this type.

Link copied to clipboard
abstract val options: List<Option>

The protocol buffer options.

Link copied to clipboard

Returns the field-presence view for this com.google.protobuf.kotlin.Type instance.

Link copied to clipboard

The source context.

Link copied to clipboard
abstract val syntax: Syntax

The source syntax.

Functions

Link copied to clipboard
fun Type.copy(body: ERROR CLASS: Symbol not found for Type.Builder.() -> Unit = {}): Type

Copies the original message, including unknown fields.