com.parrot.drone.groundsdk.protobuf.LFICMetadataKt.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("-initializelFICMetadata")
public inline fun lFICMetadata(block: com.parrot.drone.groundsdk.protobuf.LFICMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata =
com.parrot.drone.groundsdk.protobuf.LFICMetadataKt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata.newBuilder()).apply { block() }._build()
/**
* Protobuf type `vmeta.LFICMetadata`
*/
public object LFICMetadataKt {
@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.LFICMetadata.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata = _builder.build()
/**
* ```
* Position of target [0; 1] in picture
* ```
*
* `float x = 1;`
*/
public var x: kotlin.Float
@JvmName("getX")
get() = _builder.getX()
@JvmName("setX")
set(value) {
_builder.setX(value)
}
/**
* ```
* Position of target [0; 1] in picture
* ```
*
* `float x = 1;`
*/
public fun clearX() {
_builder.clearX()
}
/**
* `float y = 2;`
*/
public var y: kotlin.Float
@JvmName("getY")
get() = _builder.getY()
@JvmName("setY")
set(value) {
_builder.setY(value)
}
/**
* `float y = 2;`
*/
public fun clearY() {
_builder.clearY()
}
/**
* ```
* Location of target
* ```
*
* `.vmeta.Location location = 3;`
*/
public var location: com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location
@JvmName("getLocation")
get() = _builder.getLocation()
@JvmName("setLocation")
set(value) {
_builder.setLocation(value)
}
/**
* ```
* Location of target
* ```
*
* `.vmeta.Location location = 3;`
*/
public fun clearLocation() {
_builder.clearLocation()
}
/**
* ```
* Location of target
* ```
*
* `.vmeta.Location location = 3;`
* @return Whether the location field is set.
*/
public fun hasLocation(): kotlin.Boolean {
return _builder.hasLocation()
}
/**
* ```
* Grid precision used for calculation (m)
* ```
*
* `double grid_precision = 4;`
*/
public var gridPrecision: kotlin.Double
@JvmName("getGridPrecision")
get() = _builder.getGridPrecision()
@JvmName("setGridPrecision")
set(value) {
_builder.setGridPrecision(value)
}
/**
* ```
* Grid precision used for calculation (m)
* ```
*
* `double grid_precision = 4;`
*/
public fun clearGridPrecision() {
_builder.clearGridPrecision()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata.copy(block: com.parrot.drone.groundsdk.protobuf.LFICMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadata =
com.parrot.drone.groundsdk.protobuf.LFICMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.parrot.drone.groundsdk.protobuf.VideoMetadata.LFICMetadataOrBuilder.locationOrNull: com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location?
get() = if (hasLocation()) getLocation() else null