{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dialogflow/json-schema/google-dialogflow-google-cloud-dialogflow-v2-search-knowledge-request-schema.json",
  "title": "GoogleCloudDialogflowV2SearchKnowledgeRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-dialogflow-suggestions-api-openapi.yml#/components/schemas/GoogleCloudDialogflowV2SearchKnowledgeRequest",
  "type": "object",
  "properties": {
    "conversation": {
      "type": "string"
    },
    "endUserMetadata": {
      "type": "object",
      "additionalProperties": {
        "description": "Properties of the object."
      }
    },
    "searchConfig": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig"
    },
    "exactSearch": {
      "type": "boolean"
    },
    "query": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2TextInput"
    },
    "conversationProfile": {
      "type": "string"
    },
    "parent": {
      "type": "string"
    },
    "querySource": {
      "type": "string",
      "enum": [
        "QUERY_SOURCE_UNSPECIFIED",
        "AGENT_QUERY",
        "SUGGESTED_QUERY"
      ],
      "x-enumDescriptions": [
        "",
        "",
        ""
      ]
    },
    "latestMessage": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    }
  },
  "$defs": {
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig": {
      "type": "object",
      "properties": {
        "filterSpecs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs"
          }
        },
        "boostSpecs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs"
          }
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs": {
      "type": "object",
      "properties": {
        "dataStores": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "spec": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec"
          }
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec": {
      "type": "object",
      "properties": {
        "conditionBoostSpecs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec"
          }
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec": {
      "type": "object",
      "properties": {
        "boostControlSpec": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec"
        },
        "condition": {
          "type": "string"
        },
        "boost": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec": {
      "type": "object",
      "properties": {
        "controlPoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint"
          }
        },
        "interpolationType": {
          "type": "string",
          "enum": [
            "INTERPOLATION_TYPE_UNSPECIFIED",
            "LINEAR"
          ],
          "x-enumDescriptions": [
            "",
            ""
          ]
        },
        "attributeType": {
          "type": "string",
          "enum": [
            "ATTRIBUTE_TYPE_UNSPECIFIED",
            "NUMERICAL",
            "FRESHNESS"
          ],
          "x-enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "fieldName": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint": {
      "type": "object",
      "properties": {
        "attributeValue": {
          "type": "string"
        },
        "boostAmount": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs": {
      "type": "object",
      "properties": {
        "dataStores": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filter": {
          "type": "string"
        }
      }
    },
    "GoogleCloudDialogflowV2TextInput": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "languageCode": {
          "type": "string"
        }
      }
    }
  }
}