![JAR search and dependency download from the Maven repository](/logo.png)
com.google.api.ConfigChangeKt.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/config_change.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializeconfigChange")
public inline fun configChange(block: com.google.api.ConfigChangeKt.Dsl.() -> kotlin.Unit): com.google.api.ConfigChange =
com.google.api.ConfigChangeKt.Dsl._create(com.google.api.ConfigChange.newBuilder()).apply { block() }._build()
/**
* ```
* Output generated from semantically comparing two versions of a service
* configuration.
*
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
* ```
*
* Protobuf type `google.api.ConfigChange`
*/
public object ConfigChangeKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.ConfigChange.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.ConfigChange.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.ConfigChange = _builder.build()
/**
* ```
* Object hierarchy path to the change, with levels separated by a '.'
* character. For repeated fields, an applicable unique identifier field is
* used for the index (usually selector, name, or id). For maps, the term
* 'key' is used. If the field has no unique identifier, the numeric index
* is used.
* Examples:
* - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
* - logging.producer_destinations[0]
* ```
*
* `string element = 1;`
*/
public var element: kotlin.String
@JvmName("getElement")
get() = _builder.getElement()
@JvmName("setElement")
set(value) {
_builder.setElement(value)
}
/**
* ```
* Object hierarchy path to the change, with levels separated by a '.'
* character. For repeated fields, an applicable unique identifier field is
* used for the index (usually selector, name, or id). For maps, the term
* 'key' is used. If the field has no unique identifier, the numeric index
* is used.
* Examples:
* - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
* - logging.producer_destinations[0]
* ```
*
* `string element = 1;`
*/
public fun clearElement() {
_builder.clearElement()
}
/**
* ```
* Value of the changed object in the old Service configuration,
* in JSON format. This field will not be populated if ChangeType == ADDED.
* ```
*
* `string old_value = 2;`
*/
public var oldValue: kotlin.String
@JvmName("getOldValue")
get() = _builder.getOldValue()
@JvmName("setOldValue")
set(value) {
_builder.setOldValue(value)
}
/**
* ```
* Value of the changed object in the old Service configuration,
* in JSON format. This field will not be populated if ChangeType == ADDED.
* ```
*
* `string old_value = 2;`
*/
public fun clearOldValue() {
_builder.clearOldValue()
}
/**
* ```
* Value of the changed object in the new Service configuration,
* in JSON format. This field will not be populated if ChangeType == REMOVED.
* ```
*
* `string new_value = 3;`
*/
public var newValue: kotlin.String
@JvmName("getNewValue")
get() = _builder.getNewValue()
@JvmName("setNewValue")
set(value) {
_builder.setNewValue(value)
}
/**
* ```
* Value of the changed object in the new Service configuration,
* in JSON format. This field will not be populated if ChangeType == REMOVED.
* ```
*
* `string new_value = 3;`
*/
public fun clearNewValue() {
_builder.clearNewValue()
}
/**
* ```
* The type for this change, either ADDED, REMOVED, or MODIFIED.
* ```
*
* `.google.api.ChangeType change_type = 4;`
*/
public var changeType: com.google.api.ChangeType
@JvmName("getChangeType")
get() = _builder.getChangeType()
@JvmName("setChangeType")
set(value) {
_builder.setChangeType(value)
}
public var changeTypeValue: kotlin.Int
@JvmName("getChangeTypeValue")
get() = _builder.getChangeTypeValue()
@JvmName("setChangeTypeValue")
set(value) {
_builder.setChangeTypeValue(value)
}
/**
* ```
* The type for this change, either ADDED, REMOVED, or MODIFIED.
* ```
*
* `.google.api.ChangeType change_type = 4;`
*/
public fun clearChangeType() {
_builder.clearChangeType()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class AdvicesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
*/
public val advices: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getAdvicesList()
)
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
* @param value The advices to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAdvices")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.Advice) {
_builder.addAdvices(value)
}
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
* @param value The advices to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAdvices")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.Advice) {
add(value)
}
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
* @param values The advices to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllAdvices")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllAdvices(values)
}
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
* @param values The advices to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllAdvices")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
* @param index The index to set the value at.
* @param value The advices to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setAdvices")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.Advice) {
_builder.setAdvices(index, value)
}
/**
* ```
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
* ```
*
* `repeated .google.api.Advice advices = 5;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearAdvices")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearAdvices()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.ConfigChange.copy(block: `com.google.api`.ConfigChangeKt.Dsl.() -> kotlin.Unit): com.google.api.ConfigChange =
`com.google.api`.ConfigChangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy