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

tech.figure.block.api.proto.AttributeKt.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("-initializeattribute")
public inline fun attribute(block: tech.figure.block.api.proto.AttributeKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Attribute =
  tech.figure.block.api.proto.AttributeKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Attribute.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.Attribute`
 */
public object AttributeKt {
  @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.Attribute.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Attribute.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * `string key = 1;`
     */
    public var key: kotlin.String
      @JvmName("getKey")
      get() = _builder.getKey()
      @JvmName("setKey")
      set(value) {
        _builder.setKey(value)
      }
    /**
     * `string key = 1;`
     */
    public fun clearKey() {
      _builder.clearKey()
    }

    /**
     * `string value = 2;`
     */
    public var value: kotlin.String
      @JvmName("getValue")
      get() = _builder.getValue()
      @JvmName("setValue")
      set(value) {
        _builder.setValue(value)
      }
    /**
     * `string value = 2;`
     */
    public fun clearValue() {
      _builder.clearValue()
    }

    /**
     * `bool index = 3;`
     */
    public var index: kotlin.Boolean
      @JvmName("getIndex")
      get() = _builder.getIndex()
      @JvmName("setIndex")
      set(value) {
        _builder.setIndex(value)
      }
    /**
     * `bool index = 3;`
     */
    public fun clearIndex() {
      _builder.clearIndex()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Attribute.copy(block: tech.figure.block.api.proto.AttributeKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Attribute =
  tech.figure.block.api.proto.AttributeKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy