Instance Methodswift-protobuf 1.28.1SwiftProtobuf
clearOneofIndex
Clears the value of oneofIndex
. Subsequent reads from it will return its default value.
mutating func clearOneofIndex()
Other members in extension
Types
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_FieldDescriptorProto, rhs: Google_Protobuf_FieldDescriptorProto
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var defaultValue: String
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
For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.
var hasDefaultValue: Bool
Returns true if
defaultValue
has been explicitly set.var hasExtendee: Bool
Returns true if
extendee
has been explicitly set.var hasJsonName: Bool
Returns true if
jsonName
has been explicitly set.var hasLabel: Bool
Returns true if
label
has been explicitly set.var hasName: Bool
Returns true if
name
has been explicitly set.var hasNumber: Bool
Returns true if
number
has been explicitly set.var hasOneofIndex: Bool
Returns true if
oneofIndex
has been explicitly set.var hasOptions: Bool
Returns true if
options
has been explicitly set.var hasProto3Optional: Bool
Returns true if
proto3Optional
has been explicitly set.var hasType: Bool
Returns true if
type
has been explicitly set.var hasTypeName: Bool
Returns true if
typeName
has been explicitly set.var isInitialized: Bool
var jsonName: String
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
var name: String
var number: Int32
var oneofIndex: Int32
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 options: Google_Protobuf_FieldOptions
var proto3Optional: Bool
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
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
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
func clearDefaultValue(
) Clears the value of
defaultValue
. Subsequent reads from it will return its default value.func clearExtendee(
) Clears the value of
extendee
. Subsequent reads from it will return its default value.func clearJsonName(
) Clears the value of
jsonName
. Subsequent reads from it will return its default value.func clearLabel(
) Clears the value of
label
. Subsequent reads from it will return its default value.func clearName(
) Clears the value of
name
. Subsequent reads from it will return its default value.func clearNumber(
) Clears the value of
number
. Subsequent reads from it will return its default value.func clearOptions(
) Clears the value of
options
. Subsequent reads from it will return its default value.func clearProto3Optional(
) Clears the value of
proto3Optional
. Subsequent reads from it will return its default value.func clearType(
) Clears the value of
type
. Subsequent reads from it will return its default value.func clearTypeName(
) Clears the value of
typeName
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws