com.figure.block.api.proto.groups.LatestProposalStatesByGroupIdRequestKt.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/proposal-server.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.figure.block.api.proto.groups;
@kotlin.jvm.JvmName("-initializelatestProposalStatesByGroupIdRequest")
public inline fun latestProposalStatesByGroupIdRequest(block: com.figure.block.api.proto.groups.LatestProposalStatesByGroupIdRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequest =
com.figure.block.api.proto.groups.LatestProposalStatesByGroupIdRequestKt.Dsl._create(com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request to fetch all the latest proposal states for the provided group id
* ```
*
* Protobuf type `api.groups.LatestProposalStatesByGroupIdRequest`
*/
public object LatestProposalStatesByGroupIdRequestKt {
@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.ProposalServer.LatestProposalStatesByGroupIdRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequest = _builder.build()
/**
* ```
* The unique group id 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 id 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.ProposalServer.LatestProposalStatesByGroupIdRequest.copy(block: com.figure.block.api.proto.groups.LatestProposalStatesByGroupIdRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequest =
com.figure.block.api.proto.groups.LatestProposalStatesByGroupIdRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.ProposalServer.LatestProposalStatesByGroupIdRequestOrBuilder.pageOrNull: tech.figure.block.api.proto.Pagination.PageRequest?
get() = if (hasPage()) getPage() else null