![JAR search and dependency download from the Maven repository](/logo.png)
com.google.protobuf.EmptyKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote-cache Show documentation
Show all versions of remote-cache Show documentation
Bitrise remote cache implementation for Gradle
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf;
@kotlin.jvm.JvmName("-initializeempty")
public inline fun empty(block: com.google.protobuf.EmptyKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Empty =
com.google.protobuf.EmptyKt.Dsl._create(com.google.protobuf.Empty.newBuilder()).apply { block() }._build()
/**
* ```
* A generic empty message that you can re-use to avoid defining duplicated
* empty messages in your APIs. A typical example is to use it as the request
* or the response type of an API method. For instance:
*
* service Foo {
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
* }
*
* The JSON representation for `Empty` is empty JSON object `{}`.
* ```
*
* Protobuf type `google.protobuf.Empty`
*/
public object EmptyKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.protobuf.Empty.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.Empty.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.Empty = _builder.build()
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.protobuf.Empty.copy(block: `com.google.protobuf`.EmptyKt.Dsl.() -> kotlin.Unit): com.google.protobuf.Empty =
`com.google.protobuf`.EmptyKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy