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

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

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

    /**
     * `string address = 1;`
     */
    public var address: kotlin.String
      @JvmName("getAddress")
      get() = _builder.getAddress()
      @JvmName("setAddress")
      set(value) {
        _builder.setAddress(value)
      }
    /**
     * `string address = 1;`
     */
    public fun clearAddress() {
      _builder.clearAddress()
    }

    /**
     * `int64 version = 2;`
     */
    public var version: kotlin.Long
      @JvmName("getVersion")
      get() = _builder.getVersion()
      @JvmName("setVersion")
      set(value) {
        _builder.setVersion(value)
      }
    /**
     * `int64 version = 2;`
     */
    public fun clearVersion() {
      _builder.clearVersion()
    }

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

    /**
     * `int64 group_id = 4;`
     */
    public var groupId: kotlin.Long
      @JvmName("getGroupId")
      get() = _builder.getGroupId()
      @JvmName("setGroupId")
      set(value) {
        _builder.setGroupId(value)
      }
    /**
     * `int64 group_id = 4;`
     */
    public fun clearGroupId() {
      _builder.clearGroupId()
    }

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

    /**
     * `.api.groups.ThresholdDecisionPolicy threshold = 6;`
     */
    public var threshold: com.figure.block.api.proto.groups.Group.ThresholdDecisionPolicy
      @JvmName("getThreshold")
      get() = _builder.getThreshold()
      @JvmName("setThreshold")
      set(value) {
        _builder.setThreshold(value)
      }
    /**
     * `.api.groups.ThresholdDecisionPolicy threshold = 6;`
     */
    public fun clearThreshold() {
      _builder.clearThreshold()
    }
    /**
     * `.api.groups.ThresholdDecisionPolicy threshold = 6;`
     * @return Whether the threshold field is set.
     */
    public fun hasThreshold(): kotlin.Boolean {
      return _builder.hasThreshold()
    }

    /**
     * `.api.groups.PercentageDecisionPolicy percentage = 7;`
     */
    public var percentage: com.figure.block.api.proto.groups.Group.PercentageDecisionPolicy
      @JvmName("getPercentage")
      get() = _builder.getPercentage()
      @JvmName("setPercentage")
      set(value) {
        _builder.setPercentage(value)
      }
    /**
     * `.api.groups.PercentageDecisionPolicy percentage = 7;`
     */
    public fun clearPercentage() {
      _builder.clearPercentage()
    }
    /**
     * `.api.groups.PercentageDecisionPolicy percentage = 7;`
     * @return Whether the percentage field is set.
     */
    public fun hasPercentage(): kotlin.Boolean {
      return _builder.hasPercentage()
    }

    /**
     * `.google.protobuf.Timestamp created_at = 8;`
     */
    public var createdAt: com.google.protobuf.Timestamp
      @JvmName("getCreatedAt")
      get() = _builder.getCreatedAt()
      @JvmName("setCreatedAt")
      set(value) {
        _builder.setCreatedAt(value)
      }
    /**
     * `.google.protobuf.Timestamp created_at = 8;`
     */
    public fun clearCreatedAt() {
      _builder.clearCreatedAt()
    }
    /**
     * `.google.protobuf.Timestamp created_at = 8;`
     * @return Whether the createdAt field is set.
     */
    public fun hasCreatedAt(): kotlin.Boolean {
      return _builder.hasCreatedAt()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class AuthZGrantsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     */
     public val authZGrants: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getAuthZGrantsList()
      )
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     * @param value The authZGrants to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAuthZGrants")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.figure.block.api.proto.groups.Group.GroupPolicyAuthZ) {
      _builder.addAuthZGrants(value)
    }
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     * @param value The authZGrants to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAuthZGrants")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.figure.block.api.proto.groups.Group.GroupPolicyAuthZ) {
      add(value)
    }
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     * @param values The authZGrants to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllAuthZGrants")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllAuthZGrants(values)
    }
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     * @param values The authZGrants to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllAuthZGrants")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     * @param index The index to set the value at.
     * @param value The authZGrants to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setAuthZGrants")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.figure.block.api.proto.groups.Group.GroupPolicyAuthZ) {
      _builder.setAuthZGrants(index, value)
    }
    /**
     * `repeated .api.groups.GroupPolicyAuthZ auth_z_grants = 9;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearAuthZGrants")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearAuthZGrants()
    }

    public val decisionPolicyCase: com.figure.block.api.proto.groups.Group.GroupPolicy.DecisionPolicyCase
      @JvmName("getDecisionPolicyCase")
      get() = _builder.getDecisionPolicyCase()

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

public val com.figure.block.api.proto.groups.Group.GroupPolicyOrBuilder.thresholdOrNull: com.figure.block.api.proto.groups.Group.ThresholdDecisionPolicy?
  get() = if (hasThreshold()) getThreshold() else null

public val com.figure.block.api.proto.groups.Group.GroupPolicyOrBuilder.percentageOrNull: com.figure.block.api.proto.groups.Group.PercentageDecisionPolicy?
  get() = if (hasPercentage()) getPercentage() else null

public val com.figure.block.api.proto.groups.Group.GroupPolicyOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp?
  get() = if (hasCreatedAt()) getCreatedAt() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy