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

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

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

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()
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()
    /**
     * 
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @return A list containing the fileToGenerate. */ public val fileToGenerate: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getFileToGenerateList() ) /** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @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) } /** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @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) } /** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @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) } /** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @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) } /** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; * @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) }/** *
     * The .proto files that were explicitly listed on the command-line.  The
     * code generator should generate code only for these files.  Each file's
     * descriptor will be included in proto_file, below.
     * 
* * repeated string file_to_generate = 1; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearFileToGenerate") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearFileToGenerate() } /** *
     * The generator parameter passed on the command-line.
     * 
* * optional string parameter = 2; */ public var parameter: kotlin.String @JvmName("getParameter") get() = _builder.getParameter() @JvmName("setParameter") set(value) { _builder.setParameter(value) } /** *
     * The generator parameter passed on the command-line.
     * 
* * optional string parameter = 2; */ public fun clearParameter() { _builder.clearParameter() } /** *
     * The generator parameter passed on the command-line.
     * 
* * optional string parameter = 2; * @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() /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; */ public val protoFile: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getProtoFileList() ) /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; * @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) } /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; * @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) } /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; * @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) } /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; * @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) } /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; * @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) } /** *
     * FileDescriptorProtos for all files in files_to_generate and everything
     * they import.  The files will appear in topological order, so each file
     * appears before any file that imports it.
     * protoc guarantees that all proto_files will be written after
     * the fields above, even though this is not technically guaranteed by the
     * protobuf wire format.  This theoretically could allow a plugin to stream
     * in the FileDescriptorProtos and handle them one by one rather than read
     * the entire set into memory at once.  However, as of this writing, this
     * is not similarly optimized on protoc's end -- it will store all fields in
     * memory at once before sending them to the plugin.
     * Type names of fields and extensions in the FileDescriptorProto are always
     * fully qualified.
     * 
* * repeated .google.protobuf.FileDescriptorProto proto_file = 15; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearProtoFile") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearProtoFile() } /** *
     * The version number of protocol compiler.
     * 
* * optional .google.protobuf.compiler.Version compiler_version = 3; */ public var compilerVersion: com.google.protobuf.compiler.PluginProtos.Version @JvmName("getCompilerVersion") get() = _builder.getCompilerVersion() @JvmName("setCompilerVersion") set(value) { _builder.setCompilerVersion(value) } /** *
     * The version number of protocol compiler.
     * 
* * optional .google.protobuf.compiler.Version compiler_version = 3; */ public fun clearCompilerVersion() { _builder.clearCompilerVersion() } /** *
     * The version number of protocol compiler.
     * 
* * optional .google.protobuf.compiler.Version compiler_version = 3; * @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() val com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequestOrBuilder.compilerVersionOrNull: com.google.protobuf.compiler.PluginProtos.Version? get() = if (hasCompilerVersion()) getCompilerVersion() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy