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

com.google.protobuf.compiler.CodeGeneratorRequestKt.kt Maven / Gradle / Ivy

Go to download

Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

There is a newer version: 4.29.2
Show newest version
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/compiler/plugin.proto

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

@kotlin.jvm.JvmName("-initializecodeGeneratorRequest")
public inline fun codeGeneratorRequest(block: com.google.protobuf.compiler.CodeGeneratorRequestKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest =
  com.google.protobuf.compiler.CodeGeneratorRequestKt.Dsl._create(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `google.protobuf.compiler.CodeGeneratorRequest`
 */
public object CodeGeneratorRequestKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class FileToGenerateProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @return A list containing the fileToGenerate.
     */
    public val fileToGenerate: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.fileToGenerateList
      )
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @param value The fileToGenerate to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addFileToGenerate")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addFileToGenerate(value)
    }
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @param value The fileToGenerate to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignFileToGenerate")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @param values The fileToGenerate to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllFileToGenerate")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllFileToGenerate(values)
    }
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @param values The fileToGenerate to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllFileToGenerate")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     * @param index The index to set the value at.
     * @param value The fileToGenerate to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setFileToGenerate")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setFileToGenerate(index, value)
    }/**
     * `repeated string file_to_generate = 1 [json_name = "fileToGenerate"];`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearFileToGenerate")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearFileToGenerate()
    }
    /**
     * `optional string parameter = 2 [json_name = "parameter"];`
     */
    public var parameter: kotlin.String
      @JvmName("getParameter")
      get() = _builder.parameter
      @JvmName("setParameter")
      set(value) {
        _builder.parameter = value
      }
    /**
     * `optional string parameter = 2 [json_name = "parameter"];`
     */
    public fun clearParameter() {
      _builder.clearParameter()
    }
    /**
     * `optional string parameter = 2 [json_name = "parameter"];`
     * @return Whether the parameter field is set.
     */
    public fun hasParameter(): kotlin.Boolean {
      return _builder.hasParameter()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ProtoFileProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     */
     public val protoFile: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.protoFileList
      )
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     * @param value The protoFile to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addProtoFile")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.addProtoFile(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     * @param value The protoFile to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignProtoFile")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     * @param values The protoFile to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllProtoFile")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllProtoFile(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     * @param values The protoFile to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllProtoFile")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     * @param index The index to set the value at.
     * @param value The protoFile to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setProtoFile")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.setProtoFile(index, value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto proto_file = 15 [json_name = "protoFile"];`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearProtoFile")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearProtoFile()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class SourceFileDescriptorsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     */
     public val sourceFileDescriptors: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.sourceFileDescriptorsList
      )
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     * @param value The sourceFileDescriptors to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addSourceFileDescriptors")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.addSourceFileDescriptors(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     * @param value The sourceFileDescriptors to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignSourceFileDescriptors")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      add(value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     * @param values The sourceFileDescriptors to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllSourceFileDescriptors")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllSourceFileDescriptors(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     * @param values The sourceFileDescriptors to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllSourceFileDescriptors")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     * @param index The index to set the value at.
     * @param value The sourceFileDescriptors to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setSourceFileDescriptors")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.DescriptorProtos.FileDescriptorProto) {
      _builder.setSourceFileDescriptors(index, value)
    }
    /**
     * `repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearSourceFileDescriptors")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearSourceFileDescriptors()
    }


    /**
     * `optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];`
     */
    public var compilerVersion: com.google.protobuf.compiler.PluginProtos.Version
      @JvmName("getCompilerVersion")
      get() = _builder.compilerVersion
      @JvmName("setCompilerVersion")
      set(value) {
        _builder.compilerVersion = value
      }
    /**
     * `optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];`
     */
    public fun clearCompilerVersion() {
      _builder.clearCompilerVersion()
    }
    /**
     * `optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];`
     * @return Whether the compilerVersion field is set.
     */
    public fun hasCompilerVersion(): kotlin.Boolean {
      return _builder.hasCompilerVersion()
    }

    public val CodeGeneratorRequestKt.Dsl.compilerVersionOrNull: com.google.protobuf.compiler.PluginProtos.Version?
      get() = _builder.compilerVersionOrNull
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.copy(block: `com.google.protobuf.compiler`.CodeGeneratorRequestKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest =
  `com.google.protobuf.compiler`.CodeGeneratorRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequestOrBuilder.compilerVersionOrNull: com.google.protobuf.compiler.PluginProtos.Version?
  get() = if (hasCompilerVersion()) getCompilerVersion() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy