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/distribution.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializedistribution")
public inline fun distribution(block: com.google.api.DistributionKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution =
com.google.api.DistributionKt.Dsl._create(com.google.api.Distribution.newBuilder()).apply { block() }._build()
/**
* ```
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
*
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
*
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
* ```
*
* Protobuf type `google.api.Distribution`
*/
public object DistributionKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution = _builder.build()
/**
* ```
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
* ```
*
* `int64 count = 1;`
*/
public var count: kotlin.Long
@JvmName("getCount")
get() = _builder.getCount()
@JvmName("setCount")
set(value) {
_builder.setCount(value)
}
/**
* ```
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
* ```
*
* `int64 count = 1;`
*/
public fun clearCount() {
_builder.clearCount()
}
/**
* ```
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
* ```
*
* `double mean = 2;`
*/
public var mean: kotlin.Double
@JvmName("getMean")
get() = _builder.getMean()
@JvmName("setMean")
set(value) {
_builder.setMean(value)
}
/**
* ```
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
* ```
*
* `double mean = 2;`
*/
public fun clearMean() {
_builder.clearMean()
}
/**
* ```
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
*
* Sum[i=1..n]((x_i - mean)^2)
*
* Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
*
* If `count` is zero then this field must be zero.
* ```
*
* `double sum_of_squared_deviation = 3;`
*/
public var sumOfSquaredDeviation: kotlin.Double
@JvmName("getSumOfSquaredDeviation")
get() = _builder.getSumOfSquaredDeviation()
@JvmName("setSumOfSquaredDeviation")
set(value) {
_builder.setSumOfSquaredDeviation(value)
}
/**
* ```
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
*
* Sum[i=1..n]((x_i - mean)^2)
*
* Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
*
* If `count` is zero then this field must be zero.
* ```
*
* `double sum_of_squared_deviation = 3;`
*/
public fun clearSumOfSquaredDeviation() {
_builder.clearSumOfSquaredDeviation()
}
/**
* ```
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
* ```
*
* `.google.api.Distribution.Range range = 4;`
*/
public var range: com.google.api.Distribution.Range
@JvmName("getRange")
get() = _builder.getRange()
@JvmName("setRange")
set(value) {
_builder.setRange(value)
}
/**
* ```
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
* ```
*
* `.google.api.Distribution.Range range = 4;`
*/
public fun clearRange() {
_builder.clearRange()
}
/**
* ```
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
* ```
*
* `.google.api.Distribution.Range range = 4;`
* @return Whether the range field is set.
*/
public fun hasRange(): kotlin.Boolean {
return _builder.hasRange()
}
/**
* ```
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
* ```
*
* `.google.api.Distribution.BucketOptions bucket_options = 6;`
*/
public var bucketOptions: com.google.api.Distribution.BucketOptions
@JvmName("getBucketOptions")
get() = _builder.getBucketOptions()
@JvmName("setBucketOptions")
set(value) {
_builder.setBucketOptions(value)
}
/**
* ```
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
* ```
*
* `.google.api.Distribution.BucketOptions bucket_options = 6;`
*/
public fun clearBucketOptions() {
_builder.clearBucketOptions()
}
/**
* ```
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
* ```
*
* `.google.api.Distribution.BucketOptions bucket_options = 6;`
* @return Whether the bucketOptions field is set.
*/
public fun hasBucketOptions(): kotlin.Boolean {
return _builder.hasBucketOptions()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class BucketCountsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
*/
public val bucketCounts: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getBucketCountsList()
)
/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
* @param value The bucketCounts to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addBucketCounts")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Long) {
_builder.addBucketCounts(value)
}/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
* @param value The bucketCounts to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignBucketCounts")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Long) {
add(value)
}/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
* @param values The bucketCounts to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllBucketCounts")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllBucketCounts(values)
}/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
* @param values The bucketCounts to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllBucketCounts")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
* @param index The index to set the value at.
* @param value The bucketCounts to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setBucketCounts")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Long) {
_builder.setBucketCounts(index, value)
}/**
* ```
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
*
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
*
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
* ```
*
* `repeated int64 bucket_counts = 7;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearBucketCounts")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearBucketCounts()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ExemplarsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
*/
public val exemplars: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getExemplarsList()
)
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
* @param value The exemplars to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addExemplars")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.Distribution.Exemplar) {
_builder.addExemplars(value)
}
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
* @param value The exemplars to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignExemplars")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.Distribution.Exemplar) {
add(value)
}
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
* @param values The exemplars to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllExemplars")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllExemplars(values)
}
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
* @param values The exemplars to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllExemplars")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
* @param index The index to set the value at.
* @param value The exemplars to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setExemplars")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.Distribution.Exemplar) {
_builder.setExemplars(index, value)
}
/**
* ```
* Must be in increasing order of `value` field.
* ```
*
* `repeated .google.api.Distribution.Exemplar exemplars = 10;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearExemplars")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearExemplars()
}
}
@kotlin.jvm.JvmName("-initializerange")
public inline fun range(block: com.google.api.DistributionKt.RangeKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.Range =
com.google.api.DistributionKt.RangeKt.Dsl._create(com.google.api.Distribution.Range.newBuilder()).apply { block() }._build()
/**
* ```
* The range of the population values.
* ```
*
* Protobuf type `google.api.Distribution.Range`
*/
public object RangeKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.Range.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.Range.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.Range = _builder.build()
/**
* ```
* The minimum of the population values.
* ```
*
* `double min = 1;`
*/
public var min: kotlin.Double
@JvmName("getMin")
get() = _builder.getMin()
@JvmName("setMin")
set(value) {
_builder.setMin(value)
}
/**
* ```
* The minimum of the population values.
* ```
*
* `double min = 1;`
*/
public fun clearMin() {
_builder.clearMin()
}
/**
* ```
* The maximum of the population values.
* ```
*
* `double max = 2;`
*/
public var max: kotlin.Double
@JvmName("getMax")
get() = _builder.getMax()
@JvmName("setMax")
set(value) {
_builder.setMax(value)
}
/**
* ```
* The maximum of the population values.
* ```
*
* `double max = 2;`
*/
public fun clearMax() {
_builder.clearMax()
}
}
}
@kotlin.jvm.JvmName("-initializebucketOptions")
public inline fun bucketOptions(block: com.google.api.DistributionKt.BucketOptionsKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions =
com.google.api.DistributionKt.BucketOptionsKt.Dsl._create(com.google.api.Distribution.BucketOptions.newBuilder()).apply { block() }._build()
/**
* ```
* `BucketOptions` describes the bucket boundaries used to create a histogram
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
*
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
* distribution consists of an underflow bucket (number 0), zero or more
* finite buckets (number 1 through N - 2) and an overflow bucket (number N -
* 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
* same as the upper bound of bucket i - 1. The buckets span the whole range
* of finite values: lower bound of the underflow bucket is -infinity and the
* upper bound of the overflow bucket is +infinity. The finite buckets are
* so-called because both bounds are finite.
* ```
*
* Protobuf type `google.api.Distribution.BucketOptions`
*/
public object BucketOptionsKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.BucketOptions.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.BucketOptions.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.BucketOptions = _builder.build()
/**
* ```
* The linear bucket.
* ```
*
* `.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;`
*/
public var linearBuckets: com.google.api.Distribution.BucketOptions.Linear
@JvmName("getLinearBuckets")
get() = _builder.getLinearBuckets()
@JvmName("setLinearBuckets")
set(value) {
_builder.setLinearBuckets(value)
}
/**
* ```
* The linear bucket.
* ```
*
* `.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;`
*/
public fun clearLinearBuckets() {
_builder.clearLinearBuckets()
}
/**
* ```
* The linear bucket.
* ```
*
* `.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;`
* @return Whether the linearBuckets field is set.
*/
public fun hasLinearBuckets(): kotlin.Boolean {
return _builder.hasLinearBuckets()
}
/**
* ```
* The exponential buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;`
*/
public var exponentialBuckets: com.google.api.Distribution.BucketOptions.Exponential
@JvmName("getExponentialBuckets")
get() = _builder.getExponentialBuckets()
@JvmName("setExponentialBuckets")
set(value) {
_builder.setExponentialBuckets(value)
}
/**
* ```
* The exponential buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;`
*/
public fun clearExponentialBuckets() {
_builder.clearExponentialBuckets()
}
/**
* ```
* The exponential buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;`
* @return Whether the exponentialBuckets field is set.
*/
public fun hasExponentialBuckets(): kotlin.Boolean {
return _builder.hasExponentialBuckets()
}
/**
* ```
* The explicit buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;`
*/
public var explicitBuckets: com.google.api.Distribution.BucketOptions.Explicit
@JvmName("getExplicitBuckets")
get() = _builder.getExplicitBuckets()
@JvmName("setExplicitBuckets")
set(value) {
_builder.setExplicitBuckets(value)
}
/**
* ```
* The explicit buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;`
*/
public fun clearExplicitBuckets() {
_builder.clearExplicitBuckets()
}
/**
* ```
* The explicit buckets.
* ```
*
* `.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;`
* @return Whether the explicitBuckets field is set.
*/
public fun hasExplicitBuckets(): kotlin.Boolean {
return _builder.hasExplicitBuckets()
}
public val optionsCase: com.google.api.Distribution.BucketOptions.OptionsCase
@JvmName("getOptionsCase")
get() = _builder.getOptionsCase()
public fun clearOptions() {
_builder.clearOptions()
}
}
@kotlin.jvm.JvmName("-initializelinear")
public inline fun linear(block: com.google.api.DistributionKt.BucketOptionsKt.LinearKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Linear =
com.google.api.DistributionKt.BucketOptionsKt.LinearKt.Dsl._create(com.google.api.Distribution.BucketOptions.Linear.newBuilder()).apply { block() }._build()
/**
* ```
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
*
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
*
* Upper bound (0 <= i < N-1): offset + (width * i).
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
* ```
*
* Protobuf type `google.api.Distribution.BucketOptions.Linear`
*/
public object LinearKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.BucketOptions.Linear.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.BucketOptions.Linear.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.BucketOptions.Linear = _builder.build()
/**
* ```
* Must be greater than 0.
* ```
*
* `int32 num_finite_buckets = 1;`
*/
public var numFiniteBuckets: kotlin.Int
@JvmName("getNumFiniteBuckets")
get() = _builder.getNumFiniteBuckets()
@JvmName("setNumFiniteBuckets")
set(value) {
_builder.setNumFiniteBuckets(value)
}
/**
* ```
* Must be greater than 0.
* ```
*
* `int32 num_finite_buckets = 1;`
*/
public fun clearNumFiniteBuckets() {
_builder.clearNumFiniteBuckets()
}
/**
* ```
* Must be greater than 0.
* ```
*
* `double width = 2;`
*/
public var width: kotlin.Double
@JvmName("getWidth")
get() = _builder.getWidth()
@JvmName("setWidth")
set(value) {
_builder.setWidth(value)
}
/**
* ```
* Must be greater than 0.
* ```
*
* `double width = 2;`
*/
public fun clearWidth() {
_builder.clearWidth()
}
/**
* ```
* Lower bound of the first bucket.
* ```
*
* `double offset = 3;`
*/
public var offset: kotlin.Double
@JvmName("getOffset")
get() = _builder.getOffset()
@JvmName("setOffset")
set(value) {
_builder.setOffset(value)
}
/**
* ```
* Lower bound of the first bucket.
* ```
*
* `double offset = 3;`
*/
public fun clearOffset() {
_builder.clearOffset()
}
}
}
@kotlin.jvm.JvmName("-initializeexponential")
public inline fun exponential(block: com.google.api.DistributionKt.BucketOptionsKt.ExponentialKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Exponential =
com.google.api.DistributionKt.BucketOptionsKt.ExponentialKt.Dsl._create(com.google.api.Distribution.BucketOptions.Exponential.newBuilder()).apply { block() }._build()
/**
* ```
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
*
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
*
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
* ```
*
* Protobuf type `google.api.Distribution.BucketOptions.Exponential`
*/
public object ExponentialKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.BucketOptions.Exponential.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.BucketOptions.Exponential.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.BucketOptions.Exponential = _builder.build()
/**
* ```
* Must be greater than 0.
* ```
*
* `int32 num_finite_buckets = 1;`
*/
public var numFiniteBuckets: kotlin.Int
@JvmName("getNumFiniteBuckets")
get() = _builder.getNumFiniteBuckets()
@JvmName("setNumFiniteBuckets")
set(value) {
_builder.setNumFiniteBuckets(value)
}
/**
* ```
* Must be greater than 0.
* ```
*
* `int32 num_finite_buckets = 1;`
*/
public fun clearNumFiniteBuckets() {
_builder.clearNumFiniteBuckets()
}
/**
* ```
* Must be greater than 1.
* ```
*
* `double growth_factor = 2;`
*/
public var growthFactor: kotlin.Double
@JvmName("getGrowthFactor")
get() = _builder.getGrowthFactor()
@JvmName("setGrowthFactor")
set(value) {
_builder.setGrowthFactor(value)
}
/**
* ```
* Must be greater than 1.
* ```
*
* `double growth_factor = 2;`
*/
public fun clearGrowthFactor() {
_builder.clearGrowthFactor()
}
/**
* ```
* Must be greater than 0.
* ```
*
* `double scale = 3;`
*/
public var scale: kotlin.Double
@JvmName("getScale")
get() = _builder.getScale()
@JvmName("setScale")
set(value) {
_builder.setScale(value)
}
/**
* ```
* Must be greater than 0.
* ```
*
* `double scale = 3;`
*/
public fun clearScale() {
_builder.clearScale()
}
}
}
@kotlin.jvm.JvmName("-initializeexplicit")
public inline fun explicit(block: com.google.api.DistributionKt.BucketOptionsKt.ExplicitKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Explicit =
com.google.api.DistributionKt.BucketOptionsKt.ExplicitKt.Dsl._create(com.google.api.Distribution.BucketOptions.Explicit.newBuilder()).apply { block() }._build()
/**
* ```
* Specifies a set of buckets with arbitrary widths.
*
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
*
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
*
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
* ```
*
* Protobuf type `google.api.Distribution.BucketOptions.Explicit`
*/
public object ExplicitKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.BucketOptions.Explicit.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.BucketOptions.Explicit.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.BucketOptions.Explicit = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class BoundsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
*/
public val bounds: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getBoundsList()
)
/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
* @param value The bounds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addBounds")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Double) {
_builder.addBounds(value)
}/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
* @param value The bounds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignBounds")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Double) {
add(value)
}/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
* @param values The bounds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllBounds")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllBounds(values)
}/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
* @param values The bounds to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllBounds")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
* @param index The index to set the value at.
* @param value The bounds to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setBounds")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Double) {
_builder.setBounds(index, value)
}/**
* ```
* The values must be monotonically increasing.
* ```
*
* `repeated double bounds = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearBounds")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearBounds()
}}
}
}
@kotlin.jvm.JvmName("-initializeexemplar")
public inline fun exemplar(block: com.google.api.DistributionKt.ExemplarKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.Exemplar =
com.google.api.DistributionKt.ExemplarKt.Dsl._create(com.google.api.Distribution.Exemplar.newBuilder()).apply { block() }._build()
/**
* ```
* Exemplars are example points that may be used to annotate aggregated
* distribution values. They are metadata that gives information about a
* particular value added to a Distribution bucket, such as a trace ID that
* was active when a value was added. They may contain further information,
* such as a example values and timestamps, origin, etc.
* ```
*
* Protobuf type `google.api.Distribution.Exemplar`
*/
public object ExemplarKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Distribution.Exemplar.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Distribution.Exemplar.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Distribution.Exemplar = _builder.build()
/**
* ```
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
* ```
*
* `double value = 1;`
*/
public var value: kotlin.Double
@JvmName("getValue")
get() = _builder.getValue()
@JvmName("setValue")
set(value) {
_builder.setValue(value)
}
/**
* ```
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
* ```
*
* `double value = 1;`
*/
public fun clearValue() {
_builder.clearValue()
}
/**
* ```
* The observation (sampling) time of the above value.
* ```
*
* `.google.protobuf.Timestamp timestamp = 2;`
*/
public var timestamp: com.google.protobuf.Timestamp
@JvmName("getTimestamp")
get() = _builder.getTimestamp()
@JvmName("setTimestamp")
set(value) {
_builder.setTimestamp(value)
}
/**
* ```
* The observation (sampling) time of the above value.
* ```
*
* `.google.protobuf.Timestamp timestamp = 2;`
*/
public fun clearTimestamp() {
_builder.clearTimestamp()
}
/**
* ```
* The observation (sampling) time of the above value.
* ```
*
* `.google.protobuf.Timestamp timestamp = 2;`
* @return Whether the timestamp field is set.
*/
public fun hasTimestamp(): kotlin.Boolean {
return _builder.hasTimestamp()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class AttachmentsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
*/
public val attachments: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getAttachmentsList()
)
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
* @param value The attachments to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAttachments")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.protobuf.Any) {
_builder.addAttachments(value)
}
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
* @param value The attachments to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAttachments")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.protobuf.Any) {
add(value)
}
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
* @param values The attachments to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllAttachments")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllAttachments(values)
}
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
* @param values The attachments to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllAttachments")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
* @param index The index to set the value at.
* @param value The attachments to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setAttachments")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.protobuf.Any) {
_builder.setAttachments(index, value)
}
/**
* ```
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
* ```
*
* `repeated .google.protobuf.Any attachments = 3;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearAttachments")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearAttachments()
}
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.copy(block: `com.google.api`.DistributionKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution =
`com.google.api`.DistributionKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.Range.copy(block: `com.google.api`.DistributionKt.RangeKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.Range =
`com.google.api`.DistributionKt.RangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.BucketOptions.copy(block: `com.google.api`.DistributionKt.BucketOptionsKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions =
`com.google.api`.DistributionKt.BucketOptionsKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.BucketOptions.Linear.copy(block: `com.google.api`.DistributionKt.BucketOptionsKt.LinearKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Linear =
`com.google.api`.DistributionKt.BucketOptionsKt.LinearKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.BucketOptions.Exponential.copy(block: `com.google.api`.DistributionKt.BucketOptionsKt.ExponentialKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Exponential =
`com.google.api`.DistributionKt.BucketOptionsKt.ExponentialKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.BucketOptions.Explicit.copy(block: `com.google.api`.DistributionKt.BucketOptionsKt.ExplicitKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.BucketOptions.Explicit =
`com.google.api`.DistributionKt.BucketOptionsKt.ExplicitKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.api.Distribution.BucketOptionsOrBuilder.linearBucketsOrNull: com.google.api.Distribution.BucketOptions.Linear?
get() = if (hasLinearBuckets()) getLinearBuckets() else null
public val com.google.api.Distribution.BucketOptionsOrBuilder.exponentialBucketsOrNull: com.google.api.Distribution.BucketOptions.Exponential?
get() = if (hasExponentialBuckets()) getExponentialBuckets() else null
public val com.google.api.Distribution.BucketOptionsOrBuilder.explicitBucketsOrNull: com.google.api.Distribution.BucketOptions.Explicit?
get() = if (hasExplicitBuckets()) getExplicitBuckets() else null
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Distribution.Exemplar.copy(block: `com.google.api`.DistributionKt.ExemplarKt.Dsl.() -> kotlin.Unit): com.google.api.Distribution.Exemplar =
`com.google.api`.DistributionKt.ExemplarKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val com.google.api.Distribution.ExemplarOrBuilder.timestampOrNull: com.google.protobuf.Timestamp?
get() = if (hasTimestamp()) getTimestamp() else null
public val com.google.api.DistributionOrBuilder.rangeOrNull: com.google.api.Distribution.Range?
get() = if (hasRange()) getRange() else null
public val com.google.api.DistributionOrBuilder.bucketOptionsOrNull: com.google.api.Distribution.BucketOptions?
get() = if (hasBucketOptions()) getBucketOptions() else null