kotlin.com.parrot.drone.missions.samples.hello.airsdk.CommandKt.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("-initializecommand")
public inline fun command(block: com.parrot.drone.missions.samples.hello.airsdk.CommandKt.Dsl.() -> kotlin.Unit): com.parrot.drone.missions.samples.hello.airsdk.Hello.Command =
com.parrot.drone.missions.samples.hello.airsdk.CommandKt.Dsl._create(com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.newBuilder()).apply { block() }._build()
/**
* ```
* Union of all possible commands of this package.
* ```
*
* Protobuf type `parrot.missions.samples.hello.airsdk.messages.Command`
*/
public object CommandKt {
@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.Command.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.missions.samples.hello.airsdk.Hello.Command = _builder.build()
/**
* ```
* Ask to start say hello (ground)
* ```
*
* `.google.protobuf.Empty say = 1;`
*/
public var say: com.google.protobuf.Empty
@JvmName("getSay")
get() = _builder.getSay()
@JvmName("setSay")
set(value) {
_builder.setSay(value)
}
/**
* ```
* Ask to start say hello (ground)
* ```
*
* `.google.protobuf.Empty say = 1;`
*/
public fun clearSay() {
_builder.clearSay()
}
/**
* ```
* Ask to start say hello (ground)
* ```
*
* `.google.protobuf.Empty say = 1;`
* @return Whether the say field is set.
*/
public fun hasSay(): kotlin.Boolean {
return _builder.hasSay()
}
/**
* ```
* Ask to stop say hello (ground)
* ```
*
* `.google.protobuf.Empty hold = 2;`
*/
public var hold: com.google.protobuf.Empty
@JvmName("getHold")
get() = _builder.getHold()
@JvmName("setHold")
set(value) {
_builder.setHold(value)
}
/**
* ```
* Ask to stop say hello (ground)
* ```
*
* `.google.protobuf.Empty hold = 2;`
*/
public fun clearHold() {
_builder.clearHold()
}
/**
* ```
* Ask to stop say hello (ground)
* ```
*
* `.google.protobuf.Empty hold = 2;`
* @return Whether the hold field is set.
*/
public fun hasHold(): kotlin.Boolean {
return _builder.hasHold()
}
public val idCase: com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.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.Command.copy(block: com.parrot.drone.missions.samples.hello.airsdk.CommandKt.Dsl.() -> kotlin.Unit): com.parrot.drone.missions.samples.hello.airsdk.Hello.Command =
com.parrot.drone.missions.samples.hello.airsdk.CommandKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.parrot.drone.missions.samples.hello.airsdk.Hello.CommandOrBuilder.sayOrNull: com.google.protobuf.Empty?
get() = if (hasSay()) getSay() else null
public val com.parrot.drone.missions.samples.hello.airsdk.Hello.CommandOrBuilder.holdOrNull: com.google.protobuf.Empty?
get() = if (hasHold()) getHold() else null