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

com.google.protobuf.compiler.CodeGeneratorResponseKt.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("-initializecodeGeneratorResponse")
inline fun codeGeneratorResponse(block: com.google.protobuf.compiler.CodeGeneratorResponseKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse =
  com.google.protobuf.compiler.CodeGeneratorResponseKt.Dsl._create(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.newBuilder()).apply { block() }._build()
object CodeGeneratorResponseKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  class Dsl private constructor(
    private val _builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * 
     * Error message.  If non-empty, code generation failed.  The plugin process
     * should exit with status code zero even if it reports an error in this way.
     * This should be used to indicate errors in .proto files which prevent the
     * code generator from generating correct code.  Errors which indicate a
     * problem in protoc itself -- such as the input CodeGeneratorRequest being
     * unparseable -- should be reported by writing a message to stderr and
     * exiting with a non-zero status code.
     * 
* * optional string error = 1; */ var error: kotlin.String @JvmName("getError") get() = _builder.getError() @JvmName("setError") set(value) { _builder.setError(value) } /** *
     * Error message.  If non-empty, code generation failed.  The plugin process
     * should exit with status code zero even if it reports an error in this way.
     * This should be used to indicate errors in .proto files which prevent the
     * code generator from generating correct code.  Errors which indicate a
     * problem in protoc itself -- such as the input CodeGeneratorRequest being
     * unparseable -- should be reported by writing a message to stderr and
     * exiting with a non-zero status code.
     * 
* * optional string error = 1; */ fun clearError() { _builder.clearError() } /** *
     * Error message.  If non-empty, code generation failed.  The plugin process
     * should exit with status code zero even if it reports an error in this way.
     * This should be used to indicate errors in .proto files which prevent the
     * code generator from generating correct code.  Errors which indicate a
     * problem in protoc itself -- such as the input CodeGeneratorRequest being
     * unparseable -- should be reported by writing a message to stderr and
     * exiting with a non-zero status code.
     * 
* * optional string error = 1; * @return Whether the error field is set. */ fun hasError(): kotlin.Boolean { return _builder.hasError() } /** *
     * A bitmask of supported features that the code generator supports.
     * This is a bitwise "or" of values from the Feature enum.
     * 
* * optional uint64 supported_features = 2; */ var supportedFeatures: kotlin.Long @JvmName("getSupportedFeatures") get() = _builder.getSupportedFeatures() @JvmName("setSupportedFeatures") set(value) { _builder.setSupportedFeatures(value) } /** *
     * A bitmask of supported features that the code generator supports.
     * This is a bitwise "or" of values from the Feature enum.
     * 
* * optional uint64 supported_features = 2; */ fun clearSupportedFeatures() { _builder.clearSupportedFeatures() } /** *
     * A bitmask of supported features that the code generator supports.
     * This is a bitwise "or" of values from the Feature enum.
     * 
* * optional uint64 supported_features = 2; * @return Whether the supportedFeatures field is set. */ fun hasSupportedFeatures(): kotlin.Boolean { return _builder.hasSupportedFeatures() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) class FileProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */ val file: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getFileList() ) /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; * @param value The file to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addFile") fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File) { _builder.addFile(value) } /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; * @param value The file to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignFile") @Suppress("NOTHING_TO_INLINE") inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File) { add(value) } /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; * @param values The file to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllFile") fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllFile(values) } /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; * @param values The file to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllFile") @Suppress("NOTHING_TO_INLINE") inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; * @param index The index to set the value at. * @param value The file to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setFile") operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File) { _builder.setFile(index, value) } /** * repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearFile") fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearFile() } } @kotlin.jvm.JvmName("-initializefile") inline fun file(block: com.google.protobuf.compiler.CodeGeneratorResponseKt.FileKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File = com.google.protobuf.compiler.CodeGeneratorResponseKt.FileKt.Dsl._create(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.newBuilder()).apply { block() }._build() object FileKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker class Dsl private constructor( private val _builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.Builder ) { companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File = _builder.build() /** *
       * The file name, relative to the output directory.  The name must not
       * contain "." or ".." components and must be relative, not be absolute (so,
       * the file cannot lie outside the output directory).  "/" must be used as
       * the path separator, not "\".
       * If the name is omitted, the content will be appended to the previous
       * file.  This allows the generator to break large files into small chunks,
       * and allows the generated text to be streamed back to protoc so that large
       * files need not reside completely in memory at one time.  Note that as of
       * this writing protoc does not optimize for this -- it will read the entire
       * CodeGeneratorResponse before writing files to disk.
       * 
* * optional string name = 1; */ var name: kotlin.String @JvmName("getName") get() = _builder.getName() @JvmName("setName") set(value) { _builder.setName(value) } /** *
       * The file name, relative to the output directory.  The name must not
       * contain "." or ".." components and must be relative, not be absolute (so,
       * the file cannot lie outside the output directory).  "/" must be used as
       * the path separator, not "\".
       * If the name is omitted, the content will be appended to the previous
       * file.  This allows the generator to break large files into small chunks,
       * and allows the generated text to be streamed back to protoc so that large
       * files need not reside completely in memory at one time.  Note that as of
       * this writing protoc does not optimize for this -- it will read the entire
       * CodeGeneratorResponse before writing files to disk.
       * 
* * optional string name = 1; */ fun clearName() { _builder.clearName() } /** *
       * The file name, relative to the output directory.  The name must not
       * contain "." or ".." components and must be relative, not be absolute (so,
       * the file cannot lie outside the output directory).  "/" must be used as
       * the path separator, not "\".
       * If the name is omitted, the content will be appended to the previous
       * file.  This allows the generator to break large files into small chunks,
       * and allows the generated text to be streamed back to protoc so that large
       * files need not reside completely in memory at one time.  Note that as of
       * this writing protoc does not optimize for this -- it will read the entire
       * CodeGeneratorResponse before writing files to disk.
       * 
* * optional string name = 1; * @return Whether the name field is set. */ fun hasName(): kotlin.Boolean { return _builder.hasName() } /** *
       * If non-empty, indicates that the named file should already exist, and the
       * content here is to be inserted into that file at a defined insertion
       * point.  This feature allows a code generator to extend the output
       * produced by another code generator.  The original generator may provide
       * insertion points by placing special annotations in the file that look
       * like:
       *   @@protoc_insertion_point(NAME)
       * The annotation can have arbitrary text before and after it on the line,
       * which allows it to be placed in a comment.  NAME should be replaced with
       * an identifier naming the point -- this is what other generators will use
       * as the insertion_point.  Code inserted at this point will be placed
       * immediately above the line containing the insertion point (thus multiple
       * insertions to the same point will come out in the order they were added).
       * The double-@ is intended to make it unlikely that the generated code
       * could contain things that look like insertion points by accident.
       * For example, the C++ code generator places the following line in the
       * .pb.h files that it generates:
       *   // @@protoc_insertion_point(namespace_scope)
       * This line appears within the scope of the file's package namespace, but
       * outside of any particular class.  Another plugin can then specify the
       * insertion_point "namespace_scope" to generate additional classes or
       * other declarations that should be placed in this scope.
       * Note that if the line containing the insertion point begins with
       * whitespace, the same whitespace will be added to every line of the
       * inserted text.  This is useful for languages like Python, where
       * indentation matters.  In these languages, the insertion point comment
       * should be indented the same amount as any inserted code will need to be
       * in order to work correctly in that context.
       * The code generator that generates the initial file and the one which
       * inserts into it must both run as part of a single invocation of protoc.
       * Code generators are executed in the order in which they appear on the
       * command line.
       * If |insertion_point| is present, |name| must also be present.
       * 
* * optional string insertion_point = 2; */ var insertionPoint: kotlin.String @JvmName("getInsertionPoint") get() = _builder.getInsertionPoint() @JvmName("setInsertionPoint") set(value) { _builder.setInsertionPoint(value) } /** *
       * If non-empty, indicates that the named file should already exist, and the
       * content here is to be inserted into that file at a defined insertion
       * point.  This feature allows a code generator to extend the output
       * produced by another code generator.  The original generator may provide
       * insertion points by placing special annotations in the file that look
       * like:
       *   @@protoc_insertion_point(NAME)
       * The annotation can have arbitrary text before and after it on the line,
       * which allows it to be placed in a comment.  NAME should be replaced with
       * an identifier naming the point -- this is what other generators will use
       * as the insertion_point.  Code inserted at this point will be placed
       * immediately above the line containing the insertion point (thus multiple
       * insertions to the same point will come out in the order they were added).
       * The double-@ is intended to make it unlikely that the generated code
       * could contain things that look like insertion points by accident.
       * For example, the C++ code generator places the following line in the
       * .pb.h files that it generates:
       *   // @@protoc_insertion_point(namespace_scope)
       * This line appears within the scope of the file's package namespace, but
       * outside of any particular class.  Another plugin can then specify the
       * insertion_point "namespace_scope" to generate additional classes or
       * other declarations that should be placed in this scope.
       * Note that if the line containing the insertion point begins with
       * whitespace, the same whitespace will be added to every line of the
       * inserted text.  This is useful for languages like Python, where
       * indentation matters.  In these languages, the insertion point comment
       * should be indented the same amount as any inserted code will need to be
       * in order to work correctly in that context.
       * The code generator that generates the initial file and the one which
       * inserts into it must both run as part of a single invocation of protoc.
       * Code generators are executed in the order in which they appear on the
       * command line.
       * If |insertion_point| is present, |name| must also be present.
       * 
* * optional string insertion_point = 2; */ fun clearInsertionPoint() { _builder.clearInsertionPoint() } /** *
       * If non-empty, indicates that the named file should already exist, and the
       * content here is to be inserted into that file at a defined insertion
       * point.  This feature allows a code generator to extend the output
       * produced by another code generator.  The original generator may provide
       * insertion points by placing special annotations in the file that look
       * like:
       *   @@protoc_insertion_point(NAME)
       * The annotation can have arbitrary text before and after it on the line,
       * which allows it to be placed in a comment.  NAME should be replaced with
       * an identifier naming the point -- this is what other generators will use
       * as the insertion_point.  Code inserted at this point will be placed
       * immediately above the line containing the insertion point (thus multiple
       * insertions to the same point will come out in the order they were added).
       * The double-@ is intended to make it unlikely that the generated code
       * could contain things that look like insertion points by accident.
       * For example, the C++ code generator places the following line in the
       * .pb.h files that it generates:
       *   // @@protoc_insertion_point(namespace_scope)
       * This line appears within the scope of the file's package namespace, but
       * outside of any particular class.  Another plugin can then specify the
       * insertion_point "namespace_scope" to generate additional classes or
       * other declarations that should be placed in this scope.
       * Note that if the line containing the insertion point begins with
       * whitespace, the same whitespace will be added to every line of the
       * inserted text.  This is useful for languages like Python, where
       * indentation matters.  In these languages, the insertion point comment
       * should be indented the same amount as any inserted code will need to be
       * in order to work correctly in that context.
       * The code generator that generates the initial file and the one which
       * inserts into it must both run as part of a single invocation of protoc.
       * Code generators are executed in the order in which they appear on the
       * command line.
       * If |insertion_point| is present, |name| must also be present.
       * 
* * optional string insertion_point = 2; * @return Whether the insertionPoint field is set. */ fun hasInsertionPoint(): kotlin.Boolean { return _builder.hasInsertionPoint() } /** *
       * The file contents.
       * 
* * optional string content = 15; */ var content: kotlin.String @JvmName("getContent") get() = _builder.getContent() @JvmName("setContent") set(value) { _builder.setContent(value) } /** *
       * The file contents.
       * 
* * optional string content = 15; */ fun clearContent() { _builder.clearContent() } /** *
       * The file contents.
       * 
* * optional string content = 15; * @return Whether the content field is set. */ fun hasContent(): kotlin.Boolean { return _builder.hasContent() } /** *
       * Information describing the file content being inserted. If an insertion
       * point is used, this information will be appropriately offset and inserted
       * into the code generation metadata for the generated files.
       * 
* * optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; */ var generatedCodeInfo: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo @JvmName("getGeneratedCodeInfo") get() = _builder.getGeneratedCodeInfo() @JvmName("setGeneratedCodeInfo") set(value) { _builder.setGeneratedCodeInfo(value) } /** *
       * Information describing the file content being inserted. If an insertion
       * point is used, this information will be appropriately offset and inserted
       * into the code generation metadata for the generated files.
       * 
* * optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; */ fun clearGeneratedCodeInfo() { _builder.clearGeneratedCodeInfo() } /** *
       * Information describing the file content being inserted. If an insertion
       * point is used, this information will be appropriately offset and inserted
       * into the code generation metadata for the generated files.
       * 
* * optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; * @return Whether the generatedCodeInfo field is set. */ fun hasGeneratedCodeInfo(): kotlin.Boolean { return _builder.hasGeneratedCodeInfo() } val FileKt.Dsl.generatedCodeInfoOrNull: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo? get() = _builder.generatedCodeInfoOrNull } } } @kotlin.jvm.JvmSynthetic inline fun com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.copy(block: com.google.protobuf.compiler.CodeGeneratorResponseKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse = com.google.protobuf.compiler.CodeGeneratorResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic inline fun com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.copy(block: com.google.protobuf.compiler.CodeGeneratorResponseKt.FileKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File = com.google.protobuf.compiler.CodeGeneratorResponseKt.FileKt.Dsl._create(this.toBuilder()).apply { block() }._build() val com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder.generatedCodeInfoOrNull: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo? get() = if (hasGeneratedCodeInfo()) getGeneratedCodeInfo() else null




© 2015 - 2025 Weber Informatics LLC | Privacy Policy