Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
hasCsharpNamespace
Returns true if csharpNamespace
has been explicitly set.
var hasCsharpNamespace: Bool { get }
Other members in extension
Types
enum OptimizeMode
Generated classes can be optimized for speed or code size.
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_FileOptions, rhs: Google_Protobuf_FileOptions
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var ccEnableArenas: Bool
Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.
var ccGenericServices: Bool
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
Namespace for generated classes; defaults to the package.
var deprecated: Bool
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
Any features defined in the specific edition.
var goPackage: String
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
Returns true if
ccEnableArenas
has been explicitly set.var hasCcGenericServices: Bool
Returns true if
ccGenericServices
has been explicitly set.var hasDeprecated: Bool
Returns true if
deprecated
has been explicitly set.var hasFeatures: Bool
Returns true if
features
has been explicitly set.var hasGoPackage: Bool
Returns true if
goPackage
has been explicitly set.var hasJavaGenerateEqualsAndHash: Bool
Returns true if
javaGenerateEqualsAndHash
has been explicitly set.var hasJavaGenericServices: Bool
Returns true if
javaGenericServices
has been explicitly set.var hasJavaMultipleFiles: Bool
Returns true if
javaMultipleFiles
has been explicitly set.var hasJavaOuterClassname: Bool
Returns true if
javaOuterClassname
has been explicitly set.var hasJavaPackage: Bool
Returns true if
javaPackage
has been explicitly set.var hasJavaStringCheckUtf8: Bool
Returns true if
javaStringCheckUtf8
has been explicitly set.var hasObjcClassPrefix: Bool
Returns true if
objcClassPrefix
has been explicitly set.var hasOptimizeFor: Bool
Returns true if
optimizeFor
has been explicitly set.var hasPhpClassPrefix: Bool
Returns true if
phpClassPrefix
has been explicitly set.var hasPhpMetadataNamespace: Bool
Returns true if
phpMetadataNamespace
has been explicitly set.var hasPhpNamespace: Bool
Returns true if
phpNamespace
has been explicitly set.var hasPyGenericServices: Bool
Returns true if
pyGenericServices
has been explicitly set.var hasRubyPackage: Bool
Returns true if
rubyPackage
has been explicitly set.var hasSwiftPrefix: Bool
Returns true if
swiftPrefix
has been explicitly set.var isInitialized: Bool
var javaGenerateEqualsAndHash: Bool
This option does nothing.
var javaGenericServices: Bool
var javaMultipleFiles: Bool
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
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
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
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
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
var phpClassPrefix: String
Sets the php class prefix which is prepended to all php generated classes from this .proto. Default is empty.
var phpMetadataNamespace: String
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
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
var rubyPackage: String
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
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]
The parser stores options it doesn’t recognize here. See the documentation for the “Options” section above.
var unknownFields: UnknownStorage
func clearCcEnableArenas(
) Clears the value of
ccEnableArenas
. Subsequent reads from it will return its default value.func clearCcGenericServices(
) Clears the value of
ccGenericServices
. Subsequent reads from it will return its default value.func clearCsharpNamespace(
) Clears the value of
csharpNamespace
. Subsequent reads from it will return its default value.func clearDeprecated(
) Clears the value of
deprecated
. Subsequent reads from it will return its default value.func clearFeatures(
) Clears the value of
features
. Subsequent reads from it will return its default value.func clearGoPackage(
) Clears the value of
goPackage
. Subsequent reads from it will return its default value.func clearJavaGenerateEqualsAndHash(
) Clears the value of
javaGenerateEqualsAndHash
. Subsequent reads from it will return its default value.func clearJavaGenericServices(
) Clears the value of
javaGenericServices
. Subsequent reads from it will return its default value.func clearJavaMultipleFiles(
) Clears the value of
javaMultipleFiles
. Subsequent reads from it will return its default value.func clearJavaOuterClassname(
) Clears the value of
javaOuterClassname
. Subsequent reads from it will return its default value.func clearJavaPackage(
) Clears the value of
javaPackage
. Subsequent reads from it will return its default value.func clearJavaStringCheckUtf8(
) Clears the value of
javaStringCheckUtf8
. Subsequent reads from it will return its default value.func clearObjcClassPrefix(
) Clears the value of
objcClassPrefix
. Subsequent reads from it will return its default value.func clearOptimizeFor(
) Clears the value of
optimizeFor
. Subsequent reads from it will return its default value.func clearPhpClassPrefix(
) Clears the value of
phpClassPrefix
. Subsequent reads from it will return its default value.func clearPhpMetadataNamespace(
) Clears the value of
phpMetadataNamespace
. Subsequent reads from it will return its default value.func clearPhpNamespace(
) Clears the value of
phpNamespace
. Subsequent reads from it will return its default value.func clearPyGenericServices(
) Clears the value of
pyGenericServices
. Subsequent reads from it will return its default value.func clearRubyPackage(
) Clears the value of
rubyPackage
. Subsequent reads from it will return its default value.func clearSwiftPrefix(
) Clears the value of
swiftPrefix
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws