
com.google.protobuf.compiler.VersionKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/compiler/plugin.proto
package com.google.protobuf.compiler;
@kotlin.jvm.JvmName("-initializeversion")
inline fun version(block: com.google.protobuf.compiler.VersionKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.Version =
com.google.protobuf.compiler.VersionKt.Dsl._create(com.google.protobuf.compiler.PluginProtos.Version.newBuilder()).apply { block() }._build()
object VersionKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
class Dsl private constructor(
private val _builder: com.google.protobuf.compiler.PluginProtos.Version.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.protobuf.compiler.PluginProtos.Version.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.protobuf.compiler.PluginProtos.Version = _builder.build()
/**
* optional int32 major = 1;
*/
var major: kotlin.Int
@JvmName("getMajor")
get() = _builder.getMajor()
@JvmName("setMajor")
set(value) {
_builder.setMajor(value)
}
/**
* optional int32 major = 1;
*/
fun clearMajor() {
_builder.clearMajor()
}
/**
* optional int32 major = 1;
* @return Whether the major field is set.
*/
fun hasMajor(): kotlin.Boolean {
return _builder.hasMajor()
}
/**
* optional int32 minor = 2;
*/
var minor: kotlin.Int
@JvmName("getMinor")
get() = _builder.getMinor()
@JvmName("setMinor")
set(value) {
_builder.setMinor(value)
}
/**
* optional int32 minor = 2;
*/
fun clearMinor() {
_builder.clearMinor()
}
/**
* optional int32 minor = 2;
* @return Whether the minor field is set.
*/
fun hasMinor(): kotlin.Boolean {
return _builder.hasMinor()
}
/**
* optional int32 patch = 3;
*/
var patch: kotlin.Int
@JvmName("getPatch")
get() = _builder.getPatch()
@JvmName("setPatch")
set(value) {
_builder.setPatch(value)
}
/**
* optional int32 patch = 3;
*/
fun clearPatch() {
_builder.clearPatch()
}
/**
* optional int32 patch = 3;
* @return Whether the patch field is set.
*/
fun hasPatch(): kotlin.Boolean {
return _builder.hasPatch()
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4;
*/
var suffix: kotlin.String
@JvmName("getSuffix")
get() = _builder.getSuffix()
@JvmName("setSuffix")
set(value) {
_builder.setSuffix(value)
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4;
*/
fun clearSuffix() {
_builder.clearSuffix()
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4;
* @return Whether the suffix field is set.
*/
fun hasSuffix(): kotlin.Boolean {
return _builder.hasSuffix()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun com.google.protobuf.compiler.PluginProtos.Version.copy(block: com.google.protobuf.compiler.VersionKt.Dsl.() -> kotlin.Unit): com.google.protobuf.compiler.PluginProtos.Version =
com.google.protobuf.compiler.VersionKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy