com.figure.block.api.proto.groups.LatestProposalStateResponseKt.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("-initializelatestProposalStateResponse")
public inline fun latestProposalStateResponse(block: com.figure.block.api.proto.groups.LatestProposalStateResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse =
com.figure.block.api.proto.groups.LatestProposalStateResponseKt.Dsl._create(com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response data containing the latest proposal state for the given id
* ```
*
* Protobuf type `api.groups.LatestProposalStateResponse`
*/
public object LatestProposalStateResponseKt {
@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.LatestProposalStateResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse = _builder.build()
/**
* ```
* The latest proposal state for the given id
* ```
*
* `.api.groups.ProposalState proposal_state = 1;`
*/
public var proposalState: com.figure.block.api.proto.groups.Proposal.ProposalState
@JvmName("getProposalState")
get() = _builder.getProposalState()
@JvmName("setProposalState")
set(value) {
_builder.setProposalState(value)
}
/**
* ```
* The latest proposal state for the given id
* ```
*
* `.api.groups.ProposalState proposal_state = 1;`
*/
public fun clearProposalState() {
_builder.clearProposalState()
}
/**
* ```
* The latest proposal state for the given id
* ```
*
* `.api.groups.ProposalState proposal_state = 1;`
* @return Whether the proposalState field is set.
*/
public fun hasProposalState(): kotlin.Boolean {
return _builder.hasProposalState()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse.copy(block: com.figure.block.api.proto.groups.LatestProposalStateResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponse =
com.figure.block.api.proto.groups.LatestProposalStateResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.ProposalServer.LatestProposalStateResponseOrBuilder.proposalStateOrNull: com.figure.block.api.proto.groups.Proposal.ProposalState?
get() = if (hasProposalState()) getProposalState() else null