All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.socket.livestreaming.LiveStreamingEvent.kt Maven / Gradle / Ivy

Go to download

KMP package which exports compiled protobuf entities to be used by other repos

There is a newer version: 2.89.0
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: socket.livestreaming.LiveStreamingEvent in socket/livestreaming.proto
package socket.livestreaming

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

public class LiveStreamingEvent(
  @field:WireField(
    tag = 1,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "livestreamId",
  )
  public val livestream_id: String = "",
  @field:WireField(
    tag = 2,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "errMessage",
  )
  public val err_message: String = "",
  @field:WireField(
    tag = 3,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
  )
  public val name: String = "",
  @field:WireField(
    tag = 4,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "meetingId",
  )
  public val meeting_id: String = "",
  @field:WireField(
    tag = 5,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "playbackUrl",
  )
  public val playback_url: String = "",
  @field:WireField(
    tag = 6,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "orgId",
  )
  public val org_id: String = "",
  @field:WireField(
    tag = 7,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "roomName",
  )
  public val room_name: String = "",
  @field:WireField(
    tag = 8,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
    jsonName = "roomUuid",
  )
  public val room_uuid: String = "",
  @field:WireField(
    tag = 9,
    adapter = "com.squareup.wire.ProtoAdapter#STRING",
    label = WireField.Label.OMIT_IDENTITY,
  )
  public val status: String = "",
  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 LiveStreamingEvent) return false
    if (unknownFields != other.unknownFields) return false
    if (livestream_id != other.livestream_id) return false
    if (err_message != other.err_message) return false
    if (name != other.name) return false
    if (meeting_id != other.meeting_id) return false
    if (playback_url != other.playback_url) return false
    if (org_id != other.org_id) return false
    if (room_name != other.room_name) return false
    if (room_uuid != other.room_uuid) return false
    if (status != other.status) return false
    return true
  }

  public override fun hashCode(): Int {
    var result = super.hashCode
    if (result == 0) {
      result = unknownFields.hashCode()
      result = result * 37 + livestream_id.hashCode()
      result = result * 37 + err_message.hashCode()
      result = result * 37 + name.hashCode()
      result = result * 37 + meeting_id.hashCode()
      result = result * 37 + playback_url.hashCode()
      result = result * 37 + org_id.hashCode()
      result = result * 37 + room_name.hashCode()
      result = result * 37 + room_uuid.hashCode()
      result = result * 37 + status.hashCode()
      super.hashCode = result
    }
    return result
  }

  public override fun toString(): String {
    val result = mutableListOf()
    result += """livestream_id=${sanitize(livestream_id)}"""
    result += """err_message=${sanitize(err_message)}"""
    result += """name=${sanitize(name)}"""
    result += """meeting_id=${sanitize(meeting_id)}"""
    result += """playback_url=${sanitize(playback_url)}"""
    result += """org_id=${sanitize(org_id)}"""
    result += """room_name=${sanitize(room_name)}"""
    result += """room_uuid=${sanitize(room_uuid)}"""
    result += """status=${sanitize(status)}"""
    return result.joinToString(prefix = "LiveStreamingEvent{", separator = ", ", postfix = "}")
  }

  public fun copy(
    livestream_id: String = this.livestream_id,
    err_message: String = this.err_message,
    name: String = this.name,
    meeting_id: String = this.meeting_id,
    playback_url: String = this.playback_url,
    org_id: String = this.org_id,
    room_name: String = this.room_name,
    room_uuid: String = this.room_uuid,
    status: String = this.status,
    unknownFields: ByteString = this.unknownFields,
  ): LiveStreamingEvent = LiveStreamingEvent(livestream_id, err_message, name, meeting_id,
      playback_url, org_id, room_name, room_uuid, status, unknownFields)

  public companion object {
    public val ADAPTER: ProtoAdapter = object :
        ProtoAdapter(
      FieldEncoding.LENGTH_DELIMITED, 
      LiveStreamingEvent::class, 
      "type.googleapis.com/socket.livestreaming.LiveStreamingEvent", 
      PROTO_3, 
      null, 
      "socket/livestreaming.proto"
    ) {
      public override fun encodedSize(`value`: LiveStreamingEvent): Int {
        var size = value.unknownFields.size
        if (value.livestream_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(1,
            value.livestream_id)
        if (value.err_message != "") size += ProtoAdapter.STRING.encodedSizeWithTag(2,
            value.err_message)
        if (value.name != "") size += ProtoAdapter.STRING.encodedSizeWithTag(3, value.name)
        if (value.meeting_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(4,
            value.meeting_id)
        if (value.playback_url != "") size += ProtoAdapter.STRING.encodedSizeWithTag(5,
            value.playback_url)
        if (value.org_id != "") size += ProtoAdapter.STRING.encodedSizeWithTag(6, value.org_id)
        if (value.room_name != "") size += ProtoAdapter.STRING.encodedSizeWithTag(7,
            value.room_name)
        if (value.room_uuid != "") size += ProtoAdapter.STRING.encodedSizeWithTag(8,
            value.room_uuid)
        if (value.status != "") size += ProtoAdapter.STRING.encodedSizeWithTag(9, value.status)
        return size
      }

      public override fun encode(writer: ProtoWriter, `value`: LiveStreamingEvent): Unit {
        if (value.livestream_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 1,
            value.livestream_id)
        if (value.err_message != "") ProtoAdapter.STRING.encodeWithTag(writer, 2, value.err_message)
        if (value.name != "") ProtoAdapter.STRING.encodeWithTag(writer, 3, value.name)
        if (value.meeting_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 4, value.meeting_id)
        if (value.playback_url != "") ProtoAdapter.STRING.encodeWithTag(writer, 5,
            value.playback_url)
        if (value.org_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 6, value.org_id)
        if (value.room_name != "") ProtoAdapter.STRING.encodeWithTag(writer, 7, value.room_name)
        if (value.room_uuid != "") ProtoAdapter.STRING.encodeWithTag(writer, 8, value.room_uuid)
        if (value.status != "") ProtoAdapter.STRING.encodeWithTag(writer, 9, value.status)
        writer.writeBytes(value.unknownFields)
      }

      public override fun encode(writer: ReverseProtoWriter, `value`: LiveStreamingEvent): Unit {
        writer.writeBytes(value.unknownFields)
        if (value.status != "") ProtoAdapter.STRING.encodeWithTag(writer, 9, value.status)
        if (value.room_uuid != "") ProtoAdapter.STRING.encodeWithTag(writer, 8, value.room_uuid)
        if (value.room_name != "") ProtoAdapter.STRING.encodeWithTag(writer, 7, value.room_name)
        if (value.org_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 6, value.org_id)
        if (value.playback_url != "") ProtoAdapter.STRING.encodeWithTag(writer, 5,
            value.playback_url)
        if (value.meeting_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 4, value.meeting_id)
        if (value.name != "") ProtoAdapter.STRING.encodeWithTag(writer, 3, value.name)
        if (value.err_message != "") ProtoAdapter.STRING.encodeWithTag(writer, 2, value.err_message)
        if (value.livestream_id != "") ProtoAdapter.STRING.encodeWithTag(writer, 1,
            value.livestream_id)
      }

      public override fun decode(reader: ProtoReader): LiveStreamingEvent {
        var livestream_id: String = ""
        var err_message: String = ""
        var name: String = ""
        var meeting_id: String = ""
        var playback_url: String = ""
        var org_id: String = ""
        var room_name: String = ""
        var room_uuid: String = ""
        var status: String = ""
        val unknownFields = reader.forEachTag { tag ->
          when (tag) {
            1 -> livestream_id = ProtoAdapter.STRING.decode(reader)
            2 -> err_message = ProtoAdapter.STRING.decode(reader)
            3 -> name = ProtoAdapter.STRING.decode(reader)
            4 -> meeting_id = ProtoAdapter.STRING.decode(reader)
            5 -> playback_url = ProtoAdapter.STRING.decode(reader)
            6 -> org_id = ProtoAdapter.STRING.decode(reader)
            7 -> room_name = ProtoAdapter.STRING.decode(reader)
            8 -> room_uuid = ProtoAdapter.STRING.decode(reader)
            9 -> status = ProtoAdapter.STRING.decode(reader)
            else -> reader.readUnknownField(tag)
          }
        }
        return LiveStreamingEvent(
          livestream_id = livestream_id,
          err_message = err_message,
          name = name,
          meeting_id = meeting_id,
          playback_url = playback_url,
          org_id = org_id,
          room_name = room_name,
          room_uuid = room_uuid,
          status = status,
          unknownFields = unknownFields
        )
      }

      public override fun redact(`value`: LiveStreamingEvent): LiveStreamingEvent = value.copy(
        unknownFields = ByteString.EMPTY
      )
    }

    private const val serialVersionUID: Long = 0L
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy