clearOptimizeFor
Clears the value of optimizeFor
. Subsequent reads from it will return its default value.
mutating func clearOptimizeFor()
Clears the value of optimizeFor
. Subsequent reads from it will return its default value.
mutating func clearOptimizeFor()
s13SwiftProtobuf07Google_B12_FileOptionsV16clearOptimizeForyyF
What are these?53JUZ
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_FileOptions
init()
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var _protobuf_extensionFieldValues: ExtensionFieldValueSet
var ccEnableArenas: Bool { get set }
Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.
var ccGenericServices: Bool { get set }
Should generic services be generated in each language? “Generic” services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins). Generic services were the only kind of service generation supported by early versions of google.protobuf.
var csharpNamespace: String { get set }
Namespace for generated classes; defaults to the package.
var deprecated: Bool { get set }
Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.
var features: Google_Protobuf_FeatureSet { get set }
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
var goPackage: String { get set }
Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following:
var hasCcEnableArenas: Bool { get }
Returns true if ccEnableArenas
has been explicitly set.
var hasCcGenericServices: Bool { get }
Returns true if ccGenericServices
has been explicitly set.
var hasCsharpNamespace: Bool { get }
Returns true if csharpNamespace
has been explicitly set.
var hasDeprecated: Bool { get }
Returns true if deprecated
has been explicitly set.
var hasFeatures: Bool { get }
Returns true if features
has been explicitly set.
var hasGoPackage: Bool { get }
Returns true if goPackage
has been explicitly set.
var hasJavaGenerateEqualsAndHash: Bool { get }
Returns true if javaGenerateEqualsAndHash
has been explicitly set.
var hasJavaGenericServices: Bool { get }
Returns true if javaGenericServices
has been explicitly set.
var hasJavaMultipleFiles: Bool { get }
Returns true if javaMultipleFiles
has been explicitly set.
var hasJavaOuterClassname: Bool { get }
Returns true if javaOuterClassname
has been explicitly set.
var hasJavaPackage: Bool { get }
Returns true if javaPackage
has been explicitly set.
var hasJavaStringCheckUtf8: Bool { get }
Returns true if javaStringCheckUtf8
has been explicitly set.
var hasObjcClassPrefix: Bool { get }
Returns true if objcClassPrefix
has been explicitly set.
var hasOptimizeFor: Bool { get }
Returns true if optimizeFor
has been explicitly set.
var hasPhpClassPrefix: Bool { get }
Returns true if phpClassPrefix
has been explicitly set.
var hasPhpMetadataNamespace: Bool { get }
Returns true if phpMetadataNamespace
has been explicitly set.
var hasPhpNamespace: Bool { get }
Returns true if phpNamespace
has been explicitly set.
var hasPyGenericServices: Bool { get }
Returns true if pyGenericServices
has been explicitly set.
var hasRubyPackage: Bool { get }
Returns true if rubyPackage
has been explicitly set.
var hasSwiftPrefix: Bool { get }
Returns true if swiftPrefix
has been explicitly set.
var isInitialized: Bool { get }
var javaGenerateEqualsAndHash: Bool { get set }
This option does nothing.
var javaGenericServices: Bool { get set }
var javaMultipleFiles: Bool { get set }
If enabled, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will not be nested inside the wrapper class named by java_outer_classname. However, the wrapper class will still be generated to contain the file’s getDescriptor() method as well as any top-level extensions defined in the file.
var javaOuterClassname: String { get set }
Controls the name of the wrapper Java class generated for the .proto file. That class will always contain the .proto file’s getDescriptor() method as well as any top-level extensions defined in the .proto file. If java_multiple_files is disabled, then all the other classes from the .proto file will be nested inside the single wrapper outer class.
var javaPackage: String { get set }
Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.
var javaStringCheckUtf8: Bool { get set }
A proto2 file can set this to true to opt in to UTF-8 checking for Java, which will throw an exception if invalid UTF-8 is parsed from the wire or assigned to a string field.
var objcClassPrefix: String { get set }
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.
var optimizeFor: Google_Protobuf_FileOptions.OptimizeMode { get set }
var phpClassPrefix: String { get set }
Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.
var phpMetadataNamespace: String { get set }
Use this option to change the namespace of php generated metadata classes. Default is empty. When this option is empty, the proto file name will be used for determining the namespace.
var phpNamespace: String { get set }
Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace.
var pyGenericServices: Bool { get set }
var rubyPackage: String { get set }
Use this option to change the package of ruby generated classes. Default is empty. When this option is not set, the package name will be used for determining the ruby package.
var swiftPrefix: String { get set }
By default Swift generators will take the proto package and CamelCase it replacing ‘.’ with underscore and use that to prefix the types/symbols defined. When this options is provided, they will use this value instead to prefix the types/symbols defined.
var uninterpretedOption: [Google_Protobuf_UninterpretedOption] { get set }
The parser stores options it doesn’t recognize here. See the documentation for the “Options” section above.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_FileOptions, rhs: Google_Protobuf_FileOptions) -> Bool
mutating func clearCcEnableArenas()
Clears the value of ccEnableArenas
. Subsequent reads from it will return its default value.
mutating func clearCcGenericServices()
Clears the value of ccGenericServices
. Subsequent reads from it will return its default value.
mutating func clearCsharpNamespace()
Clears the value of csharpNamespace
. Subsequent reads from it will return its default value.
mutating func clearDeprecated()
Clears the value of deprecated
. Subsequent reads from it will return its default value.
mutating func clearFeatures()
Clears the value of features
. Subsequent reads from it will return its default value.
mutating func clearGoPackage()
Clears the value of goPackage
. Subsequent reads from it will return its default value.
mutating func clearJavaGenerateEqualsAndHash()
Clears the value of javaGenerateEqualsAndHash
. Subsequent reads from it will return its default value.
mutating func clearJavaGenericServices()
Clears the value of javaGenericServices
. Subsequent reads from it will return its default value.
mutating func clearJavaMultipleFiles()
Clears the value of javaMultipleFiles
. Subsequent reads from it will return its default value.
mutating func clearJavaOuterClassname()
Clears the value of javaOuterClassname
. Subsequent reads from it will return its default value.
mutating func clearJavaPackage()
Clears the value of javaPackage
. Subsequent reads from it will return its default value.
mutating func clearJavaStringCheckUtf8()
Clears the value of javaStringCheckUtf8
. Subsequent reads from it will return its default value.
mutating func clearObjcClassPrefix()
Clears the value of objcClassPrefix
. Subsequent reads from it will return its default value.
mutating func clearPhpClassPrefix()
Clears the value of phpClassPrefix
. Subsequent reads from it will return its default value.
mutating func clearPhpMetadataNamespace()
Clears the value of phpMetadataNamespace
. Subsequent reads from it will return its default value.
mutating func clearPhpNamespace()
Clears the value of phpNamespace
. Subsequent reads from it will return its default value.
mutating func clearPyGenericServices()
Clears the value of pyGenericServices
. Subsequent reads from it will return its default value.
mutating func clearRubyPackage()
Clears the value of rubyPackage
. Subsequent reads from it will return its default value.
mutating func clearSwiftPrefix()
Clears the value of swiftPrefix
. 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 OptimizeMode
Generated classes can be optimized for speed or code size.