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

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

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

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;

@kotlin.jvm.JvmName("-initializemethod")
public inline fun method(block: com.google.protobuf.MethodKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Method =
  com.google.protobuf.MethodKt.Dsl._create(com.google.protobuf.Method.newBuilder()).apply { block() }._build()
/**
 * ```
 * Method represents a method of an API interface.
 * ```
 *
 * Protobuf type `google.protobuf.Method`
 */
public object MethodKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.Method.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.Method.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The simple name of this method.
     * ```
     *
     * `string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * ```
     * The simple name of this method.
     * ```
     *
     * `string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * ```
     * A URL of the input message type.
     * ```
     *
     * `string request_type_url = 2;`
     */
    public var requestTypeUrl: kotlin.String
      @JvmName("getRequestTypeUrl")
      get() = _builder.getRequestTypeUrl()
      @JvmName("setRequestTypeUrl")
      set(value) {
        _builder.setRequestTypeUrl(value)
      }
    /**
     * ```
     * A URL of the input message type.
     * ```
     *
     * `string request_type_url = 2;`
     */
    public fun clearRequestTypeUrl() {
      _builder.clearRequestTypeUrl()
    }

    /**
     * 
     * If true, the request is streamed.
     * 
* * bool request_streaming = 3; */ public var requestStreaming: kotlin.Boolean @JvmName("getRequestStreaming") get() = _builder.getRequestStreaming() @JvmName("setRequestStreaming") set(value) { _builder.setRequestStreaming(value) } /** * ``` * If true, the request is streamed. * ``` * * `bool request_streaming = 3;` */ public fun clearRequestStreaming() { _builder.clearRequestStreaming() } /** * ``` * The URL of the output message type. * ``` * * `string response_type_url = 4;` */ public var responseTypeUrl: kotlin.String @JvmName("getResponseTypeUrl") get() = _builder.getResponseTypeUrl() @JvmName("setResponseTypeUrl") set(value) { _builder.setResponseTypeUrl(value) } /** * ``` * The URL of the output message type. * ``` * * `string response_type_url = 4;` */ public fun clearResponseTypeUrl() { _builder.clearResponseTypeUrl() } /** *
     * If true, the response is streamed.
     * 
* * bool response_streaming = 5; */ public var responseStreaming: kotlin.Boolean @JvmName("getResponseStreaming") get() = _builder.getResponseStreaming() @JvmName("setResponseStreaming") set(value) { _builder.setResponseStreaming(value) } /** * ``` * If true, the response is streamed. * ``` * * `bool response_streaming = 5;` */ public fun clearResponseStreaming() { _builder.clearResponseStreaming() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class OptionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` */ public val options: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getOptionsList() ) /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` * @param value The options to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addOptions") public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Option) { _builder.addOptions(value) } /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` * @param value The options to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignOptions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Option) { add(value) } /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` * @param values The options to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllOptions") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllOptions(values) } /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` * @param values The options to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllOptions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` * @param index The index to set the value at. * @param value The options to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setOptions") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Option) { _builder.setOptions(index, value) } /** * ``` * Any metadata attached to the method. * ``` * * `repeated .google.protobuf.Option options = 6;` */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearOptions") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearOptions() } /** * ``` * The source syntax of this method. * ``` * * `.google.protobuf.Syntax syntax = 7;` */ public var syntax: com.google.protobuf.Syntax @JvmName("getSyntax") get() = _builder.getSyntax() @JvmName("setSyntax") set(value) { _builder.setSyntax(value) } public var syntaxValue: kotlin.Int @JvmName("getSyntaxValue") get() = _builder.getSyntaxValue() @JvmName("setSyntaxValue") set(value) { _builder.setSyntaxValue(value) } /** * ``` * The source syntax of this method. * ``` * * `.google.protobuf.Syntax syntax = 7;` */ public fun clearSyntax() { _builder.clearSyntax() } } } public inline fun com.google.protobuf.Method.copy(block: com.google.protobuf.MethodKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Method = com.google.protobuf.MethodKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy