com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.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("-initializestreamLatestProposalStatesResponse")
public inline fun streamLatestProposalStatesResponse(block: com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse =
com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.Dsl._create(com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.groups.StreamLatestProposalStatesResponse`
*/
public object StreamLatestProposalStatesResponseKt {
@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.StreamLatestProposalStatesResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse = _builder.build()
/**
* `.api.groups.ProposalState proposal = 1;`
*/
public var proposal: com.figure.block.api.proto.groups.Proposal.ProposalState
@JvmName("getProposal")
get() = _builder.getProposal()
@JvmName("setProposal")
set(value) {
_builder.setProposal(value)
}
/**
* `.api.groups.ProposalState proposal = 1;`
*/
public fun clearProposal() {
_builder.clearProposal()
}
/**
* `.api.groups.ProposalState proposal = 1;`
* @return Whether the proposal field is set.
*/
public fun hasProposal(): kotlin.Boolean {
return _builder.hasProposal()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse.copy(block: com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponse =
com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.ProposalServer.StreamLatestProposalStatesResponseOrBuilder.proposalOrNull: com.figure.block.api.proto.groups.Proposal.ProposalState?
get() = if (hasProposal()) getProposal() else null