build.bazel.remote.logstream.v1.CreateLogStreamRequestKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/logstream/v1/remote_logstream.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.remote.logstream.v1;
@kotlin.jvm.JvmName("-initializecreateLogStreamRequest")
public inline fun createLogStreamRequest(block: build.bazel.remote.logstream.v1.CreateLogStreamRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.logstream.v1.CreateLogStreamRequest =
build.bazel.remote.logstream.v1.CreateLogStreamRequestKt.Dsl._create(build.bazel.remote.logstream.v1.CreateLogStreamRequest.newBuilder()).apply { block() }._build()
/**
* ```
* Contains all information necessary to create a new LogStream resource.
* ```
*
* Protobuf type `build.bazel.remote.logstream.v1.CreateLogStreamRequest`
*/
public object CreateLogStreamRequestKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: build.bazel.remote.logstream.v1.CreateLogStreamRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.logstream.v1.CreateLogStreamRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.logstream.v1.CreateLogStreamRequest = _builder.build()
/**
* ```
* Required. The parent resource of the created LogStream.
* The list of valid types of parent resources of LogStreams is up to the
* implementing server.
* Example: projects/123
* ```
*
* `string parent = 1;`
*/
public var parent: kotlin.String
@JvmName("getParent")
get() = _builder.getParent()
@JvmName("setParent")
set(value) {
_builder.setParent(value)
}
/**
* ```
* Required. The parent resource of the created LogStream.
* The list of valid types of parent resources of LogStreams is up to the
* implementing server.
* Example: projects/123
* ```
*
* `string parent = 1;`
*/
public fun clearParent() {
_builder.clearParent()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.logstream.v1.CreateLogStreamRequest.copy(block: `build.bazel.remote.logstream.v1`.CreateLogStreamRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.logstream.v1.CreateLogStreamRequest =
`build.bazel.remote.logstream.v1`.CreateLogStreamRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()