com.google.bytestream.ReadResponseKt.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("-initializereadResponse")
public inline fun readResponse(block: com.google.bytestream.ReadResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.ReadResponse =
com.google.bytestream.ReadResponseKt.Dsl._create(com.google.bytestream.ByteStreamProto.ReadResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response object for ByteStream.Read.
* ```
*
* Protobuf type `google.bytestream.ReadResponse`
*/
public object ReadResponseKt {
@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.ReadResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.bytestream.ByteStreamProto.ReadResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.bytestream.ByteStreamProto.ReadResponse = _builder.build()
/**
* ```
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
* ```
*
* `bytes data = 10;`
*/
public var data: com.google.protobuf.ByteString
@JvmName("getData")
get() = _builder.getData()
@JvmName("setData")
set(value) {
_builder.setData(value)
}
/**
* ```
* A portion of the data for the resource. The service **may** leave `data`
* empty for any given `ReadResponse`. This enables the service to inform the
* client that the request is still live while it is running an operation to
* generate more data.
* ```
*
* `bytes data = 10;`
*/
public fun clearData() {
_builder.clearData()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.bytestream.ByteStreamProto.ReadResponse.copy(block: `com.google.bytestream`.ReadResponseKt.Dsl.() -> kotlin.Unit): com.google.bytestream.ByteStreamProto.ReadResponse =
`com.google.bytestream`.ReadResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()