com.figure.block.api.proto.groups.AllGroupStatesRequestKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-proto Show documentation
Show all versions of api-proto Show documentation
gRPC client code to interact with Figures off chain Provenance data
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("-initializeallGroupStatesRequest")
public inline fun allGroupStatesRequest(block: com.figure.block.api.proto.groups.AllGroupStatesRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest =
com.figure.block.api.proto.groups.AllGroupStatesRequestKt.Dsl._create(com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request to fetch all group states that have occurred for the given id
* ```
*
* Protobuf type `api.groups.AllGroupStatesRequest`
*/
public object AllGroupStatesRequestKt {
@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.AllGroupStatesRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest = _builder.build()
/**
* ```
* The unique group identifier for the target group
* ```
*
* `int64 group_id = 1;`
*/
public var groupId: kotlin.Long
@JvmName("getGroupId")
get() = _builder.getGroupId()
@JvmName("setGroupId")
set(value) {
_builder.setGroupId(value)
}
/**
* ```
* The unique group identifier for the target group
* ```
*
* `int64 group_id = 1;`
*/
public fun clearGroupId() {
_builder.clearGroupId()
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
*/
public var page: tech.figure.block.api.proto.Pagination.PageRequest
@JvmName("getPage")
get() = _builder.getPage()
@JvmName("setPage")
set(value) {
_builder.setPage(value)
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
*/
public fun clearPage() {
_builder.clearPage()
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
* @return Whether the page field is set.
*/
public fun hasPage(): kotlin.Boolean {
return _builder.hasPage()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest.copy(block: com.figure.block.api.proto.groups.AllGroupStatesRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequest =
com.figure.block.api.proto.groups.AllGroupStatesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.GroupServer.AllGroupStatesRequestOrBuilder.pageOrNull: tech.figure.block.api.proto.Pagination.PageRequest?
get() = if (hasPage()) getPage() else null