build.bazel.remote.execution.v2.FileNodeKt.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("-initializefileNode")
public inline fun fileNode(block: build.bazel.remote.execution.v2.FileNodeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.FileNode =
build.bazel.remote.execution.v2.FileNodeKt.Dsl._create(build.bazel.remote.execution.v2.FileNode.newBuilder()).apply { block() }._build()
/**
* ```
* A `FileNode` represents a single file and associated metadata.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.FileNode`
*/
public object FileNodeKt {
@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.FileNode.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.FileNode.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.FileNode = _builder.build()
/**
* ```
* The name of the file.
* ```
*
* `string name = 1;`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* ```
* The name of the file.
* ```
*
* `string name = 1;`
*/
public fun clearName() {
_builder.clearName()
}
/**
* ```
* The digest of the file's content.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 2;`
*/
public var digest: build.bazel.remote.execution.v2.Digest
@JvmName("getDigest")
get() = _builder.getDigest()
@JvmName("setDigest")
set(value) {
_builder.setDigest(value)
}
/**
* ```
* The digest of the file's content.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 2;`
*/
public fun clearDigest() {
_builder.clearDigest()
}
/**
* ```
* The digest of the file's content.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 2;`
* @return Whether the digest field is set.
*/
public fun hasDigest(): kotlin.Boolean {
return _builder.hasDigest()
}
/**
* ```
* True if file is executable, false otherwise.
* ```
*
* `bool is_executable = 4;`
*/
public var isExecutable: kotlin.Boolean
@JvmName("getIsExecutable")
get() = _builder.getIsExecutable()
@JvmName("setIsExecutable")
set(value) {
_builder.setIsExecutable(value)
}
/**
* ```
* True if file is executable, false otherwise.
* ```
*
* `bool is_executable = 4;`
*/
public fun clearIsExecutable() {
_builder.clearIsExecutable()
}
/**
* `.build.bazel.remote.execution.v2.NodeProperties node_properties = 6;`
*/
public var nodeProperties: build.bazel.remote.execution.v2.NodeProperties
@JvmName("getNodeProperties")
get() = _builder.getNodeProperties()
@JvmName("setNodeProperties")
set(value) {
_builder.setNodeProperties(value)
}
/**
* `.build.bazel.remote.execution.v2.NodeProperties node_properties = 6;`
*/
public fun clearNodeProperties() {
_builder.clearNodeProperties()
}
/**
* `.build.bazel.remote.execution.v2.NodeProperties node_properties = 6;`
* @return Whether the nodeProperties field is set.
*/
public fun hasNodeProperties(): kotlin.Boolean {
return _builder.hasNodeProperties()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.FileNode.copy(block: `build.bazel.remote.execution.v2`.FileNodeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.FileNode =
`build.bazel.remote.execution.v2`.FileNodeKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.FileNodeOrBuilder.digestOrNull: build.bazel.remote.execution.v2.Digest?
get() = if (hasDigest()) getDigest() else null
public val build.bazel.remote.execution.v2.FileNodeOrBuilder.nodePropertiesOrNull: build.bazel.remote.execution.v2.NodeProperties?
get() = if (hasNodeProperties()) getNodeProperties() else null