
src.ml.v1.TrialArgs.scala Maven / Gradle / Ivy
package besom.api.googlenative.ml.v1
final case class TrialArgs private(
finalMeasurement: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1MeasurementArgs]],
location: besom.types.Output[scala.Option[String]],
measurements: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1MeasurementArgs]]],
parameters: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrialParameterArgs]]],
project: besom.types.Output[scala.Option[String]],
state: besom.types.Output[scala.Option[besom.api.googlenative.ml.v1.enums.TrialState]],
studyId: besom.types.Output[String]
)
object TrialArgs:
def apply(
finalMeasurement: besom.types.Input.Optional[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1MeasurementArgs] = scala.None,
location: besom.types.Input.Optional[String] = scala.None,
measurements: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1MeasurementArgs]]] = scala.None,
parameters: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.ml.v1.inputs.GoogleCloudMlV1TrialParameterArgs]]] = scala.None,
project: besom.types.Input.Optional[String] = scala.None,
state: besom.types.Input.Optional[besom.api.googlenative.ml.v1.enums.TrialState] = scala.None,
studyId: besom.types.Input[String]
)(using besom.types.Context): TrialArgs =
new TrialArgs(
finalMeasurement = finalMeasurement.asOptionOutput(isSecret = false),
location = location.asOptionOutput(isSecret = false),
measurements = measurements.asOptionOutput(isSecret = false),
parameters = parameters.asOptionOutput(isSecret = false),
project = project.asOptionOutput(isSecret = false),
state = state.asOptionOutput(isSecret = false),
studyId = studyId.asOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[TrialArgs] =
besom.internal.Encoder.derived[TrialArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[TrialArgs] =
besom.internal.ArgsEncoder.derived[TrialArgs]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy