commonMain.worker.TranscriptionJobPayload.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-entities Show documentation
Show all versions of proto-entities Show documentation
KMP package which exports compiled protobuf entities to be used by other repos
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: worker.TranscriptionJobPayload in worker/worker.proto
package worker
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`.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.Unit
import okio.ByteString
/**
* Job Initiation Payloads
*/
public class TranscriptionJobPayload(
@field:WireField(
tag = 1,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "userId",
)
public val user_id: String = "",
@field:WireField(
tag = 2,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "peerId",
)
public val peer_id: String = "",
@field:WireField(
tag = 3,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
label = WireField.Label.OMIT_IDENTITY,
jsonName = "meetingId",
)
public val meeting_id: String = "",
@field:WireField(
tag = 4,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "sessionId",
)
public val session_id: String? = null,
@field:WireField(
tag = 5,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "meetingDisplayName",
)
public val meeting_display_name: String? = null,
@field:WireField(
tag = 6,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "displayName",
)
public val display_name: String? = null,
@field:WireField(
tag = 7,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "organizationId",
)
public val organization_id: String? = null,
@field:WireField(
tag = 8,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "customParticipantId",
)
public val custom_participant_id: String? = null,
@field:WireField(
tag = 9,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "presetId",
)
public val preset_id: String? = null,
@field:WireField(
tag = 10,
adapter = "com.squareup.wire.ProtoAdapter#STRING",
jsonName = "displayPictureUrl",
)
public val display_picture_url: String? = null,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
@Deprecated(
message = "Shouldn't be used in Kotlin",
level = DeprecationLevel.HIDDEN,
)
public 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")
public override fun equals(other: Any?): Boolean {
if (other === this) return true
if (other !is TranscriptionJobPayload) return false
if (unknownFields != other.unknownFields) return false
if (user_id != other.user_id) return false
if (peer_id != other.peer_id) return false
if (meeting_id != other.meeting_id) return false
if (session_id != other.session_id) return false
if (meeting_display_name != other.meeting_display_name) return false
if (display_name != other.display_name) return false
if (organization_id != other.organization_id) return false
if (custom_participant_id != other.custom_participant_id) return false
if (preset_id != other.preset_id) return false
if (display_picture_url != other.display_picture_url) return false
return true
}
public override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + user_id.hashCode()
result = result * 37 + peer_id.hashCode()
result = result * 37 + meeting_id.hashCode()
result = result * 37 + (session_id?.hashCode() ?: 0)
result = result * 37 + (meeting_display_name?.hashCode() ?: 0)
result = result * 37 + (display_name?.hashCode() ?: 0)
result = result * 37 + (organization_id?.hashCode() ?: 0)
result = result * 37 + (custom_participant_id?.hashCode() ?: 0)
result = result * 37 + (preset_id?.hashCode() ?: 0)
result = result * 37 + (display_picture_url?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
public override fun toString(): String {
val result = mutableListOf()
result += """user_id=${sanitize(user_id)}"""
result += """peer_id=${sanitize(peer_id)}"""
result += """meeting_id=${sanitize(meeting_id)}"""
if (session_id != null) result += """session_id=${sanitize(session_id)}"""
if (meeting_display_name != null) result +=
"""meeting_display_name=${sanitize(meeting_display_name)}"""
if (display_name != null) result += """display_name=${sanitize(display_name)}"""
if (organization_id != null) result += """organization_id=${sanitize(organization_id)}"""
if (custom_participant_id != null) result +=
"""custom_participant_id=${sanitize(custom_participant_id)}"""
if (preset_id != null) result += """preset_id=${sanitize(preset_id)}"""
if (display_picture_url != null) result +=
"""display_picture_url=${sanitize(display_picture_url)}"""
return result.joinToString(prefix = "TranscriptionJobPayload{", separator = ", ", postfix = "}")
}
public fun copy(
user_id: String = this.user_id,
peer_id: String = this.peer_id,
meeting_id: String = this.meeting_id,
session_id: String? = this.session_id,
meeting_display_name: String? = this.meeting_display_name,
display_name: String? = this.display_name,
organization_id: String? = this.organization_id,
custom_participant_id: String? = this.custom_participant_id,
preset_id: String? = this.preset_id,
display_picture_url: String? = this.display_picture_url,
unknownFields: ByteString = this.unknownFields,
): TranscriptionJobPayload = TranscriptionJobPayload(user_id, peer_id, meeting_id, session_id,
meeting_display_name, display_name, organization_id, custom_participant_id, preset_id,
display_picture_url, unknownFields)
public companion object {
public val ADAPTER: ProtoAdapter = object :
ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
TranscriptionJobPayload::class,
"type.googleapis.com/worker.TranscriptionJobPayload",
PROTO_3,
null,
"worker/worker.proto"
) {
public override fun encodedSize(`value`: TranscriptionJobPayload): Int {
var size = value.unknownFields.size
if (value.user_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(1, value.user_id)
if (value.peer_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(2, value.peer_id)
if (value.meeting_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(3,
value.meeting_id)
size += ProtoAdapter.STRING.encodedSizeWithTag(4, value.session_id)
size += ProtoAdapter.STRING.encodedSizeWithTag(5, value.meeting_display_name)
size += ProtoAdapter.STRING.encodedSizeWithTag(6, value.display_name)
size += ProtoAdapter.STRING.encodedSizeWithTag(7, value.organization_id)
size += ProtoAdapter.STRING.encodedSizeWithTag(8, value.custom_participant_id)
size += ProtoAdapter.STRING.encodedSizeWithTag(9, value.preset_id)
size += ProtoAdapter.STRING.encodedSizeWithTag(10, value.display_picture_url)
return size
}
public override fun encode(writer: ProtoWriter, `value`: TranscriptionJobPayload): Unit {
if (value.user_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 1, value.user_id)
if (value.peer_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 2, value.peer_id)
if (value.meeting_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 3, value.meeting_id)
ProtoAdapter.STRING.encodeWithTag(writer, 4, value.session_id)
ProtoAdapter.STRING.encodeWithTag(writer, 5, value.meeting_display_name)
ProtoAdapter.STRING.encodeWithTag(writer, 6, value.display_name)
ProtoAdapter.STRING.encodeWithTag(writer, 7, value.organization_id)
ProtoAdapter.STRING.encodeWithTag(writer, 8, value.custom_participant_id)
ProtoAdapter.STRING.encodeWithTag(writer, 9, value.preset_id)
ProtoAdapter.STRING.encodeWithTag(writer, 10, value.display_picture_url)
writer.writeBytes(value.unknownFields)
}
public override fun encode(writer: ReverseProtoWriter, `value`: TranscriptionJobPayload):
Unit {
writer.writeBytes(value.unknownFields)
ProtoAdapter.STRING.encodeWithTag(writer, 10, value.display_picture_url)
ProtoAdapter.STRING.encodeWithTag(writer, 9, value.preset_id)
ProtoAdapter.STRING.encodeWithTag(writer, 8, value.custom_participant_id)
ProtoAdapter.STRING.encodeWithTag(writer, 7, value.organization_id)
ProtoAdapter.STRING.encodeWithTag(writer, 6, value.display_name)
ProtoAdapter.STRING.encodeWithTag(writer, 5, value.meeting_display_name)
ProtoAdapter.STRING.encodeWithTag(writer, 4, value.session_id)
if (value.meeting_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 3, value.meeting_id)
if (value.peer_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 2, value.peer_id)
if (value.user_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 1, value.user_id)
}
public override fun decode(reader: ProtoReader): TranscriptionJobPayload {
var user_id: String = ""
var peer_id: String = ""
var meeting_id: String = ""
var session_id: String? = null
var meeting_display_name: String? = null
var display_name: String? = null
var organization_id: String? = null
var custom_participant_id: String? = null
var preset_id: String? = null
var display_picture_url: String? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> user_id = ProtoAdapter.STRING.decode(reader)
2 -> peer_id = ProtoAdapter.STRING.decode(reader)
3 -> meeting_id = ProtoAdapter.STRING.decode(reader)
4 -> session_id = ProtoAdapter.STRING.decode(reader)
5 -> meeting_display_name = ProtoAdapter.STRING.decode(reader)
6 -> display_name = ProtoAdapter.STRING.decode(reader)
7 -> organization_id = ProtoAdapter.STRING.decode(reader)
8 -> custom_participant_id = ProtoAdapter.STRING.decode(reader)
9 -> preset_id = ProtoAdapter.STRING.decode(reader)
10 -> display_picture_url = ProtoAdapter.STRING.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return TranscriptionJobPayload(
user_id = user_id,
peer_id = peer_id,
meeting_id = meeting_id,
session_id = session_id,
meeting_display_name = meeting_display_name,
display_name = display_name,
organization_id = organization_id,
custom_participant_id = custom_participant_id,
preset_id = preset_id,
display_picture_url = display_picture_url,
unknownFields = unknownFields
)
}
public override fun redact(`value`: TranscriptionJobPayload): TranscriptionJobPayload =
value.copy(
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}