Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
commonMain.hiveline.stream.Output.kt Maven / Gradle / Ivy
Go to download
KMP package which exports compiled protobuf entities to be used by other repos
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: hiveline.stream.Output in hiveline/stream.proto
package hiveline.stream
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`.countNonNull
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 Output(
@field:WireField(
tag = 1,
adapter = "hiveline.stream.UploadConfig#ADAPTER",
jsonName = "uploadConfig",
oneofName = "output",
)
public val upload_config: UploadConfig? = null,
@field:WireField(
tag = 2,
adapter = "hiveline.stream.RtmpConfig#ADAPTER",
jsonName = "rtmpConfig",
oneofName = "output",
)
public val rtmp_config: RtmpConfig? = null,
@field:WireField(
tag = 3,
adapter = "hiveline.stream.DyteBucket#ADAPTER",
jsonName = "dyteBucket",
oneofName = "output",
)
public val dyte_bucket: DyteBucket? = null,
unknownFields: ByteString = ByteString.EMPTY,
) : Message(ADAPTER, unknownFields) {
init {
require(countNonNull(upload_config, rtmp_config, dyte_bucket) <= 1) {
"At most one of upload_config, rtmp_config, dyte_bucket may be non-null"
}
}
@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 Output) return false
if (unknownFields != other.unknownFields) return false
if (upload_config != other.upload_config) return false
if (rtmp_config != other.rtmp_config) return false
if (dyte_bucket != other.dyte_bucket) return false
return true
}
public override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (upload_config?.hashCode() ?: 0)
result = result * 37 + (rtmp_config?.hashCode() ?: 0)
result = result * 37 + (dyte_bucket?.hashCode() ?: 0)
super.hashCode = result
}
return result
}
public override fun toString(): String {
val result = mutableListOf()
if (upload_config != null) result += """upload_config=$upload_config"""
if (rtmp_config != null) result += """rtmp_config=$rtmp_config"""
if (dyte_bucket != null) result += """dyte_bucket=$dyte_bucket"""
return result.joinToString(prefix = "Output{", separator = ", ", postfix = "}")
}
public fun copy(
upload_config: UploadConfig? = this.upload_config,
rtmp_config: RtmpConfig? = this.rtmp_config,
dyte_bucket: DyteBucket? = this.dyte_bucket,
unknownFields: ByteString = this.unknownFields,
): Output = Output(upload_config, rtmp_config, dyte_bucket, unknownFields)
public companion object {
public val ADAPTER: ProtoAdapter = object : ProtoAdapter(
FieldEncoding.LENGTH_DELIMITED,
Output::class,
"type.googleapis.com/hiveline.stream.Output",
PROTO_3,
null,
"hiveline/stream.proto"
) {
public override fun encodedSize(`value`: Output): Int {
var size = value.unknownFields.size
size += UploadConfig.ADAPTER.encodedSizeWithTag(1, value.upload_config)
size += RtmpConfig.ADAPTER.encodedSizeWithTag(2, value.rtmp_config)
size += DyteBucket.ADAPTER.encodedSizeWithTag(3, value.dyte_bucket)
return size
}
public override fun encode(writer: ProtoWriter, `value`: Output): Unit {
UploadConfig.ADAPTER.encodeWithTag(writer, 1, value.upload_config)
RtmpConfig.ADAPTER.encodeWithTag(writer, 2, value.rtmp_config)
DyteBucket.ADAPTER.encodeWithTag(writer, 3, value.dyte_bucket)
writer.writeBytes(value.unknownFields)
}
public override fun encode(writer: ReverseProtoWriter, `value`: Output): Unit {
writer.writeBytes(value.unknownFields)
DyteBucket.ADAPTER.encodeWithTag(writer, 3, value.dyte_bucket)
RtmpConfig.ADAPTER.encodeWithTag(writer, 2, value.rtmp_config)
UploadConfig.ADAPTER.encodeWithTag(writer, 1, value.upload_config)
}
public override fun decode(reader: ProtoReader): Output {
var upload_config: UploadConfig? = null
var rtmp_config: RtmpConfig? = null
var dyte_bucket: DyteBucket? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> upload_config = UploadConfig.ADAPTER.decode(reader)
2 -> rtmp_config = RtmpConfig.ADAPTER.decode(reader)
3 -> dyte_bucket = DyteBucket.ADAPTER.decode(reader)
else -> reader.readUnknownField(tag)
}
}
return Output(
upload_config = upload_config,
rtmp_config = rtmp_config,
dyte_bucket = dyte_bucket,
unknownFields = unknownFields
)
}
public override fun redact(`value`: Output): Output = value.copy(
upload_config = value.upload_config?.let(UploadConfig.ADAPTER::redact),
rtmp_config = value.rtmp_config?.let(RtmpConfig.ADAPTER::redact),
dyte_bucket = value.dyte_bucket?.let(DyteBucket.ADAPTER::redact),
unknownFields = ByteString.EMPTY
)
}
private const val serialVersionUID: Long = 0L
}
}