tech.figure.block.api.proto.AccessListKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-proto Show documentation
Show all versions of api-proto Show documentation
gRPC client code to interact with Figures off chain Provenance data
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: marker.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;
@kotlin.jvm.JvmName("-initializeaccessList")
public inline fun accessList(block: tech.figure.block.api.proto.AccessListKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.Marker.AccessList =
tech.figure.block.api.proto.AccessListKt.Dsl._create(tech.figure.block.api.proto.Marker.AccessList.newBuilder()).apply { block() }._build()
/**
* ```
* Associates a collection of permissions with an address for delegated marker control
* ```
*
* Protobuf type `api.AccessList`
*/
public object AccessListKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: tech.figure.block.api.proto.Marker.AccessList.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.Marker.AccessList.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.Marker.AccessList = _builder.build()
/**
* ```
* A Provenance Blockchain bech32 address of an account associated with a marker state
* ```
*
* `string address = 1;`
*/
public var address: kotlin.String
@JvmName("getAddress")
get() = _builder.getAddress()
@JvmName("setAddress")
set(value) {
_builder.setAddress(value)
}
/**
* ```
* A Provenance Blockchain bech32 address of an account associated with a marker state
* ```
*
* `string address = 1;`
*/
public fun clearAddress() {
_builder.clearAddress()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class PermissionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @return A list containing the permissions.
*/
public val permissions: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getPermissionsList()
)
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @param value The permissions to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addPermissions")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addPermissions(value)
}
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @param value The permissions to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignPermissions")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @param values The permissions to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllPermissions")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllPermissions(values)
}
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @param values The permissions to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllPermissions")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
* @param index The index to set the value at.
* @param value The permissions to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setPermissions")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setPermissions(index, value)
}/**
* ```
* All permissions held by the account referred to in the address field
* ```
*
* `repeated string permissions = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearPermissions")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearPermissions()
}}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.Marker.AccessList.copy(block: tech.figure.block.api.proto.AccessListKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.Marker.AccessList =
tech.figure.block.api.proto.AccessListKt.Dsl._create(this.toBuilder()).apply { block() }._build()