Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializefileOptions")
public inline fun fileOptions(block: com.google.protobuf.FileOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileOptions =
com.google.protobuf.FileOptionsKt.Dsl._create(com.google.protobuf.DescriptorProtos.FileOptions.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.FileOptions`
*/
public object FileOptionsKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.DescriptorProtos.FileOptions.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.FileOptions.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.FileOptions = _builder.build()
/**
* ```
* 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.
* ```
*
* `optional string java_package = 1;`
*/
public var javaPackage: kotlin.String
@JvmName("getJavaPackage")
get() = _builder.getJavaPackage()
@JvmName("setJavaPackage")
set(value) {
_builder.setJavaPackage(value)
}
/**
* ```
* 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.
* ```
*
* `optional string java_package = 1;`
*/
public fun clearJavaPackage() {
_builder.clearJavaPackage()
}
/**
* ```
* 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.
* ```
*
* `optional string java_package = 1;`
* @return Whether the javaPackage field is set.
*/
public fun hasJavaPackage(): kotlin.Boolean {
return _builder.hasJavaPackage()
}
/**
* ```
* If set, all the classes from the .proto file are wrapped in a single
* outer class with the given name. This applies to both Proto1
* (equivalent to the old "--one_java_file" option) and Proto2 (where
* a .proto always translates to a single class, but you may want to
* explicitly choose the class name).
* ```
*
* `optional string java_outer_classname = 8;`
*/
public var javaOuterClassname: kotlin.String
@JvmName("getJavaOuterClassname")
get() = _builder.getJavaOuterClassname()
@JvmName("setJavaOuterClassname")
set(value) {
_builder.setJavaOuterClassname(value)
}
/**
* ```
* If set, all the classes from the .proto file are wrapped in a single
* outer class with the given name. This applies to both Proto1
* (equivalent to the old "--one_java_file" option) and Proto2 (where
* a .proto always translates to a single class, but you may want to
* explicitly choose the class name).
* ```
*
* `optional string java_outer_classname = 8;`
*/
public fun clearJavaOuterClassname() {
_builder.clearJavaOuterClassname()
}
/**
* ```
* If set, all the classes from the .proto file are wrapped in a single
* outer class with the given name. This applies to both Proto1
* (equivalent to the old "--one_java_file" option) and Proto2 (where
* a .proto always translates to a single class, but you may want to
* explicitly choose the class name).
* ```
*
* `optional string java_outer_classname = 8;`
* @return Whether the javaOuterClassname field is set.
*/
public fun hasJavaOuterClassname(): kotlin.Boolean {
return _builder.hasJavaOuterClassname()
}
/**
* ```
* If set true, 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 outer class
* named by java_outer_classname. However, the outer class will still be
* generated to contain the file's getDescriptor() method as well as any
* top-level extensions defined in the file.
* ```
*
* `optional bool java_multiple_files = 10 [default = false];`
*/
public var javaMultipleFiles: kotlin.Boolean
@JvmName("getJavaMultipleFiles")
get() = _builder.getJavaMultipleFiles()
@JvmName("setJavaMultipleFiles")
set(value) {
_builder.setJavaMultipleFiles(value)
}
/**
* ```
* If set true, 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 outer class
* named by java_outer_classname. However, the outer class will still be
* generated to contain the file's getDescriptor() method as well as any
* top-level extensions defined in the file.
* ```
*
* `optional bool java_multiple_files = 10 [default = false];`
*/
public fun clearJavaMultipleFiles() {
_builder.clearJavaMultipleFiles()
}
/**
* ```
* If set true, 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 outer class
* named by java_outer_classname. However, the outer class will still be
* generated to contain the file's getDescriptor() method as well as any
* top-level extensions defined in the file.
* ```
*
* `optional bool java_multiple_files = 10 [default = false];`
* @return Whether the javaMultipleFiles field is set.
*/
public fun hasJavaMultipleFiles(): kotlin.Boolean {
return _builder.hasJavaMultipleFiles()
}
/**
* ```
* This option does nothing.
* ```
*
* `optional bool java_generate_equals_and_hash = 20 [deprecated = true];`
*/
@kotlin.Deprecated(message = "Field javaGenerateEqualsAndHash is deprecated") public var javaGenerateEqualsAndHash: kotlin.Boolean
@JvmName("getJavaGenerateEqualsAndHash")
get() = _builder.getJavaGenerateEqualsAndHash()
@JvmName("setJavaGenerateEqualsAndHash")
set(value) {
_builder.setJavaGenerateEqualsAndHash(value)
}
/**
* ```
* This option does nothing.
* ```
*
* `optional bool java_generate_equals_and_hash = 20 [deprecated = true];`
*/
public fun clearJavaGenerateEqualsAndHash() {
_builder.clearJavaGenerateEqualsAndHash()
}
/**
* ```
* This option does nothing.
* ```
*
* `optional bool java_generate_equals_and_hash = 20 [deprecated = true];`
* @return Whether the javaGenerateEqualsAndHash field is set.
*/
public fun hasJavaGenerateEqualsAndHash(): kotlin.Boolean {
return _builder.hasJavaGenerateEqualsAndHash()
}
/**
* ```
* If set true, then the Java2 code generator will generate code that
* throws an exception whenever an attempt is made to assign a non-UTF-8
* byte sequence to a string field.
* Message reflection will do the same.
* However, an extension field still accepts non-UTF-8 byte sequences.
* This option has no effect on when used with the lite runtime.
* ```
*
* `optional bool java_string_check_utf8 = 27 [default = false];`
*/
public var javaStringCheckUtf8: kotlin.Boolean
@JvmName("getJavaStringCheckUtf8")
get() = _builder.getJavaStringCheckUtf8()
@JvmName("setJavaStringCheckUtf8")
set(value) {
_builder.setJavaStringCheckUtf8(value)
}
/**
* ```
* If set true, then the Java2 code generator will generate code that
* throws an exception whenever an attempt is made to assign a non-UTF-8
* byte sequence to a string field.
* Message reflection will do the same.
* However, an extension field still accepts non-UTF-8 byte sequences.
* This option has no effect on when used with the lite runtime.
* ```
*
* `optional bool java_string_check_utf8 = 27 [default = false];`
*/
public fun clearJavaStringCheckUtf8() {
_builder.clearJavaStringCheckUtf8()
}
/**
* ```
* If set true, then the Java2 code generator will generate code that
* throws an exception whenever an attempt is made to assign a non-UTF-8
* byte sequence to a string field.
* Message reflection will do the same.
* However, an extension field still accepts non-UTF-8 byte sequences.
* This option has no effect on when used with the lite runtime.
* ```
*
* `optional bool java_string_check_utf8 = 27 [default = false];`
* @return Whether the javaStringCheckUtf8 field is set.
*/
public fun hasJavaStringCheckUtf8(): kotlin.Boolean {
return _builder.hasJavaStringCheckUtf8()
}
/**
* `optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];`
*/
public var optimizeFor: com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode
@JvmName("getOptimizeFor")
get() = _builder.getOptimizeFor()
@JvmName("setOptimizeFor")
set(value) {
_builder.setOptimizeFor(value)
}
/**
* `optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];`
*/
public fun clearOptimizeFor() {
_builder.clearOptimizeFor()
}
/**
* `optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];`
* @return Whether the optimizeFor field is set.
*/
public fun hasOptimizeFor(): kotlin.Boolean {
return _builder.hasOptimizeFor()
}
/**
* ```
* Sets the Go package where structs generated from this .proto will be
* placed. If omitted, the Go package will be derived from the following:
* - The basename of the package import path, if provided.
* - Otherwise, the package statement in the .proto file, if present.
* - Otherwise, the basename of the .proto file, without extension.
* ```
*
* `optional string go_package = 11;`
*/
public var goPackage: kotlin.String
@JvmName("getGoPackage")
get() = _builder.getGoPackage()
@JvmName("setGoPackage")
set(value) {
_builder.setGoPackage(value)
}
/**
* ```
* Sets the Go package where structs generated from this .proto will be
* placed. If omitted, the Go package will be derived from the following:
* - The basename of the package import path, if provided.
* - Otherwise, the package statement in the .proto file, if present.
* - Otherwise, the basename of the .proto file, without extension.
* ```
*
* `optional string go_package = 11;`
*/
public fun clearGoPackage() {
_builder.clearGoPackage()
}
/**
* ```
* Sets the Go package where structs generated from this .proto will be
* placed. If omitted, the Go package will be derived from the following:
* - The basename of the package import path, if provided.
* - Otherwise, the package statement in the .proto file, if present.
* - Otherwise, the basename of the .proto file, without extension.
* ```
*
* `optional string go_package = 11;`
* @return Whether the goPackage field is set.
*/
public fun hasGoPackage(): kotlin.Boolean {
return _builder.hasGoPackage()
}
/**
* ```
* 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.
*
* Generic services are now considered deprecated in favor of using plugins
* that generate code specific to your particular RPC system. Therefore,
* these default to false. Old code which depends on generic services should
* explicitly set them to true.
* ```
*
* `optional bool cc_generic_services = 16 [default = false];`
*/
public var ccGenericServices: kotlin.Boolean
@JvmName("getCcGenericServices")
get() = _builder.getCcGenericServices()
@JvmName("setCcGenericServices")
set(value) {
_builder.setCcGenericServices(value)
}
/**
* ```
* 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.
*
* Generic services are now considered deprecated in favor of using plugins
* that generate code specific to your particular RPC system. Therefore,
* these default to false. Old code which depends on generic services should
* explicitly set them to true.
* ```
*
* `optional bool cc_generic_services = 16 [default = false];`
*/
public fun clearCcGenericServices() {
_builder.clearCcGenericServices()
}
/**
* ```
* 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.
*
* Generic services are now considered deprecated in favor of using plugins
* that generate code specific to your particular RPC system. Therefore,
* these default to false. Old code which depends on generic services should
* explicitly set them to true.
* ```
*
* `optional bool cc_generic_services = 16 [default = false];`
* @return Whether the ccGenericServices field is set.
*/
public fun hasCcGenericServices(): kotlin.Boolean {
return _builder.hasCcGenericServices()
}
/**
* `optional bool java_generic_services = 17 [default = false];`
*/
public var javaGenericServices: kotlin.Boolean
@JvmName("getJavaGenericServices")
get() = _builder.getJavaGenericServices()
@JvmName("setJavaGenericServices")
set(value) {
_builder.setJavaGenericServices(value)
}
/**
* `optional bool java_generic_services = 17 [default = false];`
*/
public fun clearJavaGenericServices() {
_builder.clearJavaGenericServices()
}
/**
* `optional bool java_generic_services = 17 [default = false];`
* @return Whether the javaGenericServices field is set.
*/
public fun hasJavaGenericServices(): kotlin.Boolean {
return _builder.hasJavaGenericServices()
}
/**
* `optional bool py_generic_services = 18 [default = false];`
*/
public var pyGenericServices: kotlin.Boolean
@JvmName("getPyGenericServices")
get() = _builder.getPyGenericServices()
@JvmName("setPyGenericServices")
set(value) {
_builder.setPyGenericServices(value)
}
/**
* `optional bool py_generic_services = 18 [default = false];`
*/
public fun clearPyGenericServices() {
_builder.clearPyGenericServices()
}
/**
* `optional bool py_generic_services = 18 [default = false];`
* @return Whether the pyGenericServices field is set.
*/
public fun hasPyGenericServices(): kotlin.Boolean {
return _builder.hasPyGenericServices()
}
/**
* `optional bool php_generic_services = 42 [default = false];`
*/
public var phpGenericServices: kotlin.Boolean
@JvmName("getPhpGenericServices")
get() = _builder.getPhpGenericServices()
@JvmName("setPhpGenericServices")
set(value) {
_builder.setPhpGenericServices(value)
}
/**
* `optional bool php_generic_services = 42 [default = false];`
*/
public fun clearPhpGenericServices() {
_builder.clearPhpGenericServices()
}
/**
* `optional bool php_generic_services = 42 [default = false];`
* @return Whether the phpGenericServices field is set.
*/
public fun hasPhpGenericServices(): kotlin.Boolean {
return _builder.hasPhpGenericServices()
}
/**
* ```
* 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.
* ```
*
* `optional bool deprecated = 23 [default = false];`
*/
public var deprecated: kotlin.Boolean
@JvmName("getDeprecated")
get() = _builder.getDeprecated()
@JvmName("setDeprecated")
set(value) {
_builder.setDeprecated(value)
}
/**
* ```
* 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.
* ```
*
* `optional bool deprecated = 23 [default = false];`
*/
public fun clearDeprecated() {
_builder.clearDeprecated()
}
/**
* ```
* 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.
* ```
*
* `optional bool deprecated = 23 [default = false];`
* @return Whether the deprecated field is set.
*/
public fun hasDeprecated(): kotlin.Boolean {
return _builder.hasDeprecated()
}
/**
* ```
* Enables the use of arenas for the proto messages in this file. This applies
* only to generated classes for C++.
* ```
*
* `optional bool cc_enable_arenas = 31 [default = true];`
*/
public var ccEnableArenas: kotlin.Boolean
@JvmName("getCcEnableArenas")
get() = _builder.getCcEnableArenas()
@JvmName("setCcEnableArenas")
set(value) {
_builder.setCcEnableArenas(value)
}
/**
* ```
* Enables the use of arenas for the proto messages in this file. This applies
* only to generated classes for C++.
* ```
*
* `optional bool cc_enable_arenas = 31 [default = true];`
*/
public fun clearCcEnableArenas() {
_builder.clearCcEnableArenas()
}
/**
* ```
* Enables the use of arenas for the proto messages in this file. This applies
* only to generated classes for C++.
* ```
*
* `optional bool cc_enable_arenas = 31 [default = true];`
* @return Whether the ccEnableArenas field is set.
*/
public fun hasCcEnableArenas(): kotlin.Boolean {
return _builder.hasCcEnableArenas()
}
/**
* ```
* Sets the objective c class prefix which is prepended to all objective c
* generated classes from this .proto. There is no default.
* ```
*
* `optional string objc_class_prefix = 36;`
*/
public var objcClassPrefix: kotlin.String
@JvmName("getObjcClassPrefix")
get() = _builder.getObjcClassPrefix()
@JvmName("setObjcClassPrefix")
set(value) {
_builder.setObjcClassPrefix(value)
}
/**
* ```
* Sets the objective c class prefix which is prepended to all objective c
* generated classes from this .proto. There is no default.
* ```
*
* `optional string objc_class_prefix = 36;`
*/
public fun clearObjcClassPrefix() {
_builder.clearObjcClassPrefix()
}
/**
* ```
* Sets the objective c class prefix which is prepended to all objective c
* generated classes from this .proto. There is no default.
* ```
*
* `optional string objc_class_prefix = 36;`
* @return Whether the objcClassPrefix field is set.
*/
public fun hasObjcClassPrefix(): kotlin.Boolean {
return _builder.hasObjcClassPrefix()
}
/**
* ```
* Namespace for generated classes; defaults to the package.
* ```
*
* `optional string csharp_namespace = 37;`
*/
public var csharpNamespace: kotlin.String
@JvmName("getCsharpNamespace")
get() = _builder.getCsharpNamespace()
@JvmName("setCsharpNamespace")
set(value) {
_builder.setCsharpNamespace(value)
}
/**
* ```
* Namespace for generated classes; defaults to the package.
* ```
*
* `optional string csharp_namespace = 37;`
*/
public fun clearCsharpNamespace() {
_builder.clearCsharpNamespace()
}
/**
* ```
* Namespace for generated classes; defaults to the package.
* ```
*
* `optional string csharp_namespace = 37;`
* @return Whether the csharpNamespace field is set.
*/
public fun hasCsharpNamespace(): kotlin.Boolean {
return _builder.hasCsharpNamespace()
}
/**
* ```
* 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.
* ```
*
* `optional string swift_prefix = 39;`
*/
public var swiftPrefix: kotlin.String
@JvmName("getSwiftPrefix")
get() = _builder.getSwiftPrefix()
@JvmName("setSwiftPrefix")
set(value) {
_builder.setSwiftPrefix(value)
}
/**
* ```
* 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.
* ```
*
* `optional string swift_prefix = 39;`
*/
public fun clearSwiftPrefix() {
_builder.clearSwiftPrefix()
}
/**
* ```
* 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.
* ```
*
* `optional string swift_prefix = 39;`
* @return Whether the swiftPrefix field is set.
*/
public fun hasSwiftPrefix(): kotlin.Boolean {
return _builder.hasSwiftPrefix()
}
/**
* ```
* Sets the php class prefix which is prepended to all php generated classes
* from this .proto. Default is empty.
* ```
*
* `optional string php_class_prefix = 40;`
*/
public var phpClassPrefix: kotlin.String
@JvmName("getPhpClassPrefix")
get() = _builder.getPhpClassPrefix()
@JvmName("setPhpClassPrefix")
set(value) {
_builder.setPhpClassPrefix(value)
}
/**
* ```
* Sets the php class prefix which is prepended to all php generated classes
* from this .proto. Default is empty.
* ```
*
* `optional string php_class_prefix = 40;`
*/
public fun clearPhpClassPrefix() {
_builder.clearPhpClassPrefix()
}
/**
* ```
* Sets the php class prefix which is prepended to all php generated classes
* from this .proto. Default is empty.
* ```
*
* `optional string php_class_prefix = 40;`
* @return Whether the phpClassPrefix field is set.
*/
public fun hasPhpClassPrefix(): kotlin.Boolean {
return _builder.hasPhpClassPrefix()
}
/**
* ```
* 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.
* ```
*
* `optional string php_namespace = 41;`
*/
public var phpNamespace: kotlin.String
@JvmName("getPhpNamespace")
get() = _builder.getPhpNamespace()
@JvmName("setPhpNamespace")
set(value) {
_builder.setPhpNamespace(value)
}
/**
* ```
* 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.
* ```
*
* `optional string php_namespace = 41;`
*/
public fun clearPhpNamespace() {
_builder.clearPhpNamespace()
}
/**
* ```
* 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.
* ```
*
* `optional string php_namespace = 41;`
* @return Whether the phpNamespace field is set.
*/
public fun hasPhpNamespace(): kotlin.Boolean {
return _builder.hasPhpNamespace()
}
/**
* ```
* 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.
* ```
*
* `optional string php_metadata_namespace = 44;`
*/
public var phpMetadataNamespace: kotlin.String
@JvmName("getPhpMetadataNamespace")
get() = _builder.getPhpMetadataNamespace()
@JvmName("setPhpMetadataNamespace")
set(value) {
_builder.setPhpMetadataNamespace(value)
}
/**
* ```
* 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.
* ```
*
* `optional string php_metadata_namespace = 44;`
*/
public fun clearPhpMetadataNamespace() {
_builder.clearPhpMetadataNamespace()
}
/**
* ```
* 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.
* ```
*
* `optional string php_metadata_namespace = 44;`
* @return Whether the phpMetadataNamespace field is set.
*/
public fun hasPhpMetadataNamespace(): kotlin.Boolean {
return _builder.hasPhpMetadataNamespace()
}
/**
* ```
* 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.
* ```
*
* `optional string ruby_package = 45;`
*/
public var rubyPackage: kotlin.String
@JvmName("getRubyPackage")
get() = _builder.getRubyPackage()
@JvmName("setRubyPackage")
set(value) {
_builder.setRubyPackage(value)
}
/**
* ```
* 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.
* ```
*
* `optional string ruby_package = 45;`
*/
public fun clearRubyPackage() {
_builder.clearRubyPackage()
}
/**
* ```
* 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.
* ```
*
* `optional string ruby_package = 45;`
* @return Whether the rubyPackage field is set.
*/
public fun hasRubyPackage(): kotlin.Boolean {
return _builder.hasRubyPackage()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class UninterpretedOptionProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
*/
public val uninterpretedOption: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getUninterpretedOptionList()
)
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
* @param value The uninterpretedOption to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addUninterpretedOption")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.UninterpretedOption) {
_builder.addUninterpretedOption(value)
}
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
* @param value The uninterpretedOption to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignUninterpretedOption")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.UninterpretedOption) {
add(value)
}
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
* @param values The uninterpretedOption to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllUninterpretedOption")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllUninterpretedOption(values)
}
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
* @param values The uninterpretedOption to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllUninterpretedOption")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
* @param index The index to set the value at.
* @param value The uninterpretedOption to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setUninterpretedOption")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.UninterpretedOption) {
_builder.setUninterpretedOption(index, value)
}
/**
* ```
* The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above.
* ```
*
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearUninterpretedOption")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearUninterpretedOption()
}
@Suppress("UNCHECKED_CAST")
@kotlin.jvm.JvmSynthetic
public operator fun get(extension: com.google.protobuf.ExtensionLite): T {
return if (extension.isRepeated) {
get(extension as com.google.protobuf.ExtensionLite>) as T
} else {
_builder.getExtension(extension)
}
}
@kotlin.jvm.JvmSynthetic
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@kotlin.jvm.JvmName("-getRepeatedExtension")
public operator fun get(
extension: com.google.protobuf.ExtensionLite>
): com.google.protobuf.kotlin.ExtensionList {
return com.google.protobuf.kotlin.ExtensionList(extension, _builder.getExtension(extension))
}
@kotlin.jvm.JvmSynthetic
public operator fun contains(extension: com.google.protobuf.ExtensionLite): Boolean {
return _builder.hasExtension(extension)
}
@kotlin.jvm.JvmSynthetic
public fun clear(extension: com.google.protobuf.ExtensionLite) {
_builder.clearExtension(extension)
}
@kotlin.jvm.JvmSynthetic
public fun setExtension(extension: com.google.protobuf.ExtensionLite, value: T) {
_builder.setExtension(extension, value)
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline operator fun > set(
extension: com.google.protobuf.ExtensionLite,
value: T
) {
setExtension(extension, value)
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline operator fun set(
extension: com.google.protobuf.ExtensionLite,
value: com.google.protobuf.ByteString
) {
setExtension(extension, value)
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline operator fun set(
extension: com.google.protobuf.ExtensionLite,
value: T
) {
setExtension(extension, value)
}
@kotlin.jvm.JvmSynthetic
public fun com.google.protobuf.kotlin.ExtensionList.add(value: E) {
_builder.addExtension(this.extension, value)
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.ExtensionList.plusAssign(value: E) {
add(value)
}
@kotlin.jvm.JvmSynthetic
public fun com.google.protobuf.kotlin.ExtensionList.addAll(values: Iterable) {
for (value in values) {
add(value)
}
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.ExtensionList.plusAssign(values: Iterable) {
addAll(values)
}
@kotlin.jvm.JvmSynthetic
public operator fun com.google.protobuf.kotlin.ExtensionList.set(index: Int, value: E) {
_builder.setExtension(this.extension, index, value)
}
@kotlin.jvm.JvmSynthetic
@Suppress("NOTHING_TO_INLINE")
public inline fun com.google.protobuf.kotlin.ExtensionList<*, com.google.protobuf.DescriptorProtos.FileOptions>.clear() {
clear(extension)
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.FileOptions.copy(block: `com.google.protobuf`.FileOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileOptions =
`com.google.protobuf`.FileOptionsKt.Dsl._create(this.toBuilder()).apply { block() }._build()