DescriptorProto

Describes a message type.

Types

Link copied to clipboard
interface ExtensionRange
Link copied to clipboard
interface ReservedRange

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val name: String
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val options: MessageOptions
Link copied to clipboard

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

Link copied to clipboard

Returns the field-presence view for this DescriptorProto instance.

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

Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.

Link copied to clipboard
Link copied to clipboard

Support for export and local keywords on enums.

Link copied to clipboard

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

Functions

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

Copies the original message, including unknown fields.