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

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

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

    /**
     * `string granter = 1;`
     */
    public var granter: kotlin.String
      @JvmName("getGranter")
      get() = _builder.getGranter()
      @JvmName("setGranter")
      set(value) {
        _builder.setGranter(value)
      }
    /**
     * `string granter = 1;`
     */
    public fun clearGranter() {
      _builder.clearGranter()
    }

    /**
     * `string grantee = 2;`
     */
    public var grantee: kotlin.String
      @JvmName("getGrantee")
      get() = _builder.getGrantee()
      @JvmName("setGrantee")
      set(value) {
        _builder.setGrantee(value)
      }
    /**
     * `string grantee = 2;`
     */
    public fun clearGrantee() {
      _builder.clearGrantee()
    }

    /**
     * `.google.protobuf.Any authorization = 3;`
     */
    public var authorization: com.google.protobuf.Any
      @JvmName("getAuthorization")
      get() = _builder.getAuthorization()
      @JvmName("setAuthorization")
      set(value) {
        _builder.setAuthorization(value)
      }
    /**
     * `.google.protobuf.Any authorization = 3;`
     */
    public fun clearAuthorization() {
      _builder.clearAuthorization()
    }
    /**
     * `.google.protobuf.Any authorization = 3;`
     * @return Whether the authorization field is set.
     */
    public fun hasAuthorization(): kotlin.Boolean {
      return _builder.hasAuthorization()
    }

    /**
     * `.google.protobuf.Timestamp expiration = 4;`
     */
    public var expiration: com.google.protobuf.Timestamp
      @JvmName("getExpiration")
      get() = _builder.getExpiration()
      @JvmName("setExpiration")
      set(value) {
        _builder.setExpiration(value)
      }
    /**
     * `.google.protobuf.Timestamp expiration = 4;`
     */
    public fun clearExpiration() {
      _builder.clearExpiration()
    }
    /**
     * `.google.protobuf.Timestamp expiration = 4;`
     * @return Whether the expiration field is set.
     */
    public fun hasExpiration(): kotlin.Boolean {
      return _builder.hasExpiration()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.Group.GroupPolicyAuthZ.copy(block: com.figure.block.api.proto.groups.GroupPolicyAuthZKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.Group.GroupPolicyAuthZ =
  com.figure.block.api.proto.groups.GroupPolicyAuthZKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.figure.block.api.proto.groups.Group.GroupPolicyAuthZOrBuilder.authorizationOrNull: com.google.protobuf.Any?
  get() = if (hasAuthorization()) getAuthorization() else null

public val com.figure.block.api.proto.groups.Group.GroupPolicyAuthZOrBuilder.expirationOrNull: com.google.protobuf.Timestamp?
  get() = if (hasExpiration()) getExpiration() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy