All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.compiler.VersionKt.kt Maven / Gradle / Ivy

Go to download

Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

There is a newer version: 4.29.2
Show newest version
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/compiler/plugin.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.protobuf.compiler;

@kotlin.jvm.JvmName("-initializeversion")
public 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()
/**
 * Protobuf type `google.protobuf.compiler.Version`
 */
public object VersionKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.protobuf.compiler.PluginProtos.Version.Builder
  ) {
    public 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 [json_name = "major"];`
     */
    public var major: kotlin.Int
      @JvmName("getMajor")
      get() = _builder.major
      @JvmName("setMajor")
      set(value) {
        _builder.major = value
      }
    /**
     * `optional int32 major = 1 [json_name = "major"];`
     */
    public fun clearMajor() {
      _builder.clearMajor()
    }
    /**
     * `optional int32 major = 1 [json_name = "major"];`
     * @return Whether the major field is set.
     */
    public fun hasMajor(): kotlin.Boolean {
      return _builder.hasMajor()
    }

    /**
     * `optional int32 minor = 2 [json_name = "minor"];`
     */
    public var minor: kotlin.Int
      @JvmName("getMinor")
      get() = _builder.minor
      @JvmName("setMinor")
      set(value) {
        _builder.minor = value
      }
    /**
     * `optional int32 minor = 2 [json_name = "minor"];`
     */
    public fun clearMinor() {
      _builder.clearMinor()
    }
    /**
     * `optional int32 minor = 2 [json_name = "minor"];`
     * @return Whether the minor field is set.
     */
    public fun hasMinor(): kotlin.Boolean {
      return _builder.hasMinor()
    }

    /**
     * `optional int32 patch = 3 [json_name = "patch"];`
     */
    public var patch: kotlin.Int
      @JvmName("getPatch")
      get() = _builder.patch
      @JvmName("setPatch")
      set(value) {
        _builder.patch = value
      }
    /**
     * `optional int32 patch = 3 [json_name = "patch"];`
     */
    public fun clearPatch() {
      _builder.clearPatch()
    }
    /**
     * `optional int32 patch = 3 [json_name = "patch"];`
     * @return Whether the patch field is set.
     */
    public fun hasPatch(): kotlin.Boolean {
      return _builder.hasPatch()
    }

    /**
     * `optional string suffix = 4 [json_name = "suffix"];`
     */
    public var suffix: kotlin.String
      @JvmName("getSuffix")
      get() = _builder.suffix
      @JvmName("setSuffix")
      set(value) {
        _builder.suffix = value
      }
    /**
     * `optional string suffix = 4 [json_name = "suffix"];`
     */
    public fun clearSuffix() {
      _builder.clearSuffix()
    }
    /**
     * `optional string suffix = 4 [json_name = "suffix"];`
     * @return Whether the suffix field is set.
     */
    public fun hasSuffix(): kotlin.Boolean {
      return _builder.hasSuffix()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public 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 - 2024 Weber Informatics LLC | Privacy Policy