xyz.block.ftl.v1.console.EventsQuery.kt Maven / Gradle / Ivy
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.console.EventsQuery in xyz/block/ftl/v1/console/console.proto
@file:Suppress("DEPRECATION")
package xyz.block.ftl.v1.console
import com.squareup.wire.EnumAdapter
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.WireEnum
import com.squareup.wire.WireField
import com.squareup.wire.`internal`.JvmField
import com.squareup.wire.`internal`.JvmStatic
import com.squareup.wire.`internal`.countNonNull
import com.squareup.wire.`internal`.immutableCopyOf
import com.squareup.wire.`internal`.redactElements
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.Suppress
import kotlin.collections.List
import okio.ByteString
/**
* Query for events.
*/
public class EventsQuery(
filters: List = emptyList(),
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#INT32",
label = WireField.Label.OMIT_IDENTITY,
schemaIndex = 1,
)
public val limit: Int = 0,
@field:WireField(
tag = 3,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}Order#ADAPTER",
label = WireField.Label.OMIT_IDENTITY,
schemaIndex = 2,
)
public val order: Order = Order.ASC,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@field:WireField(
tag = 1,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}Filter#ADAPTER",
label = WireField.Label.REPEATED,
schemaIndex = 0,
)
public val filters: List = immutableCopyOf("filters", filters)
@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 EventsQuery) return false
if (unknownFields != other.unknownFields) return false
if (filters != other.filters) return false
if (limit != other.limit) return false
if (order != other.order) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + filters.hashCode()
result = result * 37 + limit.hashCode()
result = result * 37 + order.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (filters.isNotEmpty()) result += """filters=$filters"""
result += """limit=$limit"""
result += """order=$order"""
return result.joinToString(prefix = "EventsQuery{", separator = ", ", postfix = "}")
}
public fun copy(
filters: List = this.filters,
limit: Int = this.limit,
order: Order = this.order,
unknownFields: ByteString = this.unknownFields,
): EventsQuery = EventsQuery(filters, limit, order, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
EventsQuery::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: EventsQuery): Int {
var size = value.unknownFields.size
size += Filter.ADAPTER.asRepeated().encodedSizeWithTag(1, value.filters)
if (value.limit != 0) size += ProtoAdapter.INT32.encodedSizeWithTag(2, value.limit)
if (value.order != Order.ASC) size += Order.ADAPTER.encodedSizeWithTag(3, value.order)
return size
}
override fun encode(writer: ProtoWriter, `value`: EventsQuery) {
Filter.ADAPTER.asRepeated().encodeWithTag(writer, 1, value.filters)
if (value.limit != 0) ProtoAdapter.INT32.encodeWithTag(writer, 2, value.limit)
if (value.order != Order.ASC) Order.ADAPTER.encodeWithTag(writer, 3, value.order)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: EventsQuery) {
writer.writeBytes(value.unknownFields)
if (value.order != Order.ASC) Order.ADAPTER.encodeWithTag(writer, 3, value.order)
if (value.limit != 0) ProtoAdapter.INT32.encodeWithTag(writer, 2, value.limit)
Filter.ADAPTER.asRepeated().encodeWithTag(writer, 1, value.filters)
}
override fun decode(reader: ProtoReader): EventsQuery {
val filters = mutableListOf()
var limit: Int = 0
var order: Order = Order.ASC
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> filters.add(Filter.ADAPTER.decode(reader))
2 -> limit = ProtoAdapter.INT32.decode(reader)
3 -> try {
order = Order.ADAPTER.decode(reader)
} catch (e: ProtoAdapter.EnumConstantNotFoundException) {
reader.addUnknownField(tag, FieldEncoding.VARINT, e.value.toLong())
}
else -> reader.readUnknownField(tag)
}
}
return EventsQuery(
filters = filters,
limit = limit,
order = order,
unknownFields = unknownFields
)
}
override fun redact(`value`: EventsQuery): EventsQuery = value.copy(
filters = value.filters.redactElements(Filter.ADAPTER),
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
/**
* Limit the number of events returned.
*/
public class LimitFilter(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#INT32",
label = WireField.Label.OMIT_IDENTITY,
schemaIndex = 0,
)
public val limit: Int = 0,
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 LimitFilter) return false
if (unknownFields != other.unknownFields) return false
if (limit != other.limit) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + limit.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
result += """limit=$limit"""
return result.joinToString(prefix = "LimitFilter{", separator = ", ", postfix = "}")
}
public fun copy(limit: Int = this.limit, unknownFields: ByteString = this.unknownFields):
LimitFilter = LimitFilter(limit, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
LimitFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.LimitFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: LimitFilter): Int {
var size = value.unknownFields.size
if (value.limit != 0) size += ProtoAdapter.INT32.encodedSizeWithTag(1, value.limit)
return size
}
override fun encode(writer: ProtoWriter, `value`: LimitFilter) {
if (value.limit != 0) ProtoAdapter.INT32.encodeWithTag(writer, 1, value.limit)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: LimitFilter) {
writer.writeBytes(value.unknownFields)
if (value.limit != 0) ProtoAdapter.INT32.encodeWithTag(writer, 1, value.limit)
}
override fun decode(reader: ProtoReader): LimitFilter {
var limit: Int = 0
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> limit = ProtoAdapter.INT32.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return LimitFilter(
limit = limit,
unknownFields = unknownFields
)
}
override fun redact(`value`: LimitFilter): LimitFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by log level.
*/
public class LogLevelFilter(
@field:WireField(
tag = 1,
adapter = "xyz.block.ftl.v1.console.LogLevel#ADAPTER",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "logLevel",
schemaIndex = 0,
)
public val log_level: LogLevel = LogLevel.LOG_LEVEL_UNKNOWN,
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 LogLevelFilter) return false
if (unknownFields != other.unknownFields) return false
if (log_level != other.log_level) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + log_level.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
result += """log_level=$log_level"""
return result.joinToString(prefix = "LogLevelFilter{", separator = ", ", postfix = "}")
}
public fun copy(log_level: LogLevel = this.log_level, unknownFields: ByteString =
this.unknownFields): LogLevelFilter = LogLevelFilter(log_level, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
LogLevelFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.LogLevelFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: LogLevelFilter): Int {
var size = value.unknownFields.size
if (value.log_level != LogLevel.LOG_LEVEL_UNKNOWN) size +=
LogLevel.ADAPTER.encodedSizeWithTag(1, value.log_level)
return size
}
override fun encode(writer: ProtoWriter, `value`: LogLevelFilter) {
if (value.log_level != LogLevel.LOG_LEVEL_UNKNOWN) LogLevel.ADAPTER.encodeWithTag(writer,
1, value.log_level)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: LogLevelFilter) {
writer.writeBytes(value.unknownFields)
if (value.log_level != LogLevel.LOG_LEVEL_UNKNOWN) LogLevel.ADAPTER.encodeWithTag(writer,
1, value.log_level)
}
override fun decode(reader: ProtoReader): LogLevelFilter {
var log_level: LogLevel = LogLevel.LOG_LEVEL_UNKNOWN
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> try {
log_level = LogLevel.ADAPTER.decode(reader)
} catch (e: ProtoAdapter.EnumConstantNotFoundException) {
reader.addUnknownField(tag, FieldEncoding.VARINT, e.value.toLong())
}
else -> reader.readUnknownField(tag)
}
}
return LogLevelFilter(
log_level = log_level,
unknownFields = unknownFields
)
}
override fun redact(`value`: LogLevelFilter): LogLevelFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by deployment key.
*/
public class DeploymentFilter(
deployments: List = emptyList(),
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.REPEATED,
schemaIndex = 0,
)
public val deployments: List = immutableCopyOf("deployments", deployments)
@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 DeploymentFilter) return false
if (unknownFields != other.unknownFields) return false
if (deployments != other.deployments) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + deployments.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (deployments.isNotEmpty()) result += """deployments=${sanitize(deployments)}"""
return result.joinToString(prefix = "DeploymentFilter{", separator = ", ", postfix = "}")
}
public fun copy(deployments: List = this.deployments, unknownFields: ByteString =
this.unknownFields): DeploymentFilter = DeploymentFilter(deployments, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
DeploymentFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.DeploymentFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: DeploymentFilter): Int {
var size = value.unknownFields.size
size += ProtoAdapter.STRING.asRepeated().encodedSizeWithTag(1, value.deployments)
return size
}
override fun encode(writer: ProtoWriter, `value`: DeploymentFilter) {
ProtoAdapter.STRING.asRepeated().encodeWithTag(writer, 1, value.deployments)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: DeploymentFilter) {
writer.writeBytes(value.unknownFields)
ProtoAdapter.STRING.asRepeated().encodeWithTag(writer, 1, value.deployments)
}
override fun decode(reader: ProtoReader): DeploymentFilter {
val deployments = mutableListOf()
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> deployments.add(ProtoAdapter.STRING.decode(reader))
else -> reader.readUnknownField(tag)
}
}
return DeploymentFilter(
deployments = deployments,
unknownFields = unknownFields
)
}
override fun redact(`value`: DeploymentFilter): DeploymentFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by request key.
*/
public class RequestFilter(
requests: List = emptyList(),
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.REPEATED,
schemaIndex = 0,
)
public val requests: List = immutableCopyOf("requests", requests)
@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 RequestFilter) return false
if (unknownFields != other.unknownFields) return false
if (requests != other.requests) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + requests.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (requests.isNotEmpty()) result += """requests=${sanitize(requests)}"""
return result.joinToString(prefix = "RequestFilter{", separator = ", ", postfix = "}")
}
public fun copy(requests: List = this.requests, unknownFields: ByteString =
this.unknownFields): RequestFilter = RequestFilter(requests, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
RequestFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.RequestFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: RequestFilter): Int {
var size = value.unknownFields.size
size += ProtoAdapter.STRING.asRepeated().encodedSizeWithTag(1, value.requests)
return size
}
override fun encode(writer: ProtoWriter, `value`: RequestFilter) {
ProtoAdapter.STRING.asRepeated().encodeWithTag(writer, 1, value.requests)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: RequestFilter) {
writer.writeBytes(value.unknownFields)
ProtoAdapter.STRING.asRepeated().encodeWithTag(writer, 1, value.requests)
}
override fun decode(reader: ProtoReader): RequestFilter {
val requests = mutableListOf()
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> requests.add(ProtoAdapter.STRING.decode(reader))
else -> reader.readUnknownField(tag)
}
}
return RequestFilter(
requests = requests,
unknownFields = unknownFields
)
}
override fun redact(`value`: RequestFilter): RequestFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by event type.
*/
public class EventTypeFilter(
event_types: List = emptyList(),
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@field:WireField(
tag = 1,
adapter = "xyz.block.ftl.v1.console.EventType#ADAPTER",
label = WireField.Label.REPEATED,
jsonName = "eventTypes",
schemaIndex = 0,
)
public val event_types: List = immutableCopyOf("event_types", event_types)
@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 EventTypeFilter) return false
if (unknownFields != other.unknownFields) return false
if (event_types != other.event_types) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + event_types.hashCode()
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (event_types.isNotEmpty()) result += """event_types=$event_types"""
return result.joinToString(prefix = "EventTypeFilter{", separator = ", ", postfix = "}")
}
public fun copy(event_types: List = this.event_types, unknownFields: ByteString =
this.unknownFields): EventTypeFilter = EventTypeFilter(event_types, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
EventTypeFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.EventTypeFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: EventTypeFilter): Int {
var size = value.unknownFields.size
size += EventType.ADAPTER.asRepeated().encodedSizeWithTag(1, value.event_types)
return size
}
override fun encode(writer: ProtoWriter, `value`: EventTypeFilter) {
EventType.ADAPTER.asRepeated().encodeWithTag(writer, 1, value.event_types)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: EventTypeFilter) {
writer.writeBytes(value.unknownFields)
EventType.ADAPTER.asRepeated().encodeWithTag(writer, 1, value.event_types)
}
override fun decode(reader: ProtoReader): EventTypeFilter {
val event_types = mutableListOf()
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> try {
EventType.ADAPTER.tryDecode(reader, event_types)
} catch (e: ProtoAdapter.EnumConstantNotFoundException) {
reader.addUnknownField(tag, FieldEncoding.VARINT, e.value.toLong())
}
else -> reader.readUnknownField(tag)
}
}
return EventTypeFilter(
event_types = event_types,
unknownFields = unknownFields
)
}
override fun redact(`value`: EventTypeFilter): EventTypeFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by time.
*
* Either end of the time range can be omitted to indicate no bound.
*/
public class TimeFilter(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#INSTANT",
jsonName = "olderThan",
schemaIndex = 0,
)
public val older_than: Instant? = null,
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#INSTANT",
jsonName = "newerThan",
schemaIndex = 1,
)
public val newer_than: Instant? = 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 TimeFilter) return false
if (unknownFields != other.unknownFields) return false
if (older_than != other.older_than) return false
if (newer_than != other.newer_than) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (older_than?.hashCode() ?: 0)
result = result * 37 + (newer_than?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (older_than != null) result += """older_than=$older_than"""
if (newer_than != null) result += """newer_than=$newer_than"""
return result.joinToString(prefix = "TimeFilter{", separator = ", ", postfix = "}")
}
public fun copy(
older_than: Instant? = this.older_than,
newer_than: Instant? = this.newer_than,
unknownFields: ByteString = this.unknownFields,
): TimeFilter = TimeFilter(older_than, newer_than, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
TimeFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.TimeFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: TimeFilter): Int {
var size = value.unknownFields.size
size += ProtoAdapter.INSTANT.encodedSizeWithTag(1, value.older_than)
size += ProtoAdapter.INSTANT.encodedSizeWithTag(2, value.newer_than)
return size
}
override fun encode(writer: ProtoWriter, `value`: TimeFilter) {
ProtoAdapter.INSTANT.encodeWithTag(writer, 1, value.older_than)
ProtoAdapter.INSTANT.encodeWithTag(writer, 2, value.newer_than)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: TimeFilter) {
writer.writeBytes(value.unknownFields)
ProtoAdapter.INSTANT.encodeWithTag(writer, 2, value.newer_than)
ProtoAdapter.INSTANT.encodeWithTag(writer, 1, value.older_than)
}
override fun decode(reader: ProtoReader): TimeFilter {
var older_than: Instant? = null
var newer_than: Instant? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> older_than = ProtoAdapter.INSTANT.decode(reader)
2 -> newer_than = ProtoAdapter.INSTANT.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return TimeFilter(
older_than = older_than,
newer_than = newer_than,
unknownFields = unknownFields
)
}
override fun redact(`value`: TimeFilter): TimeFilter = value.copy(
older_than = value.older_than?.let(ProtoAdapter.INSTANT::redact),
newer_than = value.newer_than?.let(ProtoAdapter.INSTANT::redact),
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by ID.
*
* Either end of the ID range can be omitted to indicate no bound.
*/
public class IDFilter(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#INT64",
jsonName = "lowerThan",
schemaIndex = 0,
)
public val lower_than: Long? = null,
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#INT64",
jsonName = "higherThan",
schemaIndex = 1,
)
public val higher_than: Long? = 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 IDFilter) return false
if (unknownFields != other.unknownFields) return false
if (lower_than != other.lower_than) return false
if (higher_than != other.higher_than) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (lower_than?.hashCode() ?: 0)
result = result * 37 + (higher_than?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (lower_than != null) result += """lower_than=$lower_than"""
if (higher_than != null) result += """higher_than=$higher_than"""
return result.joinToString(prefix = "IDFilter{", separator = ", ", postfix = "}")
}
public fun copy(
lower_than: Long? = this.lower_than,
higher_than: Long? = this.higher_than,
unknownFields: ByteString = this.unknownFields,
): IDFilter = IDFilter(lower_than, higher_than, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
IDFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.IDFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: IDFilter): Int {
var size = value.unknownFields.size
size += ProtoAdapter.INT64.encodedSizeWithTag(1, value.lower_than)
size += ProtoAdapter.INT64.encodedSizeWithTag(2, value.higher_than)
return size
}
override fun encode(writer: ProtoWriter, `value`: IDFilter) {
ProtoAdapter.INT64.encodeWithTag(writer, 1, value.lower_than)
ProtoAdapter.INT64.encodeWithTag(writer, 2, value.higher_than)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: IDFilter) {
writer.writeBytes(value.unknownFields)
ProtoAdapter.INT64.encodeWithTag(writer, 2, value.higher_than)
ProtoAdapter.INT64.encodeWithTag(writer, 1, value.lower_than)
}
override fun decode(reader: ProtoReader): IDFilter {
var lower_than: Long? = null
var higher_than: Long? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> lower_than = ProtoAdapter.INT64.decode(reader)
2 -> higher_than = ProtoAdapter.INT64.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return IDFilter(
lower_than = lower_than,
higher_than = higher_than,
unknownFields = unknownFields
)
}
override fun redact(`value`: IDFilter): IDFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
/**
* Filters events by call.
*/
public class CallFilter(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "destModule",
schemaIndex = 0,
)
public val dest_module: String = "",
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "destVerb",
schemaIndex = 1,
)
public val dest_verb: String? = null,
@field:WireField(
tag = 3,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "sourceModule",
schemaIndex = 2,
)
public val source_module: String? = 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 CallFilter) return false
if (unknownFields != other.unknownFields) return false
if (dest_module != other.dest_module) return false
if (dest_verb != other.dest_verb) return false
if (source_module != other.source_module) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + dest_module.hashCode()
result = result * 37 + (dest_verb?.hashCode() ?: 0)
result = result * 37 + (source_module?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
result += """dest_module=${sanitize(dest_module)}"""
if (dest_verb != null) result += """dest_verb=${sanitize(dest_verb)}"""
if (source_module != null) result += """source_module=${sanitize(source_module)}"""
return result.joinToString(prefix = "CallFilter{", separator = ", ", postfix = "}")
}
public fun copy(
dest_module: String = this.dest_module,
dest_verb: String? = this.dest_verb,
source_module: String? = this.source_module,
unknownFields: ByteString = this.unknownFields,
): CallFilter = CallFilter(dest_module, dest_verb, source_module, unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
CallFilter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.CallFilter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: CallFilter): Int {
var size = value.unknownFields.size
if (value.dest_module != "") size += ProtoAdapter.STRING.encodedSizeWithTag(1,
value.dest_module)
size += ProtoAdapter.STRING.encodedSizeWithTag(2, value.dest_verb)
size += ProtoAdapter.STRING.encodedSizeWithTag(3, value.source_module)
return size
}
override fun encode(writer: ProtoWriter, `value`: CallFilter) {
if (value.dest_module != "") ProtoAdapter.STRING.encodeWithTag(writer, 1,
value.dest_module)
ProtoAdapter.STRING.encodeWithTag(writer, 2, value.dest_verb)
ProtoAdapter.STRING.encodeWithTag(writer, 3, value.source_module)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: CallFilter) {
writer.writeBytes(value.unknownFields)
ProtoAdapter.STRING.encodeWithTag(writer, 3, value.source_module)
ProtoAdapter.STRING.encodeWithTag(writer, 2, value.dest_verb)
if (value.dest_module != "") ProtoAdapter.STRING.encodeWithTag(writer, 1,
value.dest_module)
}
override fun decode(reader: ProtoReader): CallFilter {
var dest_module: String = ""
var dest_verb: String? = null
var source_module: String? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> dest_module = ProtoAdapter.STRING.decode(reader)
2 -> dest_verb = ProtoAdapter.STRING.decode(reader)
3 -> source_module = ProtoAdapter.STRING.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return CallFilter(
dest_module = dest_module,
dest_verb = dest_verb,
source_module = source_module,
unknownFields = unknownFields
)
}
override fun redact(`value`: CallFilter): CallFilter = value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
public enum class Order(
override val `value`: Int,
) : WireEnum {
ASC(0),
DESC(1),
;
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
Order::class,
PROTO_3,
Order.ASC
) {
override fun fromValue(`value`: Int): Order? = Order.fromValue(`value`)
}
@JvmStatic
public fun fromValue(`value`: Int): Order? = when (`value`) {
0 -> ASC
1 -> DESC
else -> null
}
}
}
public class Filter(
@field:WireField(
tag = 1,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}LimitFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 0,
)
public val limit: LimitFilter? = null,
@field:WireField(
tag = 2,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}LogLevelFilter#ADAPTER",
jsonName = "logLevel",
oneofName = "filter",
schemaIndex = 1,
)
public val log_level: LogLevelFilter? = null,
@field:WireField(
tag = 3,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}DeploymentFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 2,
)
public val deployments: DeploymentFilter? = null,
@field:WireField(
tag = 4,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}RequestFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 3,
)
public val requests: RequestFilter? = null,
@field:WireField(
tag = 5,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}EventTypeFilter#ADAPTER",
jsonName = "eventTypes",
oneofName = "filter",
schemaIndex = 4,
)
public val event_types: EventTypeFilter? = null,
@field:WireField(
tag = 6,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}TimeFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 5,
)
public val time: TimeFilter? = null,
@field:WireField(
tag = 7,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}IDFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 6,
)
public val id: IDFilter? = null,
@field:WireField(
tag = 8,
adapter = "xyz.block.ftl.v1.console.EventsQuery${'$'}CallFilter#ADAPTER",
oneofName = "filter",
schemaIndex = 7,
)
public val call: CallFilter? = null,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
init {
require(countNonNull(limit, log_level, deployments, requests, event_types, time, id,
call) <= 1) {
"At most one of limit, log_level, deployments, requests, event_types, time, id, call may be non-null"
}
}
@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 Filter) return false
if (unknownFields != other.unknownFields) return false
if (limit != other.limit) return false
if (log_level != other.log_level) return false
if (deployments != other.deployments) return false
if (requests != other.requests) return false
if (event_types != other.event_types) return false
if (time != other.time) return false
if (id != other.id) return false
if (call != other.call) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (limit?.hashCode() ?: 0)
result = result * 37 + (log_level?.hashCode() ?: 0)
result = result * 37 + (deployments?.hashCode() ?: 0)
result = result * 37 + (requests?.hashCode() ?: 0)
result = result * 37 + (event_types?.hashCode() ?: 0)
result = result * 37 + (time?.hashCode() ?: 0)
result = result * 37 + (id?.hashCode() ?: 0)
result = result * 37 + (call?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
override fun toString(): String {
val result = mutableListOf()
if (limit != null) result += """limit=$limit"""
if (log_level != null) result += """log_level=$log_level"""
if (deployments != null) result += """deployments=$deployments"""
if (requests != null) result += """requests=$requests"""
if (event_types != null) result += """event_types=$event_types"""
if (time != null) result += """time=$time"""
if (id != null) result += """id=$id"""
if (call != null) result += """call=$call"""
return result.joinToString(prefix = "Filter{", separator = ", ", postfix = "}")
}
public fun copy(
limit: LimitFilter? = this.limit,
log_level: LogLevelFilter? = this.log_level,
deployments: DeploymentFilter? = this.deployments,
requests: RequestFilter? = this.requests,
event_types: EventTypeFilter? = this.event_types,
time: TimeFilter? = this.time,
id: IDFilter? = this.id,
call: CallFilter? = this.call,
unknownFields: ByteString = this.unknownFields,
): Filter = Filter(limit, log_level, deployments, requests, event_types, time, id, call,
unknownFields)
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
Filter::class,
"type.googleapis.com/xyz.block.ftl.v1.console.EventsQuery.Filter",
PROTO_3,
null,
"xyz/block/ftl/v1/console/console.proto"
) {
override fun encodedSize(`value`: Filter): Int {
var size = value.unknownFields.size
size += LimitFilter.ADAPTER.encodedSizeWithTag(1, value.limit)
size += LogLevelFilter.ADAPTER.encodedSizeWithTag(2, value.log_level)
size += DeploymentFilter.ADAPTER.encodedSizeWithTag(3, value.deployments)
size += RequestFilter.ADAPTER.encodedSizeWithTag(4, value.requests)
size += EventTypeFilter.ADAPTER.encodedSizeWithTag(5, value.event_types)
size += TimeFilter.ADAPTER.encodedSizeWithTag(6, value.time)
size += IDFilter.ADAPTER.encodedSizeWithTag(7, value.id)
size += CallFilter.ADAPTER.encodedSizeWithTag(8, value.call)
return size
}
override fun encode(writer: ProtoWriter, `value`: Filter) {
LimitFilter.ADAPTER.encodeWithTag(writer, 1, value.limit)
LogLevelFilter.ADAPTER.encodeWithTag(writer, 2, value.log_level)
DeploymentFilter.ADAPTER.encodeWithTag(writer, 3, value.deployments)
RequestFilter.ADAPTER.encodeWithTag(writer, 4, value.requests)
EventTypeFilter.ADAPTER.encodeWithTag(writer, 5, value.event_types)
TimeFilter.ADAPTER.encodeWithTag(writer, 6, value.time)
IDFilter.ADAPTER.encodeWithTag(writer, 7, value.id)
CallFilter.ADAPTER.encodeWithTag(writer, 8, value.call)
writer.writeBytes(value.unknownFields)
}
override fun encode(writer: ReverseProtoWriter, `value`: Filter) {
writer.writeBytes(value.unknownFields)
CallFilter.ADAPTER.encodeWithTag(writer, 8, value.call)
IDFilter.ADAPTER.encodeWithTag(writer, 7, value.id)
TimeFilter.ADAPTER.encodeWithTag(writer, 6, value.time)
EventTypeFilter.ADAPTER.encodeWithTag(writer, 5, value.event_types)
RequestFilter.ADAPTER.encodeWithTag(writer, 4, value.requests)
DeploymentFilter.ADAPTER.encodeWithTag(writer, 3, value.deployments)
LogLevelFilter.ADAPTER.encodeWithTag(writer, 2, value.log_level)
LimitFilter.ADAPTER.encodeWithTag(writer, 1, value.limit)
}
override fun decode(reader: ProtoReader): Filter {
var limit: LimitFilter? = null
var log_level: LogLevelFilter? = null
var deployments: DeploymentFilter? = null
var requests: RequestFilter? = null
var event_types: EventTypeFilter? = null
var time: TimeFilter? = null
var id: IDFilter? = null
var call: CallFilter? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> limit = LimitFilter.ADAPTER.decode(reader)
2 -> log_level = LogLevelFilter.ADAPTER.decode(reader)
3 -> deployments = DeploymentFilter.ADAPTER.decode(reader)
4 -> requests = RequestFilter.ADAPTER.decode(reader)
5 -> event_types = EventTypeFilter.ADAPTER.decode(reader)
6 -> time = TimeFilter.ADAPTER.decode(reader)
7 -> id = IDFilter.ADAPTER.decode(reader)
8 -> call = CallFilter.ADAPTER.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return Filter(
limit = limit,
log_level = log_level,
deployments = deployments,
requests = requests,
event_types = event_types,
time = time,
id = id,
call = call,
unknownFields = unknownFields
)
}
override fun redact(`value`: Filter): Filter = value.copy(
limit = value.limit?.let(LimitFilter.ADAPTER::redact),
log_level = value.log_level?.let(LogLevelFilter.ADAPTER::redact),
deployments = value.deployments?.let(DeploymentFilter.ADAPTER::redact),
requests = value.requests?.let(RequestFilter.ADAPTER::redact),
event_types = value.event_types?.let(EventTypeFilter.ADAPTER::redact),
time = value.time?.let(TimeFilter.ADAPTER::redact),
id = value.id?.let(IDFilter.ADAPTER::redact),
call = value.call?.let(CallFilter.ADAPTER::redact),
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy