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

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

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

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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.figure.block.api.proto.groups.Group.GroupState = _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 version = 3;`
     */
    public var version: kotlin.Long
      @JvmName("getVersion")
      get() = _builder.getVersion()
      @JvmName("setVersion")
      set(value) {
        _builder.setVersion(value)
      }
    /**
     * `int64 version = 3;`
     */
    public fun clearVersion() {
      _builder.clearVersion()
    }

    /**
     * `string admin = 4;`
     */
    public var admin: kotlin.String
      @JvmName("getAdmin")
      get() = _builder.getAdmin()
      @JvmName("setAdmin")
      set(value) {
        _builder.setAdmin(value)
      }
    /**
     * `string admin = 4;`
     */
    public fun clearAdmin() {
      _builder.clearAdmin()
    }

    /**
     * `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()
    }

    /**
     * `string total_weight = 6;`
     */
    public var totalWeight: kotlin.String
      @JvmName("getTotalWeight")
      get() = _builder.getTotalWeight()
      @JvmName("setTotalWeight")
      set(value) {
        _builder.setTotalWeight(value)
      }
    /**
     * `string total_weight = 6;`
     */
    public fun clearTotalWeight() {
      _builder.clearTotalWeight()
    }

    /**
     * `.google.protobuf.Timestamp timestamp = 7;`
     */
    public var timestamp: com.google.protobuf.Timestamp
      @JvmName("getTimestamp")
      get() = _builder.getTimestamp()
      @JvmName("setTimestamp")
      set(value) {
        _builder.setTimestamp(value)
      }
    /**
     * `.google.protobuf.Timestamp timestamp = 7;`
     */
    public fun clearTimestamp() {
      _builder.clearTimestamp()
    }
    /**
     * `.google.protobuf.Timestamp timestamp = 7;`
     * @return Whether the timestamp field is set.
     */
    public fun hasTimestamp(): kotlin.Boolean {
      return _builder.hasTimestamp()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class MembersProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     */
     public val members: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getMembersList()
      )
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     * @param value The members to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addMembers")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.groups.Group.GroupMember) {
      _builder.addMembers(value)
    }
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     * @param value The members to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignMembers")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.groups.Group.GroupMember) {
      add(value)
    }
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     * @param values The members to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllMembers")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllMembers(values)
    }
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     * @param values The members to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllMembers")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     * @param index The index to set the value at.
     * @param value The members to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setMembers")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.groups.Group.GroupMember) {
      _builder.setMembers(index, value)
    }
    /**
     * `repeated .api.groups.GroupMember members = 8;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMembers")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMembers()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class PoliciesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     */
     public val policies: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getPoliciesList()
      )
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     * @param value The policies to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addPolicies")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.groups.Group.GroupPolicy) {
      _builder.addPolicies(value)
    }
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     * @param value The policies to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignPolicies")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.groups.Group.GroupPolicy) {
      add(value)
    }
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     * @param values The policies to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllPolicies")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllPolicies(values)
    }
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     * @param values The policies to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllPolicies")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     * @param index The index to set the value at.
     * @param value The policies to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setPolicies")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.groups.Group.GroupPolicy) {
      _builder.setPolicies(index, value)
    }
    /**
     * `repeated .api.groups.GroupPolicy policies = 9;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearPolicies")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearPolicies()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.Group.GroupState.copy(block: com.figure.block.api.proto.groups.GroupStateKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Group.GroupState =
  com.figure.block.api.proto.groups.GroupStateKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.figure.block.api.proto.groups.Group.GroupStateOrBuilder.timestampOrNull: com.google.protobuf.Timestamp?
  get() = if (hasTimestamp()) getTimestamp() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy