All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parrot.drone.groundsdk.protobuf.BoundingBoxKt.kt Maven / Gradle / Ivy

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("-initializeboundingBox")
public inline fun boundingBox(block: com.parrot.drone.groundsdk.protobuf.BoundingBoxKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox =
  com.parrot.drone.groundsdk.protobuf.BoundingBoxKt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox.newBuilder()).apply { block() }._build()
/**
 * ```
 * Bounding box for tracking and proposal 
 * ```
 *
 * Protobuf type `vmeta.BoundingBox`
 */
public object BoundingBoxKt {
  @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.BoundingBox.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox = _builder.build()

    /**
     * ```
     * Position [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 [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()
    }

    /**
     * ```
     * Dimensions [0; 1] relative to picture 
     * ```
     *
     * `float width = 3;`
     */
    public var width: kotlin.Float
      @JvmName("getWidth")
      get() = _builder.getWidth()
      @JvmName("setWidth")
      set(value) {
        _builder.setWidth(value)
      }
    /**
     * ```
     * Dimensions [0; 1] relative to picture 
     * ```
     *
     * `float width = 3;`
     */
    public fun clearWidth() {
      _builder.clearWidth()
    }

    /**
     * `float height = 4;`
     */
    public var height: kotlin.Float
      @JvmName("getHeight")
      get() = _builder.getHeight()
      @JvmName("setHeight")
      set(value) {
        _builder.setHeight(value)
      }
    /**
     * `float height = 4;`
     */
    public fun clearHeight() {
      _builder.clearHeight()
    }

    /**
     * ```
     * Type of tracked object 
     * ```
     *
     * `.vmeta.TrackingClass object_class = 5;`
     */
    public var objectClass: com.parrot.drone.groundsdk.protobuf.VideoMetadata.TrackingClass
      @JvmName("getObjectClass")
      get() = _builder.getObjectClass()
      @JvmName("setObjectClass")
      set(value) {
        _builder.setObjectClass(value)
      }
    public var objectClassValue: kotlin.Int
      @JvmName("getObjectClassValue")
      get() = _builder.getObjectClassValue()
      @JvmName("setObjectClassValue")
      set(value) {
        _builder.setObjectClassValue(value)
      }
    /**
     * ```
     * Type of tracked object 
     * ```
     *
     * `.vmeta.TrackingClass object_class = 5;`
     */
    public fun clearObjectClass() {
      _builder.clearObjectClass()
    }

    /**
     * ```
     * Tracking confidence [0; 1] 
     * ```
     *
     * `float confidence = 6;`
     */
    public var confidence: kotlin.Float
      @JvmName("getConfidence")
      get() = _builder.getConfidence()
      @JvmName("setConfidence")
      set(value) {
        _builder.setConfidence(value)
      }
    /**
     * ```
     * Tracking confidence [0; 1] 
     * ```
     *
     * `float confidence = 6;`
     */
    public fun clearConfidence() {
      _builder.clearConfidence()
    }

    /**
     * ```
     * Box unique identifier (UID). Multiple BoundingBox messages sharing
     * the same UID refers to the same bounding box 
     * ```
     *
     * `uint32 uid = 7;`
     */
    public var uid: kotlin.Int
      @JvmName("getUid")
      get() = _builder.getUid()
      @JvmName("setUid")
      set(value) {
        _builder.setUid(value)
      }
    /**
     * ```
     * Box unique identifier (UID). Multiple BoundingBox messages sharing
     * the same UID refers to the same bounding box 
     * ```
     *
     * `uint32 uid = 7;`
     */
    public fun clearUid() {
      _builder.clearUid()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox.copy(block: com.parrot.drone.groundsdk.protobuf.BoundingBoxKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.BoundingBox =
  com.parrot.drone.groundsdk.protobuf.BoundingBoxKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy