com.google.protobuf.FieldOptionsKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin-lite Show documentation
Show all versions of protobuf-kotlin-lite Show documentation
Kotlin lite Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/descriptor.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializefieldOptions")
public inline fun fieldOptions(block: com.google.protobuf.FieldOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions =
com.google.protobuf.FieldOptionsKt.Dsl._create(com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.FieldOptions`
*/
public object FieldOptionsKt {
@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.FieldOptions.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.FieldOptions.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.FieldOptions = _builder.build()
/**
* `optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];`
*/
public var ctype: com.google.protobuf.DescriptorProtos.FieldOptions.CType
@kotlin.jvm.JvmName("getCtype")
get() = _builder.ctype
@kotlin.jvm.JvmName("setCtype")
set(value) {
_builder.ctype = value
}
/**
* `optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];`
*/
public fun clearCtype() {
_builder.clearCtype()
}
/**
* `optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];`
* @return Whether the ctype field is set.
*/
public fun hasCtype(): kotlin.Boolean {
return _builder.hasCtype()
}
/**
* optional bool packed = 2 [json_name = "packed"];
*/
public var packed: kotlin.Boolean
@kotlin.jvm.JvmName("getPacked")
get() = _builder.packed
@kotlin.jvm.JvmName("setPacked")
set(value) {
_builder.packed = value
}
/**
* `optional bool packed = 2 [json_name = "packed"];`
*/
public fun clearPacked() {
_builder.clearPacked()
}
/**
* `optional bool packed = 2 [json_name = "packed"];`
* @return Whether the packed field is set.
*/
public fun hasPacked(): kotlin.Boolean {
return _builder.hasPacked()
}
/**
* `optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];`
*/
public var jstype: com.google.protobuf.DescriptorProtos.FieldOptions.JSType
@kotlin.jvm.JvmName("getJstype")
get() = _builder.jstype
@kotlin.jvm.JvmName("setJstype")
set(value) {
_builder.jstype = value
}
/**
* `optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];`
*/
public fun clearJstype() {
_builder.clearJstype()
}
/**
* `optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];`
* @return Whether the jstype field is set.
*/
public fun hasJstype(): kotlin.Boolean {
return _builder.hasJstype()
}
/**
* optional bool lazy = 5 [default = false, json_name = "lazy"];
*/
public var lazy: kotlin.Boolean
@kotlin.jvm.JvmName("getLazy")
get() = _builder.lazy
@kotlin.jvm.JvmName("setLazy")
set(value) {
_builder.lazy = value
}
/**
* `optional bool lazy = 5 [default = false, json_name = "lazy"];`
*/
public fun clearLazy() {
_builder.clearLazy()
}
/**
* `optional bool lazy = 5 [default = false, json_name = "lazy"];`
* @return Whether the lazy field is set.
*/
public fun hasLazy(): kotlin.Boolean {
return _builder.hasLazy()
}
/**
* optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
*/
public var unverifiedLazy: kotlin.Boolean
@kotlin.jvm.JvmName("getUnverifiedLazy")
get() = _builder.unverifiedLazy
@kotlin.jvm.JvmName("setUnverifiedLazy")
set(value) {
_builder.unverifiedLazy = value
}
/**
* `optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];`
*/
public fun clearUnverifiedLazy() {
_builder.clearUnverifiedLazy()
}
/**
* `optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];`
* @return Whether the unverifiedLazy field is set.
*/
public fun hasUnverifiedLazy(): kotlin.Boolean {
return _builder.hasUnverifiedLazy()
}
/**
* optional bool deprecated = 3 [default = false, json_name = "deprecated"];
*/
public var deprecated: kotlin.Boolean
@kotlin.jvm.JvmName("getDeprecated")
get() = _builder.deprecated
@kotlin.jvm.JvmName("setDeprecated")
set(value) {
_builder.deprecated = value
}
/**
* `optional bool deprecated = 3 [default = false, json_name = "deprecated"];`
*/
public fun clearDeprecated() {
_builder.clearDeprecated()
}
/**
* `optional bool deprecated = 3 [default = false, json_name = "deprecated"];`
* @return Whether the deprecated field is set.
*/
public fun hasDeprecated(): kotlin.Boolean {
return _builder.hasDeprecated()
}
/**
* optional bool weak = 10 [default = false, json_name = "weak"];
*/
public var weak: kotlin.Boolean
@kotlin.jvm.JvmName("getWeak")
get() = _builder.weak
@kotlin.jvm.JvmName("setWeak")
set(value) {
_builder.weak = value
}
/**
* `optional bool weak = 10 [default = false, json_name = "weak"];`
*/
public fun clearWeak() {
_builder.clearWeak()
}
/**
* `optional bool weak = 10 [default = false, json_name = "weak"];`
* @return Whether the weak field is set.
*/
public fun hasWeak(): kotlin.Boolean {
return _builder.hasWeak()
}
/**
* optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
*/
public var debugRedact: kotlin.Boolean
@kotlin.jvm.JvmName("getDebugRedact")
get() = _builder.debugRedact
@kotlin.jvm.JvmName("setDebugRedact")
set(value) {
_builder.debugRedact = value
}
/**
* `optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];`
*/
public fun clearDebugRedact() {
_builder.clearDebugRedact()
}
/**
* `optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];`
* @return Whether the debugRedact field is set.
*/
public fun hasDebugRedact(): kotlin.Boolean {
return _builder.hasDebugRedact()
}
/**
* `optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];`
*/
public var retention: com.google.protobuf.DescriptorProtos.FieldOptions.OptionRetention
@kotlin.jvm.JvmName("getRetention")
get() = _builder.retention
@kotlin.jvm.JvmName("setRetention")
set(value) {
_builder.retention = value
}
/**
* `optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];`
*/
public fun clearRetention() {
_builder.clearRetention()
}
/**
* `optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];`
* @return Whether the retention field is set.
*/
public fun hasRetention(): kotlin.Boolean {
return _builder.hasRetention()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class TargetsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
*/
public val targets: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.targetsList
)
/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
* @param value The targets to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addTargets")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType) {
_builder.addTargets(value)
}/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
* @param value The targets to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignTargets")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType) {
add(value)
}/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
* @param values The targets to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllTargets")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllTargets(values)
}/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
* @param values The targets to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllTargets")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
* @param index The index to set the value at.
* @param value The targets to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setTargets")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType) {
_builder.setTargets(index, value)
}/**
* `repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearTargets")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearTargets()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class EditionDefaultsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
*/
public val editionDefaults: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.editionDefaultsList
)
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
* @param value The editionDefaults to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addEditionDefaults")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault) {
_builder.addEditionDefaults(value)
}
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
* @param value The editionDefaults to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignEditionDefaults")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault) {
add(value)
}
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
* @param values The editionDefaults to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllEditionDefaults")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllEditionDefaults(values)
}
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
* @param values The editionDefaults to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllEditionDefaults")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
* @param index The index to set the value at.
* @param value The editionDefaults to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setEditionDefaults")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault) {
_builder.setEditionDefaults(index, value)
}
/**
* `repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearEditionDefaults")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearEditionDefaults()
}
/**
* `optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];`
*/
public var features: com.google.protobuf.DescriptorProtos.FeatureSet
@kotlin.jvm.JvmName("getFeatures")
get() = _builder.features
@kotlin.jvm.JvmName("setFeatures")
set(value) {
_builder.features = value
}
/**
* `optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];`
*/
public fun clearFeatures() {
_builder.clearFeatures()
}
/**
* `optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];`
* @return Whether the features field is set.
*/
public fun hasFeatures(): kotlin.Boolean {
return _builder.hasFeatures()
}
public val FieldOptionsKt.Dsl.featuresOrNull: com.google.protobuf.DescriptorProtos.FeatureSet?
get() = _builder.featuresOrNull
/**
* `optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22 [json_name = "featureSupport"];`
*/
public var featureSupport: com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport
@kotlin.jvm.JvmName("getFeatureSupport")
get() = _builder.featureSupport
@kotlin.jvm.JvmName("setFeatureSupport")
set(value) {
_builder.featureSupport = value
}
/**
* `optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22 [json_name = "featureSupport"];`
*/
public fun clearFeatureSupport() {
_builder.clearFeatureSupport()
}
/**
* `optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22 [json_name = "featureSupport"];`
* @return Whether the featureSupport field is set.
*/
public fun hasFeatureSupport(): kotlin.Boolean {
return _builder.hasFeatureSupport()
}
public val FieldOptionsKt.Dsl.featureSupportOrNull: com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport?
get() = _builder.featureSupportOrNull
/**
* 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()
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
*/
public val uninterpretedOption: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.uninterpretedOptionList
)
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
* @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)
}
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
* @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)
}
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
* @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)
}
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
* @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)
}
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
* @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)
}
/**
* `repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];`
*/
@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.FieldOptions>.clear() {
clear(extension)
}
}
@kotlin.jvm.JvmName("-initializeeditionDefault")
public inline fun editionDefault(block: com.google.protobuf.FieldOptionsKt.EditionDefaultKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault =
com.google.protobuf.FieldOptionsKt.EditionDefaultKt.Dsl._create(com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.FieldOptions.EditionDefault`
*/
public object EditionDefaultKt {
@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.FieldOptions.EditionDefault.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault = _builder.build()
/**
* `optional .google.protobuf.Edition edition = 3 [json_name = "edition"];`
*/
public var edition: com.google.protobuf.DescriptorProtos.Edition
@kotlin.jvm.JvmName("getEdition")
get() = _builder.edition
@kotlin.jvm.JvmName("setEdition")
set(value) {
_builder.edition = value
}
/**
* `optional .google.protobuf.Edition edition = 3 [json_name = "edition"];`
*/
public fun clearEdition() {
_builder.clearEdition()
}
/**
* `optional .google.protobuf.Edition edition = 3 [json_name = "edition"];`
* @return Whether the edition field is set.
*/
public fun hasEdition(): kotlin.Boolean {
return _builder.hasEdition()
}
/**
* `optional string value = 2 [json_name = "value"];`
*/
public var value: kotlin.String
@kotlin.jvm.JvmName("getValue")
get() = _builder.value
@kotlin.jvm.JvmName("setValue")
set(value) {
_builder.value = value
}
/**
* `optional string value = 2 [json_name = "value"];`
*/
public fun clearValue() {
_builder.clearValue()
}
/**
* `optional string value = 2 [json_name = "value"];`
* @return Whether the value field is set.
*/
public fun hasValue(): kotlin.Boolean {
return _builder.hasValue()
}
}
}
@kotlin.jvm.JvmName("-initializefeatureSupport")
public inline fun featureSupport(block: com.google.protobuf.FieldOptionsKt.FeatureSupportKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport =
com.google.protobuf.FieldOptionsKt.FeatureSupportKt.Dsl._create(com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.FieldOptions.FeatureSupport`
*/
public object FeatureSupportKt {
@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.FieldOptions.FeatureSupport.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport = _builder.build()
/**
* `optional .google.protobuf.Edition edition_introduced = 1 [json_name = "editionIntroduced"];`
*/
public var editionIntroduced: com.google.protobuf.DescriptorProtos.Edition
@kotlin.jvm.JvmName("getEditionIntroduced")
get() = _builder.editionIntroduced
@kotlin.jvm.JvmName("setEditionIntroduced")
set(value) {
_builder.editionIntroduced = value
}
/**
* `optional .google.protobuf.Edition edition_introduced = 1 [json_name = "editionIntroduced"];`
*/
public fun clearEditionIntroduced() {
_builder.clearEditionIntroduced()
}
/**
* `optional .google.protobuf.Edition edition_introduced = 1 [json_name = "editionIntroduced"];`
* @return Whether the editionIntroduced field is set.
*/
public fun hasEditionIntroduced(): kotlin.Boolean {
return _builder.hasEditionIntroduced()
}
/**
* `optional .google.protobuf.Edition edition_deprecated = 2 [json_name = "editionDeprecated"];`
*/
public var editionDeprecated: com.google.protobuf.DescriptorProtos.Edition
@kotlin.jvm.JvmName("getEditionDeprecated")
get() = _builder.editionDeprecated
@kotlin.jvm.JvmName("setEditionDeprecated")
set(value) {
_builder.editionDeprecated = value
}
/**
* `optional .google.protobuf.Edition edition_deprecated = 2 [json_name = "editionDeprecated"];`
*/
public fun clearEditionDeprecated() {
_builder.clearEditionDeprecated()
}
/**
* `optional .google.protobuf.Edition edition_deprecated = 2 [json_name = "editionDeprecated"];`
* @return Whether the editionDeprecated field is set.
*/
public fun hasEditionDeprecated(): kotlin.Boolean {
return _builder.hasEditionDeprecated()
}
/**
* `optional string deprecation_warning = 3 [json_name = "deprecationWarning"];`
*/
public var deprecationWarning: kotlin.String
@kotlin.jvm.JvmName("getDeprecationWarning")
get() = _builder.deprecationWarning
@kotlin.jvm.JvmName("setDeprecationWarning")
set(value) {
_builder.deprecationWarning = value
}
/**
* `optional string deprecation_warning = 3 [json_name = "deprecationWarning"];`
*/
public fun clearDeprecationWarning() {
_builder.clearDeprecationWarning()
}
/**
* `optional string deprecation_warning = 3 [json_name = "deprecationWarning"];`
* @return Whether the deprecationWarning field is set.
*/
public fun hasDeprecationWarning(): kotlin.Boolean {
return _builder.hasDeprecationWarning()
}
/**
* `optional .google.protobuf.Edition edition_removed = 4 [json_name = "editionRemoved"];`
*/
public var editionRemoved: com.google.protobuf.DescriptorProtos.Edition
@kotlin.jvm.JvmName("getEditionRemoved")
get() = _builder.editionRemoved
@kotlin.jvm.JvmName("setEditionRemoved")
set(value) {
_builder.editionRemoved = value
}
/**
* `optional .google.protobuf.Edition edition_removed = 4 [json_name = "editionRemoved"];`
*/
public fun clearEditionRemoved() {
_builder.clearEditionRemoved()
}
/**
* `optional .google.protobuf.Edition edition_removed = 4 [json_name = "editionRemoved"];`
* @return Whether the editionRemoved field is set.
*/
public fun hasEditionRemoved(): kotlin.Boolean {
return _builder.hasEditionRemoved()
}
}
}
}
public inline fun com.google.protobuf.DescriptorProtos.FieldOptions.copy(block: `com.google.protobuf`.FieldOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions =
`com.google.protobuf`.FieldOptionsKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public inline fun com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault.copy(block: `com.google.protobuf`.FieldOptionsKt.EditionDefaultKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions.EditionDefault =
`com.google.protobuf`.FieldOptionsKt.EditionDefaultKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public inline fun com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport.copy(block: `com.google.protobuf`.FieldOptionsKt.FeatureSupportKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport =
`com.google.protobuf`.FieldOptionsKt.FeatureSupportKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder.featuresOrNull: com.google.protobuf.DescriptorProtos.FeatureSet?
get() = if (hasFeatures()) getFeatures() else null
public val com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder.featureSupportOrNull: com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport?
get() = if (hasFeatureSupport()) getFeatureSupport() else null
© 2015 - 2024 Weber Informatics LLC | Privacy Policy