build.bazel.remote.execution.v2.NodePropertiesKt.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("-initializenodeProperties")
public inline fun nodeProperties(block: build.bazel.remote.execution.v2.NodePropertiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.NodeProperties =
build.bazel.remote.execution.v2.NodePropertiesKt.Dsl._create(build.bazel.remote.execution.v2.NodeProperties.newBuilder()).apply { block() }._build()
/**
* ```
* Node properties for [FileNodes][build.bazel.remote.execution.v2.FileNode],
* [DirectoryNodes][build.bazel.remote.execution.v2.DirectoryNode], and
* [SymlinkNodes][build.bazel.remote.execution.v2.SymlinkNode]. The server is
* responsible for specifying the properties that it accepts.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.NodeProperties`
*/
public object NodePropertiesKt {
@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.NodeProperties.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.NodeProperties.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.NodeProperties = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class PropertiesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
*/
public val properties: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getPropertiesList()
)
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
* @param value The properties to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addProperties")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.NodeProperty) {
_builder.addProperties(value)
}
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
* @param value The properties to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignProperties")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.NodeProperty) {
add(value)
}
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
* @param values The properties to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllProperties")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllProperties(values)
}
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
* @param values The properties to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllProperties")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
* @param index The index to set the value at.
* @param value The properties to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setProperties")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.NodeProperty) {
_builder.setProperties(index, value)
}
/**
* ```
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
* ```
*
* `repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearProperties")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearProperties()
}
/**
* ```
* The file's last modification timestamp.
* ```
*
* `.google.protobuf.Timestamp mtime = 2;`
*/
public var mtime: com.google.protobuf.Timestamp
@JvmName("getMtime")
get() = _builder.getMtime()
@JvmName("setMtime")
set(value) {
_builder.setMtime(value)
}
/**
* ```
* The file's last modification timestamp.
* ```
*
* `.google.protobuf.Timestamp mtime = 2;`
*/
public fun clearMtime() {
_builder.clearMtime()
}
/**
* ```
* The file's last modification timestamp.
* ```
*
* `.google.protobuf.Timestamp mtime = 2;`
* @return Whether the mtime field is set.
*/
public fun hasMtime(): kotlin.Boolean {
return _builder.hasMtime()
}
/**
* ```
* The UNIX file mode, e.g., 0755.
* ```
*
* `.google.protobuf.UInt32Value unix_mode = 3;`
*/
public var unixMode: com.google.protobuf.UInt32Value
@JvmName("getUnixMode")
get() = _builder.getUnixMode()
@JvmName("setUnixMode")
set(value) {
_builder.setUnixMode(value)
}
/**
* ```
* The UNIX file mode, e.g., 0755.
* ```
*
* `.google.protobuf.UInt32Value unix_mode = 3;`
*/
public fun clearUnixMode() {
_builder.clearUnixMode()
}
/**
* ```
* The UNIX file mode, e.g., 0755.
* ```
*
* `.google.protobuf.UInt32Value unix_mode = 3;`
* @return Whether the unixMode field is set.
*/
public fun hasUnixMode(): kotlin.Boolean {
return _builder.hasUnixMode()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.NodeProperties.copy(block: `build.bazel.remote.execution.v2`.NodePropertiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.NodeProperties =
`build.bazel.remote.execution.v2`.NodePropertiesKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.NodePropertiesOrBuilder.mtimeOrNull: com.google.protobuf.Timestamp?
get() = if (hasMtime()) getMtime() else null
public val build.bazel.remote.execution.v2.NodePropertiesOrBuilder.unixModeOrNull: com.google.protobuf.UInt32Value?
get() = if (hasUnixMode()) getUnixMode() else null