All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.figure.block.api.proto.groups.StreamLatestProposalStatesResponseKt.kt Maven / Gradle / Ivy

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy