xyz.block.ftl.v1.console.Config.kt Maven / Gradle / Ivy
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.console.Config in xyz/block/ftl/v1/console/console.proto
@file:Suppress("DEPRECATION")
package xyz.block.ftl.v1.console
import com.squareup.wire.FieldEncoding
import com.squareup.wire.Message
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.ProtoReader
import com.squareup.wire.ProtoWriter
import com.squareup.wire.ReverseProtoWriter
import com.squareup.wire.Syntax.PROTO_3
import com.squareup.wire.WireField
import com.squareup.wire.`internal`.JvmField
import kotlin.Any
import kotlin.AssertionError
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.DeprecationLevel
import kotlin.Int
import kotlin.Long
import kotlin.Nothing
import kotlin.String
import kotlin.Suppress
import okio.ByteString
public class Config(
@field:WireField(
tag = 1,
adapter = "xyz.block.ftl.v1.schema.Config#ADAPTER",
label = WireField.Label.OMIT_IDENTITY,
schemaIndex = 0,
)
public val config: xyz.block.ftl.v1.schema.Config? = null,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@Deprecated(
message = "Shouldn't be used in Kotlin",
level = DeprecationLevel.HIDDEN,
)
override fun newBuilder(): Nothing = throw
AssertionError("Builders are deprecated and only available in a javaInterop build; see https://square.github.io/wire/wire_compiler/#kotlin")
override fun equals(other: Any?): Boolean {
if (other === this) return true
if (other !is Config) return false
if (unknownFields != other.unknownFields) return false
if (config != other.config) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (config?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (config != null) result += """config=$config"""
return result.joinToString(prefix = "Config{", separator = ", ", postfix = "}")
}
public fun copy(config: xyz.block.ftl.v1.schema.Config? = this.config, unknownFields: ByteString =
this.unknownFields): Config = Config(config, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
Config::class,
"type.googleapis.com/xyz.block.ftl.v1.console.Config",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: Config): Int {
var size = value.unknownFields.size
if (value.config != null) size +=
xyz.block.ftl.v1.schema.Config.ADAPTER.encodedSizeWithTag(1, value.config)
return size
}
override fun encode(writer: ProtoWriter, `value`: Config) {
if (value.config != null) xyz.block.ftl.v1.schema.Config.ADAPTER.encodeWithTag(writer, 1,
value.config)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: Config) {
writer.writeBytes(value.unknownFields)
if (value.config != null) xyz.block.ftl.v1.schema.Config.ADAPTER.encodeWithTag(writer, 1,
value.config)
}
override fun decode(reader: ProtoReader): Config {
var config: xyz.block.ftl.v1.schema.Config? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> config = xyz.block.ftl.v1.schema.Config.ADAPTER.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return Config(
config = config,
unknownFields = unknownFields
)
}
override fun redact(`value`: Config): Config = value.copy(
config = value.config?.let(xyz.block.ftl.v1.schema.Config.ADAPTER::redact),
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy