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

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

The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: groups/group-server.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.figure.block.api.proto.groups;

@kotlin.jvm.JvmName("-initializelatestGroupStateResponse")
public inline fun latestGroupStateResponse(block: com.figure.block.api.proto.groups.LatestGroupStateResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponse =
  com.figure.block.api.proto.groups.LatestGroupStateResponseKt.Dsl._create(com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * Response data containing the latest group state for the given id
 * ```
 *
 * Protobuf type `api.groups.LatestGroupStateResponse`
 */
public object LatestGroupStateResponseKt {
  @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.GroupServer.LatestGroupStateResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponse.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The latest group state for the given id
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     */
    public var groupState: com.figure.block.api.proto.groups.Group.GroupState
      @JvmName("getGroupState")
      get() = _builder.getGroupState()
      @JvmName("setGroupState")
      set(value) {
        _builder.setGroupState(value)
      }
    /**
     * ```
     * The latest group state for the given id
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     */
    public fun clearGroupState() {
      _builder.clearGroupState()
    }
    /**
     * ```
     * The latest group state for the given id
     * ```
     *
     * `.api.groups.GroupState group_state = 1;`
     * @return Whether the groupState field is set.
     */
    public fun hasGroupState(): kotlin.Boolean {
      return _builder.hasGroupState()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponse.copy(block: com.figure.block.api.proto.groups.LatestGroupStateResponseKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponse =
  com.figure.block.api.proto.groups.LatestGroupStateResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.figure.block.api.proto.groups.GroupServer.LatestGroupStateResponseOrBuilder.groupStateOrNull: com.figure.block.api.proto.groups.Group.GroupState?
  get() = if (hasGroupState()) getGroupState() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy