Type

interface Type(source)

A protocol buffer message type.

New usages of this message as an alternative to DescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.

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 Type instance.

Link copied to clipboard

The source context.

Link copied to clipboard

Returns the value of the sourceContext field if present, otherwise null.

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.