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

com.figure.block.api.proto.groups.GroupStateAtHeightResponseKt.kt Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: groups/group-server.proto

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

@kotlin.jvm.JvmName("-initializegroupStateAtHeightResponse")
public inline fun groupStateAtHeightResponse(block: com.figure.block.api.proto.groups.GroupStateAtHeightResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponse =
  com.figure.block.api.proto.groups.GroupStateAtHeightResponseKt.Dsl._create(com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * Response data containing the latest group state for the given id
 * ```
 *
 * Protobuf type `api.groups.GroupStateAtHeightResponse`
 */
public object GroupStateAtHeightResponseKt {
  @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.groups.GroupServer.GroupStateAtHeightResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponse.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The latest group state for the given id at the provided height
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     */
    public var groupState: com.figure.block.api.proto.groups.Group.GroupState
      @JvmName("getGroupState")
      get() = _builder.getGroupState()
      @JvmName("setGroupState")
      set(value) {
        _builder.setGroupState(value)
      }
    /**
     * ```
     * The latest group state for the given id at the provided height
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     */
    public fun clearGroupState() {
      _builder.clearGroupState()
    }
    /**
     * ```
     * The latest group state for the given id at the provided height
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     * @return Whether the groupState field is set.
     */
    public fun hasGroupState(): kotlin.Boolean {
      return _builder.hasGroupState()
    }

    /**
     * ```
     * The height that was requested (note: this may be different than the group state field's height, as that was the height at which it was changed)
     * ```
     *
     * `int64 height = 2;`
     */
    public var height: kotlin.Long
      @JvmName("getHeight")
      get() = _builder.getHeight()
      @JvmName("setHeight")
      set(value) {
        _builder.setHeight(value)
      }
    /**
     * ```
     * The height that was requested (note: this may be different than the group state field's height, as that was the height at which it was changed)
     * ```
     *
     * `int64 height = 2;`
     */
    public fun clearHeight() {
      _builder.clearHeight()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponse.copy(block: com.figure.block.api.proto.groups.GroupStateAtHeightResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponse =
  com.figure.block.api.proto.groups.GroupStateAtHeightResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.figure.block.api.proto.groups.GroupServer.GroupStateAtHeightResponseOrBuilder.groupStateOrNull: com.figure.block.api.proto.groups.Group.GroupState?
  get() = if (hasGroupState()) getGroupState() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy