com.google.protobuf.FieldMaskKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin-lite Show documentation
Show all versions of protobuf-kotlin-lite Show documentation
Kotlin lite Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/field_mask.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializefieldMask")
public inline fun fieldMask(block: com.google.protobuf.FieldMaskKt.Dsl.() -> kotlin.Unit): com.google.protobuf.FieldMask =
com.google.protobuf.FieldMaskKt.Dsl._create(com.google.protobuf.FieldMask.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.FieldMask`
*/
public object FieldMaskKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.FieldMask.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.FieldMask.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.FieldMask = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class PathsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @return A list containing the paths.
*/
public val paths: com.google.protobuf.kotlin.DslList
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
get() = com.google.protobuf.kotlin.DslList(
_builder.pathsList
)
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @param value The paths to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addPaths")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addPaths(value)
}
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @param value The paths to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignPaths")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @param values The paths to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllPaths")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllPaths(values)
}
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @param values The paths to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllPaths")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated string paths = 1 [json_name = "paths"];`
* @param index The index to set the value at.
* @param value The paths to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setPaths")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setPaths(index, value)
}/**
* `repeated string paths = 1 [json_name = "paths"];`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setPaths")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearPaths()
}}
}
public inline fun com.google.protobuf.FieldMask.copy(block: `com.google.protobuf`.FieldMaskKt.Dsl.() -> kotlin.Unit): com.google.protobuf.FieldMask =
`com.google.protobuf`.FieldMaskKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2024 Weber Informatics LLC | Privacy Policy