com.parrot.drone.groundsdk.protobuf.Vector2Kt.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("-initializevector2")
public inline fun vector2(block: com.parrot.drone.groundsdk.protobuf.Vector2Kt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2 =
com.parrot.drone.groundsdk.protobuf.Vector2Kt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2.newBuilder()).apply { block() }._build()
/**
* ```
* Generic 2 component vector
* ```
*
* Protobuf type `vmeta.Vector2`
*/
public object Vector2Kt {
@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.Vector2.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2 = _builder.build()
/**
* `float x = 1;`
*/
public var x: kotlin.Float
@JvmName("getX")
get() = _builder.getX()
@JvmName("setX")
set(value) {
_builder.setX(value)
}
/**
* `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()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2.copy(block: com.parrot.drone.groundsdk.protobuf.Vector2Kt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.Vector2 =
com.parrot.drone.groundsdk.protobuf.Vector2Kt.Dsl._create(this.toBuilder()).apply { block() }._build()