com.google.bytestream.WriteResponseKt.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("-initializewriteResponse")
public inline fun writeResponse(block: com.google.bytestream.WriteResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.WriteResponse =
com.google.bytestream.WriteResponseKt.Dsl._create(com.google.bytestream.ByteStreamProto.WriteResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response object for ByteStream.Write.
* ```
*
* Protobuf type `google.bytestream.WriteResponse`
*/
public object WriteResponseKt {
@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.WriteResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.bytestream.ByteStreamProto.WriteResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.bytestream.ByteStreamProto.WriteResponse = _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()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.bytestream.ByteStreamProto.WriteResponse.copy(block: `com.google.bytestream`.WriteResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.WriteResponse =
`com.google.bytestream`.WriteResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()