com.figure.block.api.proto.groups.LatestGroupStatesByAdminRequestKt.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: groups/group-server.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.figure.block.api.proto.groups;
@kotlin.jvm.JvmName("-initializelatestGroupStatesByAdminRequest")
public inline fun latestGroupStatesByAdminRequest(block: com.figure.block.api.proto.groups.LatestGroupStatesByAdminRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest =
com.figure.block.api.proto.groups.LatestGroupStatesByAdminRequestKt.Dsl._create(com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request to fetch all the latest group states that the target address is an admin of
* ```
*
* Protobuf type `api.groups.LatestGroupStatesByAdminRequest`
*/
public object LatestGroupStatesByAdminRequestKt {
@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.LatestGroupStatesByAdminRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest = _builder.build()
/**
* ```
* A Provenance Blockchain bech32 address that may be an admin of one or more groups
* ```
*
* `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 that may be an admin of one or more groups
* ```
*
* `string address = 1;`
*/
public fun clearAddress() {
_builder.clearAddress()
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
*/
public var page: tech.figure.block.api.proto.Pagination.PageRequest
@JvmName("getPage")
get() = _builder.getPage()
@JvmName("setPage")
set(value) {
_builder.setPage(value)
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
*/
public fun clearPage() {
_builder.clearPage()
}
/**
* ```
* The specific page of results to fetch
* ```
*
* `.api.PageRequest page = 2;`
* @return Whether the page field is set.
*/
public fun hasPage(): kotlin.Boolean {
return _builder.hasPage()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest.copy(block: com.figure.block.api.proto.groups.LatestGroupStatesByAdminRequestKt.Dsl.() -> kotlin.Unit): com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequest =
com.figure.block.api.proto.groups.LatestGroupStatesByAdminRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.figure.block.api.proto.groups.GroupServer.LatestGroupStatesByAdminRequestOrBuilder.pageOrNull: tech.figure.block.api.proto.Pagination.PageRequest?
get() = if (hasPage()) getPage() else null