google.protobuf.FileOptions
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.google.protobuf.FileOptions
.withCcEnableArenas(false)
.withCcGenericServices(false)
.withCsharpNamespace('string')
.withDeprecated(false)
.withGoPackage('string')
.withJavaGenerateEqualsAndHash(false)
.withJavaGenericServices(false)
.withJavaMultipleFiles(false)
.withJavaOuterClassname('string')
.withJavaPackage('string')
.withJavaStringCheckUtf8(false)
.withObjcClassPrefix('string')
.withOptimizeFor(types.google.protobuf.FileOptions.OptimizeMode.SPEED)
.withPhpClassPrefix('string')
.withPhpGenericServices(false)
.withPhpMetadataNamespace('string')
.withPhpNamespace('string')
.withPyGenericServices(false)
.withRubyPackage('string')
.withSwiftPrefix('string')
.withUninterpretedOption([ types.google.protobuf.UninterpretedOption ])
._validate()
Nested Enums
Fields
Name |
Type |
One-of group |
Required |
Constraints |
cc_enable_arenas |
bool
|
|
|
|
cc_generic_services |
bool
|
|
|
|
csharp_namespace |
string
|
|
|
|
deprecated |
bool
|
|
|
|
go_package |
string
|
|
|
|
java_generate_equals_and_hash |
bool
|
|
|
|
java_generic_services |
bool
|
|
|
|
java_multiple_files |
bool
|
|
|
|
java_outer_classname |
string
|
|
|
|
java_package |
string
|
|
|
|
java_string_check_utf8 |
bool
|
|
|
|
objc_class_prefix |
string
|
|
|
|
optimize_for |
google.protobuf.FileOptions.OptimizeMode
|
|
|
|
php_class_prefix |
string
|
|
|
|
php_generic_services |
bool
|
|
|
|
php_metadata_namespace |
string
|
|
|
|
php_namespace |
string
|
|
|
|
py_generic_services |
bool
|
|
|
|
ruby_package |
string
|
|
|
|
swift_prefix |
string
|
|
|
|
uninterpreted_option |
[]
google.protobuf.UninterpretedOption
|
|
|
|