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

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

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class HeightProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated int64 height = 1;`
     */
     public val height: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getHeightList()
      )
    /**
     * `repeated int64 height = 1;`
     * @param value The height to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addHeight")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Long) {
      _builder.addHeight(value)
    }/**
     * `repeated int64 height = 1;`
     * @param value The height to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignHeight")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Long) {
      add(value)
    }/**
     * `repeated int64 height = 1;`
     * @param values The height to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllHeight")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllHeight(values)
    }/**
     * `repeated int64 height = 1;`
     * @param values The height to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllHeight")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }/**
     * `repeated int64 height = 1;`
     * @param index The index to set the value at.
     * @param value The height to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setHeight")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Long) {
      _builder.setHeight(index, value)
    }/**
     * `repeated int64 height = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearHeight")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearHeight()
    }
    /**
     * `.api.PREFER prefer = 2;`
     */
    public var prefer: tech.figure.block.api.proto.BlockServiceOuterClass.PREFER
      @JvmName("getPrefer")
      get() = _builder.getPrefer()
      @JvmName("setPrefer")
      set(value) {
        _builder.setPrefer(value)
      }
    public var preferValue: kotlin.Int
      @JvmName("getPreferValue")
      get() = _builder.getPreferValue()
      @JvmName("setPreferValue")
      set(value) {
        _builder.setPreferValue(value)
      }
    /**
     * `.api.PREFER prefer = 2;`
     */
    public fun clearPrefer() {
      _builder.clearPrefer()
    }

    /**
     * `.api.PageRequest page = 3;`
     */
    public var page: tech.figure.block.api.proto.Pagination.PageRequest
      @JvmName("getPage")
      get() = _builder.getPage()
      @JvmName("setPage")
      set(value) {
        _builder.setPage(value)
      }
    /**
     * `.api.PageRequest page = 3;`
     */
    public fun clearPage() {
      _builder.clearPage()
    }
    /**
     * `.api.PageRequest page = 3;`
     * @return Whether the page field is set.
     */
    public fun hasPage(): kotlin.Boolean {
      return _builder.hasPage()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.GetBlocksRequest.copy(block: tech.figure.block.api.proto.GetBlocksRequestKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.GetBlocksRequest =
  tech.figure.block.api.proto.GetBlocksRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.BlockServiceOuterClass.GetBlocksRequestOrBuilder.pageOrNull: tech.figure.block.api.proto.Pagination.PageRequest?
  get() = if (hasPage()) getPage() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy