com.parrot.drone.missions.samples.hello.airsdk.EventKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mission-hello Show documentation
Show all versions of mission-hello Show documentation
mission-hello module is part of Parrot Ground SDK for Android
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: parrot/missions/samples/hello/airsdk/messages.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.parrot.drone.missions.samples.hello.airsdk;
@kotlin.jvm.JvmName("-initializeevent")
public inline fun event(block: com.parrot.drone.missions.samples.hello.airsdk.EventKt.Dsl.() -> kotlin.Unit): com.parrot.drone.missions.samples.hello.airsdk.Hello.Event =
com.parrot.drone.missions.samples.hello.airsdk.EventKt.Dsl._create(com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.newBuilder()).apply { block() }._build()
/**
* ```
* Union of all possible events of this package.
* ```
*
* Protobuf type `parrot.missions.samples.hello.airsdk.messages.Event`
*/
public object EventKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.missions.samples.hello.airsdk.Hello.Event = _builder.build()
/**
* ```
* Count of hello (ground)
* ```
*
* `uint32 count = 1;`
*/
public var count: kotlin.Int
@JvmName("getCount")
get() = _builder.getCount()
@JvmName("setCount")
set(value) {
_builder.setCount(value)
}
/**
* ```
* Count of hello (ground)
* ```
*
* `uint32 count = 1;`
*/
public fun clearCount() {
_builder.clearCount()
}
/**
* ```
* Count of hello (ground)
* ```
*
* `uint32 count = 1;`
* @return Whether the count field is set.
*/
public fun hasCount(): kotlin.Boolean {
return _builder.hasCount()
}
/**
* ```
* Stereo sees something close (all)
* ```
*
* `bool stereo_close = 2;`
*/
public var stereoClose: kotlin.Boolean
@JvmName("getStereoClose")
get() = _builder.getStereoClose()
@JvmName("setStereoClose")
set(value) {
_builder.setStereoClose(value)
}
/**
* ```
* Stereo sees something close (all)
* ```
*
* `bool stereo_close = 2;`
*/
public fun clearStereoClose() {
_builder.clearStereoClose()
}
/**
* ```
* Stereo sees something close (all)
* ```
*
* `bool stereo_close = 2;`
* @return Whether the stereoClose field is set.
*/
public fun hasStereoClose(): kotlin.Boolean {
return _builder.hasStereoClose()
}
/**
* ```
* Drone is moving/steady (ground)
* ```
*
* `bool drone_moving = 3;`
*/
public var droneMoving: kotlin.Boolean
@JvmName("getDroneMoving")
get() = _builder.getDroneMoving()
@JvmName("setDroneMoving")
set(value) {
_builder.setDroneMoving(value)
}
/**
* ```
* Drone is moving/steady (ground)
* ```
*
* `bool drone_moving = 3;`
*/
public fun clearDroneMoving() {
_builder.clearDroneMoving()
}
/**
* ```
* Drone is moving/steady (ground)
* ```
*
* `bool drone_moving = 3;`
* @return Whether the droneMoving field is set.
*/
public fun hasDroneMoving(): kotlin.Boolean {
return _builder.hasDroneMoving()
}
/**
* ```
* Mean depth to closest object
* ```
*
* `float depth_mean = 4;`
*/
public var depthMean: kotlin.Float
@JvmName("getDepthMean")
get() = _builder.getDepthMean()
@JvmName("setDepthMean")
set(value) {
_builder.setDepthMean(value)
}
/**
* ```
* Mean depth to closest object
* ```
*
* `float depth_mean = 4;`
*/
public fun clearDepthMean() {
_builder.clearDepthMean()
}
/**
* ```
* Mean depth to closest object
* ```
*
* `float depth_mean = 4;`
* @return Whether the depthMean field is set.
*/
public fun hasDepthMean(): kotlin.Boolean {
return _builder.hasDepthMean()
}
public val idCase: com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.IdCase
@JvmName("getIdCase")
get() = _builder.getIdCase()
public fun clearId() {
_builder.clearId()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.copy(block: com.parrot.drone.missions.samples.hello.airsdk.EventKt.Dsl.() -> kotlin.Unit): com.parrot.drone.missions.samples.hello.airsdk.Hello.Event =
com.parrot.drone.missions.samples.hello.airsdk.EventKt.Dsl._create(this.toBuilder()).apply { block() }._build()