Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/monitored_resource.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializemonitoredResourceMetadata")
public inline fun monitoredResourceMetadata(block: com.google.api.MonitoredResourceMetadataKt.Dsl.() -> kotlin.Unit): com.google.api.MonitoredResourceMetadata =
com.google.api.MonitoredResourceMetadataKt.Dsl._create(com.google.api.MonitoredResourceMetadata.newBuilder()).apply { block() }._build()
/**
* ```
* Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
* [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
* uniquely identify a monitored resource instance. There is some other useful
* auxiliary metadata. Google Stackdriver Monitoring & Logging uses an ingestion
* pipeline to extract metadata for cloud resources of all types , and stores
* the metadata in this message.
* ```
*
* Protobuf type `google.api.MonitoredResourceMetadata`
*/
public object MonitoredResourceMetadataKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.MonitoredResourceMetadata.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.MonitoredResourceMetadata.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.MonitoredResourceMetadata = _builder.build()
/**
* ```
* Output only. Values for predefined system metadata labels.
* System labels are a kind of metadata extracted by Google Stackdriver.
* Stackdriver determines what system labels are useful and how to obtain
* their values. Some examples: "machine_image", "vpc", "subnet_id",
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
*
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
* ```
*
* `.google.protobuf.Struct system_labels = 1;`
*/
public var systemLabels: com.google.protobuf.Struct
@JvmName("getSystemLabels")
get() = _builder.getSystemLabels()
@JvmName("setSystemLabels")
set(value) {
_builder.setSystemLabels(value)
}
/**
* ```
* Output only. Values for predefined system metadata labels.
* System labels are a kind of metadata extracted by Google Stackdriver.
* Stackdriver determines what system labels are useful and how to obtain
* their values. Some examples: "machine_image", "vpc", "subnet_id",
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
*
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
* ```
*
* `.google.protobuf.Struct system_labels = 1;`
*/
public fun clearSystemLabels() {
_builder.clearSystemLabels()
}
/**
* ```
* Output only. Values for predefined system metadata labels.
* System labels are a kind of metadata extracted by Google Stackdriver.
* Stackdriver determines what system labels are useful and how to obtain
* their values. Some examples: "machine_image", "vpc", "subnet_id",
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
*
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
* ```
*
* `.google.protobuf.Struct system_labels = 1;`
* @return Whether the systemLabels field is set.
*/
public fun hasSystemLabels(): kotlin.Boolean {
return _builder.hasSystemLabels()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class UserLabelsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
public val userLabels: com.google.protobuf.kotlin.DslMap
@kotlin.jvm.JvmSynthetic
@JvmName("getUserLabelsMap")
get() = com.google.protobuf.kotlin.DslMap(
_builder.getUserLabelsMap()
)
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
@JvmName("putUserLabels")
public fun com.google.protobuf.kotlin.DslMap
.put(key: kotlin.String, value: kotlin.String) {
_builder.putUserLabels(key, value)
}
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("setUserLabels")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslMap
.set(key: kotlin.String, value: kotlin.String) {
put(key, value)
}
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("removeUserLabels")
public fun com.google.protobuf.kotlin.DslMap
.remove(key: kotlin.String) {
_builder.removeUserLabels(key)
}
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("putAllUserLabels")
public fun com.google.protobuf.kotlin.DslMap
.putAll(map: kotlin.collections.Map) {
_builder.putAllUserLabels(map)
}
/**
* ```
* Output only. A map of user-defined metadata labels.
* ```
*
* `map user_labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("clearUserLabels")
public fun com.google.protobuf.kotlin.DslMap
.clear() {
_builder.clearUserLabels()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.MonitoredResourceMetadata.copy(block: `com.google.api`.MonitoredResourceMetadataKt.Dsl.() -> kotlin.Unit): com.google.api.MonitoredResourceMetadata =
`com.google.api`.MonitoredResourceMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.api.MonitoredResourceMetadataOrBuilder.systemLabelsOrNull: com.google.protobuf.Struct?
get() = if (hasSystemLabels()) getSystemLabels() else null