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

com.figure.block.api.proto.AttributeStateKt.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("-initializeattributeState")
public inline fun attributeState(block: com.figure.block.api.proto.AttributeStateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.AttributeStateOuterClass.AttributeState =
  com.figure.block.api.proto.AttributeStateKt.Dsl._create(com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.AttributeState`
 */
public object AttributeStateKt {
  @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.AttributeState.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * `int64 height = 1;`
     */
    public var height: kotlin.Long
      @JvmName("getHeight")
      get() = _builder.getHeight()
      @JvmName("setHeight")
      set(value) {
        _builder.setHeight(value)
      }
    /**
     * `int64 height = 1;`
     */
    public fun clearHeight() {
      _builder.clearHeight()
    }

    /**
     * `string address = 2;`
     */
    public var address: kotlin.String
      @JvmName("getAddress")
      get() = _builder.getAddress()
      @JvmName("setAddress")
      set(value) {
        _builder.setAddress(value)
      }
    /**
     * `string address = 2;`
     */
    public fun clearAddress() {
      _builder.clearAddress()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class HistoryProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.History history = 3;`
     */
     public val history: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getHistoryList()
      )
    /**
     * `repeated .api.History history = 3;`
     * @param value The history to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addHistory")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.AttributeStateOuterClass.History) {
      _builder.addHistory(value)
    }
    /**
     * `repeated .api.History history = 3;`
     * @param value The history to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignHistory")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.AttributeStateOuterClass.History) {
      add(value)
    }
    /**
     * `repeated .api.History history = 3;`
     * @param values The history to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllHistory")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllHistory(values)
    }
    /**
     * `repeated .api.History history = 3;`
     * @param values The history to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllHistory")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.History history = 3;`
     * @param index The index to set the value at.
     * @param value The history to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setHistory")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.AttributeStateOuterClass.History) {
      _builder.setHistory(index, value)
    }
    /**
     * `repeated .api.History history = 3;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearHistory")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearHistory()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class StateProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.State state = 4;`
     */
     public val state: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getStateList()
      )
    /**
     * `repeated .api.State state = 4;`
     * @param value The state to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addState")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.AttributeStateOuterClass.State) {
      _builder.addState(value)
    }
    /**
     * `repeated .api.State state = 4;`
     * @param value The state to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignState")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.AttributeStateOuterClass.State) {
      add(value)
    }
    /**
     * `repeated .api.State state = 4;`
     * @param values The state to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllState")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllState(values)
    }
    /**
     * `repeated .api.State state = 4;`
     * @param values The state to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllState")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.State state = 4;`
     * @param index The index to set the value at.
     * @param value The state to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setState")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.AttributeStateOuterClass.State) {
      _builder.setState(index, value)
    }
    /**
     * `repeated .api.State state = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearState")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearState()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.AttributeStateOuterClass.AttributeState.copy(block: com.figure.block.api.proto.AttributeStateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.AttributeStateOuterClass.AttributeState =
  com.figure.block.api.proto.AttributeStateKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy