build.bazel.remote.execution.v2.ToolDetailsKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.remote.execution.v2;
@kotlin.jvm.JvmName("-initializetoolDetails")
public inline fun toolDetails(block: build.bazel.remote.execution.v2.ToolDetailsKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ToolDetails =
build.bazel.remote.execution.v2.ToolDetailsKt.Dsl._create(build.bazel.remote.execution.v2.ToolDetails.newBuilder()).apply { block() }._build()
/**
* ```
* Details for the tool used to call the API.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.ToolDetails`
*/
public object ToolDetailsKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: build.bazel.remote.execution.v2.ToolDetails.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.ToolDetails.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.ToolDetails = _builder.build()
/**
* ```
* Name of the tool, e.g. bazel.
* ```
*
* `string tool_name = 1;`
*/
public var toolName: kotlin.String
@JvmName("getToolName")
get() = _builder.getToolName()
@JvmName("setToolName")
set(value) {
_builder.setToolName(value)
}
/**
* ```
* Name of the tool, e.g. bazel.
* ```
*
* `string tool_name = 1;`
*/
public fun clearToolName() {
_builder.clearToolName()
}
/**
* ```
* Version of the tool used for the request, e.g. 5.0.3.
* ```
*
* `string tool_version = 2;`
*/
public var toolVersion: kotlin.String
@JvmName("getToolVersion")
get() = _builder.getToolVersion()
@JvmName("setToolVersion")
set(value) {
_builder.setToolVersion(value)
}
/**
* ```
* Version of the tool used for the request, e.g. 5.0.3.
* ```
*
* `string tool_version = 2;`
*/
public fun clearToolVersion() {
_builder.clearToolVersion()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.ToolDetails.copy(block: `build.bazel.remote.execution.v2`.ToolDetailsKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ToolDetails =
`build.bazel.remote.execution.v2`.ToolDetailsKt.Dsl._create(this.toBuilder()).apply { block() }._build()