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

build.bazel.semver.SemVerKt.kt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/semver/semver.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.semver;

@kotlin.jvm.JvmName("-initializesemVer")
public inline fun semVer(block: build.bazel.semver.SemVerKt.Dsl.() -> kotlin.Unit): build.bazel.semver.SemVer =
  build.bazel.semver.SemVerKt.Dsl._create(build.bazel.semver.SemVer.newBuilder()).apply { block() }._build()
/**
 * ```
 * The full version of a given tool.
 * ```
 *
 * Protobuf type `build.bazel.semver.SemVer`
 */
public object SemVerKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: build.bazel.semver.SemVer.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.semver.SemVer.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.semver.SemVer = _builder.build()

    /**
     * ```
     * The major version, e.g 10 for 10.2.3.
     * ```
     *
     * `int32 major = 1;`
     */
    public var major: kotlin.Int
      @JvmName("getMajor")
      get() = _builder.getMajor()
      @JvmName("setMajor")
      set(value) {
        _builder.setMajor(value)
      }
    /**
     * ```
     * The major version, e.g 10 for 10.2.3.
     * ```
     *
     * `int32 major = 1;`
     */
    public fun clearMajor() {
      _builder.clearMajor()
    }

    /**
     * ```
     * The minor version, e.g. 2 for 10.2.3.
     * ```
     *
     * `int32 minor = 2;`
     */
    public var minor: kotlin.Int
      @JvmName("getMinor")
      get() = _builder.getMinor()
      @JvmName("setMinor")
      set(value) {
        _builder.setMinor(value)
      }
    /**
     * ```
     * The minor version, e.g. 2 for 10.2.3.
     * ```
     *
     * `int32 minor = 2;`
     */
    public fun clearMinor() {
      _builder.clearMinor()
    }

    /**
     * ```
     * The patch version, e.g 3 for 10.2.3.
     * ```
     *
     * `int32 patch = 3;`
     */
    public var patch: kotlin.Int
      @JvmName("getPatch")
      get() = _builder.getPatch()
      @JvmName("setPatch")
      set(value) {
        _builder.setPatch(value)
      }
    /**
     * ```
     * The patch version, e.g 3 for 10.2.3.
     * ```
     *
     * `int32 patch = 3;`
     */
    public fun clearPatch() {
      _builder.clearPatch()
    }

    /**
     * ```
     * The pre-release version. Either this field or major/minor/patch fields
     * must be filled. They are mutually exclusive. Pre-release versions are
     * assumed to be earlier than any released versions.
     * ```
     *
     * `string prerelease = 4;`
     */
    public var prerelease: kotlin.String
      @JvmName("getPrerelease")
      get() = _builder.getPrerelease()
      @JvmName("setPrerelease")
      set(value) {
        _builder.setPrerelease(value)
      }
    /**
     * ```
     * The pre-release version. Either this field or major/minor/patch fields
     * must be filled. They are mutually exclusive. Pre-release versions are
     * assumed to be earlier than any released versions.
     * ```
     *
     * `string prerelease = 4;`
     */
    public fun clearPrerelease() {
      _builder.clearPrerelease()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.semver.SemVer.copy(block: `build.bazel.semver`.SemVerKt.Dsl.() -> kotlin.Unit): build.bazel.semver.SemVer =
  `build.bazel.semver`.SemVerKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy