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

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

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

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

@kotlin.jvm.JvmName("-initializelogDescriptor")
public inline fun logDescriptor(block: com.google.api.LogDescriptorKt.Dsl.() -> kotlin.Unit): com.google.api.LogDescriptor =
  com.google.api.LogDescriptorKt.Dsl._create(com.google.api.LogDescriptor.newBuilder()).apply { block() }._build()
/**
 * ```
 * A description of a log type. Example in YAML format:
 *
 *     - name: library.googleapis.com/activity_history
 *       description: The history of borrowing and returning library items.
 *       display_name: Activity
 *       labels:
 *       - key: /customer_id
 *         description: Identifier of a library customer
 * ```
 *
 * Protobuf type `google.api.LogDescriptor`
 */
public object LogDescriptorKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.LogDescriptor.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.LogDescriptor.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The name of the log. It must be less than 512 characters long and can
     * include the following characters: upper- and lower-case alphanumeric
     * characters [A-Za-z0-9], and punctuation characters including
     * slash, underscore, hyphen, period [/_-.].
     * ```
     *
     * `string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * ```
     * The name of the log. It must be less than 512 characters long and can
     * include the following characters: upper- and lower-case alphanumeric
     * characters [A-Za-z0-9], and punctuation characters including
     * slash, underscore, hyphen, period [/_-.].
     * ```
     *
     * `string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class LabelsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     */
     public val labels: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getLabelsList()
      )
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     * @param value The labels to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addLabels")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.LabelDescriptor) {
      _builder.addLabels(value)
    }
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     * @param value The labels to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignLabels")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.LabelDescriptor) {
      add(value)
    }
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     * @param values The labels to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllLabels")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllLabels(values)
    }
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     * @param values The labels to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllLabels")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     * @param index The index to set the value at.
     * @param value The labels to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setLabels")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.LabelDescriptor) {
      _builder.setLabels(index, value)
    }
    /**
     * ```
     * The set of labels that are available to describe a specific log entry.
     * Runtime requests that contain labels not specified here are
     * considered invalid.
     * ```
     *
     * `repeated .google.api.LabelDescriptor labels = 2;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearLabels")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearLabels()
    }


    /**
     * ```
     * A human-readable description of this log. This information appears in
     * the documentation and can contain details.
     * ```
     *
     * `string description = 3;`
     */
    public var description: kotlin.String
      @JvmName("getDescription")
      get() = _builder.getDescription()
      @JvmName("setDescription")
      set(value) {
        _builder.setDescription(value)
      }
    /**
     * ```
     * A human-readable description of this log. This information appears in
     * the documentation and can contain details.
     * ```
     *
     * `string description = 3;`
     */
    public fun clearDescription() {
      _builder.clearDescription()
    }

    /**
     * ```
     * The human-readable name for this log. This information appears on
     * the user interface and should be concise.
     * ```
     *
     * `string display_name = 4;`
     */
    public var displayName: kotlin.String
      @JvmName("getDisplayName")
      get() = _builder.getDisplayName()
      @JvmName("setDisplayName")
      set(value) {
        _builder.setDisplayName(value)
      }
    /**
     * ```
     * The human-readable name for this log. This information appears on
     * the user interface and should be concise.
     * ```
     *
     * `string display_name = 4;`
     */
    public fun clearDisplayName() {
      _builder.clearDisplayName()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.LogDescriptor.copy(block: `com.google.api`.LogDescriptorKt.Dsl.() -> kotlin.Unit): com.google.api.LogDescriptor =
  `com.google.api`.LogDescriptorKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy