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

com.google.protobuf.FloatValueKt.kt Maven / Gradle / Ivy

Go to download

Lite version of Kotlin Protocol Buffers library. This version is optimized for code size, but does not guarantee API/ABI stability.

The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;

@kotlin.jvm.JvmName("-initializefloatValue")
public inline fun floatValue(block: com.google.protobuf.FloatValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.FloatValue =
  com.google.protobuf.FloatValueKt.Dsl._create(com.google.protobuf.FloatValue.newBuilder()).apply { block() }._build()
/**
 * ```
 * Wrapper message for `float`.
 *
 * The JSON representation for `FloatValue` is JSON number.
 * ```
 *
 * Protobuf type `google.protobuf.FloatValue`
 */
public object FloatValueKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.FloatValue.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.FloatValue.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.protobuf.FloatValue = _builder.build()

    /**
     * 
     * The float value.
     * 
* * float value = 1; */ public var value: kotlin.Float @JvmName("getValue") get() = _builder.getValue() @JvmName("setValue") set(value) { _builder.setValue(value) } /** * ``` * The float value. * ``` * * `float value = 1;` */ public fun clearValue() { _builder.clearValue() } } } public inline fun com.google.protobuf.FloatValue.copy(block: com.google.protobuf.FloatValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.FloatValue = com.google.protobuf.FloatValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy