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

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

// 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("-initializeserviceDescriptorProto")
public inline fun serviceDescriptorProto(block: com.google.protobuf.ServiceDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.ServiceDescriptorProto =
  com.google.protobuf.ServiceDescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder()).apply { block() }._build()
/**
 * ```
 * Describes a service.
 * ```
 *
 * Protobuf type `google.protobuf.ServiceDescriptorProto`
 */
public object ServiceDescriptorProtoKt {
  @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.ServiceDescriptorProto.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * `optional string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * `optional string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }
    /**
     * `optional string name = 1;`
     * @return Whether the name field is set.
     */
    public fun hasName(): kotlin.Boolean {
      return _builder.hasName()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class MethodProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     */
     public val method: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getMethodList()
      )
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     * @param value The method to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addMethod")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.MethodDescriptorProto) {
      _builder.addMethod(value)
    }
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     * @param value The method to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignMethod")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.MethodDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     * @param values The method to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllMethod")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllMethod(values)
    }
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     * @param values The method to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllMethod")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     * @param index The index to set the value at.
     * @param value The method to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setMethod")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.MethodDescriptorProto) {
      _builder.setMethod(index, value)
    }
    /**
     * `repeated .google.protobuf.MethodDescriptorProto method = 2;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMethod")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMethod()
    }


    /**
     * `optional .google.protobuf.ServiceOptions options = 3;`
     */
    public var options: com.google.protobuf.DescriptorProtos.ServiceOptions
      @JvmName("getOptions")
      get() = _builder.getOptions()
      @JvmName("setOptions")
      set(value) {
        _builder.setOptions(value)
      }
    /**
     * `optional .google.protobuf.ServiceOptions options = 3;`
     */
    public fun clearOptions() {
      _builder.clearOptions()
    }
    /**
     * `optional .google.protobuf.ServiceOptions options = 3;`
     * @return Whether the options field is set.
     */
    public fun hasOptions(): kotlin.Boolean {
      return _builder.hasOptions()
    }
    public val ServiceDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.ServiceOptions?
      get() = _builder.optionsOrNull
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.copy(block: `com.google.protobuf`.ServiceDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.ServiceDescriptorProto =
  `com.google.protobuf`.ServiceDescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.ServiceOptions?
  get() = if (hasOptions()) getOptions() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy