All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.ServiceOptionsKt.kt Maven / Gradle / Ivy

//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto

package com.google.protobuf;

@kotlin.jvm.JvmName("-initializeserviceOptions")
inline fun serviceOptions(block: com.google.protobuf.ServiceOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.ServiceOptions =
  com.google.protobuf.ServiceOptionsKt.Dsl._create(com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder()).apply { block() }._build()
object ServiceOptionsKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  class Dsl private constructor(
    private val _builder: com.google.protobuf.DescriptorProtos.ServiceOptions.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.ServiceOptions.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.DescriptorProtos.ServiceOptions = _builder.build()

    /**
     * 
     * Is this service deprecated?
     * Depending on the target platform, this can emit Deprecated annotations
     * for the service, or it will be completely ignored; in the very least,
     * this is a formalization for deprecating services.
     * 
* * optional bool deprecated = 33 [default = false]; */ var deprecated: kotlin.Boolean @JvmName("getDeprecated") get() = _builder.getDeprecated() @JvmName("setDeprecated") set(value) { _builder.setDeprecated(value) } /** *
     * Is this service deprecated?
     * Depending on the target platform, this can emit Deprecated annotations
     * for the service, or it will be completely ignored; in the very least,
     * this is a formalization for deprecating services.
     * 
* * optional bool deprecated = 33 [default = false]; */ fun clearDeprecated() { _builder.clearDeprecated() } /** *
     * Is this service deprecated?
     * Depending on the target platform, this can emit Deprecated annotations
     * for the service, or it will be completely ignored; in the very least,
     * this is a formalization for deprecating services.
     * 
* * optional bool deprecated = 33 [default = false]; * @return Whether the deprecated field is set. */ fun hasDeprecated(): kotlin.Boolean { return _builder.hasDeprecated() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) class UninterpretedOptionProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** *
     * The parser stores options it doesn't recognize here. See above.
     * 
* * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ 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 above.
     * 
* * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; * @param value The uninterpretedOption to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addUninterpretedOption") 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 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") 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 above.
     * 
* * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; * @param values The uninterpretedOption to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllUninterpretedOption") fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllUninterpretedOption(values) } /** *
     * The parser stores options it doesn't recognize here. See 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") 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 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") 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 above.
     * 
* * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearUninterpretedOption") fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearUninterpretedOption() } @Suppress("UNCHECKED_CAST") @kotlin.jvm.JvmSynthetic 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") 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 operator fun contains(extension: com.google.protobuf.ExtensionLite): Boolean { return _builder.hasExtension(extension) } @kotlin.jvm.JvmSynthetic fun clear(extension: com.google.protobuf.ExtensionLite) { _builder.clearExtension(extension) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun setExtension(extension: com.google.protobuf.ExtensionLite, value: T) { _builder.setExtension(extension, value) } @kotlin.jvm.JvmSynthetic @Suppress("NOTHING_TO_INLINE") inline operator fun > set( extension: com.google.protobuf.ExtensionLite, value: T ) { setExtension(extension, value) } @kotlin.jvm.JvmSynthetic @Suppress("NOTHING_TO_INLINE") inline operator fun set( extension: com.google.protobuf.ExtensionLite, value: com.google.protobuf.ByteString ) { setExtension(extension, value) } @kotlin.jvm.JvmSynthetic @Suppress("NOTHING_TO_INLINE") inline operator fun set( extension: com.google.protobuf.ExtensionLite, value: T ) { setExtension(extension, value) } @kotlin.jvm.JvmSynthetic fun com.google.protobuf.kotlin.ExtensionList.add(value: E) { _builder.addExtension(this.extension, value) } @kotlin.jvm.JvmSynthetic @Suppress("NOTHING_TO_INLINE") inline operator fun com.google.protobuf.kotlin.ExtensionList.plusAssign(value: E) { add(value) } @kotlin.jvm.JvmSynthetic fun com.google.protobuf.kotlin.ExtensionList.addAll(values: Iterable) { for (value in values) { add(value) } } @kotlin.jvm.JvmSynthetic @Suppress("NOTHING_TO_INLINE") inline operator fun com.google.protobuf.kotlin.ExtensionList.plusAssign(values: Iterable) { addAll(values) } @kotlin.jvm.JvmSynthetic 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") inline fun com.google.protobuf.kotlin.ExtensionList<*, com.google.protobuf.DescriptorProtos.ServiceOptions>.clear() { clear(extension) } } } @kotlin.jvm.JvmSynthetic inline fun com.google.protobuf.DescriptorProtos.ServiceOptions.copy(block: com.google.protobuf.ServiceOptionsKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.ServiceOptions = com.google.protobuf.ServiceOptionsKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy