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

com.pulumi.googlenative.ml.v1.kotlin.enums.TrialState.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.ml.v1.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * The detailed state of a trial.
 */
public enum class TrialState(
    public val javaValue: com.pulumi.googlenative.ml.v1.enums.TrialState,
) : ConvertibleToJava {
    /**
     * The trial state is unspecified.
     */
    StateUnspecified(com.pulumi.googlenative.ml.v1.enums.TrialState.StateUnspecified),

    /**
     * Indicates that a specific trial has been requested, but it has not yet been suggested by the service.
     */
    Requested(com.pulumi.googlenative.ml.v1.enums.TrialState.Requested),

    /**
     * Indicates that the trial has been suggested.
     */
    Active(com.pulumi.googlenative.ml.v1.enums.TrialState.Active),

    /**
     * Indicates that the trial is done, and either has a final_measurement set, or is marked as trial_infeasible.
     */
    Completed(com.pulumi.googlenative.ml.v1.enums.TrialState.Completed),

    /**
     * Indicates that the trial should stop according to the service.
     */
    Stopping(com.pulumi.googlenative.ml.v1.enums.TrialState.Stopping),
    ;

    override fun toJava(): com.pulumi.googlenative.ml.v1.enums.TrialState = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.ml.v1.enums.TrialState): TrialState =
            TrialState.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy