![JAR search and dependency download from the Maven repository](/logo.png)
com.google.api.MetricKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote-cache Show documentation
Show all versions of remote-cache Show documentation
Bitrise remote cache implementation for Gradle
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializemetric")
public inline fun metric(block: com.google.api.MetricKt.Dsl.() -> kotlin.Unit): com.google.api.Metric =
com.google.api.MetricKt.Dsl._create(com.google.api.Metric.newBuilder()).apply { block() }._build()
/**
* ```
* A specific metric, identified by specifying values for all of the
* labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
* ```
*
* Protobuf type `google.api.Metric`
*/
public object MetricKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Metric.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Metric.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Metric = _builder.build()
/**
* ```
* An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
* For example, `custom.googleapis.com/invoice/paid/amount`.
* ```
*
* `string type = 3;`
*/
public var type: kotlin.String
@JvmName("getType")
get() = _builder.getType()
@JvmName("setType")
set(value) {
_builder.setType(value)
}
/**
* ```
* An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
* For example, `custom.googleapis.com/invoice/paid/amount`.
* ```
*
* `string type = 3;`
*/
public fun clearType() {
_builder.clearType()
}
/**
* 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 label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
public val labels: com.google.protobuf.kotlin.DslMap
@kotlin.jvm.JvmSynthetic
@JvmName("getLabelsMap")
get() = com.google.protobuf.kotlin.DslMap(
_builder.getLabelsMap()
)
/**
* ```
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
@JvmName("putLabels")
public fun com.google.protobuf.kotlin.DslMap
.put(key: kotlin.String, value: kotlin.String) {
_builder.putLabels(key, value)
}
/**
* ```
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("setLabels")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslMap
.set(key: kotlin.String, value: kotlin.String) {
put(key, value)
}
/**
* ```
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("removeLabels")
public fun com.google.protobuf.kotlin.DslMap
.remove(key: kotlin.String) {
_builder.removeLabels(key)
}
/**
* ```
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("putAllLabels")
public fun com.google.protobuf.kotlin.DslMap
.putAll(map: kotlin.collections.Map) {
_builder.putAllLabels(map)
}
/**
* ```
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
* ```
*
* `map labels = 2;`
*/
@kotlin.jvm.JvmSynthetic
@JvmName("clearLabels")
public fun com.google.protobuf.kotlin.DslMap
.clear() {
_builder.clearLabels()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Metric.copy(block: `com.google.api`.MetricKt.Dsl.() -> kotlin.Unit): com.google.api.Metric =
`com.google.api`.MetricKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy