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

com.parrot.drone.groundsdk.protobuf.LocationKt.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("-initializelocation")
public inline fun location(block: com.parrot.drone.groundsdk.protobuf.LocationKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location =
  com.parrot.drone.groundsdk.protobuf.LocationKt.Dsl._create(com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location.newBuilder()).apply { block() }._build()
/**
 * ```
 * Location on earth 
 * ```
 *
 * Protobuf type `vmeta.Location`
 */
public object LocationKt {
  @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.Location.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * Latitude and longitude (degrees) 
     * ```
     *
     * `double latitude = 1;`
     */
    public var latitude: kotlin.Double
      @JvmName("getLatitude")
      get() = _builder.getLatitude()
      @JvmName("setLatitude")
      set(value) {
        _builder.setLatitude(value)
      }
    /**
     * ```
     * Latitude and longitude (degrees) 
     * ```
     *
     * `double latitude = 1;`
     */
    public fun clearLatitude() {
      _builder.clearLatitude()
    }

    /**
     * `double longitude = 2;`
     */
    public var longitude: kotlin.Double
      @JvmName("getLongitude")
      get() = _builder.getLongitude()
      @JvmName("setLongitude")
      set(value) {
        _builder.setLongitude(value)
      }
    /**
     * `double longitude = 2;`
     */
    public fun clearLongitude() {
      _builder.clearLongitude()
    }

    /**
     * ```
     * Altitude above the WGS84 ellipsoid (m) (zero means unknown) 
     * ```
     *
     * `double altitude_wgs84ellipsoid = 3;`
     */
    public var altitudeWgs84Ellipsoid: kotlin.Double
      @JvmName("getAltitudeWgs84Ellipsoid")
      get() = _builder.getAltitudeWgs84Ellipsoid()
      @JvmName("setAltitudeWgs84Ellipsoid")
      set(value) {
        _builder.setAltitudeWgs84Ellipsoid(value)
      }
    /**
     * ```
     * Altitude above the WGS84 ellipsoid (m) (zero means unknown) 
     * ```
     *
     * `double altitude_wgs84ellipsoid = 3;`
     */
    public fun clearAltitudeWgs84Ellipsoid() {
      _builder.clearAltitudeWgs84Ellipsoid()
    }

    /**
     * ```
     * Altitude above the EGM96 geoid (AMSL) (m) (zero means unknown) 
     * ```
     *
     * `double altitude_egm96amsl = 7;`
     */
    public var altitudeEgm96Amsl: kotlin.Double
      @JvmName("getAltitudeEgm96Amsl")
      get() = _builder.getAltitudeEgm96Amsl()
      @JvmName("setAltitudeEgm96Amsl")
      set(value) {
        _builder.setAltitudeEgm96Amsl(value)
      }
    /**
     * ```
     * Altitude above the EGM96 geoid (AMSL) (m) (zero means unknown) 
     * ```
     *
     * `double altitude_egm96amsl = 7;`
     */
    public fun clearAltitudeEgm96Amsl() {
      _builder.clearAltitudeEgm96Amsl()
    }

    /**
     * ```
     * Horizontal and vertical location accuracy (m), zero means unknown 
     * ```
     *
     * `float horizontal_accuracy = 5;`
     */
    public var horizontalAccuracy: kotlin.Float
      @JvmName("getHorizontalAccuracy")
      get() = _builder.getHorizontalAccuracy()
      @JvmName("setHorizontalAccuracy")
      set(value) {
        _builder.setHorizontalAccuracy(value)
      }
    /**
     * ```
     * Horizontal and vertical location accuracy (m), zero means unknown 
     * ```
     *
     * `float horizontal_accuracy = 5;`
     */
    public fun clearHorizontalAccuracy() {
      _builder.clearHorizontalAccuracy()
    }

    /**
     * `float vertical_accuracy = 6;`
     */
    public var verticalAccuracy: kotlin.Float
      @JvmName("getVerticalAccuracy")
      get() = _builder.getVerticalAccuracy()
      @JvmName("setVerticalAccuracy")
      set(value) {
        _builder.setVerticalAccuracy(value)
      }
    /**
     * `float vertical_accuracy = 6;`
     */
    public fun clearVerticalAccuracy() {
      _builder.clearVerticalAccuracy()
    }

    /**
     * ```
     * GPS Satellite vehicle count, only set if location comes at least
     * partially from a GPS sensor 
     * ```
     *
     * `uint32 sv_count = 4;`
     */
    public var svCount: kotlin.Int
      @JvmName("getSvCount")
      get() = _builder.getSvCount()
      @JvmName("setSvCount")
      set(value) {
        _builder.setSvCount(value)
      }
    /**
     * ```
     * GPS Satellite vehicle count, only set if location comes at least
     * partially from a GPS sensor 
     * ```
     *
     * `uint32 sv_count = 4;`
     */
    public fun clearSvCount() {
      _builder.clearSvCount()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location.copy(block: com.parrot.drone.groundsdk.protobuf.LocationKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.Location =
  com.parrot.drone.groundsdk.protobuf.LocationKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy