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("-initializefileDescriptorProto")
public inline fun fileDescriptorProto(block: com.google.protobuf.FileDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileDescriptorProto =
com.google.protobuf.FileDescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder()).apply { block() }._build()
/**
* ```
* Describes a complete .proto file.
* ```
*
* Protobuf type `google.protobuf.FileDescriptorProto`
*/
public object FileDescriptorProtoKt {
@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.FileDescriptorProto.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.FileDescriptorProto = _builder.build()
/**
* ```
* file name, relative to root of source tree
* ```
*
* `optional string name = 1;`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* ```
* file name, relative to root of source tree
* ```
*
* `optional string name = 1;`
*/
public fun clearName() {
_builder.clearName()
}
/**
* ```
* file name, relative to root of source tree
* ```
*
* `optional string name = 1;`
* @return Whether the name field is set.
*/
public fun hasName(): kotlin.Boolean {
return _builder.hasName()
}
/**
* ```
* e.g. "foo", "foo.bar", etc.
* ```
*
* `optional string package = 2;`
*/
public var package_: kotlin.String
@JvmName("getPackage_")
get() = _builder.getPackage()
@JvmName("setPackage_")
set(value) {
_builder.setPackage(value)
}
/**
* ```
* e.g. "foo", "foo.bar", etc.
* ```
*
* `optional string package = 2;`
*/
public fun clearPackage_() {
_builder.clearPackage()
}
/**
* ```
* e.g. "foo", "foo.bar", etc.
* ```
*
* `optional string package = 2;`
* @return Whether the package field is set.
*/
public fun hasPackage_(): kotlin.Boolean {
return _builder.hasPackage()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class DependencyProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @return A list containing the dependency.
*/
public val dependency: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getDependencyList()
)
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @param value The dependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addDependency")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addDependency(value)
}
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @param value The dependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @param values The dependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllDependency")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllDependency(values)
}
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @param values The dependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
* @param index The index to set the value at.
* @param value The dependency to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setDependency")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setDependency(index, value)
}/**
* ```
* Names of files imported by this file.
* ```
*
* `repeated string dependency = 3;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearDependency")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearDependency()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class PublicDependencyProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
*/
public val publicDependency: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getPublicDependencyList()
)
/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
* @param value The publicDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addPublicDependency")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) {
_builder.addPublicDependency(value)
}/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
* @param value The publicDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignPublicDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Int) {
add(value)
}/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
* @param values The publicDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllPublicDependency")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllPublicDependency(values)
}/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
* @param values The publicDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllPublicDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
* @param index The index to set the value at.
* @param value The publicDependency to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setPublicDependency")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Int) {
_builder.setPublicDependency(index, value)
}/**
* ```
* Indexes of the public imported files in the dependency list above.
* ```
*
* `repeated int32 public_dependency = 10;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearPublicDependency")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearPublicDependency()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class WeakDependencyProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
*/
public val weakDependency: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getWeakDependencyList()
)
/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
* @param value The weakDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addWeakDependency")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) {
_builder.addWeakDependency(value)
}/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
* @param value The weakDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignWeakDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Int) {
add(value)
}/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
* @param values The weakDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllWeakDependency")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllWeakDependency(values)
}/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
* @param values The weakDependency to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllWeakDependency")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
* @param index The index to set the value at.
* @param value The weakDependency to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setWeakDependency")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Int) {
_builder.setWeakDependency(index, value)
}/**
* ```
* Indexes of the weak imported files in the dependency list.
* For Google-internal migration only. Do not use.
* ```
*
* `repeated int32 weak_dependency = 11;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearWeakDependency")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearWeakDependency()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class MessageTypeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
*/
public val messageType: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getMessageTypeList()
)
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
* @param value The messageType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addMessageType")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
_builder.addMessageType(value)
}
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
* @param value The messageType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignMessageType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
add(value)
}
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
* @param values The messageType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllMessageType")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllMessageType(values)
}
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
* @param values The messageType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllMessageType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
* @param index The index to set the value at.
* @param value The messageType to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setMessageType")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.DescriptorProto) {
_builder.setMessageType(index, value)
}
/**
* ```
* All top-level definitions in this file.
* ```
*
* `repeated .google.protobuf.DescriptorProto message_type = 4;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearMessageType")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearMessageType()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class EnumTypeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
*/
public val enumType: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getEnumTypeList()
)
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
* @param value The enumType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addEnumType")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
_builder.addEnumType(value)
}
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
* @param value The enumType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignEnumType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
add(value)
}
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
* @param values The enumType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllEnumType")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllEnumType(values)
}
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
* @param values The enumType to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllEnumType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
* @param index The index to set the value at.
* @param value The enumType to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setEnumType")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.EnumDescriptorProto) {
_builder.setEnumType(index, value)
}
/**
* `repeated .google.protobuf.EnumDescriptorProto enum_type = 5;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearEnumType")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearEnumType()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ServiceProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
*/
public val service: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getServiceList()
)
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
* @param value The service to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addService")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) {
_builder.addService(value)
}
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
* @param value The service to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignService")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) {
add(value)
}
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
* @param values The service to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllService")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllService(values)
}
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
* @param values The service to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllService")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
* @param index The index to set the value at.
* @param value The service to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setService")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.ServiceDescriptorProto) {
_builder.setService(index, value)
}
/**
* `repeated .google.protobuf.ServiceDescriptorProto service = 6;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearService")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearService()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ExtensionProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
*/
public val extension: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getExtensionList()
)
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
* @param value The extension to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addExtension")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
_builder.addExtension(value)
}
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
* @param value The extension to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignExtension")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
add(value)
}
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
* @param values The extension to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllExtension")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllExtension(values)
}
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
* @param values The extension to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllExtension")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
* @param index The index to set the value at.
* @param value The extension to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setExtension")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FieldDescriptorProto) {
_builder.setExtension(index, value)
}
/**
* `repeated .google.protobuf.FieldDescriptorProto extension = 7;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearExtension")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearExtension()
}
/**
* `optional .google.protobuf.FileOptions options = 8;`
*/
public var options: com.google.protobuf.DescriptorProtos.FileOptions
@JvmName("getOptions")
get() = _builder.getOptions()
@JvmName("setOptions")
set(value) {
_builder.setOptions(value)
}
/**
* `optional .google.protobuf.FileOptions options = 8;`
*/
public fun clearOptions() {
_builder.clearOptions()
}
/**
* `optional .google.protobuf.FileOptions options = 8;`
* @return Whether the options field is set.
*/
public fun hasOptions(): kotlin.Boolean {
return _builder.hasOptions()
}
public val FileDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.FileOptions?
get() = _builder.optionsOrNull
/**
* ```
* 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.
* ```
*
* `optional .google.protobuf.SourceCodeInfo source_code_info = 9;`
*/
public var sourceCodeInfo: com.google.protobuf.DescriptorProtos.SourceCodeInfo
@JvmName("getSourceCodeInfo")
get() = _builder.getSourceCodeInfo()
@JvmName("setSourceCodeInfo")
set(value) {
_builder.setSourceCodeInfo(value)
}
/**
* ```
* 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.
* ```
*
* `optional .google.protobuf.SourceCodeInfo source_code_info = 9;`
*/
public fun clearSourceCodeInfo() {
_builder.clearSourceCodeInfo()
}
/**
* ```
* 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.
* ```
*
* `optional .google.protobuf.SourceCodeInfo source_code_info = 9;`
* @return Whether the sourceCodeInfo field is set.
*/
public fun hasSourceCodeInfo(): kotlin.Boolean {
return _builder.hasSourceCodeInfo()
}
public val FileDescriptorProtoKt.Dsl.sourceCodeInfoOrNull: com.google.protobuf.DescriptorProtos.SourceCodeInfo?
get() = _builder.sourceCodeInfoOrNull
/**
* ```
* The syntax of the proto file.
* The supported values are "proto2" and "proto3".
* ```
*
* `optional string syntax = 12;`
*/
public var syntax: kotlin.String
@JvmName("getSyntax")
get() = _builder.getSyntax()
@JvmName("setSyntax")
set(value) {
_builder.setSyntax(value)
}
/**
* ```
* The syntax of the proto file.
* The supported values are "proto2" and "proto3".
* ```
*
* `optional string syntax = 12;`
*/
public fun clearSyntax() {
_builder.clearSyntax()
}
/**
* ```
* The syntax of the proto file.
* The supported values are "proto2" and "proto3".
* ```
*
* `optional string syntax = 12;`
* @return Whether the syntax field is set.
*/
public fun hasSyntax(): kotlin.Boolean {
return _builder.hasSyntax()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.FileDescriptorProto.copy(block: `com.google.protobuf`.FileDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FileDescriptorProto =
`com.google.protobuf`.FileDescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.FileOptions?
get() = if (hasOptions()) getOptions() else null
public val com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder.sourceCodeInfoOrNull: com.google.protobuf.DescriptorProtos.SourceCodeInfo?
get() = if (hasSourceCodeInfo()) getSourceCodeInfo() else null