com.google.protobuf.AnyKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin Show documentation
Show all versions of protobuf-kotlin Show documentation
Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/any.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeany")
public inline fun any(block: com.google.protobuf.AnyKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Any =
com.google.protobuf.AnyKt.Dsl._create(com.google.protobuf.Any.newBuilder()).apply { block() }._build()
/**
* Protobuf type `google.protobuf.Any`
*/
public object AnyKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.Any.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.Any.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.Any = _builder.build()
/**
* `string type_url = 1 [json_name = "typeUrl"];`
*/
public var typeUrl: kotlin.String
@JvmName("getTypeUrl")
get() = _builder.getTypeUrl()
@JvmName("setTypeUrl")
set(value) {
_builder.setTypeUrl(value)
}
/**
* `string type_url = 1 [json_name = "typeUrl"];`
*/
public fun clearTypeUrl() {
_builder.clearTypeUrl()
}
/**
* `bytes value = 2 [json_name = "value"];`
*/
public var value: com.google.protobuf.ByteString
@JvmName("getValue")
get() = _builder.getValue()
@JvmName("setValue")
set(value) {
_builder.setValue(value)
}
/**
* `bytes value = 2 [json_name = "value"];`
*/
public fun clearValue() {
_builder.clearValue()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.Any.copy(block: `com.google.protobuf`.AnyKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Any =
`com.google.protobuf`.AnyKt.Dsl._create(this.toBuilder()).apply { block() }._build()