Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
edition
The edition of the proto file.
descriptor.pb.swift:235var edition: Google_Protobuf_Edition { get set }
Other members in extension
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_FileDescriptorProto, rhs: Google_Protobuf_FileDescriptorProto
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var dependency: [String]
Names of files imported by this file.
var enumType: [Google_Protobuf_EnumDescriptorProto]
var `extension`: [Google_Protobuf_FieldDescriptorProto]
var hasEdition: Bool
Returns true if
edition
has been explicitly set.var hasName: Bool
Returns true if
name
has been explicitly set.var hasOptions: Bool
Returns true if
options
has been explicitly set.var hasPackage: Bool
Returns true if
package
has been explicitly set.var hasSourceCodeInfo: Bool
Returns true if
sourceCodeInfo
has been explicitly set.var hasSyntax: Bool
Returns true if
syntax
has been explicitly set.var isInitialized: Bool
var messageType: [Google_Protobuf_DescriptorProto]
All top-level definitions in this file.
var name: String
file name, relative to root of source tree
var options: Google_Protobuf_FileOptions
var package: String
e.g. “foo”, “foo.bar”, etc.
var publicDependency: [Int32]
Indexes of the public imported files in the dependency list above.
var service: [Google_Protobuf_ServiceDescriptorProto]
var sourceCodeInfo: Google_Protobuf_SourceCodeInfo
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors – the information is needed only by development tools.
var syntax: String
The syntax of the proto file. The supported values are “proto2”, “proto3”, and “editions”.
var unknownFields: UnknownStorage
var weakDependency: [Int32]
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
func clearEdition(
) Clears the value of
edition
. 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 clearOptions(
) Clears the value of
options
. Subsequent reads from it will return its default value.func clearPackage(
) Clears the value of
package
. Subsequent reads from it will return its default value.func clearSourceCodeInfo(
) Clears the value of
sourceCodeInfo
. Subsequent reads from it will return its default value.func clearSyntax(
) Clears the value of
syntax
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws