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

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

There is a newer version: 1.2.13
Show newest version
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/consumer.proto

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

@kotlin.jvm.JvmName("-initializeproperty")
public inline fun property(block: com.google.api.PropertyKt.Dsl.() -> kotlin.Unit): com.google.api.Property =
  com.google.api.PropertyKt.Dsl._create(com.google.api.Property.newBuilder()).apply { block() }._build()
/**
 * ```
 * Defines project properties.
 *
 * API services can define properties that can be assigned to consumer projects
 * so that backends can perform response customization without having to make
 * additional calls or maintain additional storage. For example, Maps API
 * defines properties that controls map tile cache period, or whether to embed a
 * watermark in a result.
 *
 * These values can be set via API producer console. Only API providers can
 * define and set these properties.
 * ```
 *
 * Protobuf type `google.api.Property`
 */
public object PropertyKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.Property.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.Property.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The name of the property (a.k.a key).
     * ```
     *
     * `string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * ```
     * The name of the property (a.k.a key).
     * ```
     *
     * `string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * ```
     * The type of this property.
     * ```
     *
     * `.google.api.Property.PropertyType type = 2;`
     */
    public var type: com.google.api.Property.PropertyType
      @JvmName("getType")
      get() = _builder.getType()
      @JvmName("setType")
      set(value) {
        _builder.setType(value)
      }
    public var typeValue: kotlin.Int
      @JvmName("getTypeValue")
      get() = _builder.getTypeValue()
      @JvmName("setTypeValue")
      set(value) {
        _builder.setTypeValue(value)
      }
    /**
     * ```
     * The type of this property.
     * ```
     *
     * `.google.api.Property.PropertyType type = 2;`
     */
    public fun clearType() {
      _builder.clearType()
    }

    /**
     * ```
     * The description of the property
     * ```
     *
     * `string description = 3;`
     */
    public var description: kotlin.String
      @JvmName("getDescription")
      get() = _builder.getDescription()
      @JvmName("setDescription")
      set(value) {
        _builder.setDescription(value)
      }
    /**
     * ```
     * The description of the property
     * ```
     *
     * `string description = 3;`
     */
    public fun clearDescription() {
      _builder.clearDescription()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Property.copy(block: `com.google.api`.PropertyKt.Dsl.() -> kotlin.Unit): com.google.api.Property =
  `com.google.api`.PropertyKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2025 Weber Informatics LLC | Privacy Policy