{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dialogflow/json-schema/google-dialogflow-google-cloud-dialogflow-v2-detect-intent-request-schema.json",
  "title": "GoogleCloudDialogflowV2DetectIntentRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-dialogflow-sessions-api-openapi.yml#/components/schemas/GoogleCloudDialogflowV2DetectIntentRequest",
  "type": "object",
  "properties": {
    "inputAudio": {
      "type": "string",
      "format": "byte"
    },
    "queryInput": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2QueryInput"
    },
    "outputAudioConfigMask": {
      "type": "string"
    },
    "outputAudioConfig": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2OutputAudioConfig"
    },
    "queryParams": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2QueryParameters"
    }
  },
  "$defs": {
    "GoogleCloudDialogflowV2Context": {
      "type": "object",
      "properties": {
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        },
        "name": {
          "type": "string"
        },
        "lifespanCount": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "GoogleCloudDialogflowV2CustomPronunciationParams": {
      "type": "object",
      "properties": {
        "phoneticEncoding": {
          "type": "string",
          "enum": [
            "PHONETIC_ENCODING_UNSPECIFIED",
            "PHONETIC_ENCODING_IPA",
            "PHONETIC_ENCODING_X_SAMPA"
          ],
          "x-enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "phrase": {
          "type": "string"
        },
        "pronunciation": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2EntityTypeEntity": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "synonyms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "GoogleCloudDialogflowV2EventInput": {
      "type": "object",
      "properties": {
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        },
        "name": {
          "type": "string"
        },
        "languageCode": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2InputAudioConfig": {
      "type": "object",
      "properties": {
        "disableNoSpeechRecognizedEvent": {
          "type": "boolean"
        },
        "modelVariant": {
          "type": "string",
          "enum": [
            "SPEECH_MODEL_VARIANT_UNSPECIFIED",
            "USE_BEST_AVAILABLE",
            "USE_STANDARD",
            "USE_ENHANCED"
          ],
          "x-enumDescriptions": [
            "",
            "",
            "",
            ""
          ]
        },
        "enableWordInfo": {
          "type": "boolean"
        },
        "sampleRateHertz": {
          "type": "integer",
          "format": "int32"
        },
        "phraseHints": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "languageCode": {
          "type": "string"
        },
        "enableAutomaticPunctuation": {
          "type": "boolean"
        },
        "singleUtterance": {
          "type": "boolean"
        },
        "geminiAsrConfig": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2SpeechToTextConfigGeminiAsrConfig"
        },
        "enableVoiceActivityEvents": {
          "type": "boolean"
        },
        "phraseSets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "speechContexts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SpeechContext"
          }
        },
        "optOutConformerModelMigration": {
          "type": "boolean"
        },
        "audioEncoding": {
          "type": "string",
          "enum": [
            "AUDIO_ENCODING_UNSPECIFIED",
            "AUDIO_ENCODING_LINEAR_16",
            "AUDIO_ENCODING_FLAC",
            "AUDIO_ENCODING_MULAW",
            "AUDIO_ENCODING_AMR",
            "AUDIO_ENCODING_AMR_WB",
            "AUDIO_ENCODING_OGG_OPUS",
            "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE",
            "AUDIO_ENCODING_ALAW"
          ],
          "x-enumDescriptions": [
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            ""
          ]
        },
        "model": {
          "type": "string"
        },
        "useGeminiAsr": {
          "type": "boolean"
        }
      }
    },
    "GoogleCloudDialogflowV2OutputAudioConfig": {
      "type": "object",
      "properties": {
        "audioEncoding": {
          "type": "string",
          "enum": [
            "OUTPUT_AUDIO_ENCODING_UNSPECIFIED",
            "OUTPUT_AUDIO_ENCODING_LINEAR_16",
            "OUTPUT_AUDIO_ENCODING_MP3",
            "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS",
            "OUTPUT_AUDIO_ENCODING_OGG_OPUS",
            "OUTPUT_AUDIO_ENCODING_MULAW",
            "OUTPUT_AUDIO_ENCODING_ALAW"
          ],
          "x-enumDescriptions": [
            "",
            "",
            "",
            "",
            "",
            "",
            ""
          ]
        },
        "sampleRateHertz": {
          "type": "integer",
          "format": "int32"
        },
        "synthesizeSpeechConfig": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2SynthesizeSpeechConfig"
        }
      }
    },
    "GoogleCloudDialogflowV2QueryInput": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2TextInput"
        },
        "audioConfig": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2InputAudioConfig"
        },
        "event": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2EventInput"
        }
      }
    },
    "GoogleCloudDialogflowV2QueryParameters": {
      "type": "object",
      "properties": {
        "timeZone": {
          "type": "string"
        },
        "sessionEntityTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SessionEntityType"
          }
        },
        "contexts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2Context"
          }
        },
        "resetContexts": {
          "type": "boolean"
        },
        "sentimentAnalysisRequestConfig": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2SentimentAnalysisRequestConfig"
        },
        "geoLocation": {
          "$ref": "#/$defs/GoogleTypeLatLng"
        },
        "platform": {
          "type": "string"
        },
        "webhookHeaders": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "payload": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object."
          }
        }
      }
    },
    "GoogleCloudDialogflowV2SentimentAnalysisRequestConfig": {
      "type": "object",
      "properties": {
        "analyzeQueryTextSentiment": {
          "type": "boolean"
        }
      }
    },
    "GoogleCloudDialogflowV2SessionEntityType": {
      "type": "object",
      "properties": {
        "entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2EntityTypeEntity"
          }
        },
        "entityOverrideMode": {
          "type": "string",
          "enum": [
            "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
            "ENTITY_OVERRIDE_MODE_OVERRIDE",
            "ENTITY_OVERRIDE_MODE_SUPPLEMENT"
          ],
          "x-enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "name": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2SpeechContext": {
      "type": "object",
      "properties": {
        "phrases": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "boost": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "GoogleCloudDialogflowV2SpeechToTextConfigGeminiAsrConfig": {
      "type": "object",
      "properties": {
        "startOfSpeechSensitivity": {
          "type": "string",
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ],
          "x-enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "prefixPaddingMs": {
          "type": "integer",
          "format": "int32"
        },
        "endOfSpeechSensitivity": {
          "type": "string",
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "x-enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "silenceDurationMs": {
          "type": "integer",
          "format": "int32"
        },
        "modelId": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2SynthesizeSpeechConfig": {
      "type": "object",
      "properties": {
        "pitch": {
          "type": "number",
          "format": "double"
        },
        "effectsProfileId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "volumeGainDb": {
          "type": "number",
          "format": "double"
        },
        "pronunciations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2CustomPronunciationParams"
          }
        },
        "voice": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2VoiceSelectionParams"
        },
        "speakingRate": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "GoogleCloudDialogflowV2TextInput": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "languageCode": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2VoiceSelectionParams": {
      "type": "object",
      "properties": {
        "ssmlGender": {
          "type": "string",
          "enum": [
            "SSML_VOICE_GENDER_UNSPECIFIED",
            "SSML_VOICE_GENDER_MALE",
            "SSML_VOICE_GENDER_FEMALE",
            "SSML_VOICE_GENDER_NEUTRAL"
          ],
          "x-enumDescriptions": [
            "",
            "",
            "",
            ""
          ]
        },
        "name": {
          "type": "string"
        }
      }
    },
    "GoogleTypeLatLng": {
      "type": "object",
      "properties": {
        "longitude": {
          "type": "number",
          "format": "double"
        },
        "latitude": {
          "type": "number",
          "format": "double"
        }
      }
    }
  }
}