tech.figure.block.api.proto.AllMarkerStatesResponseKt.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-service.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;
@kotlin.jvm.JvmName("-initializeallMarkerStatesResponse")
public inline fun allMarkerStatesResponse(block: tech.figure.block.api.proto.AllMarkerStatesResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse =
tech.figure.block.api.proto.AllMarkerStatesResponseKt.Dsl._create(tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response data containing all marker states that have existed for a given denom, at the specified page offset
* ```
*
* Protobuf type `api.AllMarkerStatesResponse`
*/
public object AllMarkerStatesResponseKt {
@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.MarkerServiceOuterClass.AllMarkerStatesResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class MarkerStatesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
*/
public val markerStates: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getMarkerStatesList()
)
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
* @param value The markerStates to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addMarkerStates")
public fun com.google.protobuf.kotlin.DslList.add(value: tech.figure.block.api.proto.Marker.MarkerState) {
_builder.addMarkerStates(value)
}
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
* @param value The markerStates to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignMarkerStates")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: tech.figure.block.api.proto.Marker.MarkerState) {
add(value)
}
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
* @param values The markerStates to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllMarkerStates")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllMarkerStates(values)
}
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
* @param values The markerStates to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllMarkerStates")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
* @param index The index to set the value at.
* @param value The markerStates to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setMarkerStates")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: tech.figure.block.api.proto.Marker.MarkerState) {
_builder.setMarkerStates(index, value)
}
/**
* ```
* All marker states for the target denom
* ```
*
* `repeated .api.MarkerState marker_states = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearMarkerStates")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearMarkerStates()
}
/**
* ```
* Page metrics matching returned marker states
* ```
*
* `.api.PageResult page = 2;`
*/
public var page: tech.figure.block.api.proto.Pagination.PageResult
@JvmName("getPage")
get() = _builder.getPage()
@JvmName("setPage")
set(value) {
_builder.setPage(value)
}
/**
* ```
* Page metrics matching returned marker states
* ```
*
* `.api.PageResult page = 2;`
*/
public fun clearPage() {
_builder.clearPage()
}
/**
* ```
* Page metrics matching returned marker states
* ```
*
* `.api.PageResult page = 2;`
* @return Whether the page field is set.
*/
public fun hasPage(): kotlin.Boolean {
return _builder.hasPage()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse.copy(block: tech.figure.block.api.proto.AllMarkerStatesResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponse =
tech.figure.block.api.proto.AllMarkerStatesResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val tech.figure.block.api.proto.MarkerServiceOuterClass.AllMarkerStatesResponseOrBuilder.pageOrNull: tech.figure.block.api.proto.Pagination.PageResult?
get() = if (hasPage()) getPage() else null