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

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

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

    /**
     * ```
     * Wifi link metadata 
     * ```
     *
     * `.vmeta.WifiLinkMetadata wifi = 1;`
     */
    public var wifi: com.parrot.drone.groundsdk.protobuf.VideoMetadata.WifiLinkMetadata
      @JvmName("getWifi")
      get() = _builder.getWifi()
      @JvmName("setWifi")
      set(value) {
        _builder.setWifi(value)
      }
    /**
     * ```
     * Wifi link metadata 
     * ```
     *
     * `.vmeta.WifiLinkMetadata wifi = 1;`
     */
    public fun clearWifi() {
      _builder.clearWifi()
    }
    /**
     * ```
     * Wifi link metadata 
     * ```
     *
     * `.vmeta.WifiLinkMetadata wifi = 1;`
     * @return Whether the wifi field is set.
     */
    public fun hasWifi(): kotlin.Boolean {
      return _builder.hasWifi()
    }

    /**
     * ```
     * Starfish link metadata 
     * ```
     *
     * `.vmeta.StarfishLinkMetadata starfish = 2;`
     */
    public var starfish: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata
      @JvmName("getStarfish")
      get() = _builder.getStarfish()
      @JvmName("setStarfish")
      set(value) {
        _builder.setStarfish(value)
      }
    /**
     * ```
     * Starfish link metadata 
     * ```
     *
     * `.vmeta.StarfishLinkMetadata starfish = 2;`
     */
    public fun clearStarfish() {
      _builder.clearStarfish()
    }
    /**
     * ```
     * Starfish link metadata 
     * ```
     *
     * `.vmeta.StarfishLinkMetadata starfish = 2;`
     * @return Whether the starfish field is set.
     */
    public fun hasStarfish(): kotlin.Boolean {
      return _builder.hasStarfish()
    }
    public val protocolCase: com.parrot.drone.groundsdk.protobuf.VideoMetadata.LinkMetadata.ProtocolCase
      @JvmName("getProtocolCase")
      get() = _builder.getProtocolCase()

    public fun clearProtocol() {
      _builder.clearProtocol()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.parrot.drone.groundsdk.protobuf.VideoMetadata.LinkMetadata.copy(block: com.parrot.drone.groundsdk.protobuf.LinkMetadataKt.Dsl.() -> kotlin.Unit): com.parrot.drone.groundsdk.protobuf.VideoMetadata.LinkMetadata =
  com.parrot.drone.groundsdk.protobuf.LinkMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.parrot.drone.groundsdk.protobuf.VideoMetadata.LinkMetadataOrBuilder.wifiOrNull: com.parrot.drone.groundsdk.protobuf.VideoMetadata.WifiLinkMetadata?
  get() = if (hasWifi()) getWifi() else null

public val com.parrot.drone.groundsdk.protobuf.VideoMetadata.LinkMetadataOrBuilder.starfishOrNull: com.parrot.drone.groundsdk.protobuf.VideoMetadata.StarfishLinkMetadata?
  get() = if (hasStarfish()) getStarfish() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy