build.bazel.remote.execution.v2.GetCapabilitiesRequestKt.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("-initializegetCapabilitiesRequest")
public inline fun getCapabilitiesRequest(block: build.bazel.remote.execution.v2.GetCapabilitiesRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetCapabilitiesRequest =
build.bazel.remote.execution.v2.GetCapabilitiesRequestKt.Dsl._create(build.bazel.remote.execution.v2.GetCapabilitiesRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request message for
* [Capabilities.GetCapabilities][build.bazel.remote.execution.v2.Capabilities.GetCapabilities].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.GetCapabilitiesRequest`
*/
public object GetCapabilitiesRequestKt {
@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.GetCapabilitiesRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.GetCapabilitiesRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.GetCapabilitiesRequest = _builder.build()
/**
* ```
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
* ```
*
* `string instance_name = 1;`
*/
public var instanceName: kotlin.String
@JvmName("getInstanceName")
get() = _builder.getInstanceName()
@JvmName("setInstanceName")
set(value) {
_builder.setInstanceName(value)
}
/**
* ```
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
* ```
*
* `string instance_name = 1;`
*/
public fun clearInstanceName() {
_builder.clearInstanceName()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.GetCapabilitiesRequest.copy(block: `build.bazel.remote.execution.v2`.GetCapabilitiesRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetCapabilitiesRequest =
`build.bazel.remote.execution.v2`.GetCapabilitiesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()