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

src.dialogflow.v2.IntentArgs.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 IntentArgs private(
  action: besom.types.Output[scala.Option[String]],
  defaultResponsePlatforms: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v2.enums.IntentDefaultResponsePlatformsItem]]],
  displayName: besom.types.Output[String],
  endInteraction: besom.types.Output[scala.Option[Boolean]],
  events: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
  inputContextNames: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
  intentView: besom.types.Output[scala.Option[String]],
  isFallback: besom.types.Output[scala.Option[Boolean]],
  languageCode: besom.types.Output[scala.Option[String]],
  liveAgentHandoff: besom.types.Output[scala.Option[Boolean]],
  location: besom.types.Output[scala.Option[String]],
  messages: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentMessageArgs]]],
  mlDisabled: besom.types.Output[scala.Option[Boolean]],
  name: besom.types.Output[scala.Option[String]],
  outputContexts: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2ContextArgs]]],
  parameters: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentParameterArgs]]],
  parentFollowupIntentName: besom.types.Output[scala.Option[String]],
  priority: besom.types.Output[scala.Option[Int]],
  project: besom.types.Output[scala.Option[String]],
  resetContexts: besom.types.Output[scala.Option[Boolean]],
  trainingPhrases: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentTrainingPhraseArgs]]],
  webhookState: besom.types.Output[scala.Option[besom.api.googlenative.dialogflow.v2.enums.IntentWebhookState]]
)

object IntentArgs:
  def apply(
    action: besom.types.Input.Optional[String] = scala.None,
    defaultResponsePlatforms: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v2.enums.IntentDefaultResponsePlatformsItem]]] = scala.None,
    displayName: besom.types.Input[String],
    endInteraction: besom.types.Input.Optional[Boolean] = scala.None,
    events: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
    inputContextNames: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
    intentView: besom.types.Input.Optional[String] = scala.None,
    isFallback: besom.types.Input.Optional[Boolean] = scala.None,
    languageCode: besom.types.Input.Optional[String] = scala.None,
    liveAgentHandoff: besom.types.Input.Optional[Boolean] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    messages: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentMessageArgs]]] = scala.None,
    mlDisabled: besom.types.Input.Optional[Boolean] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    outputContexts: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2ContextArgs]]] = scala.None,
    parameters: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentParameterArgs]]] = scala.None,
    parentFollowupIntentName: besom.types.Input.Optional[String] = scala.None,
    priority: besom.types.Input.Optional[Int] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    resetContexts: besom.types.Input.Optional[Boolean] = scala.None,
    trainingPhrases: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v2.inputs.GoogleCloudDialogflowV2IntentTrainingPhraseArgs]]] = scala.None,
    webhookState: besom.types.Input.Optional[besom.api.googlenative.dialogflow.v2.enums.IntentWebhookState] = scala.None
  )(using besom.types.Context): IntentArgs =
    new IntentArgs(
      action = action.asOptionOutput(isSecret = false),
      defaultResponsePlatforms = defaultResponsePlatforms.asOptionOutput(isSecret = false),
      displayName = displayName.asOutput(isSecret = false),
      endInteraction = endInteraction.asOptionOutput(isSecret = false),
      events = events.asOptionOutput(isSecret = false),
      inputContextNames = inputContextNames.asOptionOutput(isSecret = false),
      intentView = intentView.asOptionOutput(isSecret = false),
      isFallback = isFallback.asOptionOutput(isSecret = false),
      languageCode = languageCode.asOptionOutput(isSecret = false),
      liveAgentHandoff = liveAgentHandoff.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      messages = messages.asOptionOutput(isSecret = false),
      mlDisabled = mlDisabled.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      outputContexts = outputContexts.asOptionOutput(isSecret = false),
      parameters = parameters.asOptionOutput(isSecret = false),
      parentFollowupIntentName = parentFollowupIntentName.asOptionOutput(isSecret = false),
      priority = priority.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      resetContexts = resetContexts.asOptionOutput(isSecret = false),
      trainingPhrases = trainingPhrases.asOptionOutput(isSecret = false),
      webhookState = webhookState.asOptionOutput(isSecret = false)
    )

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






© 2015 - 2025 Weber Informatics LLC | Privacy Policy