options
descriptor.pb.swift:615var options: Google_Protobuf_FieldOptions { get set }
var options: Google_Protobuf_FieldOptions { get set }
s13SwiftProtobuf07Google_B21_FieldDescriptorProtoV7optionsAA0c1_b1_D7OptionsVvp
What are these?8YKV5
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_FieldDescriptorProto
Describes a field within a message.
struct Google_Protobuf_FieldOptions
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var defaultValue: String { get set }
For numeric types, contains the original text representation of the value. For booleans, “true” or “false”. For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped.
var extendee: String { get set }
For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.
var hasDefaultValue: Bool { get }
Returns true if defaultValue
has been explicitly set.
var hasExtendee: Bool { get }
Returns true if extendee
has been explicitly set.
var hasJsonName: Bool { get }
Returns true if jsonName
has been explicitly set.
var hasLabel: Bool { get }
Returns true if label
has been explicitly set.
var hasName: Bool { get }
Returns true if name
has been explicitly set.
var hasNumber: Bool { get }
Returns true if number
has been explicitly set.
var hasOneofIndex: Bool { get }
Returns true if oneofIndex
has been explicitly set.
var hasOptions: Bool { get }
Returns true if options
has been explicitly set.
var hasProto3Optional: Bool { get }
Returns true if proto3Optional
has been explicitly set.
var hasType: Bool { get }
Returns true if type
has been explicitly set.
var hasTypeName: Bool { get }
Returns true if typeName
has been explicitly set.
var isInitialized: Bool { get }
var jsonName: String { get set }
JSON name of this field. The value is set by protocol compiler. If the user has set a “json_name” option on this field, that option’s value will be used. Otherwise, it’s deduced from the field’s name by converting it to camelCase.
var label: Google_Protobuf_FieldDescriptorProto.Label { get set }
var name: String { get set }
var number: Int32 { get set }
var oneofIndex: Int32 { get set }
If set, gives the index of a oneof in the containing type’s oneof_decl list. This field is a member of that oneof.
var proto3Optional: Bool { get set }
If true, this is a proto3 “optional”. When a proto3 field is optional, it tracks presence regardless of field type.
var type: Google_Protobuf_FieldDescriptorProto.TypeEnum { get set }
If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
var typeName: String { get set }
For message and enum types, this is the name of the type. If the name starts with a ‘.’, it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_FieldDescriptorProto, rhs: Google_Protobuf_FieldDescriptorProto) -> Bool
mutating func clearDefaultValue()
Clears the value of defaultValue
. Subsequent reads from it will return its default value.
mutating func clearExtendee()
Clears the value of extendee
. Subsequent reads from it will return its default value.
mutating func clearJsonName()
Clears the value of jsonName
. Subsequent reads from it will return its default value.
mutating func clearLabel()
Clears the value of label
. Subsequent reads from it will return its default value.
mutating func clearName()
Clears the value of name
. Subsequent reads from it will return its default value.
mutating func clearNumber()
Clears the value of number
. Subsequent reads from it will return its default value.
mutating func clearOneofIndex()
Clears the value of oneofIndex
. Subsequent reads from it will return its default value.
mutating func clearOptions()
Clears the value of options
. Subsequent reads from it will return its default value.
mutating func clearProto3Optional()
Clears the value of proto3Optional
. Subsequent reads from it will return its default value.
mutating func clearType()
Clears the value of type
. Subsequent reads from it will return its default value.
mutating func clearTypeName()
Clears the value of typeName
. Subsequent reads from it will return its default value.
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func traverse<V>(visitor: inout V) throws where V : Visitor
enum Label
enum TypeEnum