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

com.figure.block.api.proto.StateKt.kt Maven / Gradle / Ivy

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

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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.figure.block.api.proto.AttributeStateOuterClass.State = _builder.build()

    /**
     * `string type = 1;`
     */
    public var type: kotlin.String
      @JvmName("getType")
      get() = _builder.getType()
      @JvmName("setType")
      set(value) {
        _builder.setType(value)
      }
    /**
     * `string type = 1;`
     */
    public fun clearType() {
      _builder.clearType()
    }

    /**
     * `string name = 2;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * `string name = 2;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * `string value = 3;`
     */
    public var value: kotlin.String
      @JvmName("getValue")
      get() = _builder.getValue()
      @JvmName("setValue")
      set(value) {
        _builder.setValue(value)
      }
    /**
     * `string value = 3;`
     */
    public fun clearValue() {
      _builder.clearValue()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.AttributeStateOuterClass.State.copy(block: com.figure.block.api.proto.StateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.AttributeStateOuterClass.State =
  com.figure.block.api.proto.StateKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy