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

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

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("-initializevote")
public inline fun vote(block: com.figure.block.api.proto.groups.VoteKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Proposal.Vote =
  com.figure.block.api.proto.groups.VoteKt.Dsl._create(com.figure.block.api.proto.groups.Proposal.Vote.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.groups.Vote`
 */
public object VoteKt {
  @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.Vote.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.figure.block.api.proto.groups.Proposal.Vote.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.figure.block.api.proto.groups.Proposal.Vote = _builder.build()

    /**
     * `int64 proposal_id = 1;`
     */
    public var proposalId: kotlin.Long
      @JvmName("getProposalId")
      get() = _builder.getProposalId()
      @JvmName("setProposalId")
      set(value) {
        _builder.setProposalId(value)
      }
    /**
     * `int64 proposal_id = 1;`
     */
    public fun clearProposalId() {
      _builder.clearProposalId()
    }

    /**
     * `string voter = 2;`
     */
    public var voter: kotlin.String
      @JvmName("getVoter")
      get() = _builder.getVoter()
      @JvmName("setVoter")
      set(value) {
        _builder.setVoter(value)
      }
    /**
     * `string voter = 2;`
     */
    public fun clearVoter() {
      _builder.clearVoter()
    }

    /**
     * `string option = 3;`
     */
    public var option: kotlin.String
      @JvmName("getOption")
      get() = _builder.getOption()
      @JvmName("setOption")
      set(value) {
        _builder.setOption(value)
      }
    /**
     * `string option = 3;`
     */
    public fun clearOption() {
      _builder.clearOption()
    }

    /**
     * `string metadata = 4;`
     */
    public var metadata: kotlin.String
      @JvmName("getMetadata")
      get() = _builder.getMetadata()
      @JvmName("setMetadata")
      set(value) {
        _builder.setMetadata(value)
      }
    /**
     * `string metadata = 4;`
     */
    public fun clearMetadata() {
      _builder.clearMetadata()
    }

    /**
     * `.google.protobuf.Timestamp submit_time = 5;`
     */
    public var submitTime: com.google.protobuf.Timestamp
      @JvmName("getSubmitTime")
      get() = _builder.getSubmitTime()
      @JvmName("setSubmitTime")
      set(value) {
        _builder.setSubmitTime(value)
      }
    /**
     * `.google.protobuf.Timestamp submit_time = 5;`
     */
    public fun clearSubmitTime() {
      _builder.clearSubmitTime()
    }
    /**
     * `.google.protobuf.Timestamp submit_time = 5;`
     * @return Whether the submitTime field is set.
     */
    public fun hasSubmitTime(): kotlin.Boolean {
      return _builder.hasSubmitTime()
    }

    /**
     * `string weight = 6;`
     */
    public var weight: kotlin.String
      @JvmName("getWeight")
      get() = _builder.getWeight()
      @JvmName("setWeight")
      set(value) {
        _builder.setWeight(value)
      }
    /**
     * `string weight = 6;`
     */
    public fun clearWeight() {
      _builder.clearWeight()
    }

    /**
     * `bool no_longer_in_group = 7;`
     */
    public var noLongerInGroup: kotlin.Boolean
      @JvmName("getNoLongerInGroup")
      get() = _builder.getNoLongerInGroup()
      @JvmName("setNoLongerInGroup")
      set(value) {
        _builder.setNoLongerInGroup(value)
      }
    /**
     * `bool no_longer_in_group = 7;`
     */
    public fun clearNoLongerInGroup() {
      _builder.clearNoLongerInGroup()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.Proposal.Vote.copy(block: com.figure.block.api.proto.groups.VoteKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Proposal.Vote =
  com.figure.block.api.proto.groups.VoteKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.figure.block.api.proto.groups.Proposal.VoteOrBuilder.submitTimeOrNull: com.google.protobuf.Timestamp?
  get() = if (hasSubmitTime()) getSubmitTime() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy