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

com.google.protobuf.MethodDescriptorProtoKt.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("-initializemethodDescriptorProto")
public inline fun methodDescriptorProto(block: com.google.protobuf.MethodDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.MethodDescriptorProto =
  com.google.protobuf.MethodDescriptorProtoKt.Dsl._create(com.google.protobuf.DescriptorProtos.MethodDescriptorProto.newBuilder()).apply { block() }._build()
public object MethodDescriptorProtoKt {
  @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.MethodDescriptorProto.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.DescriptorProtos.MethodDescriptorProto.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.DescriptorProtos.MethodDescriptorProto = _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()
    }

    /**
     * 
     * Input and output type names.  These are resolved in the same way as
     * FieldDescriptorProto.type_name, but must refer to a message type.
     * 
* * optional string input_type = 2; */ public var inputType: kotlin.String @JvmName("getInputType") get() = _builder.getInputType() @JvmName("setInputType") set(value) { _builder.setInputType(value) } /** *
     * Input and output type names.  These are resolved in the same way as
     * FieldDescriptorProto.type_name, but must refer to a message type.
     * 
* * optional string input_type = 2; */ public fun clearInputType() { _builder.clearInputType() } /** *
     * Input and output type names.  These are resolved in the same way as
     * FieldDescriptorProto.type_name, but must refer to a message type.
     * 
* * optional string input_type = 2; * @return Whether the inputType field is set. */ public fun hasInputType(): kotlin.Boolean { return _builder.hasInputType() } /** * optional string output_type = 3; */ public var outputType: kotlin.String @JvmName("getOutputType") get() = _builder.getOutputType() @JvmName("setOutputType") set(value) { _builder.setOutputType(value) } /** * optional string output_type = 3; */ public fun clearOutputType() { _builder.clearOutputType() } /** * optional string output_type = 3; * @return Whether the outputType field is set. */ public fun hasOutputType(): kotlin.Boolean { return _builder.hasOutputType() } /** * optional .google.protobuf.MethodOptions options = 4; */ public var options: com.google.protobuf.DescriptorProtos.MethodOptions @JvmName("getOptions") get() = _builder.getOptions() @JvmName("setOptions") set(value) { _builder.setOptions(value) } /** * optional .google.protobuf.MethodOptions options = 4; */ public fun clearOptions() { _builder.clearOptions() } /** * optional .google.protobuf.MethodOptions options = 4; * @return Whether the options field is set. */ public fun hasOptions(): kotlin.Boolean { return _builder.hasOptions() } public val MethodDescriptorProtoKt.Dsl.optionsOrNull: com.google.protobuf.DescriptorProtos.MethodOptions? get() = _builder.optionsOrNull /** *
     * Identifies if client streams multiple client messages
     * 
* * optional bool client_streaming = 5 [default = false]; */ public var clientStreaming: kotlin.Boolean @JvmName("getClientStreaming") get() = _builder.getClientStreaming() @JvmName("setClientStreaming") set(value) { _builder.setClientStreaming(value) } /** *
     * Identifies if client streams multiple client messages
     * 
* * optional bool client_streaming = 5 [default = false]; */ public fun clearClientStreaming() { _builder.clearClientStreaming() } /** *
     * Identifies if client streams multiple client messages
     * 
* * optional bool client_streaming = 5 [default = false]; * @return Whether the clientStreaming field is set. */ public fun hasClientStreaming(): kotlin.Boolean { return _builder.hasClientStreaming() } /** *
     * Identifies if server streams multiple server messages
     * 
* * optional bool server_streaming = 6 [default = false]; */ public var serverStreaming: kotlin.Boolean @JvmName("getServerStreaming") get() = _builder.getServerStreaming() @JvmName("setServerStreaming") set(value) { _builder.setServerStreaming(value) } /** *
     * Identifies if server streams multiple server messages
     * 
* * optional bool server_streaming = 6 [default = false]; */ public fun clearServerStreaming() { _builder.clearServerStreaming() } /** *
     * Identifies if server streams multiple server messages
     * 
* * optional bool server_streaming = 6 [default = false]; * @return Whether the serverStreaming field is set. */ public fun hasServerStreaming(): kotlin.Boolean { return _builder.hasServerStreaming() } } } @kotlin.jvm.JvmSynthetic public inline fun com.google.protobuf.DescriptorProtos.MethodDescriptorProto.copy(block: com.google.protobuf.MethodDescriptorProtoKt.Dsl.() -> kotlin.Unit): com.google.protobuf.DescriptorProtos.MethodDescriptorProto = com.google.protobuf.MethodDescriptorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build() val com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder.optionsOrNull: com.google.protobuf.DescriptorProtos.MethodOptions? get() = if (hasOptions()) getOptions() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy