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

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

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

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

@kotlin.jvm.JvmName("-initializeservice")
public inline fun service(block: com.google.api.ServiceKt.Dsl.() -> kotlin.Unit): com.google.api.Service =
  com.google.api.ServiceKt.Dsl._create(com.google.api.Service.newBuilder()).apply { block() }._build()
/**
 * ```
 * `Service` is the root object of Google service configuration schema. It
 * describes basic information about a service, such as the name and the
 * title, and delegates other aspects to sub-sections. Each sub-section is
 * either a proto message or a repeated proto message that configures a
 * specific aspect, such as auth. See each proto message definition for details.
 *
 * Example:
 *
 *     type: google.api.Service
 *     config_version: 3
 *     name: calendar.googleapis.com
 *     title: Google Calendar API
 *     apis:
 *     - name: google.calendar.v3.Calendar
 *     authentication:
 *       providers:
 *       - id: google_calendar_auth
 *         jwks_uri: https://www.googleapis.com/oauth2/v1/certs
 *         issuer: https://securetoken.google.com
 *       rules:
 *       - selector: "*"
 *         requirements:
 *           provider_id: google_calendar_auth
 * ```
 *
 * Protobuf type `google.api.Service`
 */
public object ServiceKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: com.google.api.Service.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: com.google.api.Service.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The semantic version of the service configuration. The config version
     * affects the interpretation of the service configuration. For example,
     * certain features are enabled by default for certain config versions.
     * The latest config version is `3`.
     * ```
     *
     * `.google.protobuf.UInt32Value config_version = 20;`
     */
    public var configVersion: com.google.protobuf.UInt32Value
      @JvmName("getConfigVersion")
      get() = _builder.getConfigVersion()
      @JvmName("setConfigVersion")
      set(value) {
        _builder.setConfigVersion(value)
      }
    /**
     * ```
     * The semantic version of the service configuration. The config version
     * affects the interpretation of the service configuration. For example,
     * certain features are enabled by default for certain config versions.
     * The latest config version is `3`.
     * ```
     *
     * `.google.protobuf.UInt32Value config_version = 20;`
     */
    public fun clearConfigVersion() {
      _builder.clearConfigVersion()
    }
    /**
     * ```
     * The semantic version of the service configuration. The config version
     * affects the interpretation of the service configuration. For example,
     * certain features are enabled by default for certain config versions.
     * The latest config version is `3`.
     * ```
     *
     * `.google.protobuf.UInt32Value config_version = 20;`
     * @return Whether the configVersion field is set.
     */
    public fun hasConfigVersion(): kotlin.Boolean {
      return _builder.hasConfigVersion()
    }

    /**
     * ```
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * ```
     *
     * `string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * ```
     * The DNS address at which this service is available,
     * e.g. `calendar.googleapis.com`.
     * ```
     *
     * `string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * ```
     * A unique ID for a specific instance of this message, typically assigned
     * by the client for tracking purpose. If empty, the server may choose to
     * generate one instead.
     * ```
     *
     * `string id = 33;`
     */
    public var id: kotlin.String
      @JvmName("getId")
      get() = _builder.getId()
      @JvmName("setId")
      set(value) {
        _builder.setId(value)
      }
    /**
     * ```
     * A unique ID for a specific instance of this message, typically assigned
     * by the client for tracking purpose. If empty, the server may choose to
     * generate one instead.
     * ```
     *
     * `string id = 33;`
     */
    public fun clearId() {
      _builder.clearId()
    }

    /**
     * ```
     * The product title for this service.
     * ```
     *
     * `string title = 2;`
     */
    public var title: kotlin.String
      @JvmName("getTitle")
      get() = _builder.getTitle()
      @JvmName("setTitle")
      set(value) {
        _builder.setTitle(value)
      }
    /**
     * ```
     * The product title for this service.
     * ```
     *
     * `string title = 2;`
     */
    public fun clearTitle() {
      _builder.clearTitle()
    }

    /**
     * ```
     * The Google project that owns this service.
     * ```
     *
     * `string producer_project_id = 22;`
     */
    public var producerProjectId: kotlin.String
      @JvmName("getProducerProjectId")
      get() = _builder.getProducerProjectId()
      @JvmName("setProducerProjectId")
      set(value) {
        _builder.setProducerProjectId(value)
      }
    /**
     * ```
     * The Google project that owns this service.
     * ```
     *
     * `string producer_project_id = 22;`
     */
    public fun clearProducerProjectId() {
      _builder.clearProducerProjectId()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ApisProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     */
     public val apis: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getApisList()
      )
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     * @param value The apis to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addApis")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Api) {
      _builder.addApis(value)
    }
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     * @param value The apis to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignApis")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Api) {
      add(value)
    }
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     * @param values The apis to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllApis")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllApis(values)
    }
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     * @param values The apis to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllApis")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     * @param index The index to set the value at.
     * @param value The apis to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setApis")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Api) {
      _builder.setApis(index, value)
    }
    /**
     * ```
     * A list of API interfaces exported by this service. Only the `name` field
     * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
     * author, as the remaining fields will be derived from the IDL during the
     * normalization process. It is an error to specify an API interface here
     * which cannot be resolved against the associated IDL files.
     * ```
     *
     * `repeated .google.protobuf.Api apis = 3;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearApis")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearApis()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class TypesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     */
     public val types: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getTypesList()
      )
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     * @param value The types to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addTypes")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Type) {
      _builder.addTypes(value)
    }
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     * @param value The types to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignTypes")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Type) {
      add(value)
    }
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     * @param values The types to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllTypes")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllTypes(values)
    }
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     * @param values The types to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllTypes")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     * @param index The index to set the value at.
     * @param value The types to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setTypes")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Type) {
      _builder.setTypes(index, value)
    }
    /**
     * ```
     * A list of all proto message types included in this API service.
     * Types referenced directly or indirectly by the `apis` are
     * automatically included.  Messages which are not referenced but
     * shall be included, such as types used by the `google.protobuf.Any` type,
     * should be listed here by name. Example:
     *
     *     types:
     *     - name: google.protobuf.Int32
     * ```
     *
     * `repeated .google.protobuf.Type types = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearTypes")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearTypes()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class EnumsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     */
     public val enums: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getEnumsList()
      )
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     * @param value The enums to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addEnums")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Enum) {
      _builder.addEnums(value)
    }
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     * @param value The enums to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignEnums")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Enum) {
      add(value)
    }
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     * @param values The enums to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllEnums")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllEnums(values)
    }
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     * @param values The enums to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllEnums")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     * @param index The index to set the value at.
     * @param value The enums to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setEnums")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Enum) {
      _builder.setEnums(index, value)
    }
    /**
     * ```
     * A list of all enum types included in this API service.  Enums
     * referenced directly or indirectly by the `apis` are automatically
     * included.  Enums which are not referenced but shall be included
     * should be listed here by name. Example:
     *
     *     enums:
     *     - name: google.someapi.v1.SomeEnum
     * ```
     *
     * `repeated .google.protobuf.Enum enums = 5;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearEnums")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearEnums()
    }


    /**
     * ```
     * Additional API documentation.
     * ```
     *
     * `.google.api.Documentation documentation = 6;`
     */
    public var documentation: com.google.api.Documentation
      @JvmName("getDocumentation")
      get() = _builder.getDocumentation()
      @JvmName("setDocumentation")
      set(value) {
        _builder.setDocumentation(value)
      }
    /**
     * ```
     * Additional API documentation.
     * ```
     *
     * `.google.api.Documentation documentation = 6;`
     */
    public fun clearDocumentation() {
      _builder.clearDocumentation()
    }
    /**
     * ```
     * Additional API documentation.
     * ```
     *
     * `.google.api.Documentation documentation = 6;`
     * @return Whether the documentation field is set.
     */
    public fun hasDocumentation(): kotlin.Boolean {
      return _builder.hasDocumentation()
    }

    /**
     * ```
     * API backend configuration.
     * ```
     *
     * `.google.api.Backend backend = 8;`
     */
    public var backend: com.google.api.Backend
      @JvmName("getBackend")
      get() = _builder.getBackend()
      @JvmName("setBackend")
      set(value) {
        _builder.setBackend(value)
      }
    /**
     * ```
     * API backend configuration.
     * ```
     *
     * `.google.api.Backend backend = 8;`
     */
    public fun clearBackend() {
      _builder.clearBackend()
    }
    /**
     * ```
     * API backend configuration.
     * ```
     *
     * `.google.api.Backend backend = 8;`
     * @return Whether the backend field is set.
     */
    public fun hasBackend(): kotlin.Boolean {
      return _builder.hasBackend()
    }

    /**
     * ```
     * HTTP configuration.
     * ```
     *
     * `.google.api.Http http = 9;`
     */
    public var http: com.google.api.Http
      @JvmName("getHttp")
      get() = _builder.getHttp()
      @JvmName("setHttp")
      set(value) {
        _builder.setHttp(value)
      }
    /**
     * ```
     * HTTP configuration.
     * ```
     *
     * `.google.api.Http http = 9;`
     */
    public fun clearHttp() {
      _builder.clearHttp()
    }
    /**
     * ```
     * HTTP configuration.
     * ```
     *
     * `.google.api.Http http = 9;`
     * @return Whether the http field is set.
     */
    public fun hasHttp(): kotlin.Boolean {
      return _builder.hasHttp()
    }

    /**
     * ```
     * Quota configuration.
     * ```
     *
     * `.google.api.Quota quota = 10;`
     */
    public var quota: com.google.api.Quota
      @JvmName("getQuota")
      get() = _builder.getQuota()
      @JvmName("setQuota")
      set(value) {
        _builder.setQuota(value)
      }
    /**
     * ```
     * Quota configuration.
     * ```
     *
     * `.google.api.Quota quota = 10;`
     */
    public fun clearQuota() {
      _builder.clearQuota()
    }
    /**
     * ```
     * Quota configuration.
     * ```
     *
     * `.google.api.Quota quota = 10;`
     * @return Whether the quota field is set.
     */
    public fun hasQuota(): kotlin.Boolean {
      return _builder.hasQuota()
    }

    /**
     * ```
     * Auth configuration.
     * ```
     *
     * `.google.api.Authentication authentication = 11;`
     */
    public var authentication: com.google.api.Authentication
      @JvmName("getAuthentication")
      get() = _builder.getAuthentication()
      @JvmName("setAuthentication")
      set(value) {
        _builder.setAuthentication(value)
      }
    /**
     * ```
     * Auth configuration.
     * ```
     *
     * `.google.api.Authentication authentication = 11;`
     */
    public fun clearAuthentication() {
      _builder.clearAuthentication()
    }
    /**
     * ```
     * Auth configuration.
     * ```
     *
     * `.google.api.Authentication authentication = 11;`
     * @return Whether the authentication field is set.
     */
    public fun hasAuthentication(): kotlin.Boolean {
      return _builder.hasAuthentication()
    }

    /**
     * ```
     * Context configuration.
     * ```
     *
     * `.google.api.Context context = 12;`
     */
    public var context: com.google.api.Context
      @JvmName("getContext")
      get() = _builder.getContext()
      @JvmName("setContext")
      set(value) {
        _builder.setContext(value)
      }
    /**
     * ```
     * Context configuration.
     * ```
     *
     * `.google.api.Context context = 12;`
     */
    public fun clearContext() {
      _builder.clearContext()
    }
    /**
     * ```
     * Context configuration.
     * ```
     *
     * `.google.api.Context context = 12;`
     * @return Whether the context field is set.
     */
    public fun hasContext(): kotlin.Boolean {
      return _builder.hasContext()
    }

    /**
     * ```
     * Configuration controlling usage of this service.
     * ```
     *
     * `.google.api.Usage usage = 15;`
     */
    public var usage: com.google.api.Usage
      @JvmName("getUsage")
      get() = _builder.getUsage()
      @JvmName("setUsage")
      set(value) {
        _builder.setUsage(value)
      }
    /**
     * ```
     * Configuration controlling usage of this service.
     * ```
     *
     * `.google.api.Usage usage = 15;`
     */
    public fun clearUsage() {
      _builder.clearUsage()
    }
    /**
     * ```
     * Configuration controlling usage of this service.
     * ```
     *
     * `.google.api.Usage usage = 15;`
     * @return Whether the usage field is set.
     */
    public fun hasUsage(): kotlin.Boolean {
      return _builder.hasUsage()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class EndpointsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     */
     public val endpoints: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getEndpointsList()
      )
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     * @param value The endpoints to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addEndpoints")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.Endpoint) {
      _builder.addEndpoints(value)
    }
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     * @param value The endpoints to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignEndpoints")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.Endpoint) {
      add(value)
    }
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     * @param values The endpoints to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllEndpoints")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllEndpoints(values)
    }
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     * @param values The endpoints to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllEndpoints")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     * @param index The index to set the value at.
     * @param value The endpoints to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setEndpoints")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.Endpoint) {
      _builder.setEndpoints(index, value)
    }
    /**
     * ```
     * Configuration for network endpoints.  If this is empty, then an endpoint
     * with the same name as the service is automatically generated to service all
     * defined APIs.
     * ```
     *
     * `repeated .google.api.Endpoint endpoints = 18;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearEndpoints")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearEndpoints()
    }


    /**
     * ```
     * Configuration for the service control plane.
     * ```
     *
     * `.google.api.Control control = 21;`
     */
    public var control: com.google.api.Control
      @JvmName("getControl")
      get() = _builder.getControl()
      @JvmName("setControl")
      set(value) {
        _builder.setControl(value)
      }
    /**
     * ```
     * Configuration for the service control plane.
     * ```
     *
     * `.google.api.Control control = 21;`
     */
    public fun clearControl() {
      _builder.clearControl()
    }
    /**
     * ```
     * Configuration for the service control plane.
     * ```
     *
     * `.google.api.Control control = 21;`
     * @return Whether the control field is set.
     */
    public fun hasControl(): kotlin.Boolean {
      return _builder.hasControl()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class LogsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     */
     public val logs: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getLogsList()
      )
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     * @param value The logs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addLogs")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.LogDescriptor) {
      _builder.addLogs(value)
    }
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     * @param value The logs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignLogs")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.LogDescriptor) {
      add(value)
    }
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     * @param values The logs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllLogs")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllLogs(values)
    }
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     * @param values The logs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllLogs")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     * @param index The index to set the value at.
     * @param value The logs to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setLogs")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.LogDescriptor) {
      _builder.setLogs(index, value)
    }
    /**
     * ```
     * Defines the logs used by this service.
     * ```
     *
     * `repeated .google.api.LogDescriptor logs = 23;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearLogs")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearLogs()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class MetricsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     */
     public val metrics: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getMetricsList()
      )
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     * @param value The metrics to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addMetrics")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.MetricDescriptor) {
      _builder.addMetrics(value)
    }
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     * @param value The metrics to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignMetrics")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.MetricDescriptor) {
      add(value)
    }
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     * @param values The metrics to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllMetrics")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllMetrics(values)
    }
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     * @param values The metrics to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllMetrics")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     * @param index The index to set the value at.
     * @param value The metrics to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setMetrics")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.MetricDescriptor) {
      _builder.setMetrics(index, value)
    }
    /**
     * ```
     * Defines the metrics used by this service.
     * ```
     *
     * `repeated .google.api.MetricDescriptor metrics = 24;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMetrics")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMetrics()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class MonitoredResourcesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     */
     public val monitoredResources: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getMonitoredResourcesList()
      )
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     * @param value The monitoredResources to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addMonitoredResources")
    public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.MonitoredResourceDescriptor) {
      _builder.addMonitoredResources(value)
    }
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     * @param value The monitoredResources to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignMonitoredResources")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.MonitoredResourceDescriptor) {
      add(value)
    }
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     * @param values The monitoredResources to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllMonitoredResources")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllMonitoredResources(values)
    }
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     * @param values The monitoredResources to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllMonitoredResources")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     * @param index The index to set the value at.
     * @param value The monitoredResources to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setMonitoredResources")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.MonitoredResourceDescriptor) {
      _builder.setMonitoredResources(index, value)
    }
    /**
     * ```
     * Defines the monitored resources used by this service. This is required
     * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
     * ```
     *
     * `repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMonitoredResources")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMonitoredResources()
    }


    /**
     * ```
     * Billing configuration.
     * ```
     *
     * `.google.api.Billing billing = 26;`
     */
    public var billing: com.google.api.Billing
      @JvmName("getBilling")
      get() = _builder.getBilling()
      @JvmName("setBilling")
      set(value) {
        _builder.setBilling(value)
      }
    /**
     * ```
     * Billing configuration.
     * ```
     *
     * `.google.api.Billing billing = 26;`
     */
    public fun clearBilling() {
      _builder.clearBilling()
    }
    /**
     * ```
     * Billing configuration.
     * ```
     *
     * `.google.api.Billing billing = 26;`
     * @return Whether the billing field is set.
     */
    public fun hasBilling(): kotlin.Boolean {
      return _builder.hasBilling()
    }

    /**
     * ```
     * Logging configuration.
     * ```
     *
     * `.google.api.Logging logging = 27;`
     */
    public var logging: com.google.api.Logging
      @JvmName("getLogging")
      get() = _builder.getLogging()
      @JvmName("setLogging")
      set(value) {
        _builder.setLogging(value)
      }
    /**
     * ```
     * Logging configuration.
     * ```
     *
     * `.google.api.Logging logging = 27;`
     */
    public fun clearLogging() {
      _builder.clearLogging()
    }
    /**
     * ```
     * Logging configuration.
     * ```
     *
     * `.google.api.Logging logging = 27;`
     * @return Whether the logging field is set.
     */
    public fun hasLogging(): kotlin.Boolean {
      return _builder.hasLogging()
    }

    /**
     * ```
     * Monitoring configuration.
     * ```
     *
     * `.google.api.Monitoring monitoring = 28;`
     */
    public var monitoring: com.google.api.Monitoring
      @JvmName("getMonitoring")
      get() = _builder.getMonitoring()
      @JvmName("setMonitoring")
      set(value) {
        _builder.setMonitoring(value)
      }
    /**
     * ```
     * Monitoring configuration.
     * ```
     *
     * `.google.api.Monitoring monitoring = 28;`
     */
    public fun clearMonitoring() {
      _builder.clearMonitoring()
    }
    /**
     * ```
     * Monitoring configuration.
     * ```
     *
     * `.google.api.Monitoring monitoring = 28;`
     * @return Whether the monitoring field is set.
     */
    public fun hasMonitoring(): kotlin.Boolean {
      return _builder.hasMonitoring()
    }

    /**
     * ```
     * System parameter configuration.
     * ```
     *
     * `.google.api.SystemParameters system_parameters = 29;`
     */
    public var systemParameters: com.google.api.SystemParameters
      @JvmName("getSystemParameters")
      get() = _builder.getSystemParameters()
      @JvmName("setSystemParameters")
      set(value) {
        _builder.setSystemParameters(value)
      }
    /**
     * ```
     * System parameter configuration.
     * ```
     *
     * `.google.api.SystemParameters system_parameters = 29;`
     */
    public fun clearSystemParameters() {
      _builder.clearSystemParameters()
    }
    /**
     * ```
     * System parameter configuration.
     * ```
     *
     * `.google.api.SystemParameters system_parameters = 29;`
     * @return Whether the systemParameters field is set.
     */
    public fun hasSystemParameters(): kotlin.Boolean {
      return _builder.hasSystemParameters()
    }

    /**
     * ```
     * Output only. The source information for this configuration if available.
     * ```
     *
     * `.google.api.SourceInfo source_info = 37;`
     */
    public var sourceInfo: com.google.api.SourceInfo
      @JvmName("getSourceInfo")
      get() = _builder.getSourceInfo()
      @JvmName("setSourceInfo")
      set(value) {
        _builder.setSourceInfo(value)
      }
    /**
     * ```
     * Output only. The source information for this configuration if available.
     * ```
     *
     * `.google.api.SourceInfo source_info = 37;`
     */
    public fun clearSourceInfo() {
      _builder.clearSourceInfo()
    }
    /**
     * ```
     * Output only. The source information for this configuration if available.
     * ```
     *
     * `.google.api.SourceInfo source_info = 37;`
     * @return Whether the sourceInfo field is set.
     */
    public fun hasSourceInfo(): kotlin.Boolean {
      return _builder.hasSourceInfo()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Service.copy(block: `com.google.api`.ServiceKt.Dsl.() -> kotlin.Unit): com.google.api.Service =
  `com.google.api`.ServiceKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val com.google.api.ServiceOrBuilder.configVersionOrNull: com.google.protobuf.UInt32Value?
  get() = if (hasConfigVersion()) getConfigVersion() else null

public val com.google.api.ServiceOrBuilder.documentationOrNull: com.google.api.Documentation?
  get() = if (hasDocumentation()) getDocumentation() else null

public val com.google.api.ServiceOrBuilder.backendOrNull: com.google.api.Backend?
  get() = if (hasBackend()) getBackend() else null

public val com.google.api.ServiceOrBuilder.httpOrNull: com.google.api.Http?
  get() = if (hasHttp()) getHttp() else null

public val com.google.api.ServiceOrBuilder.quotaOrNull: com.google.api.Quota?
  get() = if (hasQuota()) getQuota() else null

public val com.google.api.ServiceOrBuilder.authenticationOrNull: com.google.api.Authentication?
  get() = if (hasAuthentication()) getAuthentication() else null

public val com.google.api.ServiceOrBuilder.contextOrNull: com.google.api.Context?
  get() = if (hasContext()) getContext() else null

public val com.google.api.ServiceOrBuilder.usageOrNull: com.google.api.Usage?
  get() = if (hasUsage()) getUsage() else null

public val com.google.api.ServiceOrBuilder.controlOrNull: com.google.api.Control?
  get() = if (hasControl()) getControl() else null

public val com.google.api.ServiceOrBuilder.billingOrNull: com.google.api.Billing?
  get() = if (hasBilling()) getBilling() else null

public val com.google.api.ServiceOrBuilder.loggingOrNull: com.google.api.Logging?
  get() = if (hasLogging()) getLogging() else null

public val com.google.api.ServiceOrBuilder.monitoringOrNull: com.google.api.Monitoring?
  get() = if (hasMonitoring()) getMonitoring() else null

public val com.google.api.ServiceOrBuilder.systemParametersOrNull: com.google.api.SystemParameters?
  get() = if (hasSystemParameters()) getSystemParameters() else null

public val com.google.api.ServiceOrBuilder.sourceInfoOrNull: com.google.api.SourceInfo?
  get() = if (hasSourceInfo()) getSourceInfo() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy