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

tech.figure.block.api.proto.BlocksKt.kt Maven / Gradle / Ivy

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

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;

@kotlin.jvm.JvmName("-initializeblocks")
public inline fun blocks(block: tech.figure.block.api.proto.BlocksKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Blocks =
  tech.figure.block.api.proto.BlocksKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Blocks.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.Blocks`
 */
public object BlocksKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: tech.figure.block.api.proto.BlockOuterClass.Blocks.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Blocks.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): tech.figure.block.api.proto.BlockOuterClass.Blocks = _builder.build()

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class BlocksProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.Block blocks = 1;`
     */
     public val blocks: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getBlocksList()
      )
    /**
     * `repeated .api.Block blocks = 1;`
     * @param value The blocks to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addBlocks")
    public fun com.google.protobuf.kotlin.DslList.add(value: tech.figure.block.api.proto.BlockOuterClass.Block) {
      _builder.addBlocks(value)
    }
    /**
     * `repeated .api.Block blocks = 1;`
     * @param value The blocks to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignBlocks")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: tech.figure.block.api.proto.BlockOuterClass.Block) {
      add(value)
    }
    /**
     * `repeated .api.Block blocks = 1;`
     * @param values The blocks to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllBlocks")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllBlocks(values)
    }
    /**
     * `repeated .api.Block blocks = 1;`
     * @param values The blocks to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllBlocks")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.Block blocks = 1;`
     * @param index The index to set the value at.
     * @param value The blocks to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setBlocks")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: tech.figure.block.api.proto.BlockOuterClass.Block) {
      _builder.setBlocks(index, value)
    }
    /**
     * `repeated .api.Block blocks = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearBlocks")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearBlocks()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Blocks.copy(block: tech.figure.block.api.proto.BlocksKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Blocks =
  tech.figure.block.api.proto.BlocksKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy