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

com.google.api.LabelDescriptorKt.kt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/label.proto

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

@kotlin.jvm.JvmName("-initializelabelDescriptor")
public inline fun labelDescriptor(block: com.google.api.LabelDescriptorKt.Dsl.() -> kotlin.Unit): com.google.api.LabelDescriptor =
  com.google.api.LabelDescriptorKt.Dsl._create(com.google.api.LabelDescriptor.newBuilder()).apply { block() }._build()
/**
 * ```
 * A description of a label.
 * ```
 *
 * Protobuf type `google.api.LabelDescriptor`
 */
public object LabelDescriptorKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.LabelDescriptor.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.LabelDescriptor.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): com.google.api.LabelDescriptor = _builder.build()

    /**
     * ```
     * The label key.
     * ```
     *
     * `string key = 1;`
     */
    public var key: kotlin.String
      @JvmName("getKey")
      get() = _builder.getKey()
      @JvmName("setKey")
      set(value) {
        _builder.setKey(value)
      }
    /**
     * ```
     * The label key.
     * ```
     *
     * `string key = 1;`
     */
    public fun clearKey() {
      _builder.clearKey()
    }

    /**
     * ```
     * The type of data that can be assigned to the label.
     * ```
     *
     * `.google.api.LabelDescriptor.ValueType value_type = 2;`
     */
    public var valueType: com.google.api.LabelDescriptor.ValueType
      @JvmName("getValueType")
      get() = _builder.getValueType()
      @JvmName("setValueType")
      set(value) {
        _builder.setValueType(value)
      }
    public var valueTypeValue: kotlin.Int
      @JvmName("getValueTypeValue")
      get() = _builder.getValueTypeValue()
      @JvmName("setValueTypeValue")
      set(value) {
        _builder.setValueTypeValue(value)
      }
    /**
     * ```
     * The type of data that can be assigned to the label.
     * ```
     *
     * `.google.api.LabelDescriptor.ValueType value_type = 2;`
     */
    public fun clearValueType() {
      _builder.clearValueType()
    }

    /**
     * ```
     * A human-readable description for the label.
     * ```
     *
     * `string description = 3;`
     */
    public var description: kotlin.String
      @JvmName("getDescription")
      get() = _builder.getDescription()
      @JvmName("setDescription")
      set(value) {
        _builder.setDescription(value)
      }
    /**
     * ```
     * A human-readable description for the label.
     * ```
     *
     * `string description = 3;`
     */
    public fun clearDescription() {
      _builder.clearDescription()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.LabelDescriptor.copy(block: `com.google.api`.LabelDescriptorKt.Dsl.() -> kotlin.Unit): com.google.api.LabelDescriptor =
  `com.google.api`.LabelDescriptorKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy