{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-dialogflow/json-schema/google-dialogflow-google-cloud-dialogflow-v2-environment-schema.json",
  "title": "GoogleCloudDialogflowV2Environment",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-dialogflow-environments-api-openapi.yml#/components/schemas/GoogleCloudDialogflowV2Environment",
  "type": "object",
  "properties": {
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "textToSpeechSettings": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2TextToSpeechSettings"
    },
    "agentVersion": {
      "type": "string"
    },
    "fulfillment": {
      "$ref": "#/$defs/GoogleCloudDialogflowV2Fulfillment"
    },
    "name": {
      "type": "string",
      "readOnly": true
    },
    "description": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "STOPPED",
        "LOADING",
        "RUNNING"
      ],
      "x-enumDescriptions": [
        "",
        "",
        "",
        ""
      ],
      "readOnly": true
    }
  },
  "$defs": {
    "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"
        }
      }
    },
    "GoogleCloudDialogflowV2Fulfillment": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "genericWebService": {
          "$ref": "#/$defs/GoogleCloudDialogflowV2FulfillmentGenericWebService"
        },
        "features": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2FulfillmentFeature"
          }
        }
      }
    },
    "GoogleCloudDialogflowV2FulfillmentFeature": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "SMALLTALK"
          ],
          "x-enumDescriptions": [
            "",
            ""
          ]
        }
      }
    },
    "GoogleCloudDialogflowV2FulfillmentGenericWebService": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "isCloudFunction": {
          "type": "boolean"
        },
        "requestHeaders": {
          "type": "object",
          "additionalProperties": {
            "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"
        }
      }
    },
    "GoogleCloudDialogflowV2TextToSpeechSettings": {
      "type": "object",
      "properties": {
        "synthesizeSpeechConfigs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/GoogleCloudDialogflowV2SynthesizeSpeechConfig"
          }
        },
        "outputAudioEncoding": {
          "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"
        },
        "enableTextToSpeech": {
          "type": "boolean"
        }
      }
    },
    "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"
        }
      }
    }
  }
}