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

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

package besom.api.googlenative.dialogflow.v2

final case class ConversationArgs private(
  conversationId: besom.types.Output[scala.Option[String]],
  conversationProfile: besom.types.Output[String],
  conversationStage: besom.types.Output[scala.Option[besom.api.googlenative.dialogflow.v2.enums.ConversationConversationStage]],
  location: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]]
)

object ConversationArgs:
  def apply(
    conversationId: besom.types.Input.Optional[String] = scala.None,
    conversationProfile: besom.types.Input[String],
    conversationStage: besom.types.Input.Optional[besom.api.googlenative.dialogflow.v2.enums.ConversationConversationStage] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None
  )(using besom.types.Context): ConversationArgs =
    new ConversationArgs(
      conversationId = conversationId.asOptionOutput(isSecret = false),
      conversationProfile = conversationProfile.asOutput(isSecret = false),
      conversationStage = conversationStage.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy