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

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

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto

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

@kotlin.jvm.JvmName("-initializelistValue")
public inline fun listValue(block: com.google.protobuf.ListValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.ListValue =
  com.google.protobuf.ListValueKt.Dsl._create(com.google.protobuf.ListValue.newBuilder()).apply { block() }._build()
/**
 * ```
 * `ListValue` is a wrapper around a repeated field of values.
 *
 * The JSON representation for `ListValue` is JSON array.
 * ```
 *
 * Protobuf type `google.protobuf.ListValue`
 */
public object ListValueKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.ListValue.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.protobuf.ListValue.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ValuesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     */
     public val values: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getValuesList()
      )
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     * @param value The values to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addValues")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Value) {
      _builder.addValues(value)
    }
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     * @param value The values to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignValues")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Value) {
      add(value)
    }
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     * @param values The values to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllValues")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllValues(values)
    }
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     * @param values The values to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllValues")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     * @param index The index to set the value at.
     * @param value The values to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setValues")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Value) {
      _builder.setValues(index, value)
    }
    /**
     * ```
     * Repeated field of dynamically typed values.
     * ```
     *
     * `repeated .google.protobuf.Value values = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearValues")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearValues()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.ListValue.copy(block: `com.google.protobuf`.ListValueKt.Dsl.() -> kotlin.Unit): com.google.protobuf.ListValue =
  `com.google.protobuf`.ListValueKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy