com.google.bytestream.QueryWriteStatusResponseKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/bytestream/bytestream.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.bytestream;
@kotlin.jvm.JvmName("-initializequeryWriteStatusResponse")
public inline fun queryWriteStatusResponse(block: com.google.bytestream.QueryWriteStatusResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse =
com.google.bytestream.QueryWriteStatusResponseKt.Dsl._create(com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response object for ByteStream.QueryWriteStatus.
* ```
*
* Protobuf type `google.bytestream.QueryWriteStatusResponse`
*/
public object QueryWriteStatusResponseKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse = _builder.build()
/**
* ```
* The number of bytes that have been processed for the given resource.
* ```
*
* `int64 committed_size = 1;`
*/
public var committedSize: kotlin.Long
@JvmName("getCommittedSize")
get() = _builder.getCommittedSize()
@JvmName("setCommittedSize")
set(value) {
_builder.setCommittedSize(value)
}
/**
* ```
* The number of bytes that have been processed for the given resource.
* ```
*
* `int64 committed_size = 1;`
*/
public fun clearCommittedSize() {
_builder.clearCommittedSize()
}
/**
* ```
* `complete` is `true` only if the client has sent a `WriteRequest` with
* `finish_write` set to true, and the server has processed that request.
* ```
*
* `bool complete = 2;`
*/
public var complete: kotlin.Boolean
@JvmName("getComplete")
get() = _builder.getComplete()
@JvmName("setComplete")
set(value) {
_builder.setComplete(value)
}
/**
* ```
* `complete` is `true` only if the client has sent a `WriteRequest` with
* `finish_write` set to true, and the server has processed that request.
* ```
*
* `bool complete = 2;`
*/
public fun clearComplete() {
_builder.clearComplete()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse.copy(block: `com.google.bytestream`.QueryWriteStatusResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse =
`com.google.bytestream`.QueryWriteStatusResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()