com.parrot.drone.groundsdk.protobuf.TrackingMetadataKt.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("-initializetrackingMetadata")
public inline fun trackingMetadata(block: com.parrot.drone.groundsdk.protobuf.TrackingMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata =
com.parrot.drone.groundsdk.protobuf.TrackingMetadataKt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata.newBuilder()).apply { block() }._build()
/**
* Protobuf type `vmeta.TrackingMetadata`
*/
public object TrackingMetadataKt {
@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.TrackingMetadata.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata = _builder.build()
/**
* ```
* Tracking target
* ```
*
* `.vmeta.BoundingBox target = 1;`
*/
public var target: com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox
@JvmName("getTarget")
get() = _builder.getTarget()
@JvmName("setTarget")
set(value) {
_builder.setTarget(value)
}
/**
* ```
* Tracking target
* ```
*
* `.vmeta.BoundingBox target = 1;`
*/
public fun clearTarget() {
_builder.clearTarget()
}
/**
* ```
* Tracking target
* ```
*
* `.vmeta.BoundingBox target = 1;`
* @return Whether the target field is set.
*/
public fun hasTarget(): kotlin.Boolean {
return _builder.hasTarget()
}
/**
* ```
* Processed frame capture timestamp (us, monotonic)
* note: may be different from the timestamp in CameraMetadata
* ```
*
* `uint64 timestamp = 2;`
*/
public var timestamp: kotlin.Long
@JvmName("getTimestamp")
get() = _builder.getTimestamp()
@JvmName("setTimestamp")
set(value) {
_builder.setTimestamp(value)
}
/**
* ```
* Processed frame capture timestamp (us, monotonic)
* note: may be different from the timestamp in CameraMetadata
* ```
*
* `uint64 timestamp = 2;`
*/
public fun clearTimestamp() {
_builder.clearTimestamp()
}
/**
* ```
* Tracking quality ([0; 255], 0 is worst, 255 is best)
* ```
*
* `uint32 quality = 3;`
*/
public var quality: kotlin.Int
@JvmName("getQuality")
get() = _builder.getQuality()
@JvmName("setQuality")
set(value) {
_builder.setQuality(value)
}
/**
* ```
* Tracking quality ([0; 255], 0 is worst, 255 is best)
* ```
*
* `uint32 quality = 3;`
*/
public fun clearQuality() {
_builder.clearQuality()
}
/**
* ```
* Tracking state
* ```
*
* `.vmeta.TrackingState state = 4;`
*/
public var state: com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingState
@JvmName("getState")
get() = _builder.getState()
@JvmName("setState")
set(value) {
_builder.setState(value)
}
public var stateValue: kotlin.Int
@JvmName("getStateValue")
get() = _builder.getStateValue()
@JvmName("setStateValue")
set(value) {
_builder.setStateValue(value)
}
/**
* ```
* Tracking state
* ```
*
* `.vmeta.TrackingState state = 4;`
*/
public fun clearState() {
_builder.clearState()
}
/**
* ```
* Cookie value passed by the app when the tracking is started
* ```
*
* `uint32 cookie = 5;`
*/
public var cookie: kotlin.Int
@JvmName("getCookie")
get() = _builder.getCookie()
@JvmName("setCookie")
set(value) {
_builder.setCookie(value)
}
/**
* ```
* Cookie value passed by the app when the tracking is started
* ```
*
* `uint32 cookie = 5;`
*/
public fun clearCookie() {
_builder.clearCookie()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata.copy(block: com.parrot.drone.groundsdk.protobuf.TrackingMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadata =
com.parrot.drone.groundsdk.protobuf.TrackingMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingMetadataOrBuilder.targetOrNull: com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox?
get() = if (hasTarget()) getTarget() else null