From f73a9bab943dd194caf2ee20377cdc1123648c67 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Dec 2020 02:38:05 -0800 Subject: [PATCH] feat: Automated regeneration of dialogflow v3 client (#1693) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-09 02:22:24,941 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-dialogflow-v3 nothing to commit, working tree clean 2020-12-09 02:22:25,043 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dialogflow v3 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dialogflow v3 bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.51.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=dialogflow.v3 --names-out=/workspace/api_names_out.yaml Loading dialogflow, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/dialogflow.v3.json conflict google/apis/dialogflow_v3.rb Wrote metadata to generated/google/apis/dialogflow_v3/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/dialogflow_v3/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/13e6b812-a54d-4bbb-9ab8-105f680377a2/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 643 +++ generated/google/apis/dialogflow_v3.rb | 2 +- .../google/apis/dialogflow_v3/classes.rb | 3492 +++++++++++++++++ .../apis/dialogflow_v3/representations.rb | 1437 +++++++ .../google/apis/dialogflow_v3/service.rb | 2718 +++++++++++++ .../google/apis/dialogflow_v3/synth.metadata | 2 +- 6 files changed, 8292 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 480e49c2f..120076bff 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -90231,6 +90231,440 @@ "/dialogflow:v2beta1/fields": fields "/dialogflow:v2beta1/key": key "/dialogflow:v2beta1/quotaUser": quota_user +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent": google_cloud_dialogflow_cx_v3_agent +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/avatarUri": avatar_uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/defaultLanguageCode": default_language_code +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/description": description +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/enableSpellCorrection": enable_spell_correction +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/enableStackdriverLogging": enable_stackdriver_logging +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/speechToTextSettings": speech_to_text_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/startFlow": start_flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3Agent/timeZone": time_zone +"/dialogflow:v3/GoogleCloudDialogflowCxV3AudioInput": google_cloud_dialogflow_cx_v3_audio_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3AudioInput/audio": audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3AudioInput/config": config +"/dialogflow:v3/GoogleCloudDialogflowCxV3CreateVersionOperationMetadata": google_cloud_dialogflow_cx_v3_create_version_operation_metadata +"/dialogflow:v3/GoogleCloudDialogflowCxV3CreateVersionOperationMetadata/version": version +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentRequest": google_cloud_dialogflow_cx_v3_detect_intent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentRequest/outputAudioConfig": output_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentRequest/queryInput": query_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentRequest/queryParams": query_params +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentResponse": google_cloud_dialogflow_cx_v3_detect_intent_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentResponse/outputAudio": output_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentResponse/outputAudioConfig": output_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentResponse/queryResult": query_result +"/dialogflow:v3/GoogleCloudDialogflowCxV3DetectIntentResponse/responseId": response_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3DtmfInput": google_cloud_dialogflow_cx_v3_dtmf_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3DtmfInput/digits": digits +"/dialogflow:v3/GoogleCloudDialogflowCxV3DtmfInput/finishDigit": finish_digit +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType": google_cloud_dialogflow_cx_v3_entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/autoExpansionMode": auto_expansion_mode +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/enableFuzzyExtraction": enable_fuzzy_extraction +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/entities": entities +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/entities/entity": entity +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/excludedPhrases": excluded_phrases +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/excludedPhrases/excluded_phrase": excluded_phrase +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/kind": kind +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityType/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeEntity": google_cloud_dialogflow_cx_v3_entity_type_entity +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeEntity/synonyms": synonyms +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeEntity/synonyms/synonym": synonym +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeEntity/value": value +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase": google_cloud_dialogflow_cx_v3_entity_type_excluded_phrase +"/dialogflow:v3/GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase/value": value +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment": google_cloud_dialogflow_cx_v3_environment +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/description": description +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/updateTime": update_time +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/versionConfigs": version_configs +"/dialogflow:v3/GoogleCloudDialogflowCxV3Environment/versionConfigs/version_config": version_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3EnvironmentVersionConfig": google_cloud_dialogflow_cx_v3_environment_version_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3EnvironmentVersionConfig/version": version +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler": google_cloud_dialogflow_cx_v3_event_handler +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler/event": event +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler/targetFlow": target_flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler/targetPage": target_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventHandler/triggerFulfillment": trigger_fulfillment +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventInput": google_cloud_dialogflow_cx_v3_event_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3EventInput/event": event +"/dialogflow:v3/GoogleCloudDialogflowCxV3ExportAgentRequest": google_cloud_dialogflow_cx_v3_export_agent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3ExportAgentRequest/agentUri": agent_uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3ExportAgentResponse": google_cloud_dialogflow_cx_v3_export_agent_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ExportAgentResponse/agentContent": agent_content +"/dialogflow:v3/GoogleCloudDialogflowCxV3ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow": google_cloud_dialogflow_cx_v3_flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/description": description +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/eventHandlers": event_handlers +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/eventHandlers/event_handler": event_handler +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/nluSettings": nlu_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/transitionRoutes": transition_routes +"/dialogflow:v3/GoogleCloudDialogflowCxV3Flow/transitionRoutes/transition_route": transition_route +"/dialogflow:v3/GoogleCloudDialogflowCxV3Form": google_cloud_dialogflow_cx_v3_form +"/dialogflow:v3/GoogleCloudDialogflowCxV3Form/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3Form/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter": google_cloud_dialogflow_cx_v3_form_parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/defaultValue": default_value +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/entityType": entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/fillBehavior": fill_behavior +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/isList": is_list +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/redact": redact +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameter/required": required +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameterFillBehavior": google_cloud_dialogflow_cx_v3_form_parameter_fill_behavior +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameterFillBehavior/initialPromptFulfillment": initial_prompt_fulfillment +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameterFillBehavior/repromptEventHandlers": reprompt_event_handlers +"/dialogflow:v3/GoogleCloudDialogflowCxV3FormParameterFillBehavior/repromptEventHandlers/reprompt_event_handler": reprompt_event_handler +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentRequest": google_cloud_dialogflow_cx_v3_fulfill_intent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentRequest/match": match +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentRequest/matchIntentRequest": match_intent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentRequest/outputAudioConfig": output_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentResponse": google_cloud_dialogflow_cx_v3_fulfill_intent_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentResponse/outputAudio": output_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentResponse/outputAudioConfig": output_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentResponse/queryResult": query_result +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillIntentResponse/responseId": response_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment": google_cloud_dialogflow_cx_v3_fulfillment +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/conditionalCases": conditional_cases +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/conditionalCases/conditional_case": conditional_case +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/messages": messages +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/messages/message": message +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/setParameterActions": set_parameter_actions +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/setParameterActions/set_parameter_action": set_parameter_action +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/tag": tag +"/dialogflow:v3/GoogleCloudDialogflowCxV3Fulfillment/webhook": webhook +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCases": google_cloud_dialogflow_cx_v3_fulfillment_conditional_cases +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCases/cases": cases +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCases/cases/case": case +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase": google_cloud_dialogflow_cx_v3_fulfillment_conditional_cases_case +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase/caseContent": case_content +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase/caseContent/case_content": case_content +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase/condition": condition +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent": google_cloud_dialogflow_cx_v3_fulfillment_conditional_cases_case_case_content +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent/additionalCases": additional_cases +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent/message": message +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentSetParameterAction": google_cloud_dialogflow_cx_v3_fulfillment_set_parameter_action +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentSetParameterAction/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3FulfillmentSetParameterAction/value": value +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig": google_cloud_dialogflow_cx_v3_input_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/audioEncoding": audio_encoding +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/enableWordInfo": enable_word_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/model": model +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/modelVariant": model_variant +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/phraseHints": phrase_hints +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/phraseHints/phrase_hint": phrase_hint +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/sampleRateHertz": sample_rate_hertz +"/dialogflow:v3/GoogleCloudDialogflowCxV3InputAudioConfig/singleUtterance": single_utterance +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent": google_cloud_dialogflow_cx_v3_intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/description": description +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/isFallback": is_fallback +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/labels": labels +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/labels/label": label +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/priority": priority +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/trainingPhrases": training_phrases +"/dialogflow:v3/GoogleCloudDialogflowCxV3Intent/trainingPhrases/training_phrase": training_phrase +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentInput": google_cloud_dialogflow_cx_v3_intent_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentInput/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentParameter": google_cloud_dialogflow_cx_v3_intent_parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentParameter/entityType": entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentParameter/id": id +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentParameter/isList": is_list +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentParameter/redact": redact +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrase": google_cloud_dialogflow_cx_v3_intent_training_phrase +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrase/id": id +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrase/parts": parts +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrase/parts/part": part +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrase/repeatCount": repeat_count +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrasePart": google_cloud_dialogflow_cx_v3_intent_training_phrase_part +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrasePart/parameterId": parameter_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3IntentTrainingPhrasePart/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListAgentsResponse": google_cloud_dialogflow_cx_v3_list_agents_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListAgentsResponse/agents": agents +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListAgentsResponse/agents/agent": agent +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListAgentsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEntityTypesResponse": google_cloud_dialogflow_cx_v3_list_entity_types_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEntityTypesResponse/entityTypes": entity_types +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEntityTypesResponse/entityTypes/entity_type": entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEntityTypesResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEnvironmentsResponse": google_cloud_dialogflow_cx_v3_list_environments_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEnvironmentsResponse/environments": environments +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEnvironmentsResponse/environments/environment": environment +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListEnvironmentsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListFlowsResponse": google_cloud_dialogflow_cx_v3_list_flows_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListFlowsResponse/flows": flows +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListFlowsResponse/flows/flow": flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListFlowsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListIntentsResponse": google_cloud_dialogflow_cx_v3_list_intents_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListIntentsResponse/intents": intents +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListIntentsResponse/intents/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListIntentsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListPagesResponse": google_cloud_dialogflow_cx_v3_list_pages_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListPagesResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListPagesResponse/pages": pages +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListPagesResponse/pages/page": page +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSecuritySettingsResponse": google_cloud_dialogflow_cx_v3_list_security_settings_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSecuritySettingsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSecuritySettingsResponse/securitySettings": security_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSecuritySettingsResponse/securitySettings/security_setting": security_setting +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse": google_cloud_dialogflow_cx_v3_list_session_entity_types_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse/sessionEntityTypes": session_entity_types +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse/sessionEntityTypes/session_entity_type": session_entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse": google_cloud_dialogflow_cx_v3_list_transition_route_groups_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse/transitionRouteGroups": transition_route_groups +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse/transitionRouteGroups/transition_route_group": transition_route_group +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListVersionsResponse": google_cloud_dialogflow_cx_v3_list_versions_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListVersionsResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListVersionsResponse/versions": versions +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListVersionsResponse/versions/version": version +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListWebhooksResponse": google_cloud_dialogflow_cx_v3_list_webhooks_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListWebhooksResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListWebhooksResponse/webhooks": webhooks +"/dialogflow:v3/GoogleCloudDialogflowCxV3ListWebhooksResponse/webhooks/webhook": webhook +"/dialogflow:v3/GoogleCloudDialogflowCxV3LoadVersionRequest": google_cloud_dialogflow_cx_v3_load_version_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3LoadVersionRequest/allowOverrideAgentResources": allow_override_agent_resources +"/dialogflow:v3/GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse": google_cloud_dialogflow_cx_v3_lookup_environment_history_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse/environments": environments +"/dialogflow:v3/GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse/environments/environment": environment +"/dialogflow:v3/GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse/nextPageToken": next_page_token +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match": google_cloud_dialogflow_cx_v3_match +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/confidence": confidence +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/event": event +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/matchType": match_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3Match/resolvedInput": resolved_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentRequest": google_cloud_dialogflow_cx_v3_match_intent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentRequest/queryInput": query_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentRequest/queryParams": query_params +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse": google_cloud_dialogflow_cx_v3_match_intent_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/currentPage": current_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/matches": matches +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/matches/match": match +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/transcript": transcript +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/triggerEvent": trigger_event +"/dialogflow:v3/GoogleCloudDialogflowCxV3MatchIntentResponse/triggerIntent": trigger_intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3NluSettings": google_cloud_dialogflow_cx_v3_nlu_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3NluSettings/classificationThreshold": classification_threshold +"/dialogflow:v3/GoogleCloudDialogflowCxV3NluSettings/modelTrainingMode": model_training_mode +"/dialogflow:v3/GoogleCloudDialogflowCxV3NluSettings/modelType": model_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3OutputAudioConfig": google_cloud_dialogflow_cx_v3_output_audio_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3OutputAudioConfig/audioEncoding": audio_encoding +"/dialogflow:v3/GoogleCloudDialogflowCxV3OutputAudioConfig/sampleRateHertz": sample_rate_hertz +"/dialogflow:v3/GoogleCloudDialogflowCxV3OutputAudioConfig/synthesizeSpeechConfig": synthesize_speech_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page": google_cloud_dialogflow_cx_v3_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/entryFulfillment": entry_fulfillment +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/eventHandlers": event_handlers +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/eventHandlers/event_handler": event_handler +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/form": form +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/transitionRouteGroups": transition_route_groups +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/transitionRouteGroups/transition_route_group": transition_route_group +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/transitionRoutes": transition_routes +"/dialogflow:v3/GoogleCloudDialogflowCxV3Page/transitionRoutes/transition_route": transition_route +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfo": google_cloud_dialogflow_cx_v3_page_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfo/currentPage": current_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfo/formInfo": form_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfo": google_cloud_dialogflow_cx_v3_page_info_form_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfo/parameterInfo": parameter_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfo/parameterInfo/parameter_info": parameter_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo": google_cloud_dialogflow_cx_v3_page_info_form_info_parameter_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo/justCollected": just_collected +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo/required": required +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo/state": state +"/dialogflow:v3/GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo/value": value +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput": google_cloud_dialogflow_cx_v3_query_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/audio": audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/dtmf": dtmf +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/event": event +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/languageCode": language_code +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryInput/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters": google_cloud_dialogflow_cx_v3_query_parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/analyzeQueryTextSentiment": analyze_query_text_sentiment +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/geoLocation": geo_location +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/payload/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/sessionEntityTypes": session_entity_types +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/sessionEntityTypes/session_entity_type": session_entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/timeZone": time_zone +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/webhookHeaders": webhook_headers +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryParameters/webhookHeaders/webhook_header": webhook_header +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult": google_cloud_dialogflow_cx_v3_query_result +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/currentPage": current_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/diagnosticInfo": diagnostic_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/diagnosticInfo/diagnostic_info": diagnostic_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/intentDetectionConfidence": intent_detection_confidence +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/languageCode": language_code +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/match": match +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/responseMessages": response_messages +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/responseMessages/response_message": response_message +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/sentimentAnalysisResult": sentiment_analysis_result +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/transcript": transcript +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/triggerEvent": trigger_event +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/triggerIntent": trigger_intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/webhookPayloads": webhook_payloads +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/webhookPayloads/webhook_payload": webhook_payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/webhookPayloads/webhook_payload/webhook_payload": webhook_payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/webhookStatuses": webhook_statuses +"/dialogflow:v3/GoogleCloudDialogflowCxV3QueryResult/webhookStatuses/webhook_status": webhook_status +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage": google_cloud_dialogflow_cx_v3_response_message +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/conversationSuccess": conversation_success +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/endInteraction": end_interaction +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/liveAgentHandoff": live_agent_handoff +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/mixedAudio": mixed_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/outputAudioText": output_audio_text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/payload/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/playAudio": play_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessage/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess": google_cloud_dialogflow_cx_v3_response_message_conversation_success +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess/metadata": metadata +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess/metadata/metadatum": metadatum +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageEndInteraction": google_cloud_dialogflow_cx_v3_response_message_end_interaction +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff": google_cloud_dialogflow_cx_v3_response_message_live_agent_handoff +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff/metadata": metadata +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff/metadata/metadatum": metadatum +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudio": google_cloud_dialogflow_cx_v3_response_message_mixed_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudio/segments": segments +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudio/segments/segment": segment +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment": google_cloud_dialogflow_cx_v3_response_message_mixed_audio_segment +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment/allowPlaybackInterruption": allow_playback_interruption +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment/audio": audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment/uri": uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText": google_cloud_dialogflow_cx_v3_response_message_output_audio_text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText/allowPlaybackInterruption": allow_playback_interruption +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText/ssml": ssml +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessagePlayAudio": google_cloud_dialogflow_cx_v3_response_message_play_audio +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessagePlayAudio/allowPlaybackInterruption": allow_playback_interruption +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessagePlayAudio/audioUri": audio_uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageText": google_cloud_dialogflow_cx_v3_response_message_text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageText/allowPlaybackInterruption": allow_playback_interruption +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageText/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3ResponseMessageText/text/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3RestoreAgentRequest": google_cloud_dialogflow_cx_v3_restore_agent_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3RestoreAgentRequest/agentContent": agent_content +"/dialogflow:v3/GoogleCloudDialogflowCxV3RestoreAgentRequest/agentUri": agent_uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings": google_cloud_dialogflow_cx_v3_security_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/inspectTemplate": inspect_template +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/purgeDataTypes": purge_data_types +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/purgeDataTypes/purge_data_type": purge_data_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/redactionScope": redaction_scope +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/redactionStrategy": redaction_strategy +"/dialogflow:v3/GoogleCloudDialogflowCxV3SecuritySettings/retentionWindowDays": retention_window_days +"/dialogflow:v3/GoogleCloudDialogflowCxV3SentimentAnalysisResult": google_cloud_dialogflow_cx_v3_sentiment_analysis_result +"/dialogflow:v3/GoogleCloudDialogflowCxV3SentimentAnalysisResult/magnitude": magnitude +"/dialogflow:v3/GoogleCloudDialogflowCxV3SentimentAnalysisResult/score": score +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionEntityType": google_cloud_dialogflow_cx_v3_session_entity_type +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionEntityType/entities": entities +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionEntityType/entities/entity": entity +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionEntityType/entityOverrideMode": entity_override_mode +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionEntityType/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionInfo": google_cloud_dialogflow_cx_v3_session_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionInfo/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionInfo/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3SessionInfo/session": session +"/dialogflow:v3/GoogleCloudDialogflowCxV3SpeechToTextSettings": google_cloud_dialogflow_cx_v3_speech_to_text_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3SpeechToTextSettings/enableSpeechAdaptation": enable_speech_adaptation +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig": google_cloud_dialogflow_cx_v3_synthesize_speech_config +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/effectsProfileId": effects_profile_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/effectsProfileId/effects_profile_id": effects_profile_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/pitch": pitch +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/speakingRate": speaking_rate +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/voice": voice +"/dialogflow:v3/GoogleCloudDialogflowCxV3SynthesizeSpeechConfig/volumeGainDb": volume_gain_db +"/dialogflow:v3/GoogleCloudDialogflowCxV3TextInput": google_cloud_dialogflow_cx_v3_text_input +"/dialogflow:v3/GoogleCloudDialogflowCxV3TextInput/text": text +"/dialogflow:v3/GoogleCloudDialogflowCxV3TrainFlowRequest": google_cloud_dialogflow_cx_v3_train_flow_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute": google_cloud_dialogflow_cx_v3_transition_route +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/condition": condition +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/intent": intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/targetFlow": target_flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/targetPage": target_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRoute/triggerFulfillment": trigger_fulfillment +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRouteGroup": google_cloud_dialogflow_cx_v3_transition_route_group +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRouteGroup/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRouteGroup/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRouteGroup/transitionRoutes": transition_routes +"/dialogflow:v3/GoogleCloudDialogflowCxV3TransitionRouteGroup/transitionRoutes/transition_route": transition_route +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version": google_cloud_dialogflow_cx_v3_version +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/createTime": create_time +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/description": description +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/nluSettings": nlu_settings +"/dialogflow:v3/GoogleCloudDialogflowCxV3Version/state": state +"/dialogflow:v3/GoogleCloudDialogflowCxV3VoiceSelectionParams": google_cloud_dialogflow_cx_v3_voice_selection_params +"/dialogflow:v3/GoogleCloudDialogflowCxV3VoiceSelectionParams/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3VoiceSelectionParams/ssmlGender": ssml_gender +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook": google_cloud_dialogflow_cx_v3_webhook +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook/disabled": disabled +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook/displayName": display_name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook/genericWebService": generic_web_service +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook/name": name +"/dialogflow:v3/GoogleCloudDialogflowCxV3Webhook/timeout": timeout +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService": google_cloud_dialogflow_cx_v3_webhook_generic_web_service +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService/password": password +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService/requestHeaders": request_headers +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService/requestHeaders/request_header": request_header +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService/uri": uri +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookGenericWebService/username": username +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest": google_cloud_dialogflow_cx_v3_webhook_request +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/detectIntentResponseId": detect_intent_response_id +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/fulfillmentInfo": fulfillment_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/intentInfo": intent_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/messages": messages +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/messages/message": message +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/pageInfo": page_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/payload/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequest/sessionInfo": session_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo": google_cloud_dialogflow_cx_v3_webhook_request_fulfillment_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo/tag": tag +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfo": google_cloud_dialogflow_cx_v3_webhook_request_intent_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfo/lastMatchedIntent": last_matched_intent +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfo/parameters": parameters +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfo/parameters/parameter": parameter +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue": google_cloud_dialogflow_cx_v3_webhook_request_intent_info_intent_parameter_value +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue/originalValue": original_value +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue/resolvedValue": resolved_value +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse": google_cloud_dialogflow_cx_v3_webhook_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/fulfillmentResponse": fulfillment_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/pageInfo": page_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/payload/payload": payload +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/sessionInfo": session_info +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/targetFlow": target_flow +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponse/targetPage": target_page +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse": google_cloud_dialogflow_cx_v3_webhook_response_fulfillment_response +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse/mergeBehavior": merge_behavior +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse/messages": messages +"/dialogflow:v3/GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse/messages/message": message "/dialogflow:v3/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata": google_cloud_dialogflow_cx_v3beta1_create_version_operation_metadata "/dialogflow:v3/GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata/version": version "/dialogflow:v3/GoogleCloudDialogflowCxV3beta1ExportAgentResponse": google_cloud_dialogflow_cx_v3beta1_export_agent_response @@ -90951,6 +91385,202 @@ "/dialogflow:v3/GoogleRpcStatus/details/detail": detail "/dialogflow:v3/GoogleRpcStatus/details/detail/detail": detail "/dialogflow:v3/GoogleRpcStatus/message": message +"/dialogflow:v3/GoogleTypeLatLng": google_type_lat_lng +"/dialogflow:v3/GoogleTypeLatLng/latitude": latitude +"/dialogflow:v3/GoogleTypeLatLng/longitude": longitude +"/dialogflow:v3/dialogflow.projects.locations.agents.create": create_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.delete": delete_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.create": create_project_location_agent_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.create/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.delete": delete_project_location_agent_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.delete/force": force +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.get": get_project_location_agent_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.get/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.list": list_project_location_agent_entity_types +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.list/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.patch": patch_project_location_agent_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.patch/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.entityTypes.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.create": create_project_location_agent_environment +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.delete": delete_project_location_agent_environment +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.get": get_project_location_agent_environment +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.list": list_project_location_agent_environments +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory": lookup_project_location_agent_environment_environment_history +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.patch": patch_project_location_agent_environment +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.detectIntent": detect_project_location_agent_environment_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.detectIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.create": create_project_location_agent_environment_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete": delete_project_location_agent_environment_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.get": get_project_location_agent_environment_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.list": list_project_location_agent_environment_session_entity_types +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch": patch_project_location_agent_environment_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.fulfillIntent": fulfill_project_location_agent_environment_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.fulfillIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.matchIntent": match_project_location_agent_environment_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.environments.sessions.matchIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.export": export_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.export/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.create": create_project_location_agent_flow +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.create/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.delete": delete_project_location_agent_flow +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.delete/force": force +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.get": get_project_location_agent_flow +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.get/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.list": list_project_location_agent_flows +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.list/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.create": create_project_location_agent_flow_page +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.create/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.delete": delete_project_location_agent_flow_page +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.delete/force": force +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.get": get_project_location_agent_flow_page +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.get/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.list": list_project_location_agent_flow_pages +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.list/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.patch": patch_project_location_agent_flow_page +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.patch/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.pages.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.patch": patch_project_location_agent_flow +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.patch/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.train": train_project_location_agent_flow +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.train/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.create": create_project_location_agent_flow_transition_route_group +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.create/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete": delete_project_location_agent_flow_transition_route_group +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete/force": force +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.get": get_project_location_agent_flow_transition_route_group +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.get/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.list": list_project_location_agent_flow_transition_route_groups +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.list/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch": patch_project_location_agent_flow_transition_route_group +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.create": create_project_location_agent_flow_version +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.delete": delete_project_location_agent_flow_version +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.get": get_project_location_agent_flow_version +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.list": list_project_location_agent_flow_versions +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.load": load_project_location_agent_flow_version +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.load/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.patch": patch_project_location_agent_flow_version +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.flows.versions.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.get": get_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.create": create_project_location_agent_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.create/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.delete": delete_project_location_agent_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.get": get_project_location_agent_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.get/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list": list_project_location_agent_intents +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list/intentView": intent_view +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.patch": patch_project_location_agent_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.patch/languageCode": language_code +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.intents.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.list": list_project_location_agents +"/dialogflow:v3/dialogflow.projects.locations.agents.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.patch": patch_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.restore": restore_project_location_agent +"/dialogflow:v3/dialogflow.projects.locations.agents.restore/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.detectIntent": detect_project_location_agent_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.detectIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.create": create_project_location_agent_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.delete": delete_project_location_agent_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.get": get_project_location_agent_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.list": list_project_location_agent_session_entity_types +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.patch": patch_project_location_agent_session_entity_type +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.entityTypes.patch/updateMask": update_mask +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.fulfillIntent": fulfill_project_location_agent_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.fulfillIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.matchIntent": match_project_location_agent_session_intent +"/dialogflow:v3/dialogflow.projects.locations.agents.sessions.matchIntent/session": session +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.create": create_project_location_agent_webhook +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.delete": delete_project_location_agent_webhook +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.delete/force": force +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.get": get_project_location_agent_webhook +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.list": list_project_location_agent_webhooks +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.patch": patch_project_location_agent_webhook +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.agents.webhooks.patch/updateMask": update_mask "/dialogflow:v3/dialogflow.projects.locations.operations.cancel": cancel_project_location_operation "/dialogflow:v3/dialogflow.projects.locations.operations.cancel/name": name "/dialogflow:v3/dialogflow.projects.locations.operations.get": get_project_location_operation @@ -90960,6 +91590,19 @@ "/dialogflow:v3/dialogflow.projects.locations.operations.list/name": name "/dialogflow:v3/dialogflow.projects.locations.operations.list/pageSize": page_size "/dialogflow:v3/dialogflow.projects.locations.operations.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.create": create_project_location_security_setting +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.create/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.delete": delete_project_location_security_setting +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.delete/name": name +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.get": get_project_location_security_setting +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.get/name": name +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.list": list_project_location_security_settings +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.list/pageSize": page_size +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.list/pageToken": page_token +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.list/parent": parent +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.patch": patch_project_location_security_setting +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.patch/name": name +"/dialogflow:v3/dialogflow.projects.locations.securitySettings.patch/updateMask": update_mask "/dialogflow:v3/dialogflow.projects.operations.cancel": cancel_project_operation "/dialogflow:v3/dialogflow.projects.operations.cancel/name": name "/dialogflow:v3/dialogflow.projects.operations.get": get_project_operation diff --git a/generated/google/apis/dialogflow_v3.rb b/generated/google/apis/dialogflow_v3.rb index 2557e0937..e1cb1f3d6 100644 --- a/generated/google/apis/dialogflow_v3.rb +++ b/generated/google/apis/dialogflow_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV3 VERSION = 'V3' - REVISION = '20201204' + REVISION = '20201207' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v3/classes.rb b/generated/google/apis/dialogflow_v3/classes.rb index e6cb4be8f..0999d648b 100644 --- a/generated/google/apis/dialogflow_v3/classes.rb +++ b/generated/google/apis/dialogflow_v3/classes.rb @@ -22,6 +22,3470 @@ module Google module Apis module DialogflowV3 + # Agents are best described as Natural Language Understanding (NLU) modules that + # transform user requests into actionable data. You can include agents in your + # app, product, or service to determine user intent and respond to the user in a + # natural way. After you create an agent, you can add Intents, Entity Types, + # Flows, Fulfillments, Webhooks, and so on to manage the conversation flows.. + class GoogleCloudDialogflowCxV3Agent + include Google::Apis::Core::Hashable + + # The URI of the agent's avatar. Avatars are used throughout the Dialogflow + # console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/ + # docs/integrations/web-demo) integration. + # Corresponds to the JSON property `avatarUri` + # @return [String] + attr_accessor :avatar_uri + + # Immutable. The default language of the agent as a language tag. See [Language + # Support](https://cloud.google.com/dialogflow/docs/reference/language) for a + # list of the currently supported language codes. This field cannot be set by + # the Agents.UpdateAgent method. + # Corresponds to the JSON property `defaultLanguageCode` + # @return [String] + attr_accessor :default_language_code + + # The description of the agent. The maximum length is 500 characters. If + # exceeded, the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The human-readable name of the agent, unique within the location. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Indicates if automatic spell correction is enabled in detect intent requests. + # Corresponds to the JSON property `enableSpellCorrection` + # @return [Boolean] + attr_accessor :enable_spell_correction + alias_method :enable_spell_correction?, :enable_spell_correction + + # Indicates if stackdriver logging is enabled for the agent. + # Corresponds to the JSON property `enableStackdriverLogging` + # @return [Boolean] + attr_accessor :enable_stackdriver_logging + alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging + + # The unique identifier of the agent. Required for the Agents.UpdateAgent method. + # Agents.CreateAgent populates the name automatically. Format: `projects// + # locations//agents/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Settings related to speech recognition. + # Corresponds to the JSON property `speechToTextSettings` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings] + attr_accessor :speech_to_text_settings + + # Immutable. Name of the start flow in this agent. A start flow will be + # automatically created when the agent is created, and can only be deleted by + # deleting the agent. Format: `projects//locations//agents//flows/`. + # Corresponds to the JSON property `startFlow` + # @return [String] + attr_accessor :start_flow + + # Required. The time zone of the agent from the [time zone database](https://www. + # iana.org/time-zones), e.g., America/New_York, Europe/Paris. + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri) + @default_language_code = args[:default_language_code] if args.key?(:default_language_code) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @enable_spell_correction = args[:enable_spell_correction] if args.key?(:enable_spell_correction) + @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging) + @name = args[:name] if args.key?(:name) + @speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings) + @start_flow = args[:start_flow] if args.key?(:start_flow) + @time_zone = args[:time_zone] if args.key?(:time_zone) + end + end + + # Represents the natural speech audio to be processed. + class GoogleCloudDialogflowCxV3AudioInput + include Google::Apis::Core::Hashable + + # The natural language speech audio to be processed. A single request can + # contain up to 1 minute of speech audio data. The transcribed text cannot + # contain more than 256 bytes. For non-streaming audio detect intent, both ` + # config` and `audio` must be provided. For streaming audio detect intent, ` + # config` must be provided in the first request and `audio` must be provided in + # all following requests. + # Corresponds to the JSON property `audio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :audio + + # Instructs the speech recognizer on how to process the audio content. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3InputAudioConfig] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @config = args[:config] if args.key?(:config) + end + end + + # Metadata associated with the long running operation for Versions.CreateVersion. + class GoogleCloudDialogflowCxV3CreateVersionOperationMetadata + include Google::Apis::Core::Hashable + + # Name of the created version. Format: `projects//locations//agents//flows// + # versions/`. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + end + end + + # The request to detect user's intent. + class GoogleCloudDialogflowCxV3DetectIntentRequest + include Google::Apis::Core::Hashable + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig] + attr_accessor :output_audio_config + + # Represents the query input. It can contain one of: 1. A conversational query + # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # + # Corresponds to the JSON property `queryInput` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput] + attr_accessor :query_input + + # Represents the parameters of a conversational query. + # Corresponds to the JSON property `queryParams` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters] + attr_accessor :query_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + @query_input = args[:query_input] if args.key?(:query_input) + @query_params = args[:query_params] if args.key?(:query_params) + end + end + + # The message returned from the DetectIntent method. + class GoogleCloudDialogflowCxV3DetectIntentResponse + include Google::Apis::Core::Hashable + + # The audio data bytes encoded as specified in the request. Note: The output + # audio is generated based on the values of default platform text responses + # found in the `query_result.response_messages` field. If multiple default text + # responses exist, they will be concatenated when generating audio. If no + # default platform text responses exist, the generated audio content will be + # empty. In some scenarios, multiple output audio fields may be present in the + # response structure. In these cases, only the top-most-level audio output has + # content. + # Corresponds to the JSON property `outputAudio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :output_audio + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig] + attr_accessor :output_audio_config + + # Represents the result of a conversational query. + # Corresponds to the JSON property `queryResult` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult] + attr_accessor :query_result + + # Output only. The unique identifier of the response. It can be used to locate a + # response in the training example set or for reporting issues. + # Corresponds to the JSON property `responseId` + # @return [String] + attr_accessor :response_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_audio = args[:output_audio] if args.key?(:output_audio) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + @query_result = args[:query_result] if args.key?(:query_result) + @response_id = args[:response_id] if args.key?(:response_id) + end + end + + # Represents the input for dtmf event. + class GoogleCloudDialogflowCxV3DtmfInput + include Google::Apis::Core::Hashable + + # The dtmf digits. + # Corresponds to the JSON property `digits` + # @return [String] + attr_accessor :digits + + # The finish digit (if any). + # Corresponds to the JSON property `finishDigit` + # @return [String] + attr_accessor :finish_digit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @digits = args[:digits] if args.key?(:digits) + @finish_digit = args[:finish_digit] if args.key?(:finish_digit) + end + end + + # Entities are extracted from user input and represent parameters that are + # meaningful to your application. For example, a date range, a proper name such + # as a geographic location or landmark, and so on. Entities represent actionable + # data for your application. When you define an entity, you can also include + # synonyms that all map to that entity. For example, "soft drink", "soda", "pop", + # and so on. There are three types of entities: * **System** - entities that + # are defined by the Dialogflow API for common data types such as date, time, + # currency, and so on. A system entity is represented by the `EntityType` type. * + # **Custom** - entities that are defined by you that represent actionable data + # that is meaningful to your application. For example, you could define a `pizza. + # sauce` entity for red or white pizza sauce, a `pizza.cheese` entity for the + # different types of cheese on a pizza, a `pizza.topping` entity for different + # toppings, and so on. A custom entity is represented by the `EntityType` type. * + # **User** - entities that are built for an individual user such as favorites, + # preferences, playlists, and so on. A user entity is represented by the + # SessionEntityType type. For more information about entity types, see the [ + # Dialogflow documentation](https://cloud.google.com/dialogflow/docs/entities- + # overview). + class GoogleCloudDialogflowCxV3EntityType + include Google::Apis::Core::Hashable + + # Indicates whether the entity type can be automatically expanded. + # Corresponds to the JSON property `autoExpansionMode` + # @return [String] + attr_accessor :auto_expansion_mode + + # Required. The human-readable name of the entity type, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Enables fuzzy entity extraction during classification. + # Corresponds to the JSON property `enableFuzzyExtraction` + # @return [Boolean] + attr_accessor :enable_fuzzy_extraction + alias_method :enable_fuzzy_extraction?, :enable_fuzzy_extraction + + # The collection of entity entries associated with the entity type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Collection of exceptional words and phrases that shouldn't be matched. For + # example, if you have a size entity type with entry `giant`(an adjective), you + # might consider adding `giants`(a noun) as an exclusion. If the kind of entity + # type is `KIND_MAP`, then the phrases specified by entities and excluded + # phrases should be mutually exclusive. + # Corresponds to the JSON property `excludedPhrases` + # @return [Array] + attr_accessor :excluded_phrases + + # Required. Indicates the kind of entity type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The unique identifier of the entity type. Required for EntityTypes. + # UpdateEntityType. Format: `projects//locations//agents//entityTypes/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode) + @display_name = args[:display_name] if args.key?(:display_name) + @enable_fuzzy_extraction = args[:enable_fuzzy_extraction] if args.key?(:enable_fuzzy_extraction) + @entities = args[:entities] if args.key?(:entities) + @excluded_phrases = args[:excluded_phrases] if args.key?(:excluded_phrases) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # An **entity entry** for an associated entity type. Next Id = 8 + class GoogleCloudDialogflowCxV3EntityTypeEntity + include Google::Apis::Core::Hashable + + # Required. A collection of value synonyms. For example, if the entity type is * + # vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For + # `KIND_LIST` entity types: * This collection must contain exactly one synonym + # equal to `value`. + # Corresponds to the JSON property `synonyms` + # @return [Array] + attr_accessor :synonyms + + # Required. The primary value associated with this entity entry. For example, if + # the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` + # entity types: * A canonical value to be used in place of synonyms. For ` + # KIND_LIST` entity types: * A string that can contain references to other + # entity types (with or without aliases). + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @synonyms = args[:synonyms] if args.key?(:synonyms) + @value = args[:value] if args.key?(:value) + end + end + + # An excluded entity phrase that should not be matched. + class GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase + include Google::Apis::Core::Hashable + + # Required. The word or phrase to be excluded. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + end + end + + # Represents an environment for an agent. You can create multiple versions of + # your agent and publish them to separate environments. When you edit an agent, + # you are editing the draft agent. At any point, you can save the draft agent as + # an agent version, which is an immutable snapshot of your agent. When you save + # the draft agent, it is published to the default environment. When you create + # agent versions, you can publish them to custom environments. You can create a + # variety of custom environments for testing, development, production, etc. + class GoogleCloudDialogflowCxV3Environment + include Google::Apis::Core::Hashable + + # The human-readable description of the environment. The maximum length is 500 + # characters. If exceeded, the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The human-readable name of the environment (unique in an agent). + # Limit of 64 characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The name of the environment. Format: `projects//locations//agents// + # environments/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Update time of this environment. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Required. A list of configurations for flow versions. You should include + # version configs for all flows that are reachable from `Start Flow` in the + # agent. Otherwise, an error will be returned. + # Corresponds to the JSON property `versionConfigs` + # @return [Array] + attr_accessor :version_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + @version_configs = args[:version_configs] if args.key?(:version_configs) + end + end + + # Configuration for the version. + class GoogleCloudDialogflowCxV3EnvironmentVersionConfig + include Google::Apis::Core::Hashable + + # Required. Format: projects//locations//agents//flows//versions/. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + end + end + + # An event handler specifies an event that can be handled during a session. When + # the specified event happens, the following actions are taken in order: * If + # there is a `trigger_fulfillment` associated with the event, it will be called. + # * If there is a `target_page` associated with the event, the session will + # transition into the specified page. * If there is a `target_flow` associated + # with the event, the session will transition into the specified flow. + class GoogleCloudDialogflowCxV3EventHandler + include Google::Apis::Core::Hashable + + # Required. The name of the event to handle. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + # Output only. The unique identifier of this event handler. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The target flow to transition to. Format: `projects//locations//agents//flows/` + # . + # Corresponds to the JSON property `targetFlow` + # @return [String] + attr_accessor :target_flow + + # The target page to transition to. Format: `projects//locations//agents//flows// + # pages/`. + # Corresponds to the JSON property `targetPage` + # @return [String] + attr_accessor :target_page + + # A fulfillment can do one or more of the following actions at the same time: * + # Generate rich message responses. * Set parameter values. * Call the webhook. + # Fulfillments can be called at various stages in the Page or Form lifecycle. + # For example, when a DetectIntentRequest drives a session to enter a new page, + # the page's entry fulfillment can add a static response to the QueryResult in + # the returning DetectIntentResponse, call the webhook (for example, to load + # user data from a database), or both. + # Corresponds to the JSON property `triggerFulfillment` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment] + attr_accessor :trigger_fulfillment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + @name = args[:name] if args.key?(:name) + @target_flow = args[:target_flow] if args.key?(:target_flow) + @target_page = args[:target_page] if args.key?(:target_page) + @trigger_fulfillment = args[:trigger_fulfillment] if args.key?(:trigger_fulfillment) + end + end + + # Represents the event to trigger. + class GoogleCloudDialogflowCxV3EventInput + include Google::Apis::Core::Hashable + + # Name of the event. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + end + end + + # The request message for Agents.ExportAgent. + class GoogleCloudDialogflowCxV3ExportAgentRequest + include Google::Apis::Core::Hashable + + # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) + # URI to export the agent to. The format of this URI must be `gs:///`. If left + # unspecified, the serialized agent is returned inline. + # Corresponds to the JSON property `agentUri` + # @return [String] + attr_accessor :agent_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_uri = args[:agent_uri] if args.key?(:agent_uri) + end + end + + # The response message for Agents.ExportAgent. + class GoogleCloudDialogflowCxV3ExportAgentResponse + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for agent. + # Corresponds to the JSON property `agentContent` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :agent_content + + # The URI to a file containing the exported agent. This field is populated only + # if `agent_uri` is specified in ExportAgentRequest. + # Corresponds to the JSON property `agentUri` + # @return [String] + attr_accessor :agent_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_content = args[:agent_content] if args.key?(:agent_content) + @agent_uri = args[:agent_uri] if args.key?(:agent_uri) + end + end + + # Flows represents the conversation flows when you build your chatbot agent. A + # flow consists of many pages connected by the transition routes. Conversations + # always start with the built-in Start Flow (with an all-0 ID). Transition + # routes can direct the conversation session from the current flow (parent flow) + # to another flow (sub flow). When the sub flow is finished, Dialogflow will + # bring the session back to the parent flow, where the sub flow is started. + # Usually, when a transition route is followed by a matched intent, the intent + # will be "consumed". This means the intent won't activate more transition + # routes. However, when the followed transition route moves the conversation + # session into a different flow, the matched intent can be carried over and to + # be consumed in the target flow. + class GoogleCloudDialogflowCxV3Flow + include Google::Apis::Core::Hashable + + # The description of the flow. The maximum length is 500 characters. If exceeded, + # the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The human-readable name of the flow. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A flow's event handlers serve two purposes: * They are responsible for + # handling events (e.g. no match, webhook errors) in the flow. * They are + # inherited by every page's event handlers, which can be used to handle common + # events regardless of the current page. Event handlers defined in the page have + # higher priority than those defined in the flow. Unlike transition_routes, + # these handlers are evaluated on a first-match basis. The first one that + # matches the event get executed, with the rest being ignored. + # Corresponds to the JSON property `eventHandlers` + # @return [Array] + attr_accessor :event_handlers + + # The unique identifier of the flow. Format: `projects//locations//agents//flows/ + # `. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Settings related to NLU. + # Corresponds to the JSON property `nluSettings` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings] + attr_accessor :nlu_settings + + # A flow's transition routes serve two purposes: * They are responsible for + # matching the user's first utterances in the flow. * They are inherited by + # every page's transition routes and can support use cases such as the user + # saying "help" or "can I talk to a human?", which can be handled in a common + # way regardless of the current page. Transition routes defined in the page have + # higher priority than those defined in the flow. TransitionRoutes are evalauted + # in the following order: * TransitionRoutes with intent specified.. * + # TransitionRoutes with only condition specified. TransitionRoutes with intent + # specified are inherited by pages in the flow. + # Corresponds to the JSON property `transitionRoutes` + # @return [Array] + attr_accessor :transition_routes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @event_handlers = args[:event_handlers] if args.key?(:event_handlers) + @name = args[:name] if args.key?(:name) + @nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings) + @transition_routes = args[:transition_routes] if args.key?(:transition_routes) + end + end + + # A form is a data model that groups related parameters that can be collected + # from the user. The process in which the agent prompts the user and collects + # parameter values from the user is called form filling. A form can be added to + # a page. When form filling is done, the filled parameters will be written to + # the session. + class GoogleCloudDialogflowCxV3Form + include Google::Apis::Core::Hashable + + # Parameters to collect from the user. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # Represents a form parameter. + class GoogleCloudDialogflowCxV3FormParameter + include Google::Apis::Core::Hashable + + # The default value of an optional parameter. If the parameter is required, the + # default value will be ignored. + # Corresponds to the JSON property `defaultValue` + # @return [Object] + attr_accessor :default_value + + # Required. The human-readable name of the parameter, unique within the form. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. The entity type of the parameter. Format: `projects/-/locations/-/ + # agents/-/entityTypes/` for system entity types (for example, `projects/-/ + # locations/-/agents/-/entityTypes/sys.date`), or `projects//locations//agents// + # entityTypes/` for developer entity types. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # Configuration for how the filling of a parameter should be handled. + # Corresponds to the JSON property `fillBehavior` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FormParameterFillBehavior] + attr_accessor :fill_behavior + + # Indicates whether the parameter represents a list of values. + # Corresponds to the JSON property `isList` + # @return [Boolean] + attr_accessor :is_list + alias_method :is_list?, :is_list + + # Indicates whether the parameter content is logged in text and audio. If it is + # set to true, the parameter content will be replaced to parameter name in both + # request and response. The default value is false. + # Corresponds to the JSON property `redact` + # @return [Boolean] + attr_accessor :redact + alias_method :redact?, :redact + + # Indicates whether the parameter is required. Optional parameters will not + # trigger prompts; however, they are filled if the user specifies them. Required + # parameters must be filled before form filling concludes. + # Corresponds to the JSON property `required` + # @return [Boolean] + attr_accessor :required + alias_method :required?, :required + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_value = args[:default_value] if args.key?(:default_value) + @display_name = args[:display_name] if args.key?(:display_name) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @fill_behavior = args[:fill_behavior] if args.key?(:fill_behavior) + @is_list = args[:is_list] if args.key?(:is_list) + @redact = args[:redact] if args.key?(:redact) + @required = args[:required] if args.key?(:required) + end + end + + # Configuration for how the filling of a parameter should be handled. + class GoogleCloudDialogflowCxV3FormParameterFillBehavior + include Google::Apis::Core::Hashable + + # A fulfillment can do one or more of the following actions at the same time: * + # Generate rich message responses. * Set parameter values. * Call the webhook. + # Fulfillments can be called at various stages in the Page or Form lifecycle. + # For example, when a DetectIntentRequest drives a session to enter a new page, + # the page's entry fulfillment can add a static response to the QueryResult in + # the returning DetectIntentResponse, call the webhook (for example, to load + # user data from a database), or both. + # Corresponds to the JSON property `initialPromptFulfillment` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment] + attr_accessor :initial_prompt_fulfillment + + # The handlers for parameter-level events, used to provide reprompt for the + # parameter or transition to a different page/flow. The supported events are: * ` + # sys.no-match-`, where N can be from 1 to 6 * `sys.no-match-default` * `sys.no- + # input-`, where N can be from 1 to 6 * `sys.no-input-default` * `sys.invalid- + # parameter` `initial_prompt_fulfillment` provides the first prompt for the + # parameter. If the user's response does not fill the parameter, a no-match/no- + # input event will be triggered, and the fulfillment associated with the `sys.no- + # match-1`/`sys.no-input-1` handler (if defined) will be called to provide a + # prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined) will + # respond to the next no-match/no-input event, and so on. A `sys.no-match- + # default` or `sys.no-input-default` handler will be used to handle all + # following no-match/no-input events after all numbered no-match/no-input + # handlers for the parameter are consumed. A `sys.invalid-parameter` handler can + # be defined to handle the case where the parameter values have been ` + # invalidated` by webhook. For example, if the user's response fill the + # parameter, however the parameter was invalidated by webhook, the fulfillment + # associated with the `sys.invalid-parameter` handler (if defined) will be + # called to provide a prompt. If the event handler for the corresponding event + # can't be found on the parameter, `initial_prompt_fulfillment` will be re- + # prompted. + # Corresponds to the JSON property `repromptEventHandlers` + # @return [Array] + attr_accessor :reprompt_event_handlers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @initial_prompt_fulfillment = args[:initial_prompt_fulfillment] if args.key?(:initial_prompt_fulfillment) + @reprompt_event_handlers = args[:reprompt_event_handlers] if args.key?(:reprompt_event_handlers) + end + end + + # Request of FulfillIntent + class GoogleCloudDialogflowCxV3FulfillIntentRequest + include Google::Apis::Core::Hashable + + # Represents one match result of MatchIntent. + # Corresponds to the JSON property `match` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match] + attr_accessor :match + + # Request of MatchIntent. + # Corresponds to the JSON property `matchIntentRequest` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] + attr_accessor :match_intent_request + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig] + attr_accessor :output_audio_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @match = args[:match] if args.key?(:match) + @match_intent_request = args[:match_intent_request] if args.key?(:match_intent_request) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + end + end + + # Response of FulfillIntent + class GoogleCloudDialogflowCxV3FulfillIntentResponse + include Google::Apis::Core::Hashable + + # The audio data bytes encoded as specified in the request. Note: The output + # audio is generated based on the values of default platform text responses + # found in the `query_result.response_messages` field. If multiple default text + # responses exist, they will be concatenated when generating audio. If no + # default platform text responses exist, the generated audio content will be + # empty. In some scenarios, multiple output audio fields may be present in the + # response structure. In these cases, only the top-most-level audio output has + # content. + # Corresponds to the JSON property `outputAudio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :output_audio + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `outputAudioConfig` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig] + attr_accessor :output_audio_config + + # Represents the result of a conversational query. + # Corresponds to the JSON property `queryResult` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult] + attr_accessor :query_result + + # Output only. The unique identifier of the response. It can be used to locate a + # response in the training example set or for reporting issues. + # Corresponds to the JSON property `responseId` + # @return [String] + attr_accessor :response_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_audio = args[:output_audio] if args.key?(:output_audio) + @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config) + @query_result = args[:query_result] if args.key?(:query_result) + @response_id = args[:response_id] if args.key?(:response_id) + end + end + + # A fulfillment can do one or more of the following actions at the same time: * + # Generate rich message responses. * Set parameter values. * Call the webhook. + # Fulfillments can be called at various stages in the Page or Form lifecycle. + # For example, when a DetectIntentRequest drives a session to enter a new page, + # the page's entry fulfillment can add a static response to the QueryResult in + # the returning DetectIntentResponse, call the webhook (for example, to load + # user data from a database), or both. + class GoogleCloudDialogflowCxV3Fulfillment + include Google::Apis::Core::Hashable + + # Conditional cases for this fulfillment. + # Corresponds to the JSON property `conditionalCases` + # @return [Array] + attr_accessor :conditional_cases + + # The list of rich message responses to present to the user. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + # Set parameter values before executing the webhook. + # Corresponds to the JSON property `setParameterActions` + # @return [Array] + attr_accessor :set_parameter_actions + + # The tag used by the webhook to identify which fulfillment is being called. + # This field is required if `webhook` is specified. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + # The webhook to call. Format: `projects//locations//agents//webhooks/`. + # Corresponds to the JSON property `webhook` + # @return [String] + attr_accessor :webhook + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases) + @messages = args[:messages] if args.key?(:messages) + @set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions) + @tag = args[:tag] if args.key?(:tag) + @webhook = args[:webhook] if args.key?(:webhook) + end + end + + # A list of cascading if-else conditions. Cases are mutually exclusive. The + # first one with a matching condition is selected, all the rest ignored. + class GoogleCloudDialogflowCxV3FulfillmentConditionalCases + include Google::Apis::Core::Hashable + + # A list of cascading if-else conditions. + # Corresponds to the JSON property `cases` + # @return [Array] + attr_accessor :cases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cases = args[:cases] if args.key?(:cases) + end + end + + # Each case has a Boolean condition. When it is evaluated to be True, the + # corresponding messages will be selected and evaluated recursively. + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase + include Google::Apis::Core::Hashable + + # A list of case content. + # Corresponds to the JSON property `caseContent` + # @return [Array] + attr_accessor :case_content + + # The condition to activate and select this case. Empty means the condition is + # always true. The condition is evaluated against form parameters or session + # parameters. See the [conditions reference](https://cloud.google.com/dialogflow/ + # cx/docs/reference/condition). + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @case_content = args[:case_content] if args.key?(:case_content) + @condition = args[:condition] if args.key?(:condition) + end + end + + # The list of messages or conditional cases to activate for this case. + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent + include Google::Apis::Core::Hashable + + # A list of cascading if-else conditions. Cases are mutually exclusive. The + # first one with a matching condition is selected, all the rest ignored. + # Corresponds to the JSON property `additionalCases` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases] + attr_accessor :additional_cases + + # Represents a response message that can be returned by a conversational agent. + # Response messages are also used for output audio synthesis. The approach is as + # follows: * If at least one OutputAudioText response is present, then all + # OutputAudioText responses are linearly concatenated, and the result is used + # for output audio synthesis. * If the OutputAudioText responses are a mixture + # of text and SSML, then the concatenated result is treated as SSML; otherwise, + # the result is treated as either text or SSML as appropriate. The agent + # designer should ideally use either text or SSML consistently throughout the + # bot design. * Otherwise, all Text responses are linearly concatenated, and the + # result is used for output audio synthesis. This approach allows for more + # sophisticated user experience scenarios, where the text displayed to the user + # may differ from what is heard. + # Corresponds to the JSON property `message` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_cases = args[:additional_cases] if args.key?(:additional_cases) + @message = args[:message] if args.key?(:message) + end + end + + # Setting a parameter value. + class GoogleCloudDialogflowCxV3FulfillmentSetParameterAction + include Google::Apis::Core::Hashable + + # Display name of the parameter. + # Corresponds to the JSON property `parameter` + # @return [String] + attr_accessor :parameter + + # The new value of the parameter. A null value clears the parameter. + # Corresponds to the JSON property `value` + # @return [Object] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameter = args[:parameter] if args.key?(:parameter) + @value = args[:value] if args.key?(:value) + end + end + + # Instructs the speech recognizer on how to process the audio content. + class GoogleCloudDialogflowCxV3InputAudioConfig + include Google::Apis::Core::Hashable + + # Required. Audio encoding of the audio content to process. + # Corresponds to the JSON property `audioEncoding` + # @return [String] + attr_accessor :audio_encoding + + # Optional. If `true`, Dialogflow returns SpeechWordInfo in + # StreamingRecognitionResult with information about the recognized speech words, + # e.g. start and end time offsets. If false or unspecified, Speech doesn't + # return any word-level information. + # Corresponds to the JSON property `enableWordInfo` + # @return [Boolean] + attr_accessor :enable_word_info + alias_method :enable_word_info?, :enable_word_info + + # Optional. Which Speech model to select for the given request. Select the model + # best suited to your domain to get best results. If a model is not explicitly + # specified, then we auto-select a model based on the parameters in the + # InputAudioConfig. If enhanced speech model is enabled for the agent and an + # enhanced version of the specified model for the language does not exist, then + # the speech is recognized using the standard version of the specified model. + # Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to- + # text/docs/basics#select-model) for more details. + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # Optional. Which variant of the Speech model to use. + # Corresponds to the JSON property `modelVariant` + # @return [String] + attr_accessor :model_variant + + # Optional. A list of strings containing words and phrases that the speech + # recognizer should recognize with higher likelihood. See [the Cloud Speech + # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase- + # hints) for more details. + # Corresponds to the JSON property `phraseHints` + # @return [Array] + attr_accessor :phrase_hints + + # Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud + # Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) + # for more details. + # Corresponds to the JSON property `sampleRateHertz` + # @return [Fixnum] + attr_accessor :sample_rate_hertz + + # Optional. If `false` (default), recognition does not cease until the client + # closes the stream. If `true`, the recognizer will detect a single spoken + # utterance in input audio. Recognition ceases when it detects the audio's voice + # has stopped or paused. In this case, once a detected intent is received, the + # client should close the stream and start a new request with a new stream as + # needed. Note: This setting is relevant only for streaming methods. + # Corresponds to the JSON property `singleUtterance` + # @return [Boolean] + attr_accessor :single_utterance + alias_method :single_utterance?, :single_utterance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info) + @model = args[:model] if args.key?(:model) + @model_variant = args[:model_variant] if args.key?(:model_variant) + @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) + @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) + @single_utterance = args[:single_utterance] if args.key?(:single_utterance) + end + end + + # An intent represents a user's intent to interact with a conversational agent. + # You can provide information for the Dialogflow API to use to match user input + # to an intent by adding training phrases (i.e., examples of user input) to your + # intent. + class GoogleCloudDialogflowCxV3Intent + include Google::Apis::Core::Hashable + + # Optional. Human readable description for better understanding an intent like + # its scope, content, result etc. Maximum character limit: 140 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The human-readable name of the intent, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Indicates whether this is a fallback intent. Currently only default fallback + # intent is allowed in the agent, which is added upon agent creation. Adding + # training phrases to fallback intent is useful in the case of requests that are + # mistakenly matched, since training phrases assigned to fallback intents act as + # negative examples that triggers no-match event. + # Corresponds to the JSON property `isFallback` + # @return [Boolean] + attr_accessor :is_fallback + alias_method :is_fallback?, :is_fallback + + # Optional. The key/value metadata to label an intent. Labels can contain + # lowercase letters, digits and the symbols '-' and '_'. International + # characters are allowed, including letters from unicase alphabets. Keys must + # start with a letter. Keys and values can be no longer than 63 characters and + # no more than 128 bytes. Prefix "sys." is reserved for Dialogflow defined + # labels. Currently allowed Dialogflow defined labels include: * sys.head * sys. + # contextual The above labels do not require value. "sys.head" means the intent + # is a head intent. "sys.contextual" means the intent is a contextual intent. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The unique identifier of the intent. Required for the Intents.UpdateIntent + # method. Intents.CreateIntent populates the name automatically. Format: ` + # projects//locations//agents//intents/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The collection of parameters associated with the intent. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # The priority of this intent. Higher numbers represent higher priorities. - If + # the supplied value is unspecified or 0, the service translates the value to + # 500,000, which corresponds to the `Normal` priority in the console. - If the + # supplied value is negative, the intent is ignored in runtime detect intent + # requests. + # Corresponds to the JSON property `priority` + # @return [Fixnum] + attr_accessor :priority + + # The collection of training phrases the agent is trained on to identify the + # intent. + # Corresponds to the JSON property `trainingPhrases` + # @return [Array] + attr_accessor :training_phrases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @is_fallback = args[:is_fallback] if args.key?(:is_fallback) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + @priority = args[:priority] if args.key?(:priority) + @training_phrases = args[:training_phrases] if args.key?(:training_phrases) + end + end + + # Represents the intent to trigger programmatically rather than as a result of + # natural language processing. + class GoogleCloudDialogflowCxV3IntentInput + include Google::Apis::Core::Hashable + + # Required. The unique identifier of the intent. Format: `projects//locations// + # agents//intents/`. + # Corresponds to the JSON property `intent` + # @return [String] + attr_accessor :intent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intent = args[:intent] if args.key?(:intent) + end + end + + # Represents an intent parameter. + class GoogleCloudDialogflowCxV3IntentParameter + include Google::Apis::Core::Hashable + + # Required. The entity type of the parameter. Format: `projects/-/locations/-/ + # agents/-/entityTypes/` for system entity types (for example, `projects/-/ + # locations/-/agents/-/entityTypes/sys.date`), or `projects//locations//agents// + # entityTypes/` for developer entity types. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # Required. The unique identifier of the parameter. This field is used by + # training phrases to annotate their parts. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Indicates whether the parameter represents a list of values. + # Corresponds to the JSON property `isList` + # @return [Boolean] + attr_accessor :is_list + alias_method :is_list?, :is_list + + # Indicates whether the parameter content is logged in text and audio. If it is + # set to true, the parameter content will be replaced to parameter id in both + # request and response. The default value is false. + # Corresponds to the JSON property `redact` + # @return [Boolean] + attr_accessor :redact + alias_method :redact?, :redact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @id = args[:id] if args.key?(:id) + @is_list = args[:is_list] if args.key?(:is_list) + @redact = args[:redact] if args.key?(:redact) + end + end + + # Represents an example that the agent is trained on to identify the intent. + class GoogleCloudDialogflowCxV3IntentTrainingPhrase + include Google::Apis::Core::Hashable + + # Output only. The unique identifier of the training phrase. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Required. The ordered list of training phrase parts. The parts are + # concatenated in order to form the training phrase. Note: The API does not + # automatically annotate training phrases like the Dialogflow Console does. Note: + # Do not forget to include whitespace at part boundaries, so the training + # phrase is well formatted when the parts are concatenated. If the training + # phrase does not need to be annotated with parameters, you just need a single + # part with only the Part.text field set. If you want to annotate the training + # phrase, you must create multiple parts, where the fields of each part are + # populated in one of two ways: - `Part.text` is set to a part of the phrase + # that has no parameters. - `Part.text` is set to a part of the phrase that you + # want to annotate, and the `parameter_id` field is set. + # Corresponds to the JSON property `parts` + # @return [Array] + attr_accessor :parts + + # Indicates how many times this example was added to the intent. + # Corresponds to the JSON property `repeatCount` + # @return [Fixnum] + attr_accessor :repeat_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @parts = args[:parts] if args.key?(:parts) + @repeat_count = args[:repeat_count] if args.key?(:repeat_count) + end + end + + # Represents a part of a training phrase. + class GoogleCloudDialogflowCxV3IntentTrainingPhrasePart + include Google::Apis::Core::Hashable + + # The parameter used to annotate this part of the training phrase. This field is + # required for annotated parts of the training phrase. + # Corresponds to the JSON property `parameterId` + # @return [String] + attr_accessor :parameter_id + + # Required. The text for this part. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameter_id = args[:parameter_id] if args.key?(:parameter_id) + @text = args[:text] if args.key?(:text) + end + end + + # The response message for Agents.ListAgents. + class GoogleCloudDialogflowCxV3ListAgentsResponse + include Google::Apis::Core::Hashable + + # The list of agents. There will be a maximum number of items returned based on + # the page_size field in the request. + # Corresponds to the JSON property `agents` + # @return [Array] + attr_accessor :agents + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agents = args[:agents] if args.key?(:agents) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for EntityTypes.ListEntityTypes. + class GoogleCloudDialogflowCxV3ListEntityTypesResponse + include Google::Apis::Core::Hashable + + # The list of entity types. There will be a maximum number of items returned + # based on the page_size field in the request. + # Corresponds to the JSON property `entityTypes` + # @return [Array] + attr_accessor :entity_types + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_types = args[:entity_types] if args.key?(:entity_types) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Environments.ListEnvironments. + class GoogleCloudDialogflowCxV3ListEnvironmentsResponse + include Google::Apis::Core::Hashable + + # The list of environments. There will be a maximum number of items returned + # based on the page_size field in the request. The list may in some cases be + # empty or contain fewer entries than page_size even if this isn't the last page. + # Corresponds to the JSON property `environments` + # @return [Array] + attr_accessor :environments + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environments = args[:environments] if args.key?(:environments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Flows.ListFlows. + class GoogleCloudDialogflowCxV3ListFlowsResponse + include Google::Apis::Core::Hashable + + # The list of flows. There will be a maximum number of items returned based on + # the page_size field in the request. + # Corresponds to the JSON property `flows` + # @return [Array] + attr_accessor :flows + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @flows = args[:flows] if args.key?(:flows) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Intents.ListIntents. + class GoogleCloudDialogflowCxV3ListIntentsResponse + include Google::Apis::Core::Hashable + + # The list of intents. There will be a maximum number of items returned based on + # the page_size field in the request. + # Corresponds to the JSON property `intents` + # @return [Array] + attr_accessor :intents + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intents = args[:intents] if args.key?(:intents) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Pages.ListPages. + class GoogleCloudDialogflowCxV3ListPagesResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of pages. There will be a maximum number of items returned based on + # the page_size field in the request. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @pages = args[:pages] if args.key?(:pages) + end + end + + # The response message for SecuritySettings.ListSecuritySettings. + class GoogleCloudDialogflowCxV3ListSecuritySettingsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of security settings. + # Corresponds to the JSON property `securitySettings` + # @return [Array] + attr_accessor :security_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @security_settings = args[:security_settings] if args.key?(:security_settings) + end + end + + # The response message for SessionEntityTypes.ListSessionEntityTypes. + class GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of session entity types. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) + end + end + + # The response message for TransitionRouteGroups.ListTransitionRouteGroups. + class GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of transition route groups. There will be a maximum number of items + # returned based on the page_size field in the request. The list may in some + # cases be empty or contain fewer entries than page_size even if this isn't the + # last page. + # Corresponds to the JSON property `transitionRouteGroups` + # @return [Array] + attr_accessor :transition_route_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups) + end + end + + # The response message for Versions.ListVersions. + class GoogleCloudDialogflowCxV3ListVersionsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of versions. There will be a maximum number of items returned based on + # the page_size field in the request. The list may in some cases be empty or + # contain fewer entries than page_size even if this isn't the last page. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @versions = args[:versions] if args.key?(:versions) + end + end + + # The response message for Webhooks.ListWebhooks. + class GoogleCloudDialogflowCxV3ListWebhooksResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of webhooks. There will be a maximum number of items returned based + # on the page_size field in the request. + # Corresponds to the JSON property `webhooks` + # @return [Array] + attr_accessor :webhooks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @webhooks = args[:webhooks] if args.key?(:webhooks) + end + end + + # The request message for Versions.LoadVersion. + class GoogleCloudDialogflowCxV3LoadVersionRequest + include Google::Apis::Core::Hashable + + # This field is used to prevent accidental overwrite of other agent resources in + # the draft version, which can potentially impact other flow's behavior. If ` + # allow_override_agent_resources` is false, conflicted agent-level resources + # will not be overridden (i.e. intents, entities, webhooks). + # Corresponds to the JSON property `allowOverrideAgentResources` + # @return [Boolean] + attr_accessor :allow_override_agent_resources + alias_method :allow_override_agent_resources?, :allow_override_agent_resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_override_agent_resources = args[:allow_override_agent_resources] if args.key?(:allow_override_agent_resources) + end + end + + # The response message for Environments.LookupEnvironmentHistory. + class GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse + include Google::Apis::Core::Hashable + + # Represents a list of snapshots for an environment. Time of the snapshots is + # stored in `update_time`. + # Corresponds to the JSON property `environments` + # @return [Array] + attr_accessor :environments + + # Token to retrieve the next page of results, or empty if there are no more + # results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environments = args[:environments] if args.key?(:environments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents one match result of MatchIntent. + class GoogleCloudDialogflowCxV3Match + include Google::Apis::Core::Hashable + + # The confidence of this match. Values range from 0.0 (completely uncertain) to + # 1.0 (completely certain). This value is for informational purpose only and is + # only used to help match the best intent within the classification threshold. + # This value may change for the same end-user expression at any time due to a + # model retraining or change in implementation. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The event that matched the query. Only filled for `EVENT` match type. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + # An intent represents a user's intent to interact with a conversational agent. + # You can provide information for the Dialogflow API to use to match user input + # to an intent by adding training phrases (i.e., examples of user input) to your + # intent. + # Corresponds to the JSON property `intent` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] + attr_accessor :intent + + # Type of this Match. + # Corresponds to the JSON property `matchType` + # @return [String] + attr_accessor :match_type + + # The collection of parameters extracted from the query. Depending on your + # protocol or client library language, this is a map, associative array, symbol + # table, dictionary, or JSON object composed of a collection of (MapKey, + # MapValue) pairs: - MapKey type: string - MapKey value: parameter name - + # MapValue type: - If parameter's entity type is a composite entity: map - Else: + # string or number, depending on parameter value type - MapValue value: - If + # parameter's entity type is a composite entity: map from composite entity + # property names to property values - Else: parameter value + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # Final text input which was matched during MatchIntent. This value can be + # different from original input sent in request because of spelling correction + # or other processing. + # Corresponds to the JSON property `resolvedInput` + # @return [String] + attr_accessor :resolved_input + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @event = args[:event] if args.key?(:event) + @intent = args[:intent] if args.key?(:intent) + @match_type = args[:match_type] if args.key?(:match_type) + @parameters = args[:parameters] if args.key?(:parameters) + @resolved_input = args[:resolved_input] if args.key?(:resolved_input) + end + end + + # Request of MatchIntent. + class GoogleCloudDialogflowCxV3MatchIntentRequest + include Google::Apis::Core::Hashable + + # Represents the query input. It can contain one of: 1. A conversational query + # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # + # Corresponds to the JSON property `queryInput` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput] + attr_accessor :query_input + + # Represents the parameters of a conversational query. + # Corresponds to the JSON property `queryParams` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters] + attr_accessor :query_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_input = args[:query_input] if args.key?(:query_input) + @query_params = args[:query_params] if args.key?(:query_params) + end + end + + # Response of MatchIntent. + class GoogleCloudDialogflowCxV3MatchIntentResponse + include Google::Apis::Core::Hashable + + # A Dialogflow CX conversation (session) can be described and visualized as a + # state machine. The states of a CX session are represented by pages. For each + # flow, you define many pages, where your combined pages can handle a complete + # conversation on the topics the flow is designed for. At any given moment, + # exactly one page is the current page, the current page is considered active, + # and the flow associated with that page is considered active. Every flow has a + # special start page. When a flow initially becomes active, the start page page + # becomes the current page. For each conversational turn, the current page will + # either stay the same or transition to another page. You configure each page to + # collect information from the end-user that is relevant for the conversational + # state represented by the page. For more information, see the [Page guide]( + # https://cloud.google.com/dialogflow/cx/docs/concept/page). + # Corresponds to the JSON property `currentPage` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] + attr_accessor :current_page + + # Match results, if more than one, ordered descendingly by the confidence we + # have that the particular intent matches the query. + # Corresponds to the JSON property `matches` + # @return [Array] + attr_accessor :matches + + # If natural language text was provided as input, this field will contain a copy + # of the text. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # If natural language speech audio was provided as input, this field will + # contain the trascript for the audio. + # Corresponds to the JSON property `transcript` + # @return [String] + attr_accessor :transcript + + # If an event was provided as input, this field will contain a copy of the event + # name. + # Corresponds to the JSON property `triggerEvent` + # @return [String] + attr_accessor :trigger_event + + # If an intent was provided as input, this field will contain a copy of the + # intent identifier. + # Corresponds to the JSON property `triggerIntent` + # @return [String] + attr_accessor :trigger_intent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_page = args[:current_page] if args.key?(:current_page) + @matches = args[:matches] if args.key?(:matches) + @text = args[:text] if args.key?(:text) + @transcript = args[:transcript] if args.key?(:transcript) + @trigger_event = args[:trigger_event] if args.key?(:trigger_event) + @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) + end + end + + # Settings related to NLU. + class GoogleCloudDialogflowCxV3NluSettings + include Google::Apis::Core::Hashable + + # To filter out false positive results and still get variety in matched natural + # language inputs for your agent, you can tune the machine learning + # classification threshold. If the returned score value is less than the + # threshold value, then a no-match event will be triggered. The score values + # range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0. + # 0, the default of 0.3 is used. + # Corresponds to the JSON property `classificationThreshold` + # @return [Float] + attr_accessor :classification_threshold + + # Indicates NLU model training mode. + # Corresponds to the JSON property `modelTrainingMode` + # @return [String] + attr_accessor :model_training_mode + + # Indicates the type of NLU model. + # Corresponds to the JSON property `modelType` + # @return [String] + attr_accessor :model_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold) + @model_training_mode = args[:model_training_mode] if args.key?(:model_training_mode) + @model_type = args[:model_type] if args.key?(:model_type) + end + end + + # Instructs the speech synthesizer how to generate the output audio content. + class GoogleCloudDialogflowCxV3OutputAudioConfig + include Google::Apis::Core::Hashable + + # Required. Audio encoding of the synthesized audio content. + # Corresponds to the JSON property `audioEncoding` + # @return [String] + attr_accessor :audio_encoding + + # Optional. The synthesis sample rate (in hertz) for this audio. If not provided, + # then the synthesizer will use the default sample rate based on the audio + # encoding. If this is different from the voice's natural sample rate, then the + # synthesizer will honor this request by converting to the desired sample rate ( + # which might result in worse audio quality). + # Corresponds to the JSON property `sampleRateHertz` + # @return [Fixnum] + attr_accessor :sample_rate_hertz + + # Configuration of how speech should be synthesized. + # Corresponds to the JSON property `synthesizeSpeechConfig` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SynthesizeSpeechConfig] + attr_accessor :synthesize_speech_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) + @synthesize_speech_config = args[:synthesize_speech_config] if args.key?(:synthesize_speech_config) + end + end + + # A Dialogflow CX conversation (session) can be described and visualized as a + # state machine. The states of a CX session are represented by pages. For each + # flow, you define many pages, where your combined pages can handle a complete + # conversation on the topics the flow is designed for. At any given moment, + # exactly one page is the current page, the current page is considered active, + # and the flow associated with that page is considered active. Every flow has a + # special start page. When a flow initially becomes active, the start page page + # becomes the current page. For each conversational turn, the current page will + # either stay the same or transition to another page. You configure each page to + # collect information from the end-user that is relevant for the conversational + # state represented by the page. For more information, see the [Page guide]( + # https://cloud.google.com/dialogflow/cx/docs/concept/page). + class GoogleCloudDialogflowCxV3Page + include Google::Apis::Core::Hashable + + # Required. The human-readable name of the page, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A fulfillment can do one or more of the following actions at the same time: * + # Generate rich message responses. * Set parameter values. * Call the webhook. + # Fulfillments can be called at various stages in the Page or Form lifecycle. + # For example, when a DetectIntentRequest drives a session to enter a new page, + # the page's entry fulfillment can add a static response to the QueryResult in + # the returning DetectIntentResponse, call the webhook (for example, to load + # user data from a database), or both. + # Corresponds to the JSON property `entryFulfillment` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment] + attr_accessor :entry_fulfillment + + # Handlers associated with the page to handle events such as webhook errors, no + # match or no input. + # Corresponds to the JSON property `eventHandlers` + # @return [Array] + attr_accessor :event_handlers + + # A form is a data model that groups related parameters that can be collected + # from the user. The process in which the agent prompts the user and collects + # parameter values from the user is called form filling. A form can be added to + # a page. When form filling is done, the filled parameters will be written to + # the session. + # Corresponds to the JSON property `form` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Form] + attr_accessor :form + + # The unique identifier of the page. Required for the Pages.UpdatePage method. + # Pages.CreatePage populates the name automatically. Format: `projects// + # locations//agents//flows//pages/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Ordered list of `TransitionRouteGroups` associated with the page. Transition + # route groups must be unique within a page. * If multiple transition routes + # within a page scope refer to the same intent, then the precedence order is: + # page's transition route -> page's transition route group -> flow's transition + # routes. * If multiple transition route groups within a page contain the same + # intent, then the first group in the ordered list takes precedence. Format:` + # projects//locations//agents//flows//transitionRouteGroups/`. + # Corresponds to the JSON property `transitionRouteGroups` + # @return [Array] + attr_accessor :transition_route_groups + + # A list of transitions for the transition rules of this page. They route the + # conversation to another page in the same flow, or another flow. When we are in + # a certain page, the TransitionRoutes are evalauted in the following order: * + # TransitionRoutes defined in the page with intent specified. * TransitionRoutes + # defined in the transition route groups. * TransitionRoutes defined in flow + # with intent specified. * TransitionRoutes defined in the page with only + # condition specified. + # Corresponds to the JSON property `transitionRoutes` + # @return [Array] + attr_accessor :transition_routes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @entry_fulfillment = args[:entry_fulfillment] if args.key?(:entry_fulfillment) + @event_handlers = args[:event_handlers] if args.key?(:event_handlers) + @form = args[:form] if args.key?(:form) + @name = args[:name] if args.key?(:name) + @transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups) + @transition_routes = args[:transition_routes] if args.key?(:transition_routes) + end + end + + # Represents page information communicated to and from the webhook. + class GoogleCloudDialogflowCxV3PageInfo + include Google::Apis::Core::Hashable + + # Always present for WebhookRequest. Ignored for WebhookResponse. The unique + # identifier of the current page. Format: `projects//locations//agents//flows// + # pages/`. + # Corresponds to the JSON property `currentPage` + # @return [String] + attr_accessor :current_page + + # Represents form information. + # Corresponds to the JSON property `formInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfoFormInfo] + attr_accessor :form_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_page = args[:current_page] if args.key?(:current_page) + @form_info = args[:form_info] if args.key?(:form_info) + end + end + + # Represents form information. + class GoogleCloudDialogflowCxV3PageInfoFormInfo + include Google::Apis::Core::Hashable + + # Optional for both WebhookRequest and WebhookResponse. The parameters contained + # in the form. Note that the webhook cannot add or remove any form parameter. + # Corresponds to the JSON property `parameterInfo` + # @return [Array] + attr_accessor :parameter_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameter_info = args[:parameter_info] if args.key?(:parameter_info) + end + end + + # Represents parameter information. + class GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo + include Google::Apis::Core::Hashable + + # Always present for WebhookRequest. Required for WebhookResponse. The human- + # readable name of the parameter, unique within the form. This field cannot be + # modified by the webhook. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional for WebhookRequest. Ignored for WebhookResponse. Indicates if the + # parameter value was just collected on the last conversation turn. + # Corresponds to the JSON property `justCollected` + # @return [Boolean] + attr_accessor :just_collected + alias_method :just_collected?, :just_collected + + # Optional for both WebhookRequest and WebhookResponse. Indicates whether the + # parameter is required. Optional parameters will not trigger prompts; however, + # they are filled if the user specifies them. Required parameters must be filled + # before form filling concludes. + # Corresponds to the JSON property `required` + # @return [Boolean] + attr_accessor :required + alias_method :required?, :required + + # Always present for WebhookRequest. Required for WebhookResponse. The state of + # the parameter. This field can be set to INVALID by the webhook to invalidate + # the parameter; other values set by the webhook will be ignored. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Optional for both WebhookRequest and WebhookResponse. The value of the + # parameter. This field can be set by the webhook to change the parameter value. + # Corresponds to the JSON property `value` + # @return [Object] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @just_collected = args[:just_collected] if args.key?(:just_collected) + @required = args[:required] if args.key?(:required) + @state = args[:state] if args.key?(:state) + @value = args[:value] if args.key?(:value) + end + end + + # Represents the query input. It can contain one of: 1. A conversational query + # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # + class GoogleCloudDialogflowCxV3QueryInput + include Google::Apis::Core::Hashable + + # Represents the natural speech audio to be processed. + # Corresponds to the JSON property `audio` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AudioInput] + attr_accessor :audio + + # Represents the input for dtmf event. + # Corresponds to the JSON property `dtmf` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput] + attr_accessor :dtmf + + # Represents the event to trigger. + # Corresponds to the JSON property `event` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventInput] + attr_accessor :event + + # Represents the intent to trigger programmatically rather than as a result of + # natural language processing. + # Corresponds to the JSON property `intent` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentInput] + attr_accessor :intent + + # Required. The language of the input. See [Language Support](https://cloud. + # google.com/dialogflow/docs/reference/language) for a list of the currently + # supported language codes. Note that queries in the same session do not + # necessarily need to specify the same language. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Represents the natural language text to be processed. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TextInput] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @dtmf = args[:dtmf] if args.key?(:dtmf) + @event = args[:event] if args.key?(:event) + @intent = args[:intent] if args.key?(:intent) + @language_code = args[:language_code] if args.key?(:language_code) + @text = args[:text] if args.key?(:text) + end + end + + # Represents the parameters of a conversational query. + class GoogleCloudDialogflowCxV3QueryParameters + include Google::Apis::Core::Hashable + + # Configures whether sentiment analysis should be performed. If not provided, + # sentiment analysis is not performed. + # Corresponds to the JSON property `analyzeQueryTextSentiment` + # @return [Boolean] + attr_accessor :analyze_query_text_sentiment + alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment + + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. + # Corresponds to the JSON property `geoLocation` + # @return [Google::Apis::DialogflowV3::GoogleTypeLatLng] + attr_accessor :geo_location + + # Additional parameters to be put into session parameters. To remove a parameter + # from the session, clients should explicitly set the parameter value to null. + # Depending on your protocol or client library language, this is a map, + # associative array, symbol table, dictionary, or JSON object composed of a + # collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: + # parameter name - MapValue type: - If parameter's entity type is a composite + # entity: map - Else: string or number, depending on parameter value type - + # MapValue value: - If parameter's entity type is a composite entity: map from + # composite entity property names to property values - Else: parameter value + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # This field can be used to pass custom data into the webhook associated with + # the agent. Arbitrary JSON objects are supported. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Additional session entity types to replace or extend developer entity types + # with. The entity synonyms apply to all languages and persist for the session + # of this query. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + + # The time zone of this conversational query from the [time zone database](https: + # //www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not + # provided, the time zone specified in the agent is used. + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + # This field can be used to pass HTTP headers for a webhook call. These headers + # will be sent to webhook along with the headers that have been configured + # through Dialogflow web console. The headers defined within this field will + # overwrite the headers configured through Dialogflow console if there is a + # conflict. Header names are case-insensitive. Google's specified headers are + # not allowed. Including: "Host", "Content-Length", "Connection", "From", "User- + # Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded- + # For", etc. + # Corresponds to the JSON property `webhookHeaders` + # @return [Hash] + attr_accessor :webhook_headers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) + @geo_location = args[:geo_location] if args.key?(:geo_location) + @parameters = args[:parameters] if args.key?(:parameters) + @payload = args[:payload] if args.key?(:payload) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @webhook_headers = args[:webhook_headers] if args.key?(:webhook_headers) + end + end + + # Represents the result of a conversational query. + class GoogleCloudDialogflowCxV3QueryResult + include Google::Apis::Core::Hashable + + # A Dialogflow CX conversation (session) can be described and visualized as a + # state machine. The states of a CX session are represented by pages. For each + # flow, you define many pages, where your combined pages can handle a complete + # conversation on the topics the flow is designed for. At any given moment, + # exactly one page is the current page, the current page is considered active, + # and the flow associated with that page is considered active. Every flow has a + # special start page. When a flow initially becomes active, the start page page + # becomes the current page. For each conversational turn, the current page will + # either stay the same or transition to another page. You configure each page to + # collect information from the end-user that is relevant for the conversational + # state represented by the page. For more information, see the [Page guide]( + # https://cloud.google.com/dialogflow/cx/docs/concept/page). + # Corresponds to the JSON property `currentPage` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] + attr_accessor :current_page + + # The free-form diagnostic info. For example, this field could contain webhook + # call latency. The string keys of the Struct's fields map can change without + # notice. + # Corresponds to the JSON property `diagnosticInfo` + # @return [Hash] + attr_accessor :diagnostic_info + + # An intent represents a user's intent to interact with a conversational agent. + # You can provide information for the Dialogflow API to use to match user input + # to an intent by adding training phrases (i.e., examples of user input) to your + # intent. + # Corresponds to the JSON property `intent` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] + attr_accessor :intent + + # The intent detection confidence. Values range from 0.0 (completely uncertain) + # to 1.0 (completely certain). This value is for informational purpose only and + # is only used to help match the best intent within the classification threshold. + # This value may change for the same end-user expression at any time due to a + # model retraining or change in implementation. This field is deprecated, please + # use QueryResult.match instead. + # Corresponds to the JSON property `intentDetectionConfidence` + # @return [Float] + attr_accessor :intent_detection_confidence + + # The language that was triggered during intent detection. See [Language Support] + # (https://cloud.google.com/dialogflow/docs/reference/language) for a list of + # the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Represents one match result of MatchIntent. + # Corresponds to the JSON property `match` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match] + attr_accessor :match + + # The collected session parameters. Depending on your protocol or client library + # language, this is a map, associative array, symbol table, dictionary, or JSON + # object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: + # string - MapKey value: parameter name - MapValue type: - If parameter's entity + # type is a composite entity: map - Else: string or number, depending on + # parameter value type - MapValue value: - If parameter's entity type is a + # composite entity: map from composite entity property names to property values - + # Else: parameter value + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # The list of rich messages returned to the client. Responses vary from simple + # text messages to more sophisticated, structured payloads used to drive complex + # logic. + # Corresponds to the JSON property `responseMessages` + # @return [Array] + attr_accessor :response_messages + + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + # Corresponds to the JSON property `sentimentAnalysisResult` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SentimentAnalysisResult] + attr_accessor :sentiment_analysis_result + + # If natural language text was provided as input, this field will contain a copy + # of the text. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # If natural language speech audio was provided as input, this field will + # contain the trascript for the audio. + # Corresponds to the JSON property `transcript` + # @return [String] + attr_accessor :transcript + + # If an event was provided as input, this field will contain the name of the + # event. + # Corresponds to the JSON property `triggerEvent` + # @return [String] + attr_accessor :trigger_event + + # If an intent was provided as input, this field will contain a copy of the + # intent identifier. + # Corresponds to the JSON property `triggerIntent` + # @return [String] + attr_accessor :trigger_intent + + # The list of webhook payload in WebhookResponse.payload, in the order of call + # sequence. If some webhook call fails or doesn't return any payload, an empty ` + # Struct` would be used instead. + # Corresponds to the JSON property `webhookPayloads` + # @return [Array>] + attr_accessor :webhook_payloads + + # The list of webhook call status in the order of call sequence. + # Corresponds to the JSON property `webhookStatuses` + # @return [Array] + attr_accessor :webhook_statuses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_page = args[:current_page] if args.key?(:current_page) + @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info) + @intent = args[:intent] if args.key?(:intent) + @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence) + @language_code = args[:language_code] if args.key?(:language_code) + @match = args[:match] if args.key?(:match) + @parameters = args[:parameters] if args.key?(:parameters) + @response_messages = args[:response_messages] if args.key?(:response_messages) + @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) + @text = args[:text] if args.key?(:text) + @transcript = args[:transcript] if args.key?(:transcript) + @trigger_event = args[:trigger_event] if args.key?(:trigger_event) + @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) + @webhook_payloads = args[:webhook_payloads] if args.key?(:webhook_payloads) + @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses) + end + end + + # Represents a response message that can be returned by a conversational agent. + # Response messages are also used for output audio synthesis. The approach is as + # follows: * If at least one OutputAudioText response is present, then all + # OutputAudioText responses are linearly concatenated, and the result is used + # for output audio synthesis. * If the OutputAudioText responses are a mixture + # of text and SSML, then the concatenated result is treated as SSML; otherwise, + # the result is treated as either text or SSML as appropriate. The agent + # designer should ideally use either text or SSML consistently throughout the + # bot design. * Otherwise, all Text responses are linearly concatenated, and the + # result is used for output audio synthesis. This approach allows for more + # sophisticated user experience scenarios, where the text displayed to the user + # may differ from what is heard. + class GoogleCloudDialogflowCxV3ResponseMessage + include Google::Apis::Core::Hashable + + # Indicates that the conversation succeeded, i.e., the bot handled the issue + # that the customer talked to it about. Dialogflow only uses this to determine + # which conversations should be counted as successful and doesn't process the + # metadata in this message in any way. Note that Dialogflow also considers + # conversations that get to the conversation end page as successful even if they + # don't return ConversationSuccess. You may set this, for example: * In the + # entry_fulfillment of a Page if entering the page indicates that the + # conversation succeeded. * In a webhook response when you determine that you + # handled the customer issue. + # Corresponds to the JSON property `conversationSuccess` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess] + attr_accessor :conversation_success + + # Indicates that interaction with the Dialogflow agent has ended. This message + # is generated by Dialogflow only and not supposed to be defined by the user. + # Corresponds to the JSON property `endInteraction` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageEndInteraction] + attr_accessor :end_interaction + + # Indicates that the conversation should be handed off to a live agent. + # Dialogflow only uses this to determine which conversations were handed off to + # a human agent for measurement purposes. What else to do with this signal is up + # to you and your handoff procedures. You may set this, for example: * In the + # entry_fulfillment of a Page if entering the page indicates something went + # extremely wrong in the conversation. * In a webhook response when you + # determine that the customer issue can only be handled by a human. + # Corresponds to the JSON property `liveAgentHandoff` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff] + attr_accessor :live_agent_handoff + + # Represents an audio message that is composed of both segments synthesized from + # the Dialogflow agent prompts and ones hosted externally at the specified URIs. + # The external URIs are specified via play_audio. This message is generated by + # Dialogflow only and not supposed to be defined by the user. + # Corresponds to the JSON property `mixedAudio` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudio] + attr_accessor :mixed_audio + + # A text or ssml response that is preferentially used for TTS output audio + # synthesis, as described in the comment on the ResponseMessage message. + # Corresponds to the JSON property `outputAudioText` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText] + attr_accessor :output_audio_text + + # Returns a response containing a custom, platform-specific payload. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Specifies an audio clip to be played by the client as part of the response. + # Corresponds to the JSON property `playAudio` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio] + attr_accessor :play_audio + + # The text response message. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversation_success = args[:conversation_success] if args.key?(:conversation_success) + @end_interaction = args[:end_interaction] if args.key?(:end_interaction) + @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff) + @mixed_audio = args[:mixed_audio] if args.key?(:mixed_audio) + @output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text) + @payload = args[:payload] if args.key?(:payload) + @play_audio = args[:play_audio] if args.key?(:play_audio) + @text = args[:text] if args.key?(:text) + end + end + + # Indicates that the conversation succeeded, i.e., the bot handled the issue + # that the customer talked to it about. Dialogflow only uses this to determine + # which conversations should be counted as successful and doesn't process the + # metadata in this message in any way. Note that Dialogflow also considers + # conversations that get to the conversation end page as successful even if they + # don't return ConversationSuccess. You may set this, for example: * In the + # entry_fulfillment of a Page if entering the page indicates that the + # conversation succeeded. * In a webhook response when you determine that you + # handled the customer issue. + class GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess + include Google::Apis::Core::Hashable + + # Custom metadata. Dialogflow doesn't impose any structure on this. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Indicates that interaction with the Dialogflow agent has ended. This message + # is generated by Dialogflow only and not supposed to be defined by the user. + class GoogleCloudDialogflowCxV3ResponseMessageEndInteraction + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Indicates that the conversation should be handed off to a live agent. + # Dialogflow only uses this to determine which conversations were handed off to + # a human agent for measurement purposes. What else to do with this signal is up + # to you and your handoff procedures. You may set this, for example: * In the + # entry_fulfillment of a Page if entering the page indicates something went + # extremely wrong in the conversation. * In a webhook response when you + # determine that the customer issue can only be handled by a human. + class GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff + include Google::Apis::Core::Hashable + + # Custom metadata for your handoff procedure. Dialogflow doesn't impose any + # structure on this. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Represents an audio message that is composed of both segments synthesized from + # the Dialogflow agent prompts and ones hosted externally at the specified URIs. + # The external URIs are specified via play_audio. This message is generated by + # Dialogflow only and not supposed to be defined by the user. + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudio + include Google::Apis::Core::Hashable + + # Segments this audio response is composed of. + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @segments = args[:segments] if args.key?(:segments) + end + end + + # Represents one segment of audio. + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment + include Google::Apis::Core::Hashable + + # Output only. Whether the playback of this segment can be interrupted by the + # end user's speech and the client should then start the next Dialogflow request. + # Corresponds to the JSON property `allowPlaybackInterruption` + # @return [Boolean] + attr_accessor :allow_playback_interruption + alias_method :allow_playback_interruption?, :allow_playback_interruption + + # Raw audio synthesized from the Dialogflow agent's response using the output + # config specified in the request. + # Corresponds to the JSON property `audio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :audio + + # Client-specific URI that points to an audio clip accessible to the client. + # Dialogflow does not impose any validation on it. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_playback_interruption = args[:allow_playback_interruption] if args.key?(:allow_playback_interruption) + @audio = args[:audio] if args.key?(:audio) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A text or ssml response that is preferentially used for TTS output audio + # synthesis, as described in the comment on the ResponseMessage message. + class GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText + include Google::Apis::Core::Hashable + + # Output only. Whether the playback of this message can be interrupted by the + # end user's speech and the client can then starts the next Dialogflow request. + # Corresponds to the JSON property `allowPlaybackInterruption` + # @return [Boolean] + attr_accessor :allow_playback_interruption + alias_method :allow_playback_interruption?, :allow_playback_interruption + + # The SSML text to be synthesized. For more information, see [SSML](/speech/text- + # to-speech/docs/ssml). + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # The raw text to be synthesized. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_playback_interruption = args[:allow_playback_interruption] if args.key?(:allow_playback_interruption) + @ssml = args[:ssml] if args.key?(:ssml) + @text = args[:text] if args.key?(:text) + end + end + + # Specifies an audio clip to be played by the client as part of the response. + class GoogleCloudDialogflowCxV3ResponseMessagePlayAudio + include Google::Apis::Core::Hashable + + # Output only. Whether the playback of this message can be interrupted by the + # end user's speech and the client can then starts the next Dialogflow request. + # Corresponds to the JSON property `allowPlaybackInterruption` + # @return [Boolean] + attr_accessor :allow_playback_interruption + alias_method :allow_playback_interruption?, :allow_playback_interruption + + # Required. URI of the audio clip. Dialogflow does not impose any validation on + # this value. It is specific to the client that reads it. + # Corresponds to the JSON property `audioUri` + # @return [String] + attr_accessor :audio_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_playback_interruption = args[:allow_playback_interruption] if args.key?(:allow_playback_interruption) + @audio_uri = args[:audio_uri] if args.key?(:audio_uri) + end + end + + # The text response message. + class GoogleCloudDialogflowCxV3ResponseMessageText + include Google::Apis::Core::Hashable + + # Output only. Whether the playback of this message can be interrupted by the + # end user's speech and the client can then starts the next Dialogflow request. + # Corresponds to the JSON property `allowPlaybackInterruption` + # @return [Boolean] + attr_accessor :allow_playback_interruption + alias_method :allow_playback_interruption?, :allow_playback_interruption + + # Required. A collection of text responses. + # Corresponds to the JSON property `text` + # @return [Array] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_playback_interruption = args[:allow_playback_interruption] if args.key?(:allow_playback_interruption) + @text = args[:text] if args.key?(:text) + end + end + + # The request message for Agents.RestoreAgent. + class GoogleCloudDialogflowCxV3RestoreAgentRequest + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for agent. + # Corresponds to the JSON property `agentContent` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :agent_content + + # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to + # restore agent from. The format of this URI must be `gs:///`. + # Corresponds to the JSON property `agentUri` + # @return [String] + attr_accessor :agent_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_content = args[:agent_content] if args.key?(:agent_content) + @agent_uri = args[:agent_uri] if args.key?(:agent_uri) + end + end + + # Represents the settings related to security issues, such as data redaction and + # data retention. It may take hours for updates on the settings to propagate to + # all the related components and take effect. + class GoogleCloudDialogflowCxV3SecuritySettings + include Google::Apis::Core::Hashable + + # Required. The human-readable name of the security settings, unique within the + # location. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # DLP inspect template name. Use this template to define inspect base settings. + # If empty, we use the default DLP inspect config. The template name will have + # one of the following formats: `projects/PROJECT_ID/inspectTemplates/ + # TEMPLATE_ID` OR `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + # Corresponds to the JSON property `inspectTemplate` + # @return [String] + attr_accessor :inspect_template + + # Required. Resource name of the settings. Format: `projects//locations// + # securitySettings/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # List of types of data to remove when retention settings triggers purge. + # Corresponds to the JSON property `purgeDataTypes` + # @return [Array] + attr_accessor :purge_data_types + + # Defines on what data we apply redaction. Note that we don't redact data to + # which we don't have access, e.g., Stackdriver logs. + # Corresponds to the JSON property `redactionScope` + # @return [String] + attr_accessor :redaction_scope + + # Strategy that defines how we do redaction. + # Corresponds to the JSON property `redactionStrategy` + # @return [String] + attr_accessor :redaction_strategy + + # Retains the data for the specified number of days. User must Set a value lower + # than Dialogflow's default 30d TTL. Setting a value higher than that has no + # effect. A missing value or setting to 0 also means we use Dialogflow's default + # TTL. + # Corresponds to the JSON property `retentionWindowDays` + # @return [Fixnum] + attr_accessor :retention_window_days + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @inspect_template = args[:inspect_template] if args.key?(:inspect_template) + @name = args[:name] if args.key?(:name) + @purge_data_types = args[:purge_data_types] if args.key?(:purge_data_types) + @redaction_scope = args[:redaction_scope] if args.key?(:redaction_scope) + @redaction_strategy = args[:redaction_strategy] if args.key?(:redaction_strategy) + @retention_window_days = args[:retention_window_days] if args.key?(:retention_window_days) + end + end + + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + class GoogleCloudDialogflowCxV3SentimentAnalysisResult + include Google::Apis::Core::Hashable + + # A non-negative number in the [0, +inf) range, which represents the absolute + # magnitude of sentiment, regardless of score (positive or negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @magnitude = args[:magnitude] if args.key?(:magnitude) + @score = args[:score] if args.key?(:score) + end + end + + # Session entity types are referred to as **User** entity types and are entities + # that are built for an individual user such as favorites, preferences, + # playlists, and so on. You can redefine a session entity type at the session + # level to extend or replace a custom entity type at the user session level (we + # refer to the entity types defined at the agent level as "custom entity types"). + # Note: session entity types apply to all queries, regardless of the language. + # For more information about entity types, see the [Dialogflow documentation]( + # https://cloud.google.com/dialogflow/docs/entities-overview). + class GoogleCloudDialogflowCxV3SessionEntityType + include Google::Apis::Core::Hashable + + # Required. The collection of entities to override or supplement the custom + # entity type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates whether the additional data should override or supplement + # the custom entity type definition. + # Corresponds to the JSON property `entityOverrideMode` + # @return [String] + attr_accessor :entity_override_mode + + # Required. The unique identifier of the session entity type. Format: `projects// + # locations//agents//sessions//entityTypes/` or `projects//locations//agents// + # environments//sessions//entityTypes/`. If `Environment ID` is not specified, + # we assume default 'draft' environment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode) + @name = args[:name] if args.key?(:name) + end + end + + # Represents session information communicated to and from the webhook. + class GoogleCloudDialogflowCxV3SessionInfo + include Google::Apis::Core::Hashable + + # Optional for WebhookRequest. Optional for WebhookResponse. All parameters + # collected from forms and intents during the session. Parameters can be created, + # updated, or removed by the webhook. To remove a parameter from the session, + # the webhook should explicitly set the parameter value to null in + # WebhookResponse. The map is keyed by parameters' display names. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # Always present for WebhookRequest. Ignored for WebhookResponse. The unique + # identifier of the session. This field can be used by the webhook to identify a + # user. Format: `projects//locations//agents//sessions/`. + # Corresponds to the JSON property `session` + # @return [String] + attr_accessor :session + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameters = args[:parameters] if args.key?(:parameters) + @session = args[:session] if args.key?(:session) + end + end + + # Settings related to speech recognition. + class GoogleCloudDialogflowCxV3SpeechToTextSettings + include Google::Apis::Core::Hashable + + # Whether to use speech adaptation for speech recognition. + # Corresponds to the JSON property `enableSpeechAdaptation` + # @return [Boolean] + attr_accessor :enable_speech_adaptation + alias_method :enable_speech_adaptation?, :enable_speech_adaptation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_speech_adaptation = args[:enable_speech_adaptation] if args.key?(:enable_speech_adaptation) + end + end + + # Configuration of how speech should be synthesized. + class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig + include Google::Apis::Core::Hashable + + # Optional. An identifier which selects 'audio effects' profiles that are + # applied on (post synthesized) text to speech. Effects are applied on top of + # each other in the order they are given. + # Corresponds to the JSON property `effectsProfileId` + # @return [Array] + attr_accessor :effects_profile_id + + # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + # semitones from the original pitch. -20 means decrease 20 semitones from the + # original pitch. + # Corresponds to the JSON property `pitch` + # @return [Float] + attr_accessor :pitch + + # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + # native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is + # half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other + # values < 0.25 or > 4.0 will return an error. + # Corresponds to the JSON property `speakingRate` + # @return [Float] + attr_accessor :speaking_rate + + # Description of which voice to use for speech synthesis. + # Corresponds to the JSON property `voice` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams] + attr_accessor :voice + + # Optional. Volume gain (in dB) of the normal native volume supported by the + # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 + # (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will + # play at approximately half the amplitude of the normal native signal amplitude. + # A value of +6.0 (dB) will play at approximately twice the amplitude of the + # normal native signal amplitude. We strongly recommend not to exceed +10 (dB) + # as there's usually no effective increase in loudness for any value greater + # than that. + # Corresponds to the JSON property `volumeGainDb` + # @return [Float] + attr_accessor :volume_gain_db + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id) + @pitch = args[:pitch] if args.key?(:pitch) + @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate) + @voice = args[:voice] if args.key?(:voice) + @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db) + end + end + + # Represents the natural language text to be processed. + class GoogleCloudDialogflowCxV3TextInput + include Google::Apis::Core::Hashable + + # Required. The UTF-8 encoded natural language text to be processed. Text length + # must not exceed 256 characters. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + end + end + + # The request message for Flows.TrainFlow. + class GoogleCloudDialogflowCxV3TrainFlowRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A transition route specifies a intent that can be matched and/or a data + # condition that can be evaluated during a session. When a specified transition + # is matched, the following actions are taken in order: * If there is a ` + # trigger_fulfillment` associated with the transition, it will be called. * If + # there is a `target_page` associated with the transition, the session will + # transition into the specified page. * If there is a `target_flow` associated + # with the transition, the session will transition into the specified flow. + class GoogleCloudDialogflowCxV3TransitionRoute + include Google::Apis::Core::Hashable + + # The condition to evaluate against form parameters or session parameters. See + # the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/ + # reference/condition). At least one of `intent` or `condition` must be + # specified. When both `intent` and `condition` are specified, the transition + # can only happen when both are fulfilled. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The unique identifier of an Intent. Format: `projects//locations//agents// + # intents/`. Indicates that the transition can only happen when the given intent + # is matched. At least one of `intent` or `condition` must be specified. When + # both `intent` and `condition` are specified, the transition can only happen + # when both are fulfilled. + # Corresponds to the JSON property `intent` + # @return [String] + attr_accessor :intent + + # Output only. The unique identifier of this transition route. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The target flow to transition to. Format: `projects//locations//agents//flows/` + # . + # Corresponds to the JSON property `targetFlow` + # @return [String] + attr_accessor :target_flow + + # The target page to transition to. Format: `projects//locations//agents//flows// + # pages/`. + # Corresponds to the JSON property `targetPage` + # @return [String] + attr_accessor :target_page + + # A fulfillment can do one or more of the following actions at the same time: * + # Generate rich message responses. * Set parameter values. * Call the webhook. + # Fulfillments can be called at various stages in the Page or Form lifecycle. + # For example, when a DetectIntentRequest drives a session to enter a new page, + # the page's entry fulfillment can add a static response to the QueryResult in + # the returning DetectIntentResponse, call the webhook (for example, to load + # user data from a database), or both. + # Corresponds to the JSON property `triggerFulfillment` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment] + attr_accessor :trigger_fulfillment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @intent = args[:intent] if args.key?(:intent) + @name = args[:name] if args.key?(:name) + @target_flow = args[:target_flow] if args.key?(:target_flow) + @target_page = args[:target_page] if args.key?(:target_page) + @trigger_fulfillment = args[:trigger_fulfillment] if args.key?(:trigger_fulfillment) + end + end + + # An TransitionRouteGroup represents a group of `TransitionRoutes` to be used by + # a Page. + class GoogleCloudDialogflowCxV3TransitionRouteGroup + include Google::Apis::Core::Hashable + + # Required. The human-readable name of the transition route group, unique within + # the Agent. The display name can be no longer than 30 characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The unique identifier of the transition route group. TransitionRouteGroups. + # CreateTransitionRouteGroup populates the name automatically. Format: `projects/ + # /locations//agents//flows//transitionRouteGroups/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Transition routes associated with the TransitionRouteGroup. Duplicate + # transition routes (i.e. using the same `intent`) are not allowed. Note that + # the `name` field is not used in the transition route group scope. + # Corresponds to the JSON property `transitionRoutes` + # @return [Array] + attr_accessor :transition_routes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @transition_routes = args[:transition_routes] if args.key?(:transition_routes) + end + end + + # Represents a version of a flow. + class GoogleCloudDialogflowCxV3Version + include Google::Apis::Core::Hashable + + # Output only. Create time of the version. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The description of the version. The maximum length is 500 characters. If + # exceeded, the request is rejected. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The human-readable name of the version. Limit of 64 characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Format: projects//locations//agents//flows//versions/. Version ID is a self- + # increasing number generated by Dialogflow upon version creation. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Settings related to NLU. + # Corresponds to the JSON property `nluSettings` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings] + attr_accessor :nlu_settings + + # Output only. The state of this version. This field is read-only and cannot be + # set by create and update methods. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings) + @state = args[:state] if args.key?(:state) + end + end + + # Description of which voice to use for speech synthesis. + class GoogleCloudDialogflowCxV3VoiceSelectionParams + include Google::Apis::Core::Hashable + + # Optional. The name of the voice. If not set, the service will choose a voice + # based on the other parameters such as language_code and ssml_gender. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The preferred gender of the voice. If not set, the service will + # choose a voice based on the other parameters such as language_code and name. + # Note that this is only a preference, not requirement. If a voice of the + # appropriate gender is not available, the synthesizer should substitute a voice + # with a different gender rather than failing the request. + # Corresponds to the JSON property `ssmlGender` + # @return [String] + attr_accessor :ssml_gender + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) + end + end + + # Webhooks host the developer's business logic. During a session, webhooks allow + # the developer to use the data extracted by Dialogflow's natural language + # processing to generate dynamic responses, validate collected data, or trigger + # actions on the backend. + class GoogleCloudDialogflowCxV3Webhook + include Google::Apis::Core::Hashable + + # Indicates whether the webhook is disabled. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Required. The human-readable name of the webhook, unique within the agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Represents configuration for a generic web service. + # Corresponds to the JSON property `genericWebService` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService] + attr_accessor :generic_web_service + + # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook + # method. Webhooks.CreateWebhook populates the name automatically. Format: ` + # projects//locations//agents//webhooks/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Webhook execution timeout. Execution is considered failed if Dialogflow doesn' + # t receive a response from webhook at the end of the timeout period. Defaults + # to 5 seconds, maximum allowed timeout is 30 seconds. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disabled = args[:disabled] if args.key?(:disabled) + @display_name = args[:display_name] if args.key?(:display_name) + @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service) + @name = args[:name] if args.key?(:name) + @timeout = args[:timeout] if args.key?(:timeout) + end + end + + # Represents configuration for a generic web service. + class GoogleCloudDialogflowCxV3WebhookGenericWebService + include Google::Apis::Core::Hashable + + # The password for HTTP Basic authentication. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # The HTTP request headers to send together with webhook requests. + # Corresponds to the JSON property `requestHeaders` + # @return [Hash] + attr_accessor :request_headers + + # Required. The webhook URI for receiving POST requests. It must use https + # protocol. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + # The user name for HTTP Basic authentication. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @password = args[:password] if args.key?(:password) + @request_headers = args[:request_headers] if args.key?(:request_headers) + @uri = args[:uri] if args.key?(:uri) + @username = args[:username] if args.key?(:username) + end + end + + # The request message for a webhook call. + class GoogleCloudDialogflowCxV3WebhookRequest + include Google::Apis::Core::Hashable + + # Always present. The unique identifier of the DetectIntentResponse that will be + # returned to the API caller. + # Corresponds to the JSON property `detectIntentResponseId` + # @return [String] + attr_accessor :detect_intent_response_id + + # Represents fulfillment information communicated to the webhook. + # Corresponds to the JSON property `fulfillmentInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo] + attr_accessor :fulfillment_info + + # Represents intent information communicated to the webhook. + # Corresponds to the JSON property `intentInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo] + attr_accessor :intent_info + + # The list of rich message responses to present to the user. Webhook can choose + # to append or replace this list in WebhookResponse.fulfillment_response; + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + # Represents page information communicated to and from the webhook. + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo] + attr_accessor :page_info + + # Custom data set in QueryParameters.payload. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Represents session information communicated to and from the webhook. + # Corresponds to the JSON property `sessionInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo] + attr_accessor :session_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id) + @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info) + @intent_info = args[:intent_info] if args.key?(:intent_info) + @messages = args[:messages] if args.key?(:messages) + @page_info = args[:page_info] if args.key?(:page_info) + @payload = args[:payload] if args.key?(:payload) + @session_info = args[:session_info] if args.key?(:session_info) + end + end + + # Represents fulfillment information communicated to the webhook. + class GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo + include Google::Apis::Core::Hashable + + # Always present. The tag used to identify which fulfillment is being called. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tag = args[:tag] if args.key?(:tag) + end + end + + # Represents intent information communicated to the webhook. + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfo + include Google::Apis::Core::Hashable + + # Always present. The unique identifier of the last matched intent. Format: ` + # projects//locations//agents//intents/`. + # Corresponds to the JSON property `lastMatchedIntent` + # @return [String] + attr_accessor :last_matched_intent + + # Parameters identified as a result of intent matching. This is a map of the + # name of the identified parameter to the value of the parameter identified from + # the user's utterance. All parameters defined in the matched intent that are + # identified will be surfaced here. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_matched_intent = args[:last_matched_intent] if args.key?(:last_matched_intent) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # Represents a value for an intent parameter. + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue + include Google::Apis::Core::Hashable + + # Always present. Original text value extracted from user utterance. + # Corresponds to the JSON property `originalValue` + # @return [String] + attr_accessor :original_value + + # Always present. Structured value for the parameter extracted from user + # utterance. + # Corresponds to the JSON property `resolvedValue` + # @return [Object] + attr_accessor :resolved_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @original_value = args[:original_value] if args.key?(:original_value) + @resolved_value = args[:resolved_value] if args.key?(:resolved_value) + end + end + + # The response message for a webhook call. + class GoogleCloudDialogflowCxV3WebhookResponse + include Google::Apis::Core::Hashable + + # Represents a fulfillment response to the user. + # Corresponds to the JSON property `fulfillmentResponse` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse] + attr_accessor :fulfillment_response + + # Represents page information communicated to and from the webhook. + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo] + attr_accessor :page_info + + # Value to append directly to QueryResult.webhook_payloads. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Represents session information communicated to and from the webhook. + # Corresponds to the JSON property `sessionInfo` + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo] + attr_accessor :session_info + + # The target flow to transition to. Format: `projects//locations//agents//flows/` + # . + # Corresponds to the JSON property `targetFlow` + # @return [String] + attr_accessor :target_flow + + # The target page to transition to. Format: `projects//locations//agents//flows// + # pages/`. + # Corresponds to the JSON property `targetPage` + # @return [String] + attr_accessor :target_page + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fulfillment_response = args[:fulfillment_response] if args.key?(:fulfillment_response) + @page_info = args[:page_info] if args.key?(:page_info) + @payload = args[:payload] if args.key?(:payload) + @session_info = args[:session_info] if args.key?(:session_info) + @target_flow = args[:target_flow] if args.key?(:target_flow) + @target_page = args[:target_page] if args.key?(:target_page) + end + end + + # Represents a fulfillment response to the user. + class GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse + include Google::Apis::Core::Hashable + + # Merge behavior for `messages`. + # Corresponds to the JSON property `mergeBehavior` + # @return [String] + attr_accessor :merge_behavior + + # The list of rich message responses to present to the user. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @merge_behavior = args[:merge_behavior] if args.key?(:merge_behavior) + @messages = args[:messages] if args.key?(:messages) + end + end + # Metadata associated with the long running operation for Versions.CreateVersion. class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata include Google::Apis::Core::Hashable @@ -5446,6 +8910,34 @@ module Google @message = args[:message] if args.key?(:message) end end + + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. + class GoogleTypeLatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + end + end end end end diff --git a/generated/google/apis/dialogflow_v3/representations.rb b/generated/google/apis/dialogflow_v3/representations.rb index 90927fef9..4c6336408 100644 --- a/generated/google/apis/dialogflow_v3/representations.rb +++ b/generated/google/apis/dialogflow_v3/representations.rb @@ -22,6 +22,528 @@ module Google module Apis module DialogflowV3 + class GoogleCloudDialogflowCxV3Agent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3AudioInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3CreateVersionOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3DetectIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3DetectIntentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3DtmfInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EntityTypeEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EnvironmentVersionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EventHandler + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3EventInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ExportAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ExportAgentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Flow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Form + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FormParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FormParameterFillBehavior + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillIntentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Fulfillment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCases + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3FulfillmentSetParameterAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3InputAudioConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Intent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3IntentInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3IntentParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3IntentTrainingPhrase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3IntentTrainingPhrasePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListAgentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListEnvironmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListFlowsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListIntentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListPagesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListSecuritySettingsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ListWebhooksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3LoadVersionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Match + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3MatchIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3MatchIntentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3NluSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3OutputAudioConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3PageInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3PageInfoFormInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3QueryInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3QueryParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3QueryResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageEndInteraction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessagePlayAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3ResponseMessageText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3RestoreAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SecuritySettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SentimentAnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SessionEntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SessionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SpeechToTextSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3TextInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3TrainFlowRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3TransitionRoute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3TransitionRouteGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3VoiceSelectionParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Webhook + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookGenericWebService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -862,6 +1384,913 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeLatLng + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowCxV3Agent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avatar_uri, as: 'avatarUri' + property :default_language_code, as: 'defaultLanguageCode' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :enable_spell_correction, as: 'enableSpellCorrection' + property :enable_stackdriver_logging, as: 'enableStackdriverLogging' + property :name, as: 'name' + property :speech_to_text_settings, as: 'speechToTextSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SpeechToTextSettings::Representation + + property :start_flow, as: 'startFlow' + property :time_zone, as: 'timeZone' + end + end + + class GoogleCloudDialogflowCxV3AudioInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, :base64 => true, as: 'audio' + property :config, as: 'config', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3InputAudioConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3InputAudioConfig::Representation + + end + end + + class GoogleCloudDialogflowCxV3CreateVersionOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + end + end + + class GoogleCloudDialogflowCxV3DetectIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig::Representation + + property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput::Representation + + property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters::Representation + + end + end + + class GoogleCloudDialogflowCxV3DetectIntentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_audio, :base64 => true, as: 'outputAudio' + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig::Representation + + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult::Representation + + property :response_id, as: 'responseId' + end + end + + class GoogleCloudDialogflowCxV3DtmfInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :digits, as: 'digits' + property :finish_digit, as: 'finishDigit' + end + end + + class GoogleCloudDialogflowCxV3EntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_expansion_mode, as: 'autoExpansionMode' + property :display_name, as: 'displayName' + property :enable_fuzzy_extraction, as: 'enableFuzzyExtraction' + collection :entities, as: 'entities', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity::Representation + + collection :excluded_phrases, as: 'excludedPhrases', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowCxV3EntityTypeEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :synonyms, as: 'synonyms' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowCxV3Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :update_time, as: 'updateTime' + collection :version_configs, as: 'versionConfigs', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EnvironmentVersionConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EnvironmentVersionConfig::Representation + + end + end + + class GoogleCloudDialogflowCxV3EnvironmentVersionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + end + end + + class GoogleCloudDialogflowCxV3EventHandler + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event, as: 'event' + property :name, as: 'name' + property :target_flow, as: 'targetFlow' + property :target_page, as: 'targetPage' + property :trigger_fulfillment, as: 'triggerFulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation + + end + end + + class GoogleCloudDialogflowCxV3EventInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event, as: 'event' + end + end + + class GoogleCloudDialogflowCxV3ExportAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowCxV3ExportAgentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowCxV3Flow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :event_handlers, as: 'eventHandlers', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler::Representation + + property :name, as: 'name' + property :nlu_settings, as: 'nluSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings::Representation + + collection :transition_routes, as: 'transitionRoutes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute::Representation + + end + end + + class GoogleCloudDialogflowCxV3Form + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :parameters, as: 'parameters', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FormParameter, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FormParameter::Representation + + end + end + + class GoogleCloudDialogflowCxV3FormParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_value, as: 'defaultValue' + property :display_name, as: 'displayName' + property :entity_type, as: 'entityType' + property :fill_behavior, as: 'fillBehavior', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FormParameterFillBehavior, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FormParameterFillBehavior::Representation + + property :is_list, as: 'isList' + property :redact, as: 'redact' + property :required, as: 'required' + end + end + + class GoogleCloudDialogflowCxV3FormParameterFillBehavior + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :initial_prompt_fulfillment, as: 'initialPromptFulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation + + collection :reprompt_event_handlers, as: 'repromptEventHandlers', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler::Representation + + end + end + + class GoogleCloudDialogflowCxV3FulfillIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :match, as: 'match', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match::Representation + + property :match_intent_request, as: 'matchIntentRequest', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation + + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig::Representation + + end + end + + class GoogleCloudDialogflowCxV3FulfillIntentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_audio, :base64 => true, as: 'outputAudio' + property :output_audio_config, as: 'outputAudioConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3OutputAudioConfig::Representation + + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryResult::Representation + + property :response_id, as: 'responseId' + end + end + + class GoogleCloudDialogflowCxV3Fulfillment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conditional_cases, as: 'conditionalCases', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases::Representation + + collection :messages, as: 'messages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation + + collection :set_parameter_actions, as: 'setParameterActions', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction::Representation + + property :tag, as: 'tag' + property :webhook, as: 'webhook' + end + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCases + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cases, as: 'cases', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase::Representation + + end + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :case_content, as: 'caseContent', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent::Representation + + property :condition, as: 'condition' + end + end + + class GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_cases, as: 'additionalCases', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillmentConditionalCases::Representation + + property :message, as: 'message', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation + + end + end + + class GoogleCloudDialogflowCxV3FulfillmentSetParameterAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parameter, as: 'parameter' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowCxV3InputAudioConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_encoding, as: 'audioEncoding' + property :enable_word_info, as: 'enableWordInfo' + property :model, as: 'model' + property :model_variant, as: 'modelVariant' + collection :phrase_hints, as: 'phraseHints' + property :sample_rate_hertz, as: 'sampleRateHertz' + property :single_utterance, as: 'singleUtterance' + end + end + + class GoogleCloudDialogflowCxV3Intent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :is_fallback, as: 'isFallback' + hash :labels, as: 'labels' + property :name, as: 'name' + collection :parameters, as: 'parameters', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentParameter, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentParameter::Representation + + property :priority, as: 'priority' + collection :training_phrases, as: 'trainingPhrases', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentTrainingPhrase, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentTrainingPhrase::Representation + + end + end + + class GoogleCloudDialogflowCxV3IntentInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :intent, as: 'intent' + end + end + + class GoogleCloudDialogflowCxV3IntentParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_type, as: 'entityType' + property :id, as: 'id' + property :is_list, as: 'isList' + property :redact, as: 'redact' + end + end + + class GoogleCloudDialogflowCxV3IntentTrainingPhrase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :parts, as: 'parts', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentTrainingPhrasePart, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentTrainingPhrasePart::Representation + + property :repeat_count, as: 'repeatCount' + end + end + + class GoogleCloudDialogflowCxV3IntentTrainingPhrasePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parameter_id, as: 'parameterId' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowCxV3ListAgentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :agents, as: 'agents', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3ListEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_types, as: 'entityTypes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3ListEnvironmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :environments, as: 'environments', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3ListFlowsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :flows, as: 'flows', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3ListIntentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3ListPagesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :pages, as: 'pages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + + end + end + + class GoogleCloudDialogflowCxV3ListSecuritySettingsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :security_settings, as: 'securitySettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + + end + end + + class GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + + end + end + + class GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :transition_route_groups, as: 'transitionRouteGroups', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + + end + end + + class GoogleCloudDialogflowCxV3ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation + + end + end + + class GoogleCloudDialogflowCxV3ListWebhooksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :webhooks, as: 'webhooks', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + + end + end + + class GoogleCloudDialogflowCxV3LoadVersionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_override_agent_resources, as: 'allowOverrideAgentResources' + end + end + + class GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :environments, as: 'environments', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowCxV3Match + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :event, as: 'event' + property :intent, as: 'intent', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + + property :match_type, as: 'matchType' + hash :parameters, as: 'parameters' + property :resolved_input, as: 'resolvedInput' + end + end + + class GoogleCloudDialogflowCxV3MatchIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryInput::Representation + + property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3QueryParameters::Representation + + end + end + + class GoogleCloudDialogflowCxV3MatchIntentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_page, as: 'currentPage', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + + collection :matches, as: 'matches', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match::Representation + + property :text, as: 'text' + property :transcript, as: 'transcript' + property :trigger_event, as: 'triggerEvent' + property :trigger_intent, as: 'triggerIntent' + end + end + + class GoogleCloudDialogflowCxV3NluSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :classification_threshold, as: 'classificationThreshold' + property :model_training_mode, as: 'modelTrainingMode' + property :model_type, as: 'modelType' + end + end + + class GoogleCloudDialogflowCxV3OutputAudioConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_encoding, as: 'audioEncoding' + property :sample_rate_hertz, as: 'sampleRateHertz' + property :synthesize_speech_config, as: 'synthesizeSpeechConfig', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SynthesizeSpeechConfig, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SynthesizeSpeechConfig::Representation + + end + end + + class GoogleCloudDialogflowCxV3Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :entry_fulfillment, as: 'entryFulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation + + collection :event_handlers, as: 'eventHandlers', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler::Representation + + property :form, as: 'form', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Form, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Form::Representation + + property :name, as: 'name' + collection :transition_route_groups, as: 'transitionRouteGroups' + collection :transition_routes, as: 'transitionRoutes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute::Representation + + end + end + + class GoogleCloudDialogflowCxV3PageInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_page, as: 'currentPage' + property :form_info, as: 'formInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfoFormInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfoFormInfo::Representation + + end + end + + class GoogleCloudDialogflowCxV3PageInfoFormInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :parameter_info, as: 'parameterInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo::Representation + + end + end + + class GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :just_collected, as: 'justCollected' + property :required, as: 'required' + property :state, as: 'state' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowCxV3QueryInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, as: 'audio', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AudioInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AudioInput::Representation + + property :dtmf, as: 'dtmf', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput::Representation + + property :event, as: 'event', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventInput::Representation + + property :intent, as: 'intent', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentInput::Representation + + property :language_code, as: 'languageCode' + property :text, as: 'text', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TextInput, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TextInput::Representation + + end + end + + class GoogleCloudDialogflowCxV3QueryParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :analyze_query_text_sentiment, as: 'analyzeQueryTextSentiment' + property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV3::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV3::GoogleTypeLatLng::Representation + + hash :parameters, as: 'parameters' + hash :payload, as: 'payload' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + + property :time_zone, as: 'timeZone' + hash :webhook_headers, as: 'webhookHeaders' + end + end + + class GoogleCloudDialogflowCxV3QueryResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_page, as: 'currentPage', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + + hash :diagnostic_info, as: 'diagnosticInfo' + property :intent, as: 'intent', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + + property :intent_detection_confidence, as: 'intentDetectionConfidence' + property :language_code, as: 'languageCode' + property :match, as: 'match', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Match::Representation + + hash :parameters, as: 'parameters' + collection :response_messages, as: 'responseMessages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation + + property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SentimentAnalysisResult, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SentimentAnalysisResult::Representation + + property :text, as: 'text' + property :transcript, as: 'transcript' + property :trigger_event, as: 'triggerEvent' + property :trigger_intent, as: 'triggerIntent' + collection :webhook_payloads, as: 'webhookPayloads' + collection :webhook_statuses, as: 'webhookStatuses', class: Google::Apis::DialogflowV3::GoogleRpcStatus, decorator: Google::Apis::DialogflowV3::GoogleRpcStatus::Representation + + end + end + + class GoogleCloudDialogflowCxV3ResponseMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversation_success, as: 'conversationSuccess', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess::Representation + + property :end_interaction, as: 'endInteraction', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageEndInteraction, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageEndInteraction::Representation + + property :live_agent_handoff, as: 'liveAgentHandoff', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff::Representation + + property :mixed_audio, as: 'mixedAudio', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudio, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudio::Representation + + property :output_audio_text, as: 'outputAudioText', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText::Representation + + hash :payload, as: 'payload' + property :play_audio, as: 'playAudio', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio::Representation + + property :text, as: 'text', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageText::Representation + + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageEndInteraction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :segments, as: 'segments', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment::Representation + + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_playback_interruption, as: 'allowPlaybackInterruption' + property :audio, :base64 => true, as: 'audio' + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_playback_interruption, as: 'allowPlaybackInterruption' + property :ssml, as: 'ssml' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowCxV3ResponseMessagePlayAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_playback_interruption, as: 'allowPlaybackInterruption' + property :audio_uri, as: 'audioUri' + end + end + + class GoogleCloudDialogflowCxV3ResponseMessageText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_playback_interruption, as: 'allowPlaybackInterruption' + collection :text, as: 'text' + end + end + + class GoogleCloudDialogflowCxV3RestoreAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowCxV3SecuritySettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :inspect_template, as: 'inspectTemplate' + property :name, as: 'name' + collection :purge_data_types, as: 'purgeDataTypes' + property :redaction_scope, as: 'redactionScope' + property :redaction_strategy, as: 'redactionStrategy' + property :retention_window_days, as: 'retentionWindowDays' + end + end + + class GoogleCloudDialogflowCxV3SentimentAnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :magnitude, as: 'magnitude' + property :score, as: 'score' + end + end + + class GoogleCloudDialogflowCxV3SessionEntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity::Representation + + property :entity_override_mode, as: 'entityOverrideMode' + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowCxV3SessionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :parameters, as: 'parameters' + property :session, as: 'session' + end + end + + class GoogleCloudDialogflowCxV3SpeechToTextSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_speech_adaptation, as: 'enableSpeechAdaptation' + end + end + + class GoogleCloudDialogflowCxV3SynthesizeSpeechConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :effects_profile_id, as: 'effectsProfileId' + property :pitch, as: 'pitch' + property :speaking_rate, as: 'speakingRate' + property :voice, as: 'voice', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VoiceSelectionParams::Representation + + property :volume_gain_db, as: 'volumeGainDb' + end + end + + class GoogleCloudDialogflowCxV3TextInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowCxV3TrainFlowRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowCxV3TransitionRoute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition' + property :intent, as: 'intent' + property :name, as: 'name' + property :target_flow, as: 'targetFlow' + property :target_page, as: 'targetPage' + property :trigger_fulfillment, as: 'triggerFulfillment', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment::Representation + + end + end + + class GoogleCloudDialogflowCxV3TransitionRouteGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :transition_routes, as: 'transitionRoutes', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute::Representation + + end + end + + class GoogleCloudDialogflowCxV3Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :nlu_settings, as: 'nluSettings', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings::Representation + + property :state, as: 'state' + end + end + + class GoogleCloudDialogflowCxV3VoiceSelectionParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :ssml_gender, as: 'ssmlGender' + end + end + + class GoogleCloudDialogflowCxV3Webhook + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disabled, as: 'disabled' + property :display_name, as: 'displayName' + property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService::Representation + + property :name, as: 'name' + property :timeout, as: 'timeout' + end + end + + class GoogleCloudDialogflowCxV3WebhookGenericWebService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :password, as: 'password' + hash :request_headers, as: 'requestHeaders' + property :uri, as: 'uri' + property :username, as: 'username' + end + end + + class GoogleCloudDialogflowCxV3WebhookRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detect_intent_response_id, as: 'detectIntentResponseId' + property :fulfillment_info, as: 'fulfillmentInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo::Representation + + property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo::Representation + + collection :messages, as: 'messages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation + + property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo::Representation + + hash :payload, as: 'payload' + property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo::Representation + + end + end + + class GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tag, as: 'tag' + end + end + + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_matched_intent, as: 'lastMatchedIntent' + hash :parameters, as: 'parameters', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue::Representation + + end + end + + class GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_value, as: 'originalValue' + property :resolved_value, as: 'resolvedValue' + end + end + + class GoogleCloudDialogflowCxV3WebhookResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fulfillment_response, as: 'fulfillmentResponse', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse::Representation + + property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo::Representation + + hash :payload, as: 'payload' + property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo::Representation + + property :target_flow, as: 'targetFlow' + property :target_page, as: 'targetPage' + end + end + + class GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :merge_behavior, as: 'mergeBehavior' + collection :messages, as: 'messages', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ResponseMessage::Representation + + end + end + class GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2331,6 +3760,14 @@ module Google property :message, as: 'message' end end + + class GoogleTypeLatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end end end end diff --git a/generated/google/apis/dialogflow_v3/service.rb b/generated/google/apis/dialogflow_v3/service.rb index 957458b34..cb596cec0 100644 --- a/generated/google/apis/dialogflow_v3/service.rb +++ b/generated/google/apis/dialogflow_v3/service.rb @@ -48,6 +48,2551 @@ module Google @batch_path = 'batch' end + # Creates an agent in the specified location. + # @param [String] parent + # Required. The location to create a agent for. Format: `projects//locations/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent(parent, google_cloud_dialogflow_cx_v3_agent_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/agents', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + command.request_object = google_cloud_dialogflow_cx_v3_agent_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent. + # @param [String] name + # Required. The name of the agent to delete. Format: `projects//locations// + # agents/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports the specified agent to a binary file. + # @param [String] name + # Required. The name of the agent to export. Format: `projects//locations// + # agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest] google_cloud_dialogflow_cx_v3_export_agent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_project_location_agent(name, google_cloud_dialogflow_cx_v3_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:export', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_export_agent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified agent. + # @param [String] name + # Required. The name of the agent. Format: `projects//locations//agents/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all agents in the specified location. + # @param [String] parent + # Required. The location to list all agents for. Format: `projects//locations/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/agents', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified agent. + # @param [String] name + # The unique identifier of the agent. Required for the Agents.UpdateAgent method. + # Agents.CreateAgent populates the name automatically. Format: `projects// + # locations//agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object + # @param [String] update_mask + # The mask to control which fields get updated. If the mask is not present, all + # fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent(name, google_cloud_dialogflow_cx_v3_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + command.request_object = google_cloud_dialogflow_cx_v3_agent_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Restores the specified agent from a binary file. Replaces the current agent + # with a new one. Note that all existing resources in agent (e.g. intents, + # entity types, flows) will be removed. + # @param [String] name + # Required. The name of the agent to restore into. Format: `projects//locations// + # agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest] google_cloud_dialogflow_cx_v3_restore_agent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def restore_project_location_agent(name, google_cloud_dialogflow_cx_v3_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:restore', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_restore_agent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an entity type in the specified agent. + # @param [String] parent + # Required. The agent to create a entity type for. Format: `projects//locations// + # agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object + # @param [String] language_code + # The language of the following fields in `entity_type`: * `EntityType.entities. + # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` + # If not specified, the agent's default language is used. [Many languages](https: + # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note: + # languages must be enabled in the agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_entity_type(parent, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified entity type. + # @param [String] name + # Required. The name of the entity type to delete. Format: `projects//locations// + # agents//entityTypes/`. + # @param [Boolean] force + # This field has no effect for entity type not being used. For entity types that + # are used by intents or pages: * If `force` is set to false, an error will be + # returned with message indicating the referencing resources. * If `force` is + # set to true, Dialogflow will remove the entity type, as well as any references + # to the entity type (i.e. Page parameter of the entity type will be changed to ' + # @sys.any' and intent parameter of the entity type will be removed). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_entity_type(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified entity type. + # @param [String] name + # Required. The name of the entity type. Format: `projects//locations//agents// + # entityTypes/`. + # @param [String] language_code + # The language to retrieve the entity type for. The following fields are + # language dependent: * `EntityType.entities.value` * `EntityType.entities. + # synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's + # default language is used. [Many languages](https://cloud.google.com/dialogflow/ + # docs/reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_entity_type(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all entity types in the specified agent. + # @param [String] parent + # Required. The agent to list all entity types for. Format: `projects//locations/ + # /agents/`. + # @param [String] language_code + # The language to list entity types for. The following fields are language + # dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * ` + # EntityType.excluded_phrases.value` If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_entity_types(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified entity type. + # @param [String] name + # The unique identifier of the entity type. Required for EntityTypes. + # UpdateEntityType. Format: `projects//locations//agents//entityTypes/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object + # @param [String] language_code + # The language of the following fields in `entity_type`: * `EntityType.entities. + # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` + # If not specified, the agent's default language is used. [Many languages](https: + # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note: + # languages must be enabled in the agent before they can be used. + # @param [String] update_mask + # The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_entity_type(name, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an Environment in the specified Agent. + # @param [String] parent + # Required. The Agent to create an Environment for. Format: `projects//locations/ + # /agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_environment(parent, google_cloud_dialogflow_cx_v3_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/environments', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation + command.request_object = google_cloud_dialogflow_cx_v3_environment_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Environment. + # @param [String] name + # Required. The name of the Environment to delete. Format: `projects//locations// + # agents//environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified Environment. + # @param [String] name + # Required. The name of the Environment. Format: `projects//locations//agents// + # environments/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all environments in the specified Agent. + # @param [String] parent + # Required. The Agent to list all environments for. Format: `projects//locations/ + # /agents/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 20 and at + # most 100. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/environments', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Looks up the history of the specified Environment. + # @param [String] name + # Required. Resource name of the environment to look up the history for. Format: + # `projects//locations//agents//environments/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def lookup_project_location_agent_environment_environment_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}:lookupEnvironmentHistory', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified Environment. + # @param [String] name + # The name of the environment. Format: `projects//locations//agents// + # environments/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_environment(name, google_cloud_dialogflow_cx_v3_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation + command.request_object = google_cloud_dialogflow_cx_v3_environment_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Processes a natural language query and returns structured, actionable data as + # a result. This method is not idempotent, because it may cause session entity + # types to be updated, which in turn might affect results of future queries. + # Note: Always use agent versions for production traffic. See [Versions and + # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). Note: Always use agent versions for production + # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/ + # cx/docs/concept/version). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def detect_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:detectIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Fulfills a matched intent returned by MatchIntent. Must be called after + # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is + # undefined. + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def fulfill_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns preliminary intent match results, doesn't change the session status. + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def match_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:matchIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a session entity type. If the specified session entity type already + # exists, overrides the session entity type. + # @param [String] parent + # Required. The session to create a session entity type for. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_environment_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified session entity type. + # @param [String] name + # Required. The name of the session entity type to delete. Format: `projects// + # locations//agents//sessions//entityTypes/` or `projects//locations//agents// + # environments//sessions//entityTypes/`. If `Environment ID` is not specified, + # we assume default 'draft' environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified session entity type. + # @param [String] name + # Required. The name of the session entity type. Format: `projects//locations// + # agents//sessions//entityTypes/` or `projects//locations//agents//environments// + # sessions//entityTypes/`. If `Environment ID` is not specified, we assume + # default 'draft' environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all session entity types in the specified session. + # @param [String] parent + # Required. The session to list all session entity types from. Format: `projects/ + # /locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_environment_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified session entity type. + # @param [String] name + # Required. The unique identifier of the session entity type. Format: `projects// + # locations//agents//sessions//entityTypes/` or `projects//locations//agents// + # environments//sessions//entityTypes/`. If `Environment ID` is not specified, + # we assume default 'draft' environment. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object + # @param [String] update_mask + # The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_environment_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a flow in the specified agent. + # @param [String] parent + # Required. The agent to create a flow for. Format: `projects//locations//agents/ + # `. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object + # @param [String] language_code + # The language of the following fields in `flow`: * `Flow.event_handlers. + # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment. + # messages` If not specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) are + # supported. Note: languages must be enabled in the agent before they can be + # used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_flow(parent, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/flows', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + command.request_object = google_cloud_dialogflow_cx_v3_flow_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a specified flow. + # @param [String] name + # Required. The name of the flow to delete. Format: `projects//locations//agents/ + # /flows/`. + # @param [Boolean] force + # This field has no effect for flows with no incoming transitions. For flows + # with incoming transitions: * If `force` is set to false, an error will be + # returned with message indicating the incoming transitions. * If `force` is set + # to true, Dialogflow will remove the flow, as well as any transitions to the + # flow (i.e. Target flow in event handlers or Target flow in transition routes + # that point to this flow will be cleared). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_flow(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified flow. + # @param [String] name + # Required. The name of the flow to get. Format: `projects//locations//agents// + # flows/`. + # @param [String] language_code + # The language to retrieve the flow for. The following fields are language + # dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow. + # transition_routes.trigger_fulfillment.messages` If not specified, the agent's + # default language is used. [Many languages](https://cloud.google.com/dialogflow/ + # docs/reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_flow(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all flows in the specified agent. + # @param [String] parent + # Required. The agent containing the flows. Format: `projects//locations//agents/ + # `. + # @param [String] language_code + # The language to list flows for. The following fields are language dependent: * + # `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes. + # trigger_fulfillment.messages` If not specified, the agent's default language + # is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/ + # language) are supported. Note: languages must be enabled in the agent before + # they can be used. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_flows(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/flows', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified flow. + # @param [String] name + # The unique identifier of the flow. Format: `projects//locations//agents//flows/ + # `. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object + # @param [String] language_code + # The language of the following fields in `flow`: * `Flow.event_handlers. + # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment. + # messages` If not specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) are + # supported. Note: languages must be enabled in the agent before they can be + # used. + # @param [String] update_mask + # Required. The mask to control which fields get updated. If `update_mask` is + # not specified, an error will be returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + command.request_object = google_cloud_dialogflow_cx_v3_flow_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Trains the specified flow. Note that only the flow in 'draft' environment is + # trained. + # @param [String] name + # Required. The flow to train. Format: `projects//locations//agents//flows/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest] google_cloud_dialogflow_cx_v3_train_flow_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def train_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_train_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:train', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_train_flow_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a page in the specified flow. + # @param [String] parent + # Required. The flow to create a page for. Format: `projects//locations//agents// + # flows/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object + # @param [String] language_code + # The language of the following fields in `page`: * `Page.entry_fulfillment. + # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment. + # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers. + # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page. + # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not + # specified, the agent's default language is used. [Many languages](https:// + # cloud.google.com/dialogflow/docs/reference/language) are supported. Note: + # languages must be enabled in the agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_flow_page(parent, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/pages', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + command.request_object = google_cloud_dialogflow_cx_v3_page_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified page. + # @param [String] name + # Required. The name of the page to delete. Format: `projects//locations//agents/ + # /Flows//pages/`. + # @param [Boolean] force + # This field has no effect for pages with no incoming transitions. For pages + # with incoming transitions: * If `force` is set to false, an error will be + # returned with message indicating the incoming transitions. * If `force` is set + # to true, Dialogflow will remove the page, as well as any transitions to the + # page (i.e. Target page in event handlers or Target page in transition routes + # that point to this page will be cleared). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_flow_page(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified page. + # @param [String] name + # Required. The name of the page. Format: `projects//locations//agents//flows// + # pages/`. + # @param [String] language_code + # The language to retrieve the page for. The following fields are language + # dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters. + # fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters. + # fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes. + # trigger_fulfillment.messages` * `Page.transition_route_groups. + # transition_routes.trigger_fulfillment.messages` If not specified, the agent's + # default language is used. [Many languages](https://cloud.google.com/dialogflow/ + # docs/reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_flow_page(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all pages in the specified flow. + # @param [String] parent + # Required. The flow to list all pages for. Format: `projects//locations//agents/ + # /flows/`. + # @param [String] language_code + # The language to list pages for. The following fields are language dependent: * + # `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior. + # initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior. + # reprompt_event_handlers.messages` * `Page.transition_routes. + # trigger_fulfillment.messages` * `Page.transition_route_groups. + # transition_routes.trigger_fulfillment.messages` If not specified, the agent's + # default language is used. [Many languages](https://cloud.google.com/dialogflow/ + # docs/reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_flow_pages(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/pages', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified page. + # @param [String] name + # The unique identifier of the page. Required for the Pages.UpdatePage method. + # Pages.CreatePage populates the name automatically. Format: `projects// + # locations//agents//flows//pages/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object + # @param [String] language_code + # The language of the following fields in `page`: * `Page.entry_fulfillment. + # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment. + # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers. + # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page. + # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not + # specified, the agent's default language is used. [Many languages](https:// + # cloud.google.com/dialogflow/docs/reference/language) are supported. Note: + # languages must be enabled in the agent before they can be used. + # @param [String] update_mask + # The mask to control which fields get updated. If the mask is not present, all + # fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_flow_page(name, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + command.request_object = google_cloud_dialogflow_cx_v3_page_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an TransitionRouteGroup in the specified flow. + # @param [String] parent + # Required. The flow to create an TransitionRouteGroup for. Format: `projects// + # locations//agents//flows/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object + # @param [String] language_code + # The language to list transition route groups for. The field `messages` in + # TransitionRoute is language dependent. If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_flow_transition_route_group(parent, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/transitionRouteGroups', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified TransitionRouteGroup. + # @param [String] name + # Required. The name of the TransitionRouteGroup to delete. Format: `projects// + # locations//agents//flows//transitionRouteGroups/`. + # @param [Boolean] force + # This field has no effect for transition route group that no page is using. If + # the transition route group is referenced by any page: * If `force` is set to + # false, an error will be returned with message indicating pages that reference + # the transition route group. * If `force` is set to true, Dialogflow will + # remove the transition route group, as well as any reference to it. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_flow_transition_route_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified TransitionRouteGroup. + # @param [String] name + # Required. The name of the TransitionRouteGroup. Format: `projects//locations// + # agents//flows//transitionRouteGroups/`. + # @param [String] language_code + # The language to list transition route groups for. The field `messages` in + # TransitionRoute is language dependent. If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_flow_transition_route_group(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all transition route groups in the specified flow. + # @param [String] parent + # Required. The flow to list all transition route groups for. Format: `projects// + # locations//agents//flows/`. + # @param [String] language_code + # The language to list transition route groups for. The field `messages` in + # TransitionRoute is language dependent. If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_flow_transition_route_groups(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/transitionRouteGroups', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified TransitionRouteGroup. + # @param [String] name + # The unique identifier of the transition route group. TransitionRouteGroups. + # CreateTransitionRouteGroup populates the name automatically. Format: `projects/ + # /locations//agents//flows//transitionRouteGroups/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object + # @param [String] language_code + # The language to list transition route groups for. The field `messages` in + # TransitionRoute is language dependent. If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [String] update_mask + # The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_flow_transition_route_group(name, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Version in the specified Flow. + # @param [String] parent + # Required. The Flow to create an Version for. Format: `projects//locations// + # agents//flows/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_flow_version(parent, google_cloud_dialogflow_cx_v3_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/versions', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation + command.request_object = google_cloud_dialogflow_cx_v3_version_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified Version. + # @param [String] name + # Required. The name of the Version to delete. Format: `projects//locations// + # agents//flows//versions/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified Version. + # @param [String] name + # Required. The name of the Version. Format: `projects//locations//agents//flows/ + # /versions/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all versions in the specified Flow. + # @param [String] parent + # Required. The Flow to list all versions for. Format: `projects//locations// + # agents//flows/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 20 and at + # most 100. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_flow_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/versions', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Loads a specified version to draft version. + # @param [String] name + # Required. The Version to be loaded to draft version. Format: `projects// + # locations//agents//flows//versions/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest] google_cloud_dialogflow_cx_v3_load_version_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def load_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_load_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:load', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_load_version_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified Version. + # @param [String] name + # Format: projects//locations//agents//flows//versions/. Version ID is a self- + # increasing number generated by Dialogflow upon version creation. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. Currently only ` + # description` and `display_name` can be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation + command.request_object = google_cloud_dialogflow_cx_v3_version_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates an intent in the specified agent. + # @param [String] parent + # Required. The agent to create an intent for. Format: `projects//locations// + # agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object + # @param [String] language_code + # The language of the following fields in `intent`: * `Intent.training_phrases. + # parts.text` If not specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) are + # supported. Note: languages must be enabled in the agent before they can be + # used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/intents', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + command.request_object = google_cloud_dialogflow_cx_v3_intent_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified intent. + # @param [String] name + # Required. The name of the intent to delete. Format: `projects//locations// + # agents//intents/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified intent. + # @param [String] name + # Required. The name of the intent. Format: `projects//locations//agents// + # intents/`. + # @param [String] language_code + # The language to retrieve the intent for. The following fields are language + # dependent: * `Intent.training_phrases.parts.text` If not specified, the agent' + # s default language is used. [Many languages](https://cloud.google.com/ + # dialogflow/docs/reference/language) are supported. Note: languages must be + # enabled in the agent before they can be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_intent(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all intents in the specified agent. + # @param [String] parent + # Required. The agent to list all intents for. Format: `projects//locations// + # agents/`. + # @param [String] intent_view + # The resource view to apply to the returned intent. + # @param [String] language_code + # The language to list intents for. The following fields are language dependent: + # * `Intent.training_phrases.parts.text` If not specified, the agent's default + # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/ + # reference/language) are supported. Note: languages must be enabled in the + # agent before they can be used. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/intents', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['intentView'] = intent_view unless intent_view.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified intent. + # @param [String] name + # The unique identifier of the intent. Required for the Intents.UpdateIntent + # method. Intents.CreateIntent populates the name automatically. Format: ` + # projects//locations//agents//intents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object + # @param [String] language_code + # The language of the following fields in `intent`: * `Intent.training_phrases. + # parts.text` If not specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) are + # supported. Note: languages must be enabled in the agent before they can be + # used. + # @param [String] update_mask + # The mask to control which fields get updated. If the mask is not present, all + # fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_intent(name, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + command.request_object = google_cloud_dialogflow_cx_v3_intent_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Processes a natural language query and returns structured, actionable data as + # a result. This method is not idempotent, because it may cause session entity + # types to be updated, which in turn might affect results of future queries. + # Note: Always use agent versions for production traffic. See [Versions and + # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). Note: Always use agent versions for production + # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/ + # cx/docs/concept/version). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def detect_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:detectIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Fulfills a matched intent returned by MatchIntent. Must be called after + # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is + # undefined. + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def fulfill_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns preliminary intent match results, doesn't change the session status. + # @param [String] session + # Required. The name of the session this query is sent to. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. It's up to the API caller to choose an appropriate `Session ID`. + # It can be a random number or some type of session identifiers (preferably + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def match_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+session}:matchIntent', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation + command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a session entity type. If the specified session entity type already + # exists, overrides the session entity type. + # @param [String] parent + # Required. The session to create a session entity type for. Format: `projects// + # locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified session entity type. + # @param [String] name + # Required. The name of the session entity type to delete. Format: `projects// + # locations//agents//sessions//entityTypes/` or `projects//locations//agents// + # environments//sessions//entityTypes/`. If `Environment ID` is not specified, + # we assume default 'draft' environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified session entity type. + # @param [String] name + # Required. The name of the session entity type. Format: `projects//locations// + # agents//sessions//entityTypes/` or `projects//locations//agents//environments// + # sessions//entityTypes/`. If `Environment ID` is not specified, we assume + # default 'draft' environment. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all session entity types in the specified session. + # @param [String] parent + # Required. The session to list all session entity types from. Format: `projects/ + # /locations//agents//sessions/` or `projects//locations//agents//environments// + # sessions/`. If `Environment ID` is not specified, we assume default 'draft' + # environment. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified session entity type. + # @param [String] name + # Required. The unique identifier of the session entity type. Format: `projects// + # locations//agents//sessions//entityTypes/` or `projects//locations//agents// + # environments//sessions//entityTypes/`. If `Environment ID` is not specified, + # we assume default 'draft' environment. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object + # @param [String] update_mask + # The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a webhook in the specified agent. + # @param [String] parent + # Required. The agent to create a webhook for. Format: `projects//locations// + # agents/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_agent_webhook(parent, google_cloud_dialogflow_cx_v3_webhook_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/webhooks', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + command.request_object = google_cloud_dialogflow_cx_v3_webhook_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified webhook. + # @param [String] name + # Required. The name of the webhook to delete. Format: `projects//locations// + # agents//webhooks/`. + # @param [Boolean] force + # This field has no effect for webhook not being used. For webhooks that are + # used by pages/flows/transition route groups: * If `force` is set to false, an + # error will be returned with message indicating the referenced resources. * If ` + # force` is set to true, Dialogflow will remove the webhook, as well as any + # references to the webhook (i.e. Webhook and tagin fulfillments that point to + # this webhook will be removed). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_agent_webhook(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified webhook. + # @param [String] name + # Required. The name of the webhook. Format: `projects//locations//agents// + # webhooks/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_agent_webhook(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all webhooks in the specified agent. + # @param [String] parent + # Required. The agent to list all webhooks for. Format: `projects//locations// + # agents/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 100 and at + # most 1000. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_agent_webhooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/webhooks', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified webhook. + # @param [String] name + # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook + # method. Webhooks.CreateWebhook populates the name automatically. Format: ` + # projects//locations//agents//webhooks/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object + # @param [String] update_mask + # The mask to control which fields get updated. If the mask is not present, all + # fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_agent_webhook(name, google_cloud_dialogflow_cx_v3_webhook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + command.request_object = google_cloud_dialogflow_cx_v3_webhook_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. @@ -162,6 +2707,179 @@ module Google execute_or_queue_command(command, &block) end + # Create security settings in the specified location. + # @param [String] parent + # Required. The location to create an SecuritySettings for. Format: `projects// + # locations/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_security_setting(parent, google_cloud_dialogflow_cx_v3_security_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+parent}/securitySettings', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified SecuritySettings. + # @param [String] name + # Required. The name of the SecuritySettings to delete. Format: `projects// + # locations//securitySettings/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the specified SecuritySettings. The returned settings may be stale + # by up to 1 minute. + # @param [String] name + # Required. Resource name of the settings. Format: `projects//locations// + # securitySettings/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of all security settings in the specified location. + # @param [String] parent + # Required. The location to list all security settings for. Format: `projects// + # locations/`. + # @param [Fixnum] page_size + # The maximum number of items to return in a single page. By default 20 and at + # most 100. + # @param [String] page_token + # The next_page_token value returned from a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_security_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+parent}/securitySettings', options) + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified SecuritySettings. + # @param [String] name + # Required. Resource name of the settings. Format: `projects//locations// + # securitySettings/`. + # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object + # @param [String] update_mask + # Required. The mask to control which fields get updated. If the mask is not + # present, all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_security_setting(name, google_cloud_dialogflow_cx_v3_security_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object + command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation + command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. diff --git a/generated/google/apis/dialogflow_v3/synth.metadata b/generated/google/apis/dialogflow_v3/synth.metadata index 833ec1a27..8d7933f02 100644 --- a/generated/google/apis/dialogflow_v3/synth.metadata +++ b/generated/google/apis/dialogflow_v3/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "2a7f9b91d4d9a6d9ffaa2baa7d1a4a6bbd1b311f" + "sha": "fc2160a30e40b2374c6b1ed97416ed77bf9e63ee" } } ]