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

src.dialogflow.v2.GetContextArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.dialogflow.v2

final case class GetContextArgs private(
  contextId: besom.types.Output[String],
  environmentId: besom.types.Output[String],
  location: besom.types.Output[String],
  project: besom.types.Output[scala.Option[String]],
  sessionId: besom.types.Output[String],
  userId: besom.types.Output[String]
)

object GetContextArgs:
  def apply(
    contextId: besom.types.Input[String],
    environmentId: besom.types.Input[String],
    location: besom.types.Input[String],
    project: besom.types.Input.Optional[String] = scala.None,
    sessionId: besom.types.Input[String],
    userId: besom.types.Input[String]
  )(using besom.types.Context): GetContextArgs =
    new GetContextArgs(
      contextId = contextId.asOutput(isSecret = false),
      environmentId = environmentId.asOutput(isSecret = false),
      location = location.asOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      sessionId = sessionId.asOutput(isSecret = false),
      userId = userId.asOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[GetContextArgs] =
    besom.internal.Encoder.derived[GetContextArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[GetContextArgs] =
    besom.internal.ArgsEncoder.derived[GetContextArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy