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

package com.google.protobuf;

@kotlin.jvm.JvmSynthetic
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()
object MethodKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  class Dsl private constructor(
    private val _builder: com.google.protobuf.Method.Builder
  ) {
    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; */ 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; */ fun clearName() { _builder.clearName() } /** *
     * A URL of the input message type.
     * 
* * string request_type_url = 2; */ 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; */ fun clearRequestTypeUrl() { _builder.clearRequestTypeUrl() } /** *
     * If true, the request is streamed.
     * 
* * bool request_streaming = 3; */ 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; */ fun clearRequestStreaming() { _builder.clearRequestStreaming() } /** *
     * The URL of the output message type.
     * 
* * string response_type_url = 4; */ 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; */ fun clearResponseTypeUrl() { _builder.clearResponseTypeUrl() } /** *
     * If true, the response is streamed.
     * 
* * bool response_streaming = 5; */ 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; */ fun clearResponseStreaming() { _builder.clearResponseStreaming() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) class OptionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** *
     * Any metadata attached to the method.
     * 
* * repeated .google.protobuf.Option options = 6; */ 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") 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") 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") 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") 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") 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") fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearOptions() } /** *
     * The source syntax of this method.
     * 
* * .google.protobuf.Syntax syntax = 7; */ var syntax: com.google.protobuf.Syntax @JvmName("getSyntax") get() = _builder.getSyntax() @JvmName("setSyntax") set(value) { _builder.setSyntax(value) } /** *
     * The source syntax of this method.
     * 
* * .google.protobuf.Syntax syntax = 7; */ fun clearSyntax() { _builder.clearSyntax() } } } 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