Instance Propertyswift-protobuf 1.29.0SwiftProtobuf
defaultValue
The string value of the default value of this field. Proto2 syntax only.
var defaultValue: String
The string value of the default value of this field. Proto2 syntax only.
var defaultValue: String
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_Field
A single field of a message type.
@frozen struct String
A Unicode string value that is a collection of characters.
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var cardinality: Google_Protobuf_Field.Cardinality
The field cardinality.
var jsonName: String
The field JSON name.
var kind: Google_Protobuf_Field.Kind
The field type.
var name: String
The field name.
var number: Int32
The field number.
var oneofIndex: Int32
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.
var options: [Google_Protobuf_Option]
The protocol buffer options.
var packed: Bool
Whether to use alternative packed wire representation.
var typeURL: String
The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp"
.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_Field, rhs: Google_Protobuf_Field) -> Bool
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func traverse<V>(visitor: inout V) throws where V : Visitor
enum Cardinality
Whether a field is optional, required, or repeated.
enum Kind
Basic field types.