com.figure.block.api.proto.groups.ProposalStateKt.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.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.figure.block.api.proto.groups;
@kotlin.jvm.JvmName("-initializeproposalState")
public inline fun proposalState(block: com.figure.block.api.proto.groups.ProposalStateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Proposal.ProposalState =
com.figure.block.api.proto.groups.ProposalStateKt.Dsl._create(com.figure.block.api.proto.groups.Proposal.ProposalState.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.groups.ProposalState`
*/
public object ProposalStateKt {
@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.Proposal.ProposalState.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.Proposal.ProposalState.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.Proposal.ProposalState = _builder.build()
/**
* `int64 height = 1;`
*/
public var height: kotlin.Long
@JvmName("getHeight")
get() = _builder.getHeight()
@JvmName("setHeight")
set(value) {
_builder.setHeight(value)
}
/**
* `int64 height = 1;`
*/
public fun clearHeight() {
_builder.clearHeight()
}
/**
* `int64 group_id = 2;`
*/
public var groupId: kotlin.Long
@JvmName("getGroupId")
get() = _builder.getGroupId()
@JvmName("setGroupId")
set(value) {
_builder.setGroupId(value)
}
/**
* `int64 group_id = 2;`
*/
public fun clearGroupId() {
_builder.clearGroupId()
}
/**
* `int64 proposal_id = 3;`
*/
public var proposalId: kotlin.Long
@JvmName("getProposalId")
get() = _builder.getProposalId()
@JvmName("setProposalId")
set(value) {
_builder.setProposalId(value)
}
/**
* `int64 proposal_id = 3;`
*/
public fun clearProposalId() {
_builder.clearProposalId()
}
/**
* `string group_policy_address = 4;`
*/
public var groupPolicyAddress: kotlin.String
@JvmName("getGroupPolicyAddress")
get() = _builder.getGroupPolicyAddress()
@JvmName("setGroupPolicyAddress")
set(value) {
_builder.setGroupPolicyAddress(value)
}
/**
* `string group_policy_address = 4;`
*/
public fun clearGroupPolicyAddress() {
_builder.clearGroupPolicyAddress()
}
/**
* `string metadata = 5;`
*/
public var metadata: kotlin.String
@JvmName("getMetadata")
get() = _builder.getMetadata()
@JvmName("setMetadata")
set(value) {
_builder.setMetadata(value)
}
/**
* `string metadata = 5;`
*/
public fun clearMetadata() {
_builder.clearMetadata()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ProposersProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated string proposers = 6;`
* @return A list containing the proposers.
*/
public val proposers: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getProposersList()
)
/**
* `repeated string proposers = 6;`
* @param value The proposers to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addProposers")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addProposers(value)
}
/**
* `repeated string proposers = 6;`
* @param value The proposers to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignProposers")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* `repeated string proposers = 6;`
* @param values The proposers to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllProposers")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllProposers(values)
}
/**
* `repeated string proposers = 6;`
* @param values The proposers to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllProposers")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated string proposers = 6;`
* @param index The index to set the value at.
* @param value The proposers to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setProposers")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setProposers(index, value)
}/**
* `repeated string proposers = 6;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearProposers")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearProposers()
}
/**
* `.google.protobuf.Timestamp submit_time = 7;`
*/
public var submitTime: com.google.protobuf.Timestamp
@JvmName("getSubmitTime")
get() = _builder.getSubmitTime()
@JvmName("setSubmitTime")
set(value) {
_builder.setSubmitTime(value)
}
/**
* `.google.protobuf.Timestamp submit_time = 7;`
*/
public fun clearSubmitTime() {
_builder.clearSubmitTime()
}
/**
* `.google.protobuf.Timestamp submit_time = 7;`
* @return Whether the submitTime field is set.
*/
public fun hasSubmitTime(): kotlin.Boolean {
return _builder.hasSubmitTime()
}
/**
* `int64 group_version = 8;`
*/
public var groupVersion: kotlin.Long
@JvmName("getGroupVersion")
get() = _builder.getGroupVersion()
@JvmName("setGroupVersion")
set(value) {
_builder.setGroupVersion(value)
}
/**
* `int64 group_version = 8;`
*/
public fun clearGroupVersion() {
_builder.clearGroupVersion()
}
/**
* `int64 group_policy_version = 9;`
*/
public var groupPolicyVersion: kotlin.Long
@JvmName("getGroupPolicyVersion")
get() = _builder.getGroupPolicyVersion()
@JvmName("setGroupPolicyVersion")
set(value) {
_builder.setGroupPolicyVersion(value)
}
/**
* `int64 group_policy_version = 9;`
*/
public fun clearGroupPolicyVersion() {
_builder.clearGroupPolicyVersion()
}
/**
* `string status = 10;`
*/
public var status: kotlin.String
@JvmName("getStatus")
get() = _builder.getStatus()
@JvmName("setStatus")
set(value) {
_builder.setStatus(value)
}
/**
* `string status = 10;`
*/
public fun clearStatus() {
_builder.clearStatus()
}
/**
* `.api.groups.TallyResult final_tally_result = 11;`
*/
public var finalTallyResult: com.figure.block.api.proto.groups.Proposal.TallyResult
@JvmName("getFinalTallyResult")
get() = _builder.getFinalTallyResult()
@JvmName("setFinalTallyResult")
set(value) {
_builder.setFinalTallyResult(value)
}
/**
* `.api.groups.TallyResult final_tally_result = 11;`
*/
public fun clearFinalTallyResult() {
_builder.clearFinalTallyResult()
}
/**
* `.api.groups.TallyResult final_tally_result = 11;`
* @return Whether the finalTallyResult field is set.
*/
public fun hasFinalTallyResult(): kotlin.Boolean {
return _builder.hasFinalTallyResult()
}
/**
* `.google.protobuf.Timestamp voting_period_end = 12;`
*/
public var votingPeriodEnd: com.google.protobuf.Timestamp
@JvmName("getVotingPeriodEnd")
get() = _builder.getVotingPeriodEnd()
@JvmName("setVotingPeriodEnd")
set(value) {
_builder.setVotingPeriodEnd(value)
}
/**
* `.google.protobuf.Timestamp voting_period_end = 12;`
*/
public fun clearVotingPeriodEnd() {
_builder.clearVotingPeriodEnd()
}
/**
* `.google.protobuf.Timestamp voting_period_end = 12;`
* @return Whether the votingPeriodEnd field is set.
*/
public fun hasVotingPeriodEnd(): kotlin.Boolean {
return _builder.hasVotingPeriodEnd()
}
/**
* `string executor_result = 13;`
*/
public var executorResult: kotlin.String
@JvmName("getExecutorResult")
get() = _builder.getExecutorResult()
@JvmName("setExecutorResult")
set(value) {
_builder.setExecutorResult(value)
}
/**
* `string executor_result = 13;`
*/
public fun clearExecutorResult() {
_builder.clearExecutorResult()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class MessagesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .google.protobuf.Any messages = 14;`
*/
public val messages: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getMessagesList()
)
/**
* `repeated .google.protobuf.Any messages = 14;`
* @param value The messages to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addMessages")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Any) {
_builder.addMessages(value)
}
/**
* `repeated .google.protobuf.Any messages = 14;`
* @param value The messages to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignMessages")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Any) {
add(value)
}
/**
* `repeated .google.protobuf.Any messages = 14;`
* @param values The messages to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllMessages")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllMessages(values)
}
/**
* `repeated .google.protobuf.Any messages = 14;`
* @param values The messages to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllMessages")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .google.protobuf.Any messages = 14;`
* @param index The index to set the value at.
* @param value The messages to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setMessages")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Any) {
_builder.setMessages(index, value)
}
/**
* `repeated .google.protobuf.Any messages = 14;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearMessages")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearMessages()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class VotesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .api.groups.Vote votes = 15;`
*/
public val votes: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getVotesList()
)
/**
* `repeated .api.groups.Vote votes = 15;`
* @param value The votes to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addVotes")
public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.groups.Proposal.Vote) {
_builder.addVotes(value)
}
/**
* `repeated .api.groups.Vote votes = 15;`
* @param value The votes to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignVotes")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.groups.Proposal.Vote) {
add(value)
}
/**
* `repeated .api.groups.Vote votes = 15;`
* @param values The votes to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllVotes")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllVotes(values)
}
/**
* `repeated .api.groups.Vote votes = 15;`
* @param values The votes to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllVotes")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .api.groups.Vote votes = 15;`
* @param index The index to set the value at.
* @param value The votes to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setVotes")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.groups.Proposal.Vote) {
_builder.setVotes(index, value)
}
/**
* `repeated .api.groups.Vote votes = 15;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearVotes")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearVotes()
}
/**
* `.api.groups.TallyResult calculated_tally_result = 16;`
*/
public var calculatedTallyResult: com.figure.block.api.proto.groups.Proposal.TallyResult
@JvmName("getCalculatedTallyResult")
get() = _builder.getCalculatedTallyResult()
@JvmName("setCalculatedTallyResult")
set(value) {
_builder.setCalculatedTallyResult(value)
}
/**
* `.api.groups.TallyResult calculated_tally_result = 16;`
*/
public fun clearCalculatedTallyResult() {
_builder.clearCalculatedTallyResult()
}
/**
* `.api.groups.TallyResult calculated_tally_result = 16;`
* @return Whether the calculatedTallyResult field is set.
*/
public fun hasCalculatedTallyResult(): kotlin.Boolean {
return _builder.hasCalculatedTallyResult()
}
/**
* `bool pruned = 17;`
*/
public var pruned: kotlin.Boolean
@JvmName("getPruned")
get() = _builder.getPruned()
@JvmName("setPruned")
set(value) {
_builder.setPruned(value)
}
/**
* `bool pruned = 17;`
*/
public fun clearPruned() {
_builder.clearPruned()
}
/**
* `string tx_hash = 18;`
*/
public var txHash: kotlin.String
@JvmName("getTxHash")
get() = _builder.getTxHash()
@JvmName("setTxHash")
set(value) {
_builder.setTxHash(value)
}
/**
* `string tx_hash = 18;`
*/
public fun clearTxHash() {
_builder.clearTxHash()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.Proposal.ProposalState.copy(block: com.figure.block.api.proto.groups.ProposalStateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Proposal.ProposalState =
com.figure.block.api.proto.groups.ProposalStateKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.Proposal.ProposalStateOrBuilder.submitTimeOrNull: com.google.protobuf.Timestamp?
get() = if (hasSubmitTime()) getSubmitTime() else null
public val com.figure.block.api.proto.groups.Proposal.ProposalStateOrBuilder.finalTallyResultOrNull: com.figure.block.api.proto.groups.Proposal.TallyResult?
get() = if (hasFinalTallyResult()) getFinalTallyResult() else null
public val com.figure.block.api.proto.groups.Proposal.ProposalStateOrBuilder.votingPeriodEndOrNull: com.google.protobuf.Timestamp?
get() = if (hasVotingPeriodEnd()) getVotingPeriodEnd() else null
public val com.figure.block.api.proto.groups.Proposal.ProposalStateOrBuilder.calculatedTallyResultOrNull: com.figure.block.api.proto.groups.Proposal.TallyResult?
get() = if (hasCalculatedTallyResult()) getCalculatedTallyResult() else null