kotlin.com.parrot.drone.groundsdk.protobuf.StarfishLinkMetadataKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of video-metadata Show documentation
Show all versions of video-metadata Show documentation
video-metadata module is part of Parrot Ground SDK for Android
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: vmeta.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.parrot.drone.groundsdk.protobuf;
@kotlin.jvm.JvmName("-initializestarfishLinkMetadata")
public inline fun starfishLinkMetadata(block: com.parrot.drone.groundsdk.protobuf.StarfishLinkMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata =
com.parrot.drone.groundsdk.protobuf.StarfishLinkMetadataKt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata.newBuilder()).apply { block() }._build()
/**
* Protobuf type `vmeta.StarfishLinkMetadata`
*/
public object StarfishLinkMetadataKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class LinksProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
*/
public val links: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getLinksList()
)
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
* @param value The links to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addLinks")
public fun com.google.protobuf.kotlin.DslList.add(value: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkInfo) {
_builder.addLinks(value)
}
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
* @param value The links to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignLinks")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkInfo) {
add(value)
}
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
* @param values The links to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllLinks")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllLinks(values)
}
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
* @param values The links to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllLinks")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
* @param index The index to set the value at.
* @param value The links to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setLinks")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkInfo) {
_builder.setLinks(index, value)
}
/**
* ```
* Links
* ```
*
* `repeated .vmeta.StarfishLinkInfo links = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearLinks")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearLinks()
}
/**
* ```
* Global link quality indication: 1 (lower) to 5 (better),
* 0 if not available
* ```
*
* `int32 quality = 2;`
*/
public var quality: kotlin.Int
@JvmName("getQuality")
get() = _builder.getQuality()
@JvmName("setQuality")
set(value) {
_builder.setQuality(value)
}
/**
* ```
* Global link quality indication: 1 (lower) to 5 (better),
* 0 if not available
* ```
*
* `int32 quality = 2;`
*/
public fun clearQuality() {
_builder.clearQuality()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata.copy(block: com.parrot.drone.groundsdk.protobuf.StarfishLinkMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata =
com.parrot.drone.groundsdk.protobuf.StarfishLinkMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()