FieldResponse

data class FieldResponse(val cardinality: String, val defaultValue: String, val jsonName: String, val kind: String, val name: String, val number: Int, val oneofIndex: Int, val options: List<OptionResponse>, val packed: Boolean, val typeUrl: String)

A single field of a message type.

Constructors

Link copied to clipboard
constructor(cardinality: String, defaultValue: String, jsonName: String, kind: String, name: String, number: Int, oneofIndex: Int, options: List<OptionResponse>, packed: Boolean, typeUrl: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The field cardinality.

Link copied to clipboard

The string value of the default value of this field. Proto2 syntax only.

Link copied to clipboard

The field JSON name.

Link copied to clipboard

The field type.

Link copied to clipboard

The field name.

Link copied to clipboard
val number: Int

The field number.

Link copied to clipboard

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

Link copied to clipboard

The protocol buffer options.

Link copied to clipboard

Whether to use alternative packed wire representation.

Link copied to clipboard

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".