xyz.block.ftl.v1.console.LogEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftl-runtime Show documentation
Show all versions of ftl-runtime Show documentation
Towards a 𝝺-calculus for large-scale systems
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.console.LogEvent in xyz/block/ftl/v1/console/console.proto
package xyz.block.ftl.v1.console
import com.squareup.wire.FieldEncoding
import com.squareup.wire.Instant
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 com.squareup.wire.`internal`.immutableCopyOf
import com.squareup.wire.`internal`.sanitize
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.collections.Map
import kotlin.lazy
import okio.ByteString
public class LogEvent(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "deploymentName",
schemaIndex = 0,
)
public val deployment_name: String = "",
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "requestName",
schemaIndex = 1,
)
public val request_name: String? = null,
@field:WireField(
tag = 3,
adapter = "com.squareup.wire.ProtoAdapter#INSTANT",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "timeStamp",
schemaIndex = 2,
)
public val time_stamp: Instant? = null,
@field:WireField(
tag = 4,
adapter = "com.squareup.wire.ProtoAdapter#INT32",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "logLevel",
schemaIndex = 3,
)
public val log_level: Int = 0,
attributes: Map = emptyMap(),
@field:WireField(
tag = 6,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
schemaIndex = 5,
)
public val message: String = "",
@field:WireField(
tag = 7,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
schemaIndex = 6,
)
public val error: String? = null,
@field:WireField(
tag = 8,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
schemaIndex = 7,
)
public val stack: String? = null,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@field:WireField(
tag = 5,
keyAdapter = "com.squareup.wire.ProtoAdapter#STRING",
adapter = "com.squareup.wire.ProtoAdapter#STRING",
schemaIndex = 4,
)
public val attributes: Map = immutableCopyOf("attributes", attributes)
@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 LogEvent) return false
if (unknownFields != other.unknownFields) return false
if (deployment_name != other.deployment_name) return false
if (request_name != other.request_name) return false
if (time_stamp != other.time_stamp) return false
if (log_level != other.log_level) return false
if (attributes != other.attributes) return false
if (message != other.message) return false
if (error != other.error) return false
if (stack != other.stack) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + deployment_name.hashCode()
result = result * 37 + (request_name?.hashCode() ?: 0)
result = result * 37 + (time_stamp?.hashCode() ?: 0)
result = result * 37 + log_level.hashCode()
result = result * 37 + attributes.hashCode()
result = result * 37 + message.hashCode()
result = result * 37 + (error?.hashCode() ?: 0)
result = result * 37 + (stack?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
result += """deployment_name=${sanitize(deployment_name)}"""
if (request_name != null) result += """request_name=${sanitize(request_name)}"""
if (time_stamp != null) result += """time_stamp=$time_stamp"""
result += """log_level=$log_level"""
if (attributes.isNotEmpty()) result += """attributes=$attributes"""
result += """message=${sanitize(message)}"""
if (error != null) result += """error=${sanitize(error)}"""
if (stack != null) result += """stack=${sanitize(stack)}"""
return result.joinToString(prefix = "LogEvent{", separator = ", ", postfix = "}")
}
public fun copy(
deployment_name: String = this.deployment_name,
request_name: String? = this.request_name,
time_stamp: Instant? = this.time_stamp,
log_level: Int = this.log_level,
attributes: Map = this.attributes,
message: String = this.message,
error: String? = this.error,
stack: String? = this.stack,
unknownFields: ByteString = this.unknownFields,
): LogEvent = LogEvent(deployment_name, request_name, time_stamp, log_level, attributes, message,
error, stack, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
LogEvent::class,
"type.googleapis.com/xyz.block.ftl.v1.console.LogEvent",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
private val attributesAdapter: ProtoAdapter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy