com.google.protobuf.compiler.CodeGeneratorResponseKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin Show documentation
Show all versions of protobuf-kotlin Show documentation
Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/compiler/plugin.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf.compiler;
@kotlin.jvm.JvmName("-initializecodeGeneratorResponse")
public 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()
/**
* Protobuf type `google.protobuf.compiler.CodeGeneratorResponse`
*/
public object CodeGeneratorResponseKt {
@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.CodeGeneratorResponse.Builder
) {
public 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()
/**
* `optional string error = 1 [json_name = "error"];`
*/
public var error: kotlin.String
@JvmName("getError")
get() = _builder.getError()
@JvmName("setError")
set(value) {
_builder.setError(value)
}
/**
* `optional string error = 1 [json_name = "error"];`
*/
public fun clearError() {
_builder.clearError()
}
/**
* `optional string error = 1 [json_name = "error"];`
* @return Whether the error field is set.
*/
public fun hasError(): kotlin.Boolean {
return _builder.hasError()
}
/**
* `optional uint64 supported_features = 2 [json_name = "supportedFeatures"];`
*/
public var supportedFeatures: kotlin.Long
@JvmName("getSupportedFeatures")
get() = _builder.getSupportedFeatures()
@JvmName("setSupportedFeatures")
set(value) {
_builder.setSupportedFeatures(value)
}
/**
* `optional uint64 supported_features = 2 [json_name = "supportedFeatures"];`
*/
public fun clearSupportedFeatures() {
_builder.clearSupportedFeatures()
}
/**
* `optional uint64 supported_features = 2 [json_name = "supportedFeatures"];`
* @return Whether the supportedFeatures field is set.
*/
public 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)
public class FileProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];`
*/
public 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 [json_name = "file"];`
* @param value The file to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addFile")
public 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 [json_name = "file"];`
* @param value The file to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignFile")
@Suppress("NOTHING_TO_INLINE")
public 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 [json_name = "file"];`
* @param values The file to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllFile")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllFile(values)
}
/**
* `repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];`
* @param values The file to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllFile")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];`
* @param index The index to set the value at.
* @param value The file to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setFile")
public 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 [json_name = "file"];`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearFile")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearFile()
}
}
@kotlin.jvm.JvmName("-initializefile")
public 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()
/**
* Protobuf type `google.protobuf.compiler.CodeGeneratorResponse.File`
*/
public object FileKt {
@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.CodeGeneratorResponse.File.Builder
) {
public 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()
/**
* `optional string name = 1 [json_name = "name"];`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* `optional string name = 1 [json_name = "name"];`
*/
public fun clearName() {
_builder.clearName()
}
/**
* `optional string name = 1 [json_name = "name"];`
* @return Whether the name field is set.
*/
public fun hasName(): kotlin.Boolean {
return _builder.hasName()
}
/**
* `optional string insertion_point = 2 [json_name = "insertionPoint"];`
*/
public var insertionPoint: kotlin.String
@JvmName("getInsertionPoint")
get() = _builder.getInsertionPoint()
@JvmName("setInsertionPoint")
set(value) {
_builder.setInsertionPoint(value)
}
/**
* `optional string insertion_point = 2 [json_name = "insertionPoint"];`
*/
public fun clearInsertionPoint() {
_builder.clearInsertionPoint()
}
/**
* `optional string insertion_point = 2 [json_name = "insertionPoint"];`
* @return Whether the insertionPoint field is set.
*/
public fun hasInsertionPoint(): kotlin.Boolean {
return _builder.hasInsertionPoint()
}
/**
* `optional string content = 15 [json_name = "content"];`
*/
public var content: kotlin.String
@JvmName("getContent")
get() = _builder.getContent()
@JvmName("setContent")
set(value) {
_builder.setContent(value)
}
/**
* `optional string content = 15 [json_name = "content"];`
*/
public fun clearContent() {
_builder.clearContent()
}
/**
* `optional string content = 15 [json_name = "content"];`
* @return Whether the content field is set.
*/
public fun hasContent(): kotlin.Boolean {
return _builder.hasContent()
}
/**
* `optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];`
*/
public var generatedCodeInfo: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo
@JvmName("getGeneratedCodeInfo")
get() = _builder.getGeneratedCodeInfo()
@JvmName("setGeneratedCodeInfo")
set(value) {
_builder.setGeneratedCodeInfo(value)
}
/**
* `optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];`
*/
public fun clearGeneratedCodeInfo() {
_builder.clearGeneratedCodeInfo()
}
/**
* `optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];`
* @return Whether the generatedCodeInfo field is set.
*/
public fun hasGeneratedCodeInfo(): kotlin.Boolean {
return _builder.hasGeneratedCodeInfo()
}
public val FileKt.Dsl.generatedCodeInfoOrNull: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo?
get() = _builder.generatedCodeInfoOrNull
}
}
}
@kotlin.jvm.JvmSynthetic
public 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
public 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()
public val com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder.generatedCodeInfoOrNull: com.google.protobuf.DescriptorProtos.GeneratedCodeInfo?
get() = if (hasGeneratedCodeInfo()) getGeneratedCodeInfo() else null