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

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

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

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

@kotlin.jvm.JvmName("-initializelatestScopeStreamRequest")
public inline fun latestScopeStreamRequest(block: tech.figure.block.api.proto.LatestScopeStreamRequestKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequest =
  tech.figure.block.api.proto.LatestScopeStreamRequestKt.Dsl._create(tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequest.newBuilder()).apply { block() }._build()
/**
 * ```
 * Fetch all latest scope states from start height to end height, if end height is 0, it becomes a continuous stream
 * ```
 *
 * Protobuf type `api.LatestScopeStreamRequest`
 */
public object LatestScopeStreamRequestKt {
  @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.BlockServiceOuterClass.LatestScopeStreamRequest.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequest.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * `int64 start_height = 1;`
     */
    public var startHeight: kotlin.Long
      @JvmName("getStartHeight")
      get() = _builder.getStartHeight()
      @JvmName("setStartHeight")
      set(value) {
        _builder.setStartHeight(value)
      }
    /**
     * `int64 start_height = 1;`
     */
    public fun clearStartHeight() {
      _builder.clearStartHeight()
    }

    /**
     * `int64 end_height = 2;`
     */
    public var endHeight: kotlin.Long
      @JvmName("getEndHeight")
      get() = _builder.getEndHeight()
      @JvmName("setEndHeight")
      set(value) {
        _builder.setEndHeight(value)
      }
    /**
     * `int64 end_height = 2;`
     */
    public fun clearEndHeight() {
      _builder.clearEndHeight()
    }

    /**
     * `.api.ScopeStateFilter filter = 3;`
     */
    public var filter: tech.figure.block.api.proto.BlockServiceOuterClass.ScopeStateFilter
      @JvmName("getFilter")
      get() = _builder.getFilter()
      @JvmName("setFilter")
      set(value) {
        _builder.setFilter(value)
      }
    /**
     * `.api.ScopeStateFilter filter = 3;`
     */
    public fun clearFilter() {
      _builder.clearFilter()
    }
    /**
     * `.api.ScopeStateFilter filter = 3;`
     * @return Whether the filter field is set.
     */
    public fun hasFilter(): kotlin.Boolean {
      return _builder.hasFilter()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequest.copy(block: tech.figure.block.api.proto.LatestScopeStreamRequestKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequest =
  tech.figure.block.api.proto.LatestScopeStreamRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.BlockServiceOuterClass.LatestScopeStreamRequestOrBuilder.filterOrNull: tech.figure.block.api.proto.BlockServiceOuterClass.ScopeStateFilter?
  get() = if (hasFilter()) getFilter() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy