diff --git a/api_names_out.yaml b/api_names_out.yaml index 161a19af1..496a8fb7f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -3000,6 +3000,8 @@ "/admin:directory_v1/directory.resources.buildings.insert/customer": customer "/admin:directory_v1/directory.resources.buildings.list": list_resource_buildings "/admin:directory_v1/directory.resources.buildings.list/customer": customer +"/admin:directory_v1/directory.resources.buildings.list/maxResults": max_results +"/admin:directory_v1/directory.resources.buildings.list/pageToken": page_token "/admin:directory_v1/directory.resources.buildings.patch": patch_resource_building "/admin:directory_v1/directory.resources.buildings.patch/buildingId": building_id "/admin:directory_v1/directory.resources.buildings.patch/customer": customer @@ -3036,6 +3038,7 @@ "/admin:directory_v1/directory.resources.features.insert/customer": customer "/admin:directory_v1/directory.resources.features.list": list_resource_features "/admin:directory_v1/directory.resources.features.list/customer": customer +"/admin:directory_v1/directory.resources.features.list/maxResults": max_results "/admin:directory_v1/directory.resources.features.list/pageToken": page_token "/admin:directory_v1/directory.resources.features.patch": patch_resource_feature "/admin:directory_v1/directory.resources.features.patch/customer": customer @@ -44389,6 +44392,671 @@ "/dfareporting:v3.0/key": key "/dfareporting:v3.0/quotaUser": quota_user "/dfareporting:v3.0/userIp": user_ip +"/dialogflow:v2/GoogleCloudDialogflowV2Agent": google_cloud_dialogflow_v2_agent +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/avatarUri": avatar_uri +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/classificationThreshold": classification_threshold +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/defaultLanguageCode": default_language_code +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/description": description +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/enableLogging": enable_logging +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/matchMode": match_mode +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/parent": parent +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/supportedLanguageCodes": supported_language_codes +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/supportedLanguageCodes/supported_language_code": supported_language_code +"/dialogflow:v2/GoogleCloudDialogflowV2Agent/timeZone": time_zone +"/dialogflow:v2/GoogleCloudDialogflowV2BatchCreateEntitiesRequest": google_cloud_dialogflow_v2_batch_create_entities_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchCreateEntitiesRequest/entities": entities +"/dialogflow:v2/GoogleCloudDialogflowV2BatchCreateEntitiesRequest/entities/entity": entity +"/dialogflow:v2/GoogleCloudDialogflowV2BatchCreateEntitiesRequest/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntitiesRequest": google_cloud_dialogflow_v2_batch_delete_entities_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntitiesRequest/entityValues": entity_values +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntitiesRequest/entityValues/entity_value": entity_value +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntitiesRequest/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest": google_cloud_dialogflow_v2_batch_delete_entity_types_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest/entityTypeNames": entity_type_names +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest/entityTypeNames/entity_type_name": entity_type_name +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteIntentsRequest": google_cloud_dialogflow_v2_batch_delete_intents_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteIntentsRequest/intents": intents +"/dialogflow:v2/GoogleCloudDialogflowV2BatchDeleteIntentsRequest/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntitiesRequest": google_cloud_dialogflow_v2_batch_update_entities_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntitiesRequest/entities": entities +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntitiesRequest/entities/entity": entity +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntitiesRequest/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntitiesRequest/updateMask": update_mask +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest": google_cloud_dialogflow_v2_batch_update_entity_types_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest/entityTypeBatchInline": entity_type_batch_inline +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest/entityTypeBatchUri": entity_type_batch_uri +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest/updateMask": update_mask +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse": google_cloud_dialogflow_v2_batch_update_entity_types_response +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse/entityTypes": entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse/entityTypes/entity_type": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest": google_cloud_dialogflow_v2_batch_update_intents_request +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest/intentBatchInline": intent_batch_inline +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest/intentBatchUri": intent_batch_uri +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest/intentView": intent_view +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsRequest/updateMask": update_mask +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsResponse": google_cloud_dialogflow_v2_batch_update_intents_response +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsResponse/intents": intents +"/dialogflow:v2/GoogleCloudDialogflowV2BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2Context": google_cloud_dialogflow_v2_context +"/dialogflow:v2/GoogleCloudDialogflowV2Context/lifespanCount": lifespan_count +"/dialogflow:v2/GoogleCloudDialogflowV2Context/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2Context/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2Context/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentRequest": google_cloud_dialogflow_v2_detect_intent_request +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentRequest/inputAudio": input_audio +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentRequest/queryInput": query_input +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentRequest/queryParams": query_params +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentResponse": google_cloud_dialogflow_v2_detect_intent_response +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentResponse/queryResult": query_result +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentResponse/responseId": response_id +"/dialogflow:v2/GoogleCloudDialogflowV2DetectIntentResponse/webhookStatus": webhook_status +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType": google_cloud_dialogflow_v2_entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/autoExpansionMode": auto_expansion_mode +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/entities": entities +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/entities/entity": entity +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/kind": kind +"/dialogflow:v2/GoogleCloudDialogflowV2EntityType/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeBatch": google_cloud_dialogflow_v2_entity_type_batch +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeBatch/entityTypes": entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeBatch/entityTypes/entity_type": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeEntity": google_cloud_dialogflow_v2_entity_type_entity +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeEntity/synonyms": synonyms +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeEntity/synonyms/synonym": synonym +"/dialogflow:v2/GoogleCloudDialogflowV2EntityTypeEntity/value": value +"/dialogflow:v2/GoogleCloudDialogflowV2EventInput": google_cloud_dialogflow_v2_event_input +"/dialogflow:v2/GoogleCloudDialogflowV2EventInput/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2EventInput/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2EventInput/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2EventInput/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2ExportAgentRequest": google_cloud_dialogflow_v2_export_agent_request +"/dialogflow:v2/GoogleCloudDialogflowV2ExportAgentRequest/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2ExportAgentResponse": google_cloud_dialogflow_v2_export_agent_response +"/dialogflow:v2/GoogleCloudDialogflowV2ExportAgentResponse/agentContent": agent_content +"/dialogflow:v2/GoogleCloudDialogflowV2ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest": google_cloud_dialogflow_v2_import_agent_request +"/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest/agentContent": agent_content +"/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig": google_cloud_dialogflow_v2_input_audio_config +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/audioEncoding": audio_encoding +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/phraseHints": phrase_hints +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/phraseHints/phrase_hint": phrase_hint +"/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/sampleRateHertz": sample_rate_hertz +"/dialogflow:v2/GoogleCloudDialogflowV2Intent": google_cloud_dialogflow_v2_intent +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/action": action +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/defaultResponsePlatforms": default_response_platforms +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/defaultResponsePlatforms/default_response_platform": default_response_platform +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/events": events +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/events/event": event +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/followupIntentInfo": followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/followupIntentInfo/followup_intent_info": followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/inputContextNames": input_context_names +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/inputContextNames/input_context_name": input_context_name +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/isFallback": is_fallback +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/messages": messages +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/messages/message": message +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/mlDisabled": ml_disabled +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/parentFollowupIntentName": parent_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/priority": priority +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/resetContexts": reset_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/rootFollowupIntentName": root_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/trainingPhrases": training_phrases +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/trainingPhrases/training_phrase": training_phrase +"/dialogflow:v2/GoogleCloudDialogflowV2Intent/webhookState": webhook_state +"/dialogflow:v2/GoogleCloudDialogflowV2IntentBatch": google_cloud_dialogflow_v2_intent_batch +"/dialogflow:v2/GoogleCloudDialogflowV2IntentBatch/intents": intents +"/dialogflow:v2/GoogleCloudDialogflowV2IntentBatch/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2IntentFollowupIntentInfo": google_cloud_dialogflow_v2_intent_followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2IntentFollowupIntentInfo/followupIntentName": followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentFollowupIntentInfo/parentFollowupIntentName": parent_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage": google_cloud_dialogflow_v2_intent_message +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/basicCard": basic_card +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/card": card +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/carouselSelect": carousel_select +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/linkOutSuggestion": link_out_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/listSelect": list_select +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/platform": platform +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/quickReplies": quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/simpleResponses": simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/suggestions": suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessage/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard": google_cloud_dialogflow_v2_intent_message_basic_card +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/buttons": buttons +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/buttons/button": button +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/formattedText": formatted_text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/subtitle": subtitle +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCard/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCardButton": google_cloud_dialogflow_v2_intent_message_basic_card_button +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCardButton/openUriAction": open_uri_action +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCardButton/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction": google_cloud_dialogflow_v2_intent_message_basic_card_button_open_uri_action +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction/uri": uri +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard": google_cloud_dialogflow_v2_intent_message_card +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard/buttons": buttons +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard/buttons/button": button +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard/imageUri": image_uri +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard/subtitle": subtitle +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCard/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCardButton": google_cloud_dialogflow_v2_intent_message_card_button +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCardButton/postback": postback +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCardButton/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelect": google_cloud_dialogflow_v2_intent_message_carousel_select +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelect/items": items +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelect/items/item": item +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelectItem": google_cloud_dialogflow_v2_intent_message_carousel_select_item +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelectItem/description": description +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelectItem/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelectItem/info": info +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageCarouselSelectItem/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageImage": google_cloud_dialogflow_v2_intent_message_image +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageImage/accessibilityText": accessibility_text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageImage/imageUri": image_uri +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion": google_cloud_dialogflow_v2_intent_message_link_out_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion/destinationName": destination_name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion/uri": uri +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelect": google_cloud_dialogflow_v2_intent_message_list_select +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelect/items": items +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelect/items/item": item +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelect/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelectItem": google_cloud_dialogflow_v2_intent_message_list_select_item +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelectItem/description": description +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelectItem/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelectItem/info": info +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageListSelectItem/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageQuickReplies": google_cloud_dialogflow_v2_intent_message_quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageQuickReplies/quickReplies": quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageQuickReplies/quickReplies/quick_reply": quick_reply +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageQuickReplies/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSelectItemInfo": google_cloud_dialogflow_v2_intent_message_select_item_info +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSelectItemInfo/key": key +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSelectItemInfo/synonyms": synonyms +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSelectItemInfo/synonyms/synonym": synonym +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponse": google_cloud_dialogflow_v2_intent_message_simple_response +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponse/displayText": display_text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponse/ssml": ssml +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponse/textToSpeech": text_to_speech +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponses": google_cloud_dialogflow_v2_intent_message_simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponses/simpleResponses": simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSimpleResponses/simpleResponses/simple_response": simple_response +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSuggestion": google_cloud_dialogflow_v2_intent_message_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSuggestion/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSuggestions": google_cloud_dialogflow_v2_intent_message_suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSuggestions/suggestions": suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageSuggestions/suggestions/suggestion": suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageText": google_cloud_dialogflow_v2_intent_message_text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageText/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentMessageText/text/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter": google_cloud_dialogflow_v2_intent_parameter +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/defaultValue": default_value +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/entityTypeDisplayName": entity_type_display_name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/isList": is_list +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/mandatory": mandatory +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/prompts": prompts +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/prompts/prompt": prompt +"/dialogflow:v2/GoogleCloudDialogflowV2IntentParameter/value": value +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase": google_cloud_dialogflow_v2_intent_training_phrase +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase/parts": parts +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase/parts/part": part +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase/timesAddedCount": times_added_count +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrase/type": type +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrasePart": google_cloud_dialogflow_v2_intent_training_phrase_part +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrasePart/alias": alias +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrasePart/entityType": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrasePart/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2IntentTrainingPhrasePart/userDefined": user_defined +"/dialogflow:v2/GoogleCloudDialogflowV2ListContextsResponse": google_cloud_dialogflow_v2_list_contexts_response +"/dialogflow:v2/GoogleCloudDialogflowV2ListContextsResponse/contexts": contexts +"/dialogflow:v2/GoogleCloudDialogflowV2ListContextsResponse/contexts/context": context +"/dialogflow:v2/GoogleCloudDialogflowV2ListContextsResponse/nextPageToken": next_page_token +"/dialogflow:v2/GoogleCloudDialogflowV2ListEntityTypesResponse": google_cloud_dialogflow_v2_list_entity_types_response +"/dialogflow:v2/GoogleCloudDialogflowV2ListEntityTypesResponse/entityTypes": entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2ListEntityTypesResponse/entityTypes/entity_type": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2ListEntityTypesResponse/nextPageToken": next_page_token +"/dialogflow:v2/GoogleCloudDialogflowV2ListIntentsResponse": google_cloud_dialogflow_v2_list_intents_response +"/dialogflow:v2/GoogleCloudDialogflowV2ListIntentsResponse/intents": intents +"/dialogflow:v2/GoogleCloudDialogflowV2ListIntentsResponse/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2ListIntentsResponse/nextPageToken": next_page_token +"/dialogflow:v2/GoogleCloudDialogflowV2ListSessionEntityTypesResponse": google_cloud_dialogflow_v2_list_session_entity_types_response +"/dialogflow:v2/GoogleCloudDialogflowV2ListSessionEntityTypesResponse/nextPageToken": next_page_token +"/dialogflow:v2/GoogleCloudDialogflowV2ListSessionEntityTypesResponse/sessionEntityTypes": session_entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2ListSessionEntityTypesResponse/sessionEntityTypes/session_entity_type": session_entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2OriginalDetectIntentRequest": google_cloud_dialogflow_v2_original_detect_intent_request +"/dialogflow:v2/GoogleCloudDialogflowV2OriginalDetectIntentRequest/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2OriginalDetectIntentRequest/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2OriginalDetectIntentRequest/source": source +"/dialogflow:v2/GoogleCloudDialogflowV2QueryInput": google_cloud_dialogflow_v2_query_input +"/dialogflow:v2/GoogleCloudDialogflowV2QueryInput/audioConfig": audio_config +"/dialogflow:v2/GoogleCloudDialogflowV2QueryInput/event": event +"/dialogflow:v2/GoogleCloudDialogflowV2QueryInput/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters": google_cloud_dialogflow_v2_query_parameters +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/contexts": contexts +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/contexts/context": context +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/geoLocation": geo_location +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/resetContexts": reset_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/sessionEntityTypes": session_entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/sessionEntityTypes/session_entity_type": session_entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2QueryParameters/timeZone": time_zone +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult": google_cloud_dialogflow_v2_query_result +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/action": action +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/allRequiredParamsPresent": all_required_params_present +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/diagnosticInfo": diagnostic_info +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/diagnosticInfo/diagnostic_info": diagnostic_info +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/fulfillmentMessages": fulfillment_messages +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/fulfillmentMessages/fulfillment_message": fulfillment_message +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/fulfillmentText": fulfillment_text +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/intentDetectionConfidence": intent_detection_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/queryText": query_text +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/speechRecognitionConfidence": speech_recognition_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/webhookPayload": webhook_payload +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/webhookPayload/webhook_payload": webhook_payload +"/dialogflow:v2/GoogleCloudDialogflowV2QueryResult/webhookSource": webhook_source +"/dialogflow:v2/GoogleCloudDialogflowV2RestoreAgentRequest": google_cloud_dialogflow_v2_restore_agent_request +"/dialogflow:v2/GoogleCloudDialogflowV2RestoreAgentRequest/agentContent": agent_content +"/dialogflow:v2/GoogleCloudDialogflowV2RestoreAgentRequest/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2SearchAgentsResponse": google_cloud_dialogflow_v2_search_agents_response +"/dialogflow:v2/GoogleCloudDialogflowV2SearchAgentsResponse/agents": agents +"/dialogflow:v2/GoogleCloudDialogflowV2SearchAgentsResponse/agents/agent": agent +"/dialogflow:v2/GoogleCloudDialogflowV2SearchAgentsResponse/nextPageToken": next_page_token +"/dialogflow:v2/GoogleCloudDialogflowV2SessionEntityType": google_cloud_dialogflow_v2_session_entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2SessionEntityType/entities": entities +"/dialogflow:v2/GoogleCloudDialogflowV2SessionEntityType/entities/entity": entity +"/dialogflow:v2/GoogleCloudDialogflowV2SessionEntityType/entityOverrideMode": entity_override_mode +"/dialogflow:v2/GoogleCloudDialogflowV2SessionEntityType/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2TextInput": google_cloud_dialogflow_v2_text_input +"/dialogflow:v2/GoogleCloudDialogflowV2TextInput/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2TextInput/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2TrainAgentRequest": google_cloud_dialogflow_v2_train_agent_request +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookRequest": google_cloud_dialogflow_v2_webhook_request +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookRequest/originalDetectIntentRequest": original_detect_intent_request +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookRequest/queryResult": query_result +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookRequest/responseId": response_id +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookRequest/session": session +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse": google_cloud_dialogflow_v2_webhook_response +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/followupEventInput": followup_event_input +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/fulfillmentMessages": fulfillment_messages +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/fulfillmentMessages/fulfillment_message": fulfillment_message +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/fulfillmentText": fulfillment_text +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2WebhookResponse/source": source +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse": google_cloud_dialogflow_v2beta1_batch_update_entity_types_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse/entityTypes": entity_types +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse/entityTypes/entity_type": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse": google_cloud_dialogflow_v2beta1_batch_update_intents_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents": intents +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Context": google_cloud_dialogflow_v2beta1_context +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/lifespanCount": lifespan_count +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType": google_cloud_dialogflow_v2beta1_entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/autoExpansionMode": auto_expansion_mode +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/entities": entities +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/entities/entity": entity +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/kind": kind +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityType/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityTypeEntity": google_cloud_dialogflow_v2beta1_entity_type_entity +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityTypeEntity/synonyms": synonyms +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityTypeEntity/synonyms/synonym": synonym +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EntityTypeEntity/value": value +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EventInput": google_cloud_dialogflow_v2beta1_event_input +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EventInput/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EventInput/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EventInput/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2beta1EventInput/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ExportAgentResponse": google_cloud_dialogflow_v2beta1_export_agent_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentContent": agent_content +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent": google_cloud_dialogflow_v2beta1_intent +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/action": action +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms/default_response_platform": default_response_platform +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/events": events +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/events/event": event +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/followupIntentInfo": followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/followupIntentInfo/followup_intent_info": followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/inputContextNames": input_context_names +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/inputContextNames/input_context_name": input_context_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/isFallback": is_fallback +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/messages": messages +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/messages/message": message +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/mlDisabled": ml_disabled +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/mlEnabled": ml_enabled +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/parentFollowupIntentName": parent_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/priority": priority +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/resetContexts": reset_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/rootFollowupIntentName": root_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/trainingPhrases": training_phrases +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/trainingPhrases/training_phrase": training_phrase +"/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/webhookState": webhook_state +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo": google_cloud_dialogflow_v2beta1_intent_followup_intent_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo/followupIntentName": followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo/parentFollowupIntentName": parent_followup_intent_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage": google_cloud_dialogflow_v2beta1_intent_message +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/basicCard": basic_card +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/card": card +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/carouselSelect": carousel_select +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/linkOutSuggestion": link_out_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/listSelect": list_select +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/platform": platform +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/quickReplies": quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/simpleResponses": simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/suggestions": suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessage/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard": google_cloud_dialogflow_v2beta1_intent_message_basic_card +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/buttons": buttons +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/buttons/button": button +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/formattedText": formatted_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/subtitle": subtitle +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCard/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton": google_cloud_dialogflow_v2beta1_intent_message_basic_card_button +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton/openUriAction": open_uri_action +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction": google_cloud_dialogflow_v2beta1_intent_message_basic_card_button_open_uri_action +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction/uri": uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard": google_cloud_dialogflow_v2beta1_intent_message_card +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard/buttons": buttons +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard/buttons/button": button +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard/imageUri": image_uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard/subtitle": subtitle +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCard/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCardButton": google_cloud_dialogflow_v2beta1_intent_message_card_button +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCardButton/postback": postback +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCardButton/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect": google_cloud_dialogflow_v2beta1_intent_message_carousel_select +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect/items": items +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect/items/item": item +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem": google_cloud_dialogflow_v2beta1_intent_message_carousel_select_item +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem/description": description +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem/info": info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageImage": google_cloud_dialogflow_v2beta1_intent_message_image +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageImage/accessibilityText": accessibility_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageImage/imageUri": image_uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion": google_cloud_dialogflow_v2beta1_intent_message_link_out_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion/destinationName": destination_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion/uri": uri +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelect": google_cloud_dialogflow_v2beta1_intent_message_list_select +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelect/items": items +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelect/items/item": item +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelect/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelectItem": google_cloud_dialogflow_v2beta1_intent_message_list_select_item +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelectItem/description": description +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelectItem/image": image +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelectItem/info": info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageListSelectItem/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageQuickReplies": google_cloud_dialogflow_v2beta1_intent_message_quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageQuickReplies/quickReplies": quick_replies +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageQuickReplies/quickReplies/quick_reply": quick_reply +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageQuickReplies/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo": google_cloud_dialogflow_v2beta1_intent_message_select_item_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo/key": key +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo/synonyms": synonyms +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo/synonyms/synonym": synonym +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse": google_cloud_dialogflow_v2beta1_intent_message_simple_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse/displayText": display_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse/ssml": ssml +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse/textToSpeech": text_to_speech +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses": google_cloud_dialogflow_v2beta1_intent_message_simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses/simpleResponses": simple_responses +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses/simpleResponses/simple_response": simple_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestion": google_cloud_dialogflow_v2beta1_intent_message_suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestion/title": title +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions": google_cloud_dialogflow_v2beta1_intent_message_suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions": suggestions +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageSuggestions/suggestions/suggestion": suggestion +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText": google_cloud_dialogflow_v2beta1_intent_message_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentMessageText/text/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter": google_cloud_dialogflow_v2beta1_intent_parameter +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/defaultValue": default_value +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/displayName": display_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/entityTypeDisplayName": entity_type_display_name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/isList": is_list +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/mandatory": mandatory +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/prompts": prompts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/prompts/prompt": prompt +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentParameter/value": value +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase": google_cloud_dialogflow_v2beta1_intent_training_phrase +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase/parts": parts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase/parts/part": part +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase/timesAddedCount": times_added_count +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrase/type": type +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart": google_cloud_dialogflow_v2beta1_intent_training_phrase_part +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/alias": alias +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/entityType": entity_type +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/text": text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/userDefined": user_defined +"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest": google_cloud_dialogflow_v2beta1_original_detect_intent_request +"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/source": source +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult": google_cloud_dialogflow_v2beta1_query_result +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/action": action +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/allRequiredParamsPresent": all_required_params_present +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/diagnosticInfo": diagnostic_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/diagnosticInfo/diagnostic_info": diagnostic_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/fulfillmentMessages": fulfillment_messages +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/fulfillmentMessages/fulfillment_message": fulfillment_message +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/fulfillmentText": fulfillment_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/intentDetectionConfidence": intent_detection_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/languageCode": language_code +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/parameters": parameters +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/parameters/parameter": parameter +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/queryText": query_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/speechRecognitionConfidence": speech_recognition_confidence +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1QueryResult/webhookSource": webhook_source +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest": google_cloud_dialogflow_v2beta1_webhook_request +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/originalDetectIntentRequest": original_detect_intent_request +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/queryResult": query_result +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/responseId": response_id +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/session": session +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse": google_cloud_dialogflow_v2beta1_webhook_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/followupEventInput": followup_event_input +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages": fulfillment_messages +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentMessages/fulfillment_message": fulfillment_message +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/fulfillmentText": fulfillment_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/outputContexts": output_contexts +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/outputContexts/output_context": output_context +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/payload/payload": payload +"/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookResponse/source": source +"/dialogflow:v2/GoogleLongrunningOperation": google_longrunning_operation +"/dialogflow:v2/GoogleLongrunningOperation/done": done +"/dialogflow:v2/GoogleLongrunningOperation/error": error +"/dialogflow:v2/GoogleLongrunningOperation/metadata": metadata +"/dialogflow:v2/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/dialogflow:v2/GoogleLongrunningOperation/name": name +"/dialogflow:v2/GoogleLongrunningOperation/response": response +"/dialogflow:v2/GoogleLongrunningOperation/response/response": response +"/dialogflow:v2/GoogleProtobufEmpty": google_protobuf_empty +"/dialogflow:v2/GoogleRpcStatus": google_rpc_status +"/dialogflow:v2/GoogleRpcStatus/code": code +"/dialogflow:v2/GoogleRpcStatus/details": details +"/dialogflow:v2/GoogleRpcStatus/details/detail": detail +"/dialogflow:v2/GoogleRpcStatus/details/detail/detail": detail +"/dialogflow:v2/GoogleRpcStatus/message": message +"/dialogflow:v2/GoogleTypeLatLng": google_type_lat_lng +"/dialogflow:v2/GoogleTypeLatLng/latitude": latitude +"/dialogflow:v2/GoogleTypeLatLng/longitude": longitude +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.batchDelete": batch_project_agent_entity_type_delete +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.batchDelete/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.batchUpdate": batch_project_agent_entity_type_update +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.batchUpdate/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.create": create_project_agent_entity_type +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.create/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.delete": delete_project_agent_entity_type +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchCreate": batch_project_agent_entity_type_entity_create +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchCreate/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchDelete": batch_project_agent_entity_type_entity_delete +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchDelete/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchUpdate": batch_project_agent_entity_type_entity_update +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.entities.batchUpdate/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.get": get_project_agent_entity_type +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.get/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.list": list_project_agent_entity_types +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.list/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.patch": patch_project_agent_entity_type +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.patch/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.entityTypes.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.export": export_project_agent +"/dialogflow:v2/dialogflow.projects.agent.export/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.import": import_project_agent +"/dialogflow:v2/dialogflow.projects.agent.import/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.intents.batchDelete": batch_project_agent_intent_delete +"/dialogflow:v2/dialogflow.projects.agent.intents.batchDelete/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.intents.batchUpdate": batch_project_agent_intent_update +"/dialogflow:v2/dialogflow.projects.agent.intents.batchUpdate/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.intents.create": create_project_agent_intent +"/dialogflow:v2/dialogflow.projects.agent.intents.create/intentView": intent_view +"/dialogflow:v2/dialogflow.projects.agent.intents.create/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.intents.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.intents.delete": delete_project_agent_intent +"/dialogflow:v2/dialogflow.projects.agent.intents.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.intents.get": get_project_agent_intent +"/dialogflow:v2/dialogflow.projects.agent.intents.get/intentView": intent_view +"/dialogflow:v2/dialogflow.projects.agent.intents.get/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.intents.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.intents.list": list_project_agent_intents +"/dialogflow:v2/dialogflow.projects.agent.intents.list/intentView": intent_view +"/dialogflow:v2/dialogflow.projects.agent.intents.list/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.intents.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.intents.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.intents.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.intents.patch": patch_project_agent_intent +"/dialogflow:v2/dialogflow.projects.agent.intents.patch/intentView": intent_view +"/dialogflow:v2/dialogflow.projects.agent.intents.patch/languageCode": language_code +"/dialogflow:v2/dialogflow.projects.agent.intents.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.intents.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.restore": restore_project_agent +"/dialogflow:v2/dialogflow.projects.agent.restore/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.create": create_project_agent_runtime_session_context +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.delete": delete_project_agent_runtime_session_context +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.get": get_project_agent_runtime_session_context +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.list": list_project_agent_runtime_session_contexts +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.patch": patch_project_agent_runtime_session_context +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.contexts.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.deleteContexts": delete_project_agent_runtime_session_contexts +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.deleteContexts/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.detectIntent": detect_project_agent_runtime_session_intent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.detectIntent/session": session +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.create": create_project_agent_runtime_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.delete": delete_project_agent_runtime_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.get": get_project_agent_runtime_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.list": list_project_agent_runtime_session_entity_types +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch": patch_project_agent_runtime_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.runtimes.sessions.entityTypes.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.search": search_project_agents +"/dialogflow:v2/dialogflow.projects.agent.search/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.search/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.search/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.create": create_project_agent_session_context +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.delete": delete_project_agent_session_context +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.get": get_project_agent_session_context +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.list": list_project_agent_session_contexts +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.patch": patch_project_agent_session_context +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.contexts.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.sessions.deleteContexts": delete_project_agent_session_contexts +"/dialogflow:v2/dialogflow.projects.agent.sessions.deleteContexts/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.detectIntent": detect_project_agent_session_intent +"/dialogflow:v2/dialogflow.projects.agent.sessions.detectIntent/session": session +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.create": create_project_agent_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.create/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.delete": delete_project_agent_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.delete/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.get": get_project_agent_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.get/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.list": list_project_agent_session_entity_types +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.list/pageSize": page_size +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.list/pageToken": page_token +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.list/parent": parent +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.patch": patch_project_agent_session_entity_type +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.patch/name": name +"/dialogflow:v2/dialogflow.projects.agent.sessions.entityTypes.patch/updateMask": update_mask +"/dialogflow:v2/dialogflow.projects.agent.train": train_project_agent +"/dialogflow:v2/dialogflow.projects.agent.train/parent": parent +"/dialogflow:v2/dialogflow.projects.getAgent": get_project_agent +"/dialogflow:v2/dialogflow.projects.getAgent/parent": parent +"/dialogflow:v2/dialogflow.projects.operations.get": get_project_operation +"/dialogflow:v2/dialogflow.projects.operations.get/name": name +"/dialogflow:v2/fields": fields +"/dialogflow:v2/key": key +"/dialogflow:v2/quotaUser": quota_user "/dialogflow:v2beta1/Agent": agent "/dialogflow:v2beta1/Agent/avatarUri": avatar_uri "/dialogflow:v2beta1/Agent/classificationThreshold": classification_threshold diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 0de65dbbc..cd276e1b1 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20171212' + REVISION = '20180316' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 374063304..8419fcbb6 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -727,7 +727,7 @@ module Google # @return [DateTime] attr_accessor :support_end_date - # + # Trusted Platform Module (TPM) (Read-only) # Corresponds to the JSON property `tpmVersionInfo` # @return [Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo] attr_accessor :tpm_version_info @@ -807,7 +807,7 @@ module Google # @return [DateTime] attr_accessor :create_time - # File downlod URL + # File download URL # Corresponds to the JSON property `downloadUrl` # @return [String] attr_accessor :download_url @@ -860,36 +860,36 @@ module Google end end - # + # Trusted Platform Module (TPM) (Read-only) class TpmVersionInfo include Google::Apis::Core::Hashable - # + # TPM family. # Corresponds to the JSON property `family` # @return [String] attr_accessor :family - # + # TPM firmware version. # Corresponds to the JSON property `firmwareVersion` # @return [String] attr_accessor :firmware_version - # + # TPM manufacturer code. # Corresponds to the JSON property `manufacturer` # @return [String] attr_accessor :manufacturer - # + # TPM specification level. # Corresponds to the JSON property `specLevel` # @return [String] attr_accessor :spec_level - # + # TPM model number. # Corresponds to the JSON property `tpmModel` # @return [String] attr_accessor :tpm_model - # + # Vendor-specific information such as Vendor ID. # Corresponds to the JSON property `vendorSpecific` # @return [String] attr_accessor :vendor_specific @@ -1620,7 +1620,8 @@ module Google class MembersHasMember include Google::Apis::Core::Hashable - # Identifies whether given user is a member or not. + # Identifies whether the given user is a member of the group. Membership can be + # direct or nested. # Corresponds to the JSON property `isMember` # @return [Boolean] attr_accessor :is_member diff --git a/generated/google/apis/admin_directory_v1/service.rb b/generated/google/apis/admin_directory_v1/service.rb index 88efe4f5f..2bef7ee77 100644 --- a/generated/google/apis/admin_directory_v1/service.rb +++ b/generated/google/apis/admin_directory_v1/service.rb @@ -1286,11 +1286,14 @@ module Google execute_or_queue_command(command, &block) end - # Checks Membership of an user within a Group + # Checks whether the given user is a member of the group. Membership can be + # direct or nested. # @param [String] group_key - # Email or immutable Id of the group + # Identifies the group in the API request. The value can be the group's email + # address, group alias, or the unique group ID. # @param [String] member_key - # Email or immutable Id of the member + # Identifies the user member in the API request. The value can be the user's + # primary email address, alias, or unique ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2320,6 +2323,10 @@ module Google # @param [String] customer # The unique ID for the customer's G Suite account. As an account administrator, # you can also use the my_customer alias to represent your account's customer ID. + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Token to specify the next page in the list. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2341,11 +2348,13 @@ module Google # @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_resource_buildings(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_resource_buildings(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'customer/{customer}/resources/buildings', options) command.response_representation = Google::Apis::AdminDirectoryV1::Buildings::Representation command.response_class = Google::Apis::AdminDirectoryV1::Buildings command.params['customer'] = customer unless customer.nil? + command.query['maxResults'] = max_results unless max_results.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? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2570,8 +2579,10 @@ module Google # String query used to filter results. Should be of the form "field operator # value" where field can be any of supported fields and operators can be any of # supported operations. Operators include '=' for exact match and ':' for prefix - # match where applicable. For prefix match, the value should always be followed - # by a *. + # match or HAS match where applicable. For prefix match, the value should always + # be followed by a *. Supported fields include generatedResourceName, name, + # buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH + # AND featureInstances.feature.name:Phone. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2817,6 +2828,8 @@ module Google # @param [String] customer # The unique ID for the customer's G Suite account. As an account administrator, # you can also use the my_customer alias to represent your account's customer ID. + # @param [Fixnum] max_results + # Maximum number of results to return. # @param [String] page_token # Token to specify the next page in the list. # @param [String] fields @@ -2840,11 +2853,12 @@ module Google # @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_resource_features(customer, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_resource_features(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'customer/{customer}/resources/features', options) command.response_representation = Google::Apis::AdminDirectoryV1::Features::Representation command.response_class = Google::Apis::AdminDirectoryV1::Features command.params['customer'] = customer unless customer.nil? + command.query['maxResults'] = max_results unless max_results.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? diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index cfa71423a..c44d6fcea 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20180312' + REVISION = '20180317' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquerydatatransfer_v1/service.rb b/generated/google/apis/bigquerydatatransfer_v1/service.rb index e9dd866c0..9eb05212e 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/service.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/service.rb @@ -161,7 +161,7 @@ module Google execute_or_queue_command(command, &block) end - # Get information about a location. + # Gets information about a location. # @param [String] name # Resource name for the location. # @param [String] fields diff --git a/generated/google/apis/chat_v1.rb b/generated/google/apis/chat_v1.rb index e81592d63..5bbb81878 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Hangouts Chat API # - # + # Create bots and extend the new Hangouts Chat. # # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20180301' + REVISION = '20180316' end end end diff --git a/generated/google/apis/chat_v1/service.rb b/generated/google/apis/chat_v1/service.rb index b5f1c93f4..1f3baf66e 100644 --- a/generated/google/apis/chat_v1/service.rb +++ b/generated/google/apis/chat_v1/service.rb @@ -22,7 +22,7 @@ module Google module ChatV1 # Hangouts Chat API # - # + # Create bots and extend the new Hangouts Chat. # # @example # require 'google/apis/chat_v1' diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index e50bbdeb7..80acb3b8c 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20180314' + REVISION = '20180316' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 76e7230f9..3954c9e2a 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -1969,7 +1969,7 @@ module Google # @return [Fixnum] attr_accessor :account_id - # A list of GMB account which are available to the merchant. + # A list of GMB accounts which are available to the merchant. # Corresponds to the JSON property `gmbAccounts` # @return [Array] attr_accessor :gmb_accounts @@ -2004,7 +2004,7 @@ module Google # @return [String] attr_accessor :name - # Type of the GMB account (User or Business). + # The type of the GMB account (User or Business). # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2540,12 +2540,12 @@ module Google class LiaAboutPageSettings include Google::Apis::Core::Hashable - # The status verification process. + # The status of the verification process for the About page. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # The about URL. + # The URL for the About page. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -2565,7 +2565,7 @@ module Google class LiaCountrySettings include Google::Apis::Core::Hashable - # The about page settings. + # The settings for the About page. # Corresponds to the JSON property `about` # @return [Google::Apis::ContentV2::LiaAboutPageSettings] attr_accessor :about @@ -2581,7 +2581,7 @@ module Google attr_accessor :hosted_local_storefront_active alias_method :hosted_local_storefront_active?, :hosted_local_storefront_active - # LIA inventory settings. + # LIA inventory verification settings. # Corresponds to the JSON property `inventory` # @return [Google::Apis::ContentV2::LiaInventorySettings] attr_accessor :inventory @@ -2616,12 +2616,12 @@ module Google class LiaInventorySettings include Google::Apis::Core::Hashable - # The email of contact which will be contacted during the verification process. + # The email of the contact for the inventory verification process. # Corresponds to the JSON property `inventoryVerificationContactEmail` # @return [String] attr_accessor :inventory_verification_contact_email - # The name of contact which will be contacted during the verification process. + # The name of the contact for the inventory verification process. # Corresponds to the JSON property `inventoryVerificationContactName` # @return [String] attr_accessor :inventory_verification_contact_name @@ -2874,7 +2874,7 @@ module Google # @return [Fixnum] attr_accessor :account_id - # A list of GMB account which are available to the merchant. + # A list of GMB accounts which are available to the merchant. # Corresponds to the JSON property `gmbAccounts` # @return [Array] attr_accessor :gmb_accounts @@ -2907,7 +2907,7 @@ module Google # @return [String] attr_accessor :kind - # The token for the retrieval of the next page of Lia settings. + # The token for the retrieval of the next page of LIA settings. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -3297,7 +3297,8 @@ module Google class OrderCustomer include Google::Apis::Core::Hashable - # Email address of the customer. + # Email address that should be used for order related communications. In certain + # cases this might not be a real users email, but a proxy email. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email @@ -6097,7 +6098,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code @@ -6159,7 +6161,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code @@ -6226,7 +6229,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code @@ -6325,7 +6329,8 @@ module Google # @return [String] attr_accessor :sale_id - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code @@ -6393,7 +6398,8 @@ module Google # @return [String] attr_accessor :sale_id - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code @@ -6466,7 +6472,8 @@ module Google # @return [String] attr_accessor :sale_id - # The identifier of the merchant's store. + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. # Corresponds to the JSON property `storeCode` # @return [String] attr_accessor :store_code diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index 705565889..552e5f9d8 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -1263,7 +1263,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves and updates the Lia settings of multiple accounts in a single + # Retrieves and/or updates the LIA settings of multiple accounts in a single # request. # @param [Google::Apis::ContentV2::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object # @param [Boolean] dry_run @@ -1302,13 +1302,13 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the Lia settings of the account. + # Retrieves the LIA settings of the account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID # of a sub-account of this account. # @param [Fixnum] account_id - # The ID of the account for which to get/update Lia settings. + # The ID of the account for which to get or update LIA settings. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1342,13 +1342,13 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the list of accesable Google My Business accounts. + # Retrieves the list of accessible Google My Business accounts. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID # of a sub-account of this account. # @param [Fixnum] account_id - # The ID of the account for which to retrieve the accessible Google My Business + # The ID of the account for which to retrieve accessible Google My Business # accounts. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1383,11 +1383,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists the Lia settings of the sub-accounts in your Merchant Center account. + # Lists the LIA settings of the sub-accounts in your Merchant Center account. # @param [Fixnum] merchant_id # The ID of the managing account. This must be a multi-client account. # @param [Fixnum] max_results - # The maximum number of Lia settings to return in the response, used for paging. + # The maximum number of LIA settings to return in the response, used for paging. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -1424,13 +1424,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates the Lia settings of the account. This method supports patch semantics. + # Updates the LIA settings of the account. This method supports patch semantics. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID # of a sub-account of this account. # @param [Fixnum] account_id - # The ID of the account for which to get/update Lia settings. + # The ID of the account for which to get or update LIA settings. # @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object # @param [Boolean] dry_run # Flag to run the request in dry-run mode. @@ -1470,7 +1470,7 @@ module Google execute_or_queue_command(command, &block) end - # Requests access to a specified Google By Business account. + # Requests access to a specified Google My Business account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID @@ -1478,7 +1478,7 @@ module Google # @param [Fixnum] account_id # The ID of the account for which GMB access is requested. # @param [String] gmb_email - # The email of the Google My Business Account. + # The email of the Google My Business account. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1513,7 +1513,7 @@ module Google execute_or_queue_command(command, &block) end - # Requests the inventory validation for the specified country. + # Requests inventory validation for the specified country. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID @@ -1522,7 +1522,7 @@ module Google # The ID of the account that manages the order. This cannot be a multi-client # account. # @param [String] country - # The country for which the inventory validation is requested. + # The country for which inventory validation is requested. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1557,7 +1557,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the inventory validation verification for the specified country. + # Sets the inventory verification contract for the specified country. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID @@ -1566,13 +1566,13 @@ module Google # The ID of the account that manages the order. This cannot be a multi-client # account. # @param [String] contact_email - # The email of the inventory check contact. + # The email of the inventory verification contact. # @param [String] contact_name # The name of the inventory verification contact. # @param [String] country - # The country for which the inventory verification is requested. + # The country for which inventory verification is requested. # @param [String] language - # The country for which the inventory verification is requested. + # The language for which inventory verification is requested. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1610,13 +1610,13 @@ module Google execute_or_queue_command(command, &block) end - # Updates the Lia settings of the account. + # Updates the LIA settings of the account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, # then this account must be a multi-client account and accountId must be the ID # of a sub-account of this account. # @param [Fixnum] account_id - # The ID of the account for which to get/update Lia settings. + # The ID of the account for which to get or update LIA settings. # @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object # @param [Boolean] dry_run # Flag to run the request in dry-run mode. @@ -2549,7 +2549,7 @@ module Google # Deletes a store for the given merchant. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [String] store_code @@ -2591,7 +2591,7 @@ module Google # Retrieves information about the given store. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [String] store_code @@ -2632,7 +2632,7 @@ module Google # Creates a store for the given merchant. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [Google::Apis::ContentV2::PosStore] pos_store_object @@ -2676,7 +2676,7 @@ module Google # Submit inventory for the given merchant. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [Google::Apis::ContentV2::PosInventoryRequest] pos_inventory_request_object @@ -2720,7 +2720,7 @@ module Google # Lists the stores of the target merchant. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [String] fields @@ -2758,7 +2758,7 @@ module Google # Submit a sale event for the given merchant. # @param [Fixnum] merchant_id - # The ID of the POS provider. + # The ID of the POS or inventory data provider. # @param [Fixnum] target_merchant_id # The ID of the target merchant. # @param [Google::Apis::ContentV2::PosSaleRequest] pos_sale_request_object diff --git a/generated/google/apis/content_v2sandbox.rb b/generated/google/apis/content_v2sandbox.rb index 1e0430b60..e212077f3 100644 --- a/generated/google/apis/content_v2sandbox.rb +++ b/generated/google/apis/content_v2sandbox.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2sandbox VERSION = 'V2sandbox' - REVISION = '20180111' + REVISION = '20180316' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2sandbox/classes.rb b/generated/google/apis/content_v2sandbox/classes.rb index 2d1818e20..396449fe8 100644 --- a/generated/google/apis/content_v2sandbox/classes.rb +++ b/generated/google/apis/content_v2sandbox/classes.rb @@ -339,7 +339,8 @@ module Google class OrderCustomer include Google::Apis::Core::Hashable - # Email address of the customer. + # Email address that should be used for order related communications. In certain + # cases this might not be a real users email, but a proxy email. # Corresponds to the JSON property `email` # @return [String] attr_accessor :email diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb new file mode 100644 index 000000000..5288961de --- /dev/null +++ b/generated/google/apis/dialogflow_v2.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/dialogflow_v2/service.rb' +require 'google/apis/dialogflow_v2/classes.rb' +require 'google/apis/dialogflow_v2/representations.rb' + +module Google + module Apis + # Dialogflow API + # + # An end-to-end development suite for conversational interfaces (e.g., chatbots, + # voice-powered apps and devices). + # + # @see https://cloud.google.com/dialogflow-enterprise/ + module DialogflowV2 + VERSION = 'V2' + REVISION = '20180317' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb new file mode 100644 index 000000000..79424d46e --- /dev/null +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -0,0 +1,4003 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DialogflowV2 + + # Represents a conversational agent. + class GoogleCloudDialogflowV2Agent + include Google::Apis::Core::Hashable + + # Optional. The URI of the agent's avatar. + # Avatars are used throughout API.AI console and in the self-hosted + # [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + # Corresponds to the JSON property `avatarUri` + # @return [String] + attr_accessor :avatar_uri + + # Optional. 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 fallback intent is be triggered or, if there + # are no fallback intents defined, no intent 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 + + # Required. The default language of the agent as a language tag. See + # [Language Support](https://dialogflow.com/docs/reference/language) for a + # list of the currently supported language codes. + # This field cannot be set by the `Update` method. + # Corresponds to the JSON property `defaultLanguageCode` + # @return [String] + attr_accessor :default_language_code + + # Optional. The description of this 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 name of this agent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. Determines whether this agent should log conversation queries. + # Corresponds to the JSON property `enableLogging` + # @return [Boolean] + attr_accessor :enable_logging + alias_method :enable_logging?, :enable_logging + + # Optional. Determines how intents are detected from user queries. + # Corresponds to the JSON property `matchMode` + # @return [String] + attr_accessor :match_mode + + # Required. The project of this agent. + # Format: `projects/`. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Optional. The list of all languages supported by this agent (except for the + # `default_language_code`). + # Corresponds to the JSON property `supportedLanguageCodes` + # @return [Array] + attr_accessor :supported_language_codes + + # Required. The time zone of this 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) + @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold) + @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_logging = args[:enable_logging] if args.key?(:enable_logging) + @match_mode = args[:match_mode] if args.key?(:match_mode) + @parent = args[:parent] if args.key?(:parent) + @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes) + @time_zone = args[:time_zone] if args.key?(:time_zone) + end + end + + # The request message for EntityTypes.BatchCreateEntities. + class GoogleCloudDialogflowV2BatchCreateEntitiesRequest + include Google::Apis::Core::Hashable + + # Required. The collection of entities to create. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Optional. The language of entity synonyms defined in `entities`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # The request message for EntityTypes.BatchDeleteEntities. + class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest + include Google::Apis::Core::Hashable + + # Required. The canonical `values` of the entities to delete. Note that + # these are not fully-qualified names, i.e. they don't start with + # `projects/`. + # Corresponds to the JSON property `entityValues` + # @return [Array] + attr_accessor :entity_values + + # Optional. The language of entity synonyms defined in `entities`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_values = args[:entity_values] if args.key?(:entity_values) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # The request message for EntityTypes.BatchDeleteEntityTypes. + class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest + include Google::Apis::Core::Hashable + + # Required. The names entity types to delete. All names must point to the + # same agent as `parent`. + # Corresponds to the JSON property `entityTypeNames` + # @return [Array] + attr_accessor :entity_type_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_type_names = args[:entity_type_names] if args.key?(:entity_type_names) + end + end + + # The request message for Intents.BatchDeleteIntents. + class GoogleCloudDialogflowV2BatchDeleteIntentsRequest + include Google::Apis::Core::Hashable + + # Required. The collection of intents to delete. Only intent `name` must be + # filled in. + # Corresponds to the JSON property `intents` + # @return [Array] + attr_accessor :intents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intents = args[:intents] if args.key?(:intents) + end + end + + # The response message for EntityTypes.BatchCreateEntities. + class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest + include Google::Apis::Core::Hashable + + # Required. The collection of new entities to replace the existing entities. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Optional. The language of entity synonyms defined in `entities`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. The mask to control which fields get updated. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @language_code = args[:language_code] if args.key?(:language_code) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # The request message for EntityTypes.BatchUpdateEntityTypes. + class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest + include Google::Apis::Core::Hashable + + # This message is a wrapper around a collection of entity types. + # Corresponds to the JSON property `entityTypeBatchInline` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch] + attr_accessor :entity_type_batch_inline + + # The URI to a Google Cloud Storage file containing entity types to update + # or create. The file format can either be a serialized proto (of + # EntityBatch type) or a JSON object. Note: The URI must start with + # "gs://". + # Corresponds to the JSON property `entityTypeBatchUri` + # @return [String] + attr_accessor :entity_type_batch_uri + + # Optional. The language of entity synonyms defined in `entity_types`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. The mask to control which fields get updated. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_type_batch_inline = args[:entity_type_batch_inline] if args.key?(:entity_type_batch_inline) + @entity_type_batch_uri = args[:entity_type_batch_uri] if args.key?(:entity_type_batch_uri) + @language_code = args[:language_code] if args.key?(:language_code) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # The response message for EntityTypes.BatchUpdateEntityTypes. + class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse + include Google::Apis::Core::Hashable + + # The collection of updated or created entity types. + # Corresponds to the JSON property `entityTypes` + # @return [Array] + attr_accessor :entity_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_types = args[:entity_types] if args.key?(:entity_types) + end + end + + # The request message for Intents.BatchUpdateIntents. + class GoogleCloudDialogflowV2BatchUpdateIntentsRequest + include Google::Apis::Core::Hashable + + # This message is a wrapper around a collection of intents. + # Corresponds to the JSON property `intentBatchInline` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch] + attr_accessor :intent_batch_inline + + # The URI to a Google Cloud Storage file containing intents to update or + # create. The file format can either be a serialized proto (of IntentBatch + # type) or JSON object. Note: The URI must start with "gs://". + # Corresponds to the JSON property `intentBatchUri` + # @return [String] + attr_accessor :intent_batch_uri + + # Optional. The resource view to apply to the returned intent. + # Corresponds to the JSON property `intentView` + # @return [String] + attr_accessor :intent_view + + # Optional. The language of training phrases, parameters and rich messages + # defined in `intents`. If not specified, the agent's default language is + # used. [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. The mask to control which fields get updated. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intent_batch_inline = args[:intent_batch_inline] if args.key?(:intent_batch_inline) + @intent_batch_uri = args[:intent_batch_uri] if args.key?(:intent_batch_uri) + @intent_view = args[:intent_view] if args.key?(:intent_view) + @language_code = args[:language_code] if args.key?(:language_code) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # The response message for Intents.BatchUpdateIntents. + class GoogleCloudDialogflowV2BatchUpdateIntentsResponse + include Google::Apis::Core::Hashable + + # The collection of updated or created intents. + # Corresponds to the JSON property `intents` + # @return [Array] + attr_accessor :intents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intents = args[:intents] if args.key?(:intents) + end + end + + # Represents a context. + class GoogleCloudDialogflowV2Context + include Google::Apis::Core::Hashable + + # Optional. The number of conversational query requests after which the + # context expires. If set to `0` (the default) the context expires + # immediately. Contexts expire automatically after 10 minutes even if there + # are no matching queries. + # Corresponds to the JSON property `lifespanCount` + # @return [Fixnum] + attr_accessor :lifespan_count + + # Required. The unique identifier of the context. Format: + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of parameters associated with this context. + # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for + # syntax. + # 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) + @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # The request to detect user's intent. + class GoogleCloudDialogflowV2DetectIntentRequest + include Google::Apis::Core::Hashable + + # Optional. The natural language speech audio to be processed. This field + # should be populated iff `query_input` is set to an input audio config. + # A single request can contain up to 1 minute of speech audio data. + # Corresponds to the JSON property `inputAudio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :input_audio + + # Represents the query input. It can contain either: + # 1. An audio config which + # instructs the speech recognizer how to process the speech audio. + # 2. A conversational query in the form of text,. + # 3. An event that specifies which intent to trigger. + # Corresponds to the JSON property `queryInput` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput] + attr_accessor :query_input + + # Represents the parameters of the conversational query. + # Corresponds to the JSON property `queryParams` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters] + attr_accessor :query_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_audio = args[:input_audio] if args.key?(:input_audio) + @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 GoogleCloudDialogflowV2DetectIntentResponse + include Google::Apis::Core::Hashable + + # Represents the result of conversational query or event processing. + # Corresponds to the JSON property `queryResult` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult] + attr_accessor :query_result + + # 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 + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `webhookStatus` + # @return [Google::Apis::DialogflowV2::GoogleRpcStatus] + attr_accessor :webhook_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_result = args[:query_result] if args.key?(:query_result) + @response_id = args[:response_id] if args.key?(:response_id) + @webhook_status = args[:webhook_status] if args.key?(:webhook_status) + end + end + + # Represents an entity type. + # Entity types serve as a tool for extracting parameter values from natural + # language queries. + class GoogleCloudDialogflowV2EntityType + include Google::Apis::Core::Hashable + + # Optional. Indicates whether the entity type can be automatically + # expanded. + # Corresponds to the JSON property `autoExpansionMode` + # @return [String] + attr_accessor :auto_expansion_mode + + # Required. The name of the entity. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The collection of entities associated with the entity type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates the kind of entity type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of the entity type. Format: + # `projects//agent/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) + @entities = args[:entities] if args.key?(:entities) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # This message is a wrapper around a collection of entity types. + class GoogleCloudDialogflowV2EntityTypeBatch + include Google::Apis::Core::Hashable + + # A collection of entity types. + # Corresponds to the JSON property `entityTypes` + # @return [Array] + attr_accessor :entity_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_types = args[:entity_types] if args.key?(:entity_types) + end + end + + # Optional. Represents an entity. + class GoogleCloudDialogflowV2EntityTypeEntity + include Google::Apis::Core::Hashable + + # Required. A collection of synonyms. For `KIND_LIST` entity types this + # must contain exactly one synonym equal to `value`. + # Corresponds to the JSON property `synonyms` + # @return [Array] + attr_accessor :synonyms + + # Required. + # For `KIND_MAP` entity types: + # A canonical name 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 + + # Events allow for matching intents by event name instead of the natural + # language input. For instance, input `` can trigger a personalized welcome response. + # The parameter `name` may be used by the agent in the response: + # `“Hello #welcome_event.name! What can I do for you today?”`. + class GoogleCloudDialogflowV2EventInput + include Google::Apis::Core::Hashable + + # Required. The language of this query. See [Language + # Support](https://dialogflow.com/docs/languages) 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 + + # Required. The unique identifier of the event. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of parameters associated with the event. + # 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) + @language_code = args[:language_code] if args.key?(:language_code) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # The request message for Agents.ExportAgent. + class GoogleCloudDialogflowV2ExportAgentRequest + include Google::Apis::Core::Hashable + + # Optional. The Google Cloud Storage URI to export the agent to. + # Note: The URI must start with + # "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 GoogleCloudDialogflowV2ExportAgentResponse + include Google::Apis::Core::Hashable + + # The exported agent. + # Example for how to export an agent to a zip file via a command line: + # curl \ + # 'https://dialogflow.googleapis.com/v2/projects//agent:export'\ + # -X POST \ + # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Accept: application/json' \ + # -H 'Content-Type: application/json' \ + # --compressed \ + # --data-binary '``' \ + # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ + # | base64 --decode > + # 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 + + # The request message for Agents.ImportAgent. + class GoogleCloudDialogflowV2ImportAgentRequest + include Google::Apis::Core::Hashable + + # The agent to import. + # Example for how to import an agent via the command line: + # curl \ + # 'https://dialogflow.googleapis.com/v2/projects//agent:import\ + # -X POST \ + # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Accept: application/json' \ + # -H 'Content-Type: application/json' \ + # --compressed \ + # --data-binary "` + # 'agentContent': '$(cat | base64 -w 0)' + # `" + # 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 Google Cloud Storage file containing the agent to import. + # Note: The URI must start with "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 + + # Instructs the speech recognizer how to process the audio content. + class GoogleCloudDialogflowV2InputAudioConfig + 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 + + # Required. The language of the supplied audio. Dialogflow does not do + # translations. See [Language + # Support](https://dialogflow.com/docs/languages) 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 + + # Optional. The collection of phrase hints which are used to boost accuracy + # of speech recognition. + # Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints) + # for more details. + # Corresponds to the JSON property `phraseHints` + # @return [Array] + attr_accessor :phrase_hints + + # Required. Sample rate (in Hertz) of the audio content sent in the query. + # Refer to [Cloud Speech API documentation](/speech/docs/basics) for more + # details. + # Corresponds to the JSON property `sampleRateHertz` + # @return [Fixnum] + attr_accessor :sample_rate_hertz + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding) + @language_code = args[:language_code] if args.key?(:language_code) + @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) + @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) + end + end + + # Represents an intent. + # Intents convert a number of user expressions or patterns into an action. An + # action is an extraction of a user command or sentence semantics. + class GoogleCloudDialogflowV2Intent + include Google::Apis::Core::Hashable + + # Optional. The name of the action associated with the intent. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Optional. The list of platforms for which the first response will be + # taken from among the messages assigned to the DEFAULT_PLATFORM. + # Corresponds to the JSON property `defaultResponsePlatforms` + # @return [Array] + attr_accessor :default_response_platforms + + # Required. The name of this intent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The collection of event names that trigger the intent. + # If the collection of input contexts is not empty, all of the contexts must + # be present in the active user session for an event to trigger this intent. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + # Optional. Collection of information about all followup intents that have + # name of this intent as a root_name. + # Corresponds to the JSON property `followupIntentInfo` + # @return [Array] + attr_accessor :followup_intent_info + + # Optional. The list of context names required for this intent to be + # triggered. + # Format: `projects//agent/sessions/-/contexts/`. + # Corresponds to the JSON property `inputContextNames` + # @return [Array] + attr_accessor :input_context_names + + # Optional. Indicates whether this is a fallback intent. + # Corresponds to the JSON property `isFallback` + # @return [Boolean] + attr_accessor :is_fallback + alias_method :is_fallback?, :is_fallback + + # Optional. The collection of rich messages corresponding to the + # `Response` field in API.AI console. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + # Optional. Indicates whether Machine Learning is disabled for the intent. + # Note: If `ml_diabled` setting is set to true, then this intent is not + # taken into account during inference in `ML ONLY` match mode. Also, + # auto-markup in the UI is turned off. + # Corresponds to the JSON property `mlDisabled` + # @return [Boolean] + attr_accessor :ml_disabled + alias_method :ml_disabled?, :ml_disabled + + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of this intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of contexts that are activated when the intent + # is matched. Context messages in this collection should not set the + # parameters field. Setting the `lifespan_count` to 0 will reset the context + # when the intent is matched. + # Format: `projects//agent/sessions/-/contexts/`. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # Optional. The collection of parameters associated with the intent. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # The unique identifier of the parent intent in the chain of followup + # intents. + # It identifies the parent followup intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `parentFollowupIntentName` + # @return [String] + attr_accessor :parent_followup_intent_name + + # Optional. The priority of this intent. Higher numbers represent higher + # priorities. Zero or negative numbers mean that the intent is disabled. + # Corresponds to the JSON property `priority` + # @return [Fixnum] + attr_accessor :priority + + # Optional. Indicates whether to delete all contexts in the current + # session when this intent is matched. + # Corresponds to the JSON property `resetContexts` + # @return [Boolean] + attr_accessor :reset_contexts + alias_method :reset_contexts?, :reset_contexts + + # The unique identifier of the root intent in the chain of followup intents. + # It identifies the correct followup intents chain for this intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `rootFollowupIntentName` + # @return [String] + attr_accessor :root_followup_intent_name + + # Optional. The collection of examples/templates that the agent is + # trained on. + # Corresponds to the JSON property `trainingPhrases` + # @return [Array] + attr_accessor :training_phrases + + # Required. Indicates whether webhooks are enabled for the intent. + # Corresponds to the JSON property `webhookState` + # @return [String] + attr_accessor :webhook_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms) + @display_name = args[:display_name] if args.key?(:display_name) + @events = args[:events] if args.key?(:events) + @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info) + @input_context_names = args[:input_context_names] if args.key?(:input_context_names) + @is_fallback = args[:is_fallback] if args.key?(:is_fallback) + @messages = args[:messages] if args.key?(:messages) + @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled) + @name = args[:name] if args.key?(:name) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @parameters = args[:parameters] if args.key?(:parameters) + @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name) + @priority = args[:priority] if args.key?(:priority) + @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) + @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name) + @training_phrases = args[:training_phrases] if args.key?(:training_phrases) + @webhook_state = args[:webhook_state] if args.key?(:webhook_state) + end + end + + # This message is a wrapper around a collection of intents. + class GoogleCloudDialogflowV2IntentBatch + include Google::Apis::Core::Hashable + + # A collection of intents. + # Corresponds to the JSON property `intents` + # @return [Array] + attr_accessor :intents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intents = args[:intents] if args.key?(:intents) + end + end + + # Represents a single followup intent in the chain. + class GoogleCloudDialogflowV2IntentFollowupIntentInfo + include Google::Apis::Core::Hashable + + # The unique identifier of the followup intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `followupIntentName` + # @return [String] + attr_accessor :followup_intent_name + + # The unique identifier of the followup intent parent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `parentFollowupIntentName` + # @return [String] + attr_accessor :parent_followup_intent_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @followup_intent_name = args[:followup_intent_name] if args.key?(:followup_intent_name) + @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name) + end + end + + # Corresponds to the `Response` field in API.AI console. + class GoogleCloudDialogflowV2IntentMessage + include Google::Apis::Core::Hashable + + # The basic card message. Useful for displaying information. + # Corresponds to the JSON property `basicCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard] + attr_accessor :basic_card + + # The card response message. + # Corresponds to the JSON property `card` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCard] + attr_accessor :card + + # The card for presenting a carousel of options to select from. + # Corresponds to the JSON property `carouselSelect` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelect] + attr_accessor :carousel_select + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage] + attr_accessor :image + + # The suggestion chip message that allows the user to jump out to the app + # or website associated with this agent. + # Corresponds to the JSON property `linkOutSuggestion` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion] + attr_accessor :link_out_suggestion + + # The card for presenting a list of options to select from. + # Corresponds to the JSON property `listSelect` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelect] + attr_accessor :list_select + + # The response containing a custom payload. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Optional. The platform that this message is intended for. + # Corresponds to the JSON property `platform` + # @return [String] + attr_accessor :platform + + # The quick replies response message. + # Corresponds to the JSON property `quickReplies` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageQuickReplies] + attr_accessor :quick_replies + + # The collection of simple response candidates. + # This message in `QueryResult.fulfillment_messages` and + # `WebhookResponse.fulfillment_messages` should contain only one + # `SimpleResponse`. + # Corresponds to the JSON property `simpleResponses` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponses] + attr_accessor :simple_responses + + # The collection of suggestions. + # Corresponds to the JSON property `suggestions` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestions] + attr_accessor :suggestions + + # The text response message. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageText] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @basic_card = args[:basic_card] if args.key?(:basic_card) + @card = args[:card] if args.key?(:card) + @carousel_select = args[:carousel_select] if args.key?(:carousel_select) + @image = args[:image] if args.key?(:image) + @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion) + @list_select = args[:list_select] if args.key?(:list_select) + @payload = args[:payload] if args.key?(:payload) + @platform = args[:platform] if args.key?(:platform) + @quick_replies = args[:quick_replies] if args.key?(:quick_replies) + @simple_responses = args[:simple_responses] if args.key?(:simple_responses) + @suggestions = args[:suggestions] if args.key?(:suggestions) + @text = args[:text] if args.key?(:text) + end + end + + # The basic card message. Useful for displaying information. + class GoogleCloudDialogflowV2IntentMessageBasicCard + include Google::Apis::Core::Hashable + + # Optional. The collection of card buttons. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Required, unless image is present. The body text of the card. + # Corresponds to the JSON property `formattedText` + # @return [String] + attr_accessor :formatted_text + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage] + attr_accessor :image + + # Optional. The subtitle of the card. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Optional. The title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @formatted_text = args[:formatted_text] if args.key?(:formatted_text) + @image = args[:image] if args.key?(:image) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # The button object that appears at the bottom of a card. + class GoogleCloudDialogflowV2IntentMessageBasicCardButton + include Google::Apis::Core::Hashable + + # Opens the given URI. + # Corresponds to the JSON property `openUriAction` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction] + attr_accessor :open_uri_action + + # Required. The title of the button. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action) + @title = args[:title] if args.key?(:title) + end + end + + # Opens the given URI. + class GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction + include Google::Apis::Core::Hashable + + # Required. The HTTP or HTTPS scheme URI. + # 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) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The card response message. + class GoogleCloudDialogflowV2IntentMessageCard + include Google::Apis::Core::Hashable + + # Optional. The collection of card buttons. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Optional. The public URI to an image file for the card. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + # Optional. The subtitle of the card. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Optional. The title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @image_uri = args[:image_uri] if args.key?(:image_uri) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # Optional. Contains information about a button. + class GoogleCloudDialogflowV2IntentMessageCardButton + include Google::Apis::Core::Hashable + + # Optional. The text to send back to the Dialogflow API or a URI to + # open. + # Corresponds to the JSON property `postback` + # @return [String] + attr_accessor :postback + + # Optional. The text to show on the button. + # 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) + @postback = args[:postback] if args.key?(:postback) + @text = args[:text] if args.key?(:text) + end + end + + # The card for presenting a carousel of options to select from. + class GoogleCloudDialogflowV2IntentMessageCarouselSelect + include Google::Apis::Core::Hashable + + # Required. Carousel items. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + end + end + + # An item in the carousel. + class GoogleCloudDialogflowV2IntentMessageCarouselSelectItem + include Google::Apis::Core::Hashable + + # Optional. The body text of the card. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage] + attr_accessor :image + + # Additional info about the select item for when it is triggered in a + # dialog. + # Corresponds to the JSON property `info` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo] + attr_accessor :info + + # Required. Title of the carousel item. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @info = args[:info] if args.key?(:info) + @title = args[:title] if args.key?(:title) + end + end + + # The image response message. + class GoogleCloudDialogflowV2IntentMessageImage + include Google::Apis::Core::Hashable + + # Optional. A text description of the image to be used for accessibility, + # e.g., screen readers. + # Corresponds to the JSON property `accessibilityText` + # @return [String] + attr_accessor :accessibility_text + + # Optional. The public URI to an image file. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # The suggestion chip message that allows the user to jump out to the app + # or website associated with this agent. + class GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion + include Google::Apis::Core::Hashable + + # Required. The name of the app or site this chip is linking to. + # Corresponds to the JSON property `destinationName` + # @return [String] + attr_accessor :destination_name + + # Required. The URI of the app or site to open when the user taps the + # suggestion chip. + # 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) + @destination_name = args[:destination_name] if args.key?(:destination_name) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The card for presenting a list of options to select from. + class GoogleCloudDialogflowV2IntentMessageListSelect + include Google::Apis::Core::Hashable + + # Required. List items. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Optional. The overall title of the list. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @title = args[:title] if args.key?(:title) + end + end + + # An item in the list. + class GoogleCloudDialogflowV2IntentMessageListSelectItem + include Google::Apis::Core::Hashable + + # Optional. The main text describing the item. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage] + attr_accessor :image + + # Additional info about the select item for when it is triggered in a + # dialog. + # Corresponds to the JSON property `info` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo] + attr_accessor :info + + # Required. The title of the list item. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @info = args[:info] if args.key?(:info) + @title = args[:title] if args.key?(:title) + end + end + + # The quick replies response message. + class GoogleCloudDialogflowV2IntentMessageQuickReplies + include Google::Apis::Core::Hashable + + # Optional. The collection of quick replies. + # Corresponds to the JSON property `quickReplies` + # @return [Array] + attr_accessor :quick_replies + + # Optional. The title of the collection of quick replies. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quick_replies = args[:quick_replies] if args.key?(:quick_replies) + @title = args[:title] if args.key?(:title) + end + end + + # Additional info about the select item for when it is triggered in a + # dialog. + class GoogleCloudDialogflowV2IntentMessageSelectItemInfo + include Google::Apis::Core::Hashable + + # Required. A unique key that will be sent back to the agent if this + # response is given. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Optional. A list of synonyms that can also be used to trigger this + # item in dialog. + # Corresponds to the JSON property `synonyms` + # @return [Array] + attr_accessor :synonyms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @synonyms = args[:synonyms] if args.key?(:synonyms) + end + end + + # The simple response message containing speech or text. + class GoogleCloudDialogflowV2IntentMessageSimpleResponse + include Google::Apis::Core::Hashable + + # Optional. The text to display. + # Corresponds to the JSON property `displayText` + # @return [String] + attr_accessor :display_text + + # One of text_to_speech or ssml must be provided. Structured spoken + # response to the user in the SSML format. Mutually exclusive with + # text_to_speech. + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # One of text_to_speech or ssml must be provided. The plain text of the + # speech output. Mutually exclusive with ssml. + # Corresponds to the JSON property `textToSpeech` + # @return [String] + attr_accessor :text_to_speech + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_text = args[:display_text] if args.key?(:display_text) + @ssml = args[:ssml] if args.key?(:ssml) + @text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech) + end + end + + # The collection of simple response candidates. + # This message in `QueryResult.fulfillment_messages` and + # `WebhookResponse.fulfillment_messages` should contain only one + # `SimpleResponse`. + class GoogleCloudDialogflowV2IntentMessageSimpleResponses + include Google::Apis::Core::Hashable + + # Required. The list of simple responses. + # Corresponds to the JSON property `simpleResponses` + # @return [Array] + attr_accessor :simple_responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @simple_responses = args[:simple_responses] if args.key?(:simple_responses) + end + end + + # The suggestion chip message that the user can tap to quickly post a reply + # to the conversation. + class GoogleCloudDialogflowV2IntentMessageSuggestion + include Google::Apis::Core::Hashable + + # Required. The text shown the in the suggestion chip. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @title = args[:title] if args.key?(:title) + end + end + + # The collection of suggestions. + class GoogleCloudDialogflowV2IntentMessageSuggestions + include Google::Apis::Core::Hashable + + # Required. The list of suggested replies. + # Corresponds to the JSON property `suggestions` + # @return [Array] + attr_accessor :suggestions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @suggestions = args[:suggestions] if args.key?(:suggestions) + end + end + + # The text response message. + class GoogleCloudDialogflowV2IntentMessageText + include Google::Apis::Core::Hashable + + # Optional. The collection of the agent's 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) + @text = args[:text] if args.key?(:text) + end + end + + # Represents intent parameters. + class GoogleCloudDialogflowV2IntentParameter + include Google::Apis::Core::Hashable + + # Optional. The default value to use when the `value` yields an empty + # result. + # Default values can be extracted from contexts by using the following + # syntax: `#context_name.parameter_name`. + # Corresponds to the JSON property `defaultValue` + # @return [String] + attr_accessor :default_value + + # Required. The name of the parameter. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The name of the entity type, prefixed with `@`, that + # describes values of the parameter. If the parameter is + # required, this must be provided. + # Corresponds to the JSON property `entityTypeDisplayName` + # @return [String] + attr_accessor :entity_type_display_name + + # Optional. 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 + + # Optional. Indicates whether the parameter is required. That is, + # whether the intent cannot be completed without collecting the parameter + # value. + # Corresponds to the JSON property `mandatory` + # @return [Boolean] + attr_accessor :mandatory + alias_method :mandatory?, :mandatory + + # The unique identifier of this parameter. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of prompts that the agent can present to the + # user in order to collect value for the parameter. + # Corresponds to the JSON property `prompts` + # @return [Array] + attr_accessor :prompts + + # Optional. The definition of the parameter value. It can be: + # - a constant string, + # - a parameter value defined as `$parameter_name`, + # - an original parameter value defined as `$parameter_name.original`, + # - a parameter value from some context defined as + # `#context_name.parameter_name`. + # 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) + @default_value = args[:default_value] if args.key?(:default_value) + @display_name = args[:display_name] if args.key?(:display_name) + @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name) + @is_list = args[:is_list] if args.key?(:is_list) + @mandatory = args[:mandatory] if args.key?(:mandatory) + @name = args[:name] if args.key?(:name) + @prompts = args[:prompts] if args.key?(:prompts) + @value = args[:value] if args.key?(:value) + end + end + + # Represents an example or template that the agent is trained on. + class GoogleCloudDialogflowV2IntentTrainingPhrase + include Google::Apis::Core::Hashable + + # Required. The unique identifier of this training phrase. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The collection of training phrase parts (can be annotated). + # Fields: `entity_type`, `alias` and `user_defined` should be populated + # only for the annotated parts of the training phrase. + # Corresponds to the JSON property `parts` + # @return [Array] + attr_accessor :parts + + # Optional. Indicates how many times this example or template was added to + # the intent. Each time a developer adds an existing sample by editing an + # intent or training, this counter is increased. + # Corresponds to the JSON property `timesAddedCount` + # @return [Fixnum] + attr_accessor :times_added_count + + # Required. The type of the training phrase. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parts = args[:parts] if args.key?(:parts) + @times_added_count = args[:times_added_count] if args.key?(:times_added_count) + @type = args[:type] if args.key?(:type) + end + end + + # Represents a part of a training phrase. + class GoogleCloudDialogflowV2IntentTrainingPhrasePart + include Google::Apis::Core::Hashable + + # Optional. The parameter name for the value extracted from the + # annotated part of the example. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + # Optional. The entity type name prefixed with `@`. This field is + # required for the annotated part of the text and applies only to + # examples. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # Required. The text corresponding to the example or template, + # if there are no annotations. For + # annotated examples, it is the text for one of the example's parts. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # Optional. Indicates whether the text was manually annotated by the + # developer. + # Corresponds to the JSON property `userDefined` + # @return [Boolean] + attr_accessor :user_defined + alias_method :user_defined?, :user_defined + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alias = args[:alias] if args.key?(:alias) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @text = args[:text] if args.key?(:text) + @user_defined = args[:user_defined] if args.key?(:user_defined) + end + end + + # The response message for Contexts.ListContexts. + class GoogleCloudDialogflowV2ListContextsResponse + include Google::Apis::Core::Hashable + + # The list of contexts. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `contexts` + # @return [Array] + attr_accessor :contexts + + # 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) + @contexts = args[:contexts] if args.key?(:contexts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for EntityTypes.ListEntityTypes. + class GoogleCloudDialogflowV2ListEntityTypesResponse + include Google::Apis::Core::Hashable + + # The list of agent 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 Intents.ListIntents. + class GoogleCloudDialogflowV2ListIntentsResponse + include Google::Apis::Core::Hashable + + # The list of agent 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 SessionEntityTypes.ListSessionEntityTypes. + class GoogleCloudDialogflowV2ListSessionEntityTypesResponse + 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 + + # Represents the contents of the original request that was passed to + # the `[Streaming]DetectIntent` call. + class GoogleCloudDialogflowV2OriginalDetectIntentRequest + include Google::Apis::Core::Hashable + + # Optional. This field is set to the value of `QueryParameters.payload` field + # passed in the request. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # The source of this request, e.g., `google`, `facebook`, `slack`. It is set + # by Dialogflow-owned servers. Possible values of this field correspond to + # Intent.Message.Platform. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @payload = args[:payload] if args.key?(:payload) + @source = args[:source] if args.key?(:source) + end + end + + # Represents the query input. It can contain either: + # 1. An audio config which + # instructs the speech recognizer how to process the speech audio. + # 2. A conversational query in the form of text,. + # 3. An event that specifies which intent to trigger. + class GoogleCloudDialogflowV2QueryInput + include Google::Apis::Core::Hashable + + # Instructs the speech recognizer how to process the audio content. + # Corresponds to the JSON property `audioConfig` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig] + attr_accessor :audio_config + + # Events allow for matching intents by event name instead of the natural + # language input. For instance, input `` can trigger a personalized welcome response. + # The parameter `name` may be used by the agent in the response: + # `“Hello #welcome_event.name! What can I do for you today?”`. + # Corresponds to the JSON property `event` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput] + attr_accessor :event + + # Represents the natural language text to be processed. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_config = args[:audio_config] if args.key?(:audio_config) + @event = args[:event] if args.key?(:event) + @text = args[:text] if args.key?(:text) + end + end + + # Represents the parameters of the conversational query. + class GoogleCloudDialogflowV2QueryParameters + include Google::Apis::Core::Hashable + + # Optional. The collection of contexts to be activated before this query is + # executed. + # Corresponds to the JSON property `contexts` + # @return [Array] + attr_accessor :contexts + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing 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::DialogflowV2::GoogleTypeLatLng] + attr_accessor :geo_location + + # Optional. 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 + + # Optional. Specifies whether to delete all contexts in the current session + # before the new ones are activated. + # Corresponds to the JSON property `resetContexts` + # @return [Boolean] + attr_accessor :reset_contexts + alias_method :reset_contexts?, :reset_contexts + + # Optional. The collection of session entity types to replace or extend + # developer entities with for this query only. The entity synonyms apply + # to all languages. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + + # Optional. 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 + # agent settings is used. + # 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) + @contexts = args[:contexts] if args.key?(:contexts) + @geo_location = args[:geo_location] if args.key?(:geo_location) + @payload = args[:payload] if args.key?(:payload) + @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) + @time_zone = args[:time_zone] if args.key?(:time_zone) + end + end + + # Represents the result of conversational query or event processing. + class GoogleCloudDialogflowV2QueryResult + include Google::Apis::Core::Hashable + + # The action name from the matched intent. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # This field is set to: + # - `false` if the matched intent has required parameters and not all of + # the required parameter values have been collected. + # - `true` if all required parameter values have been collected, or if the + # matched intent doesn't contain any required parameters. + # Corresponds to the JSON property `allRequiredParamsPresent` + # @return [Boolean] + attr_accessor :all_required_params_present + alias_method :all_required_params_present?, :all_required_params_present + + # The free-form diagnostic info. For example, this field + # could contain webhook call latency. + # Corresponds to the JSON property `diagnosticInfo` + # @return [Hash] + attr_accessor :diagnostic_info + + # The collection of rich messages to present to the user. + # Corresponds to the JSON property `fulfillmentMessages` + # @return [Array] + attr_accessor :fulfillment_messages + + # The text to be pronounced to the user or shown on the screen. + # Corresponds to the JSON property `fulfillmentText` + # @return [String] + attr_accessor :fulfillment_text + + # Represents an intent. + # Intents convert a number of user expressions or patterns into an action. An + # action is an extraction of a user command or sentence semantics. + # Corresponds to the JSON property `intent` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] + attr_accessor :intent + + # The intent detection confidence. Values range from 0.0 + # (completely uncertain) to 1.0 (completely certain). + # 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://dialogflow.com/docs/reference/language) + # for a list of the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The collection of output contexts. If applicable, + # `output_contexts.parameters` contains entries with name + # `.original` containing the original parameter values + # before the query. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # The collection of extracted parameters. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # The original conversational query text: + # - If natural language text was provided as input, `query_text` contains + # a copy of the input. + # - If natural language speech audio was provided as input, `query_text` + # contains the speech recognition result. If speech recognizer produced + # multiple alternatives, a particular one is picked. + # - If an event was provided as input, `query_text` is not set. + # Corresponds to the JSON property `queryText` + # @return [String] + attr_accessor :query_text + + # The Speech recognition confidence between 0.0 and 1.0. A higher number + # indicates an estimated greater likelihood that the recognized words are + # correct. The default of 0.0 is a sentinel value indicating that confidence + # was not set. + # You should not rely on this field as it isn't guaranteed to be accurate, or + # even set. In particular this field isn't set in Webhook calls and for + # StreamingDetectIntent since the streaming endpoint has separate confidence + # estimates per portion of the audio in StreamingRecognitionResult. + # Corresponds to the JSON property `speechRecognitionConfidence` + # @return [Float] + attr_accessor :speech_recognition_confidence + + # If the query was fulfilled by a webhook call, this field is set to the + # value of the `payload` field returned in the webhook response. + # Corresponds to the JSON property `webhookPayload` + # @return [Hash] + attr_accessor :webhook_payload + + # If the query was fulfilled by a webhook call, this field is set to the + # value of the `source` field returned in the webhook response. + # Corresponds to the JSON property `webhookSource` + # @return [String] + attr_accessor :webhook_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present) + @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info) + @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) + @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) + @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) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @parameters = args[:parameters] if args.key?(:parameters) + @query_text = args[:query_text] if args.key?(:query_text) + @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence) + @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload) + @webhook_source = args[:webhook_source] if args.key?(:webhook_source) + end + end + + # The request message for Agents.RestoreAgent. + class GoogleCloudDialogflowV2RestoreAgentRequest + include Google::Apis::Core::Hashable + + # The agent to restore. + # Example for how to restore an agent via the command line: + # curl \ + # 'https://dialogflow.googleapis.com/v2/projects//agent:restore\ + # -X POST \ + # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Accept: application/json' \ + # -H 'Content-Type: application/json' \ + # --compressed \ + # --data-binary "` + # 'agentContent': '$(cat | base64 -w 0)' + # `" \ + # 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 Google Cloud Storage file containing the agent to restore. + # Note: The URI must start with "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 + + # The response message for Agents.SearchAgents. + class GoogleCloudDialogflowV2SearchAgentsResponse + 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 + + # Represents a session entity type. + # Extends or replaces a developer entity type at the user session level (we + # refer to the entity types defined at the agent level as "developer entity + # types"). + # Note: session entity types apply to all queries, regardless of the language. + class GoogleCloudDialogflowV2SessionEntityType + include Google::Apis::Core::Hashable + + # Required. The collection of entities associated with this session entity + # type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates whether the additional data should override or + # supplement the developer entity type definition. + # Corresponds to the JSON property `entityOverrideMode` + # @return [String] + attr_accessor :entity_override_mode + + # Required. The unique identifier of this session entity type. Format: + # `projects//agent/sessions//entityTypes/`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # 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 the natural language text to be processed. + class GoogleCloudDialogflowV2TextInput + include Google::Apis::Core::Hashable + + # Required. The language of this conversational query. See [Language + # Support](https://dialogflow.com/docs/languages) 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 + + # Required. The UTF-8 encoded natural language text to be processed. + # Text length must not exceed 256 bytes. + # 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) + @language_code = args[:language_code] if args.key?(:language_code) + @text = args[:text] if args.key?(:text) + end + end + + # The request message for Agents.TrainAgent. + class GoogleCloudDialogflowV2TrainAgentRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The request message for a webhook call. + class GoogleCloudDialogflowV2WebhookRequest + include Google::Apis::Core::Hashable + + # Represents the contents of the original request that was passed to + # the `[Streaming]DetectIntent` call. + # Corresponds to the JSON property `originalDetectIntentRequest` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OriginalDetectIntentRequest] + attr_accessor :original_detect_intent_request + + # Represents the result of conversational query or event processing. + # Corresponds to the JSON property `queryResult` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult] + attr_accessor :query_result + + # The unique identifier of the response. Contains the same value as + # `[Streaming]DetectIntentResponse.response_id`. + # Corresponds to the JSON property `responseId` + # @return [String] + attr_accessor :response_id + + # The unique identifier of detectIntent request session. + # Can be used to identify end-user inside webhook implementation. + # Format: `projects//agent/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) + @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request) + @query_result = args[:query_result] if args.key?(:query_result) + @response_id = args[:response_id] if args.key?(:response_id) + @session = args[:session] if args.key?(:session) + end + end + + # The response message for a webhook call. + class GoogleCloudDialogflowV2WebhookResponse + include Google::Apis::Core::Hashable + + # Events allow for matching intents by event name instead of the natural + # language input. For instance, input `` can trigger a personalized welcome response. + # The parameter `name` may be used by the agent in the response: + # `“Hello #welcome_event.name! What can I do for you today?”`. + # Corresponds to the JSON property `followupEventInput` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput] + attr_accessor :followup_event_input + + # Optional. The collection of rich messages to present to the user. This + # value is passed directly to `QueryResult.fulfillment_messages`. + # Corresponds to the JSON property `fulfillmentMessages` + # @return [Array] + attr_accessor :fulfillment_messages + + # Optional. The text to be shown on the screen. This value is passed directly + # to `QueryResult.fulfillment_text`. + # Corresponds to the JSON property `fulfillmentText` + # @return [String] + attr_accessor :fulfillment_text + + # Optional. The collection of output contexts. This value is passed directly + # to `QueryResult.output_contexts`. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # Optional. This value is passed directly to `QueryResult.webhook_payload`. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Optional. This value is passed directly to `QueryResult.webhook_source`. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input) + @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) + @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @payload = args[:payload] if args.key?(:payload) + @source = args[:source] if args.key?(:source) + end + end + + # The response message for EntityTypes.BatchUpdateEntityTypes. + class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse + include Google::Apis::Core::Hashable + + # The collection of updated or created entity types. + # Corresponds to the JSON property `entityTypes` + # @return [Array] + attr_accessor :entity_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_types = args[:entity_types] if args.key?(:entity_types) + end + end + + # The response message for Intents.BatchUpdateIntents. + class GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse + include Google::Apis::Core::Hashable + + # The collection of updated or created intents. + # Corresponds to the JSON property `intents` + # @return [Array] + attr_accessor :intents + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @intents = args[:intents] if args.key?(:intents) + end + end + + # Represents a context. + class GoogleCloudDialogflowV2beta1Context + include Google::Apis::Core::Hashable + + # Optional. The number of conversational query requests after which the + # context expires. If set to `0` (the default) the context expires + # immediately. Contexts expire automatically after 10 minutes even if there + # are no matching queries. + # Corresponds to the JSON property `lifespanCount` + # @return [Fixnum] + attr_accessor :lifespan_count + + # Required. The unique identifier of the context. Format: + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of parameters associated with this context. + # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for + # syntax. + # 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) + @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # Represents an entity type. + # Entity types serve as a tool for extracting parameter values from natural + # language queries. + class GoogleCloudDialogflowV2beta1EntityType + include Google::Apis::Core::Hashable + + # Optional. Indicates whether the entity type can be automatically + # expanded. + # Corresponds to the JSON property `autoExpansionMode` + # @return [String] + attr_accessor :auto_expansion_mode + + # Required. The name of the entity. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The collection of entities associated with the entity type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates the kind of entity type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of the entity type. Format: + # `projects//agent/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) + @entities = args[:entities] if args.key?(:entities) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + end + end + + # Optional. Represents an entity. + class GoogleCloudDialogflowV2beta1EntityTypeEntity + include Google::Apis::Core::Hashable + + # Required. A collection of synonyms. For `KIND_LIST` entity types this + # must contain exactly one synonym equal to `value`. + # Corresponds to the JSON property `synonyms` + # @return [Array] + attr_accessor :synonyms + + # Required. + # For `KIND_MAP` entity types: + # A canonical name 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 + + # Events allow for matching intents by event name instead of the natural + # language input. For instance, input `` can trigger a personalized welcome response. + # The parameter `name` may be used by the agent in the response: + # `“Hello #welcome_event.name! What can I do for you today?”`. + class GoogleCloudDialogflowV2beta1EventInput + include Google::Apis::Core::Hashable + + # Required. The language of this query. See [Language + # Support](https://dialogflow.com/docs/languages) 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 + + # Required. The unique identifier of the event. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of parameters associated with the event. + # 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) + @language_code = args[:language_code] if args.key?(:language_code) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + end + end + + # The response message for Agents.ExportAgent. + class GoogleCloudDialogflowV2beta1ExportAgentResponse + include Google::Apis::Core::Hashable + + # The exported agent. + # Example for how to export an agent to a zip file via a command line: + # curl \ + # 'https://dialogflow.googleapis.com/v2beta1/projects//agent: + # export'\ + # -X POST \ + # -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + # -H 'Accept: application/json' \ + # -H 'Content-Type: application/json' \ + # --compressed \ + # --data-binary '``' \ + # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ + # | base64 --decode > + # 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 + + # Represents an intent. + # Intents convert a number of user expressions or patterns into an action. An + # action is an extraction of a user command or sentence semantics. + class GoogleCloudDialogflowV2beta1Intent + include Google::Apis::Core::Hashable + + # Optional. The name of the action associated with the intent. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Optional. The list of platforms for which the first response will be + # taken from among the messages assigned to the DEFAULT_PLATFORM. + # Corresponds to the JSON property `defaultResponsePlatforms` + # @return [Array] + attr_accessor :default_response_platforms + + # Required. The name of this intent. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The collection of event names that trigger the intent. + # If the collection of input contexts is not empty, all of the contexts must + # be present in the active user session for an event to trigger this intent. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + + # Optional. Collection of information about all followup intents that have + # name of this intent as a root_name. + # Corresponds to the JSON property `followupIntentInfo` + # @return [Array] + attr_accessor :followup_intent_info + + # Optional. The list of context names required for this intent to be + # triggered. + # Format: `projects//agent/sessions/-/contexts/`. + # Corresponds to the JSON property `inputContextNames` + # @return [Array] + attr_accessor :input_context_names + + # Optional. Indicates whether this is a fallback intent. + # Corresponds to the JSON property `isFallback` + # @return [Boolean] + attr_accessor :is_fallback + alias_method :is_fallback?, :is_fallback + + # Optional. The collection of rich messages corresponding to the + # `Response` field in API.AI console. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + # Optional. Indicates whether Machine Learning is disabled for the intent. + # Note: If `ml_disabled` setting is set to true, then this intent is not + # taken into account during inference in `ML ONLY` match mode. Also, + # auto-markup in the UI is turned off. + # Corresponds to the JSON property `mlDisabled` + # @return [Boolean] + attr_accessor :ml_disabled + alias_method :ml_disabled?, :ml_disabled + + # Optional. Indicates whether Machine Learning is enabled for the intent. + # Note: If `ml_enabled` setting is set to false, then this intent is not + # taken into account during inference in `ML ONLY` match mode. Also, + # auto-markup in the UI is turned off. + # DEPRECATED! Please use `ml_disabled` field instead. + # NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the + # default value is determined as follows: + # - Before April 15th, 2018 the default is: + # ml_enabled = false / ml_disabled = true. + # - After April 15th, 2018 the default is: + # ml_enabled = true / ml_disabled = false. + # Corresponds to the JSON property `mlEnabled` + # @return [Boolean] + attr_accessor :ml_enabled + alias_method :ml_enabled?, :ml_enabled + + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of this intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of contexts that are activated when the intent + # is matched. Context messages in this collection should not set the + # parameters field. Setting the `lifespan_count` to 0 will reset the context + # when the intent is matched. + # Format: `projects//agent/sessions/-/contexts/`. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # Optional. The collection of parameters associated with the intent. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # The unique identifier of the parent intent in the chain of followup + # intents. + # It identifies the parent followup intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `parentFollowupIntentName` + # @return [String] + attr_accessor :parent_followup_intent_name + + # Optional. The priority of this intent. Higher numbers represent higher + # priorities. Zero or negative numbers mean that the intent is disabled. + # Corresponds to the JSON property `priority` + # @return [Fixnum] + attr_accessor :priority + + # Optional. Indicates whether to delete all contexts in the current + # session when this intent is matched. + # Corresponds to the JSON property `resetContexts` + # @return [Boolean] + attr_accessor :reset_contexts + alias_method :reset_contexts?, :reset_contexts + + # The unique identifier of the root intent in the chain of followup intents. + # It identifies the correct followup intents chain for this intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `rootFollowupIntentName` + # @return [String] + attr_accessor :root_followup_intent_name + + # Optional. The collection of examples/templates that the agent is + # trained on. + # Corresponds to the JSON property `trainingPhrases` + # @return [Array] + attr_accessor :training_phrases + + # Required. Indicates whether webhooks are enabled for the intent. + # Corresponds to the JSON property `webhookState` + # @return [String] + attr_accessor :webhook_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms) + @display_name = args[:display_name] if args.key?(:display_name) + @events = args[:events] if args.key?(:events) + @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info) + @input_context_names = args[:input_context_names] if args.key?(:input_context_names) + @is_fallback = args[:is_fallback] if args.key?(:is_fallback) + @messages = args[:messages] if args.key?(:messages) + @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled) + @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled) + @name = args[:name] if args.key?(:name) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @parameters = args[:parameters] if args.key?(:parameters) + @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name) + @priority = args[:priority] if args.key?(:priority) + @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts) + @root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name) + @training_phrases = args[:training_phrases] if args.key?(:training_phrases) + @webhook_state = args[:webhook_state] if args.key?(:webhook_state) + end + end + + # Represents a single followup intent in the chain. + class GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo + include Google::Apis::Core::Hashable + + # The unique identifier of the followup intent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `followupIntentName` + # @return [String] + attr_accessor :followup_intent_name + + # The unique identifier of the followup intent parent. + # Format: `projects//agent/intents/`. + # Corresponds to the JSON property `parentFollowupIntentName` + # @return [String] + attr_accessor :parent_followup_intent_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @followup_intent_name = args[:followup_intent_name] if args.key?(:followup_intent_name) + @parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name) + end + end + + # Corresponds to the `Response` field in API.AI console. + class GoogleCloudDialogflowV2beta1IntentMessage + include Google::Apis::Core::Hashable + + # The basic card message. Useful for displaying information. + # Corresponds to the JSON property `basicCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard] + attr_accessor :basic_card + + # The card response message. + # Corresponds to the JSON property `card` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard] + attr_accessor :card + + # The card for presenting a carousel of options to select from. + # Corresponds to the JSON property `carouselSelect` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect] + attr_accessor :carousel_select + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # The suggestion chip message that allows the user to jump out to the app + # or website associated with this agent. + # Corresponds to the JSON property `linkOutSuggestion` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion] + attr_accessor :link_out_suggestion + + # The card for presenting a list of options to select from. + # Corresponds to the JSON property `listSelect` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect] + attr_accessor :list_select + + # Returns a response containing a custom payload. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Optional. The platform that this message is intended for. + # Corresponds to the JSON property `platform` + # @return [String] + attr_accessor :platform + + # The quick replies response message. + # Corresponds to the JSON property `quickReplies` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies] + attr_accessor :quick_replies + + # The collection of simple response candidates. + # This message in `QueryResult.fulfillment_messages` and + # `WebhookResponse.fulfillment_messages` should contain only one + # `SimpleResponse`. + # Corresponds to the JSON property `simpleResponses` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses] + attr_accessor :simple_responses + + # The collection of suggestions. + # Corresponds to the JSON property `suggestions` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions] + attr_accessor :suggestions + + # The text response message. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @basic_card = args[:basic_card] if args.key?(:basic_card) + @card = args[:card] if args.key?(:card) + @carousel_select = args[:carousel_select] if args.key?(:carousel_select) + @image = args[:image] if args.key?(:image) + @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion) + @list_select = args[:list_select] if args.key?(:list_select) + @payload = args[:payload] if args.key?(:payload) + @platform = args[:platform] if args.key?(:platform) + @quick_replies = args[:quick_replies] if args.key?(:quick_replies) + @simple_responses = args[:simple_responses] if args.key?(:simple_responses) + @suggestions = args[:suggestions] if args.key?(:suggestions) + @text = args[:text] if args.key?(:text) + end + end + + # The basic card message. Useful for displaying information. + class GoogleCloudDialogflowV2beta1IntentMessageBasicCard + include Google::Apis::Core::Hashable + + # Optional. The collection of card buttons. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Required, unless image is present. The body text of the card. + # Corresponds to the JSON property `formattedText` + # @return [String] + attr_accessor :formatted_text + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Optional. The subtitle of the card. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Optional. The title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @formatted_text = args[:formatted_text] if args.key?(:formatted_text) + @image = args[:image] if args.key?(:image) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # The button object that appears at the bottom of a card. + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton + include Google::Apis::Core::Hashable + + # Opens the given URI. + # Corresponds to the JSON property `openUriAction` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction] + attr_accessor :open_uri_action + + # Required. The title of the button. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action) + @title = args[:title] if args.key?(:title) + end + end + + # Opens the given URI. + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction + include Google::Apis::Core::Hashable + + # Required. The HTTP or HTTPS scheme URI. + # 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) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The card response message. + class GoogleCloudDialogflowV2beta1IntentMessageCard + include Google::Apis::Core::Hashable + + # Optional. The collection of card buttons. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Optional. The public URI to an image file for the card. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + # Optional. The subtitle of the card. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Optional. The title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @image_uri = args[:image_uri] if args.key?(:image_uri) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # Optional. Contains information about a button. + class GoogleCloudDialogflowV2beta1IntentMessageCardButton + include Google::Apis::Core::Hashable + + # Optional. The text to send back to the Dialogflow API or a URI to + # open. + # Corresponds to the JSON property `postback` + # @return [String] + attr_accessor :postback + + # Optional. The text to show on the button. + # 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) + @postback = args[:postback] if args.key?(:postback) + @text = args[:text] if args.key?(:text) + end + end + + # The card for presenting a carousel of options to select from. + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect + include Google::Apis::Core::Hashable + + # Required. Carousel items. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + end + end + + # An item in the carousel. + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem + include Google::Apis::Core::Hashable + + # Optional. The body text of the card. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Additional info about the select item for when it is triggered in a + # dialog. + # Corresponds to the JSON property `info` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo] + attr_accessor :info + + # Required. Title of the carousel item. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @info = args[:info] if args.key?(:info) + @title = args[:title] if args.key?(:title) + end + end + + # The image response message. + class GoogleCloudDialogflowV2beta1IntentMessageImage + include Google::Apis::Core::Hashable + + # Optional. A text description of the image to be used for accessibility, + # e.g., screen readers. + # Corresponds to the JSON property `accessibilityText` + # @return [String] + attr_accessor :accessibility_text + + # Optional. The public URI to an image file. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text) + @image_uri = args[:image_uri] if args.key?(:image_uri) + end + end + + # The suggestion chip message that allows the user to jump out to the app + # or website associated with this agent. + class GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion + include Google::Apis::Core::Hashable + + # Required. The name of the app or site this chip is linking to. + # Corresponds to the JSON property `destinationName` + # @return [String] + attr_accessor :destination_name + + # Required. The URI of the app or site to open when the user taps the + # suggestion chip. + # 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) + @destination_name = args[:destination_name] if args.key?(:destination_name) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The card for presenting a list of options to select from. + class GoogleCloudDialogflowV2beta1IntentMessageListSelect + include Google::Apis::Core::Hashable + + # Required. List items. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Optional. The overall title of the list. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @title = args[:title] if args.key?(:title) + end + end + + # An item in the list. + class GoogleCloudDialogflowV2beta1IntentMessageListSelectItem + include Google::Apis::Core::Hashable + + # Optional. The main text describing the item. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Additional info about the select item for when it is triggered in a + # dialog. + # Corresponds to the JSON property `info` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo] + attr_accessor :info + + # Required. The title of the list item. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @info = args[:info] if args.key?(:info) + @title = args[:title] if args.key?(:title) + end + end + + # The quick replies response message. + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies + include Google::Apis::Core::Hashable + + # Optional. The collection of quick replies. + # Corresponds to the JSON property `quickReplies` + # @return [Array] + attr_accessor :quick_replies + + # Optional. The title of the collection of quick replies. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quick_replies = args[:quick_replies] if args.key?(:quick_replies) + @title = args[:title] if args.key?(:title) + end + end + + # Additional info about the select item for when it is triggered in a + # dialog. + class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo + include Google::Apis::Core::Hashable + + # Required. A unique key that will be sent back to the agent if this + # response is given. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Optional. A list of synonyms that can also be used to trigger this + # item in dialog. + # Corresponds to the JSON property `synonyms` + # @return [Array] + attr_accessor :synonyms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @synonyms = args[:synonyms] if args.key?(:synonyms) + end + end + + # The simple response message containing speech or text. + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse + include Google::Apis::Core::Hashable + + # Optional. The text to display. + # Corresponds to the JSON property `displayText` + # @return [String] + attr_accessor :display_text + + # One of text_to_speech or ssml must be provided. Structured spoken + # response to the user in the SSML format. Mutually exclusive with + # text_to_speech. + # Corresponds to the JSON property `ssml` + # @return [String] + attr_accessor :ssml + + # One of text_to_speech or ssml must be provided. The plain text of the + # speech output. Mutually exclusive with ssml. + # Corresponds to the JSON property `textToSpeech` + # @return [String] + attr_accessor :text_to_speech + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_text = args[:display_text] if args.key?(:display_text) + @ssml = args[:ssml] if args.key?(:ssml) + @text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech) + end + end + + # The collection of simple response candidates. + # This message in `QueryResult.fulfillment_messages` and + # `WebhookResponse.fulfillment_messages` should contain only one + # `SimpleResponse`. + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses + include Google::Apis::Core::Hashable + + # Required. The list of simple responses. + # Corresponds to the JSON property `simpleResponses` + # @return [Array] + attr_accessor :simple_responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @simple_responses = args[:simple_responses] if args.key?(:simple_responses) + end + end + + # The suggestion chip message that the user can tap to quickly post a reply + # to the conversation. + class GoogleCloudDialogflowV2beta1IntentMessageSuggestion + include Google::Apis::Core::Hashable + + # Required. The text shown the in the suggestion chip. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @title = args[:title] if args.key?(:title) + end + end + + # The collection of suggestions. + class GoogleCloudDialogflowV2beta1IntentMessageSuggestions + include Google::Apis::Core::Hashable + + # Required. The list of suggested replies. + # Corresponds to the JSON property `suggestions` + # @return [Array] + attr_accessor :suggestions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @suggestions = args[:suggestions] if args.key?(:suggestions) + end + end + + # The text response message. + class GoogleCloudDialogflowV2beta1IntentMessageText + include Google::Apis::Core::Hashable + + # Optional. The collection of the agent's 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) + @text = args[:text] if args.key?(:text) + end + end + + # Represents intent parameters. + class GoogleCloudDialogflowV2beta1IntentParameter + include Google::Apis::Core::Hashable + + # Optional. The default value to use when the `value` yields an empty + # result. + # Default values can be extracted from contexts by using the following + # syntax: `#context_name.parameter_name`. + # Corresponds to the JSON property `defaultValue` + # @return [String] + attr_accessor :default_value + + # Required. The name of the parameter. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. The name of the entity type, prefixed with `@`, that + # describes values of the parameter. If the parameter is + # required, this must be provided. + # Corresponds to the JSON property `entityTypeDisplayName` + # @return [String] + attr_accessor :entity_type_display_name + + # Optional. 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 + + # Optional. Indicates whether the parameter is required. That is, + # whether the intent cannot be completed without collecting the parameter + # value. + # Corresponds to the JSON property `mandatory` + # @return [Boolean] + attr_accessor :mandatory + alias_method :mandatory?, :mandatory + + # The unique identifier of this parameter. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. The collection of prompts that the agent can present to the + # user in order to collect value for the parameter. + # Corresponds to the JSON property `prompts` + # @return [Array] + attr_accessor :prompts + + # Optional. The definition of the parameter value. It can be: + # - a constant string, + # - a parameter value defined as `$parameter_name`, + # - an original parameter value defined as `$parameter_name.original`, + # - a parameter value from some context defined as + # `#context_name.parameter_name`. + # 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) + @default_value = args[:default_value] if args.key?(:default_value) + @display_name = args[:display_name] if args.key?(:display_name) + @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name) + @is_list = args[:is_list] if args.key?(:is_list) + @mandatory = args[:mandatory] if args.key?(:mandatory) + @name = args[:name] if args.key?(:name) + @prompts = args[:prompts] if args.key?(:prompts) + @value = args[:value] if args.key?(:value) + end + end + + # Represents an example or template that the agent is trained on. + class GoogleCloudDialogflowV2beta1IntentTrainingPhrase + include Google::Apis::Core::Hashable + + # Required. The unique identifier of this training phrase. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The collection of training phrase parts (can be annotated). + # Fields: `entity_type`, `alias` and `user_defined` should be populated + # only for the annotated parts of the training phrase. + # Corresponds to the JSON property `parts` + # @return [Array] + attr_accessor :parts + + # Optional. Indicates how many times this example or template was added to + # the intent. Each time a developer adds an existing sample by editing an + # intent or training, this counter is increased. + # Corresponds to the JSON property `timesAddedCount` + # @return [Fixnum] + attr_accessor :times_added_count + + # Required. The type of the training phrase. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parts = args[:parts] if args.key?(:parts) + @times_added_count = args[:times_added_count] if args.key?(:times_added_count) + @type = args[:type] if args.key?(:type) + end + end + + # Represents a part of a training phrase. + class GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart + include Google::Apis::Core::Hashable + + # Optional. The parameter name for the value extracted from the + # annotated part of the example. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + # Optional. The entity type name prefixed with `@`. This field is + # required for the annotated part of the text and applies only to + # examples. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # Required. The text corresponding to the example or template, + # if there are no annotations. For + # annotated examples, it is the text for one of the example's parts. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # Optional. Indicates whether the text was manually annotated by the + # developer. + # Corresponds to the JSON property `userDefined` + # @return [Boolean] + attr_accessor :user_defined + alias_method :user_defined?, :user_defined + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alias = args[:alias] if args.key?(:alias) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @text = args[:text] if args.key?(:text) + @user_defined = args[:user_defined] if args.key?(:user_defined) + end + end + + # Represents the contents of the original request that was passed to + # the `[Streaming]DetectIntent` call. + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest + include Google::Apis::Core::Hashable + + # Optional. This field is set to the value of `QueryParameters.payload` field + # passed in the request. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # The source of this request, e.g., `google`, `facebook`, `slack`. It is set + # by Dialogflow-owned servers. Possible values of this field correspond to + # Intent.Message.Platform. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @payload = args[:payload] if args.key?(:payload) + @source = args[:source] if args.key?(:source) + end + end + + # Represents the result of conversational query or event processing. + class GoogleCloudDialogflowV2beta1QueryResult + include Google::Apis::Core::Hashable + + # The action name from the matched intent. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # This field is set to: + # - `false` if the matched intent has required parameters and not all of + # the required parameter values have been collected. + # - `true` if all required parameter values have been collected, or if the + # matched intent doesn't contain any required parameters. + # Corresponds to the JSON property `allRequiredParamsPresent` + # @return [Boolean] + attr_accessor :all_required_params_present + alias_method :all_required_params_present?, :all_required_params_present + + # The free-form diagnostic info. For example, this field + # could contain webhook call latency. + # Corresponds to the JSON property `diagnosticInfo` + # @return [Hash] + attr_accessor :diagnostic_info + + # The collection of rich messages to present to the user. + # Corresponds to the JSON property `fulfillmentMessages` + # @return [Array] + attr_accessor :fulfillment_messages + + # The text to be pronounced to the user or shown on the screen. + # Corresponds to the JSON property `fulfillmentText` + # @return [String] + attr_accessor :fulfillment_text + + # Represents an intent. + # Intents convert a number of user expressions or patterns into an action. An + # action is an extraction of a user command or sentence semantics. + # Corresponds to the JSON property `intent` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent] + attr_accessor :intent + + # The intent detection confidence. Values range from 0.0 + # (completely uncertain) to 1.0 (completely certain). + # 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://dialogflow.com/docs/reference/language) + # for a list of the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The collection of output contexts. If applicable, + # `output_contexts.parameters` contains entries with name + # `.original` containing the original parameter values + # before the query. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # The collection of extracted parameters. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # The original conversational query text: + # - If natural language text was provided as input, `query_text` contains + # a copy of the input. + # - If natural language speech audio was provided as input, `query_text` + # contains the speech recognition result. If speech recognizer produced + # multiple alternatives, a particular one is picked. + # - If an event was provided as input, `query_text` is not set. + # Corresponds to the JSON property `queryText` + # @return [String] + attr_accessor :query_text + + # The Speech recognition confidence between 0.0 and 1.0. A higher number + # indicates an estimated greater likelihood that the recognized words are + # correct. The default of 0.0 is a sentinel value indicating that confidence + # was not set. + # You should not rely on this field as it isn't guaranteed to be accurate, or + # even set. In particular this field isn't set in Webhook calls and for + # StreamingDetectIntent since the streaming endpoint has separate confidence + # estimates per portion of the audio in StreamingRecognitionResult. + # Corresponds to the JSON property `speechRecognitionConfidence` + # @return [Float] + attr_accessor :speech_recognition_confidence + + # If the query was fulfilled by a webhook call, this field is set to the + # value of the `payload` field returned in the webhook response. + # Corresponds to the JSON property `webhookPayload` + # @return [Hash] + attr_accessor :webhook_payload + + # If the query was fulfilled by a webhook call, this field is set to the + # value of the `source` field returned in the webhook response. + # Corresponds to the JSON property `webhookSource` + # @return [String] + attr_accessor :webhook_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present) + @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info) + @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) + @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) + @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) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @parameters = args[:parameters] if args.key?(:parameters) + @query_text = args[:query_text] if args.key?(:query_text) + @speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence) + @webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload) + @webhook_source = args[:webhook_source] if args.key?(:webhook_source) + end + end + + # The request message for a webhook call. + class GoogleCloudDialogflowV2beta1WebhookRequest + include Google::Apis::Core::Hashable + + # Represents the contents of the original request that was passed to + # the `[Streaming]DetectIntent` call. + # Corresponds to the JSON property `originalDetectIntentRequest` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest] + attr_accessor :original_detect_intent_request + + # Represents the result of conversational query or event processing. + # Corresponds to the JSON property `queryResult` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult] + attr_accessor :query_result + + # The unique identifier of the response. Contains the same value as + # `[Streaming]DetectIntentResponse.response_id`. + # Corresponds to the JSON property `responseId` + # @return [String] + attr_accessor :response_id + + # The unique identifier of detectIntent request session. + # Can be used to identify end-user inside webhook implementation. + # Format: `projects//agent/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) + @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request) + @query_result = args[:query_result] if args.key?(:query_result) + @response_id = args[:response_id] if args.key?(:response_id) + @session = args[:session] if args.key?(:session) + end + end + + # The response message for a webhook call. + class GoogleCloudDialogflowV2beta1WebhookResponse + include Google::Apis::Core::Hashable + + # Events allow for matching intents by event name instead of the natural + # language input. For instance, input `` can trigger a personalized welcome response. + # The parameter `name` may be used by the agent in the response: + # `“Hello #welcome_event.name! What can I do for you today?”`. + # Corresponds to the JSON property `followupEventInput` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput] + attr_accessor :followup_event_input + + # Optional. The collection of rich messages to present to the user. This + # value is passed directly to `QueryResult.fulfillment_messages`. + # Corresponds to the JSON property `fulfillmentMessages` + # @return [Array] + attr_accessor :fulfillment_messages + + # Optional. The text to be shown on the screen. This value is passed directly + # to `QueryResult.fulfillment_text`. + # Corresponds to the JSON property `fulfillmentText` + # @return [String] + attr_accessor :fulfillment_text + + # Optional. The collection of output contexts. This value is passed directly + # to `QueryResult.output_contexts`. + # Corresponds to the JSON property `outputContexts` + # @return [Array] + attr_accessor :output_contexts + + # Optional. This value is passed directly to `QueryResult.webhook_payload`. + # Corresponds to the JSON property `payload` + # @return [Hash] + attr_accessor :payload + + # Optional. This value is passed directly to `QueryResult.webhook_source`. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input) + @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages) + @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) + @output_contexts = args[:output_contexts] if args.key?(:output_contexts) + @payload = args[:payload] if args.key?(:payload) + @source = args[:source] if args.key?(:source) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::DialogflowV2::GoogleRpcStatus] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class GoogleRpcStatus + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing 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_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb new file mode 100644 index 000000000..e409abc90 --- /dev/null +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -0,0 +1,1670 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DialogflowV2 + + class GoogleCloudDialogflowV2Agent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchCreateEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchDeleteIntentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchUpdateIntentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2BatchUpdateIntentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2Context + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2DetectIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2DetectIntentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EntityTypeBatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EntityTypeEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2EventInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ExportAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ExportAgentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ImportAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2InputAudioConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2Intent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentBatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentFollowupIntentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageBasicCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageBasicCardButton + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageCardButton + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageCarouselSelect + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageCarouselSelectItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageListSelect + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageListSelectItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageQuickReplies + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageSelectItemInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageSimpleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageSimpleResponses + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageSuggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageSuggestions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentMessageText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentTrainingPhrase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2IntentTrainingPhrasePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ListContextsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ListEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ListIntentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2ListSessionEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2OriginalDetectIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2QueryInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2QueryParameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2QueryResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2RestoreAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2SearchAgentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2SessionEntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2TextInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2TrainAgentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2WebhookRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2WebhookResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1Context + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1EntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1EntityTypeEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1EventInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ExportAgentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1Intent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageCardButton + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageListSelect + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageListSelectItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageSuggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageSuggestions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentTrainingPhrase + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1QueryResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1WebhookRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1WebhookResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRpcStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeLatLng + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2Agent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avatar_uri, as: 'avatarUri' + property :classification_threshold, as: 'classificationThreshold' + property :default_language_code, as: 'defaultLanguageCode' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :enable_logging, as: 'enableLogging' + property :match_mode, as: 'matchMode' + property :parent, as: 'parent' + collection :supported_language_codes, as: 'supportedLanguageCodes' + property :time_zone, as: 'timeZone' + end + end + + class GoogleCloudDialogflowV2BatchCreateEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity::Representation + + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_values, as: 'entityValues' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_type_names, as: 'entityTypeNames' + end + end + + class GoogleCloudDialogflowV2BatchDeleteIntentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + + end + end + + class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity::Representation + + property :language_code, as: 'languageCode' + property :update_mask, as: 'updateMask' + end + end + + class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_type_batch_inline, as: 'entityTypeBatchInline', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch::Representation + + property :entity_type_batch_uri, as: 'entityTypeBatchUri' + property :language_code, as: 'languageCode' + property :update_mask, as: 'updateMask' + end + end + + class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_types, as: 'entityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + + end + end + + class GoogleCloudDialogflowV2BatchUpdateIntentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :intent_batch_inline, as: 'intentBatchInline', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch::Representation + + property :intent_batch_uri, as: 'intentBatchUri' + property :intent_view, as: 'intentView' + property :language_code, as: 'languageCode' + property :update_mask, as: 'updateMask' + end + end + + class GoogleCloudDialogflowV2BatchUpdateIntentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + + end + end + + class GoogleCloudDialogflowV2Context + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lifespan_count, as: 'lifespanCount' + property :name, as: 'name' + hash :parameters, as: 'parameters' + end + end + + class GoogleCloudDialogflowV2DetectIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_audio, :base64 => true, as: 'inputAudio' + property :query_input, as: 'queryInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput::Representation + + property :query_params, as: 'queryParams', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters::Representation + + end + end + + class GoogleCloudDialogflowV2DetectIntentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult::Representation + + property :response_id, as: 'responseId' + property :webhook_status, as: 'webhookStatus', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation + + end + end + + class GoogleCloudDialogflowV2EntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_expansion_mode, as: 'autoExpansionMode' + property :display_name, as: 'displayName' + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2EntityTypeBatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_types, as: 'entityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + + end + end + + class GoogleCloudDialogflowV2EntityTypeEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :synonyms, as: 'synonyms' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowV2EventInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :name, as: 'name' + hash :parameters, as: 'parameters' + end + end + + class GoogleCloudDialogflowV2ExportAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowV2ExportAgentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowV2ImportAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowV2InputAudioConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_encoding, as: 'audioEncoding' + property :language_code, as: 'languageCode' + collection :phrase_hints, as: 'phraseHints' + property :sample_rate_hertz, as: 'sampleRateHertz' + end + end + + class GoogleCloudDialogflowV2Intent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + collection :default_response_platforms, as: 'defaultResponsePlatforms' + property :display_name, as: 'displayName' + collection :events, as: 'events' + collection :followup_intent_info, as: 'followupIntentInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo::Representation + + collection :input_context_names, as: 'inputContextNames' + property :is_fallback, as: 'isFallback' + collection :messages, as: 'messages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage::Representation + + property :ml_disabled, as: 'mlDisabled' + property :name, as: 'name' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + + collection :parameters, as: 'parameters', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter::Representation + + property :parent_followup_intent_name, as: 'parentFollowupIntentName' + property :priority, as: 'priority' + property :reset_contexts, as: 'resetContexts' + property :root_followup_intent_name, as: 'rootFollowupIntentName' + collection :training_phrases, as: 'trainingPhrases', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase::Representation + + property :webhook_state, as: 'webhookState' + end + end + + class GoogleCloudDialogflowV2IntentBatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + + end + end + + class GoogleCloudDialogflowV2IntentFollowupIntentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :followup_intent_name, as: 'followupIntentName' + property :parent_followup_intent_name, as: 'parentFollowupIntentName' + end + end + + class GoogleCloudDialogflowV2IntentMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :basic_card, as: 'basicCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCard::Representation + + property :card, as: 'card', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCard::Representation + + property :carousel_select, as: 'carouselSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelect::Representation + + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage::Representation + + property :link_out_suggestion, as: 'linkOutSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion::Representation + + property :list_select, as: 'listSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelect::Representation + + hash :payload, as: 'payload' + property :platform, as: 'platform' + property :quick_replies, as: 'quickReplies', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageQuickReplies, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageQuickReplies::Representation + + property :simple_responses, as: 'simpleResponses', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponses, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponses::Representation + + property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestions::Representation + + property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageText::Representation + + end + end + + class GoogleCloudDialogflowV2IntentMessageBasicCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButton, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButton::Representation + + property :formatted_text, as: 'formattedText' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage::Representation + + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageBasicCardButton + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :open_uri_action, as: 'openUriAction', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2IntentMessageCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton::Representation + + property :image_uri, as: 'imageUri' + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageCardButton + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :postback, as: 'postback' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2IntentMessageCarouselSelect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCarouselSelectItem::Representation + + end + end + + class GoogleCloudDialogflowV2IntentMessageCarouselSelectItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage::Representation + + property :info, as: 'info', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accessibility_text, as: 'accessibilityText' + property :image_uri, as: 'imageUri' + end + end + + class GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_name, as: 'destinationName' + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2IntentMessageListSelect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageListSelectItem::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageListSelectItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage::Representation + + property :info, as: 'info', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageQuickReplies + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :quick_replies, as: 'quickReplies' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageSelectItemInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + collection :synonyms, as: 'synonyms' + end + end + + class GoogleCloudDialogflowV2IntentMessageSimpleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_text, as: 'displayText' + property :ssml, as: 'ssml' + property :text_to_speech, as: 'textToSpeech' + end + end + + class GoogleCloudDialogflowV2IntentMessageSimpleResponses + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :simple_responses, as: 'simpleResponses', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSimpleResponse::Representation + + end + end + + class GoogleCloudDialogflowV2IntentMessageSuggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2IntentMessageSuggestions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSuggestion::Representation + + end + end + + class GoogleCloudDialogflowV2IntentMessageText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2IntentParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_value, as: 'defaultValue' + property :display_name, as: 'displayName' + property :entity_type_display_name, as: 'entityTypeDisplayName' + property :is_list, as: 'isList' + property :mandatory, as: 'mandatory' + property :name, as: 'name' + collection :prompts, as: 'prompts' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowV2IntentTrainingPhrase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :parts, as: 'parts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrasePart, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrasePart::Representation + + property :times_added_count, as: 'timesAddedCount' + property :type, as: 'type' + end + end + + class GoogleCloudDialogflowV2IntentTrainingPhrasePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' + property :entity_type, as: 'entityType' + property :text, as: 'text' + property :user_defined, as: 'userDefined' + end + end + + class GoogleCloudDialogflowV2ListContextsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contexts, as: 'contexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2ListEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_types, as: 'entityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2ListIntentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2ListSessionEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + + end + end + + class GoogleCloudDialogflowV2OriginalDetectIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :payload, as: 'payload' + property :source, as: 'source' + end + end + + class GoogleCloudDialogflowV2QueryInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_config, as: 'audioConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig::Representation + + property :event, as: 'event', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput::Representation + + property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput::Representation + + end + end + + class GoogleCloudDialogflowV2QueryParameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contexts, as: 'contexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + + property :geo_location, as: 'geoLocation', class: Google::Apis::DialogflowV2::GoogleTypeLatLng, decorator: Google::Apis::DialogflowV2::GoogleTypeLatLng::Representation + + hash :payload, as: 'payload' + property :reset_contexts, as: 'resetContexts' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + + property :time_zone, as: 'timeZone' + end + end + + class GoogleCloudDialogflowV2QueryResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :all_required_params_present, as: 'allRequiredParamsPresent' + hash :diagnostic_info, as: 'diagnosticInfo' + collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage::Representation + + property :fulfillment_text, as: 'fulfillmentText' + property :intent, as: 'intent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + + property :intent_detection_confidence, as: 'intentDetectionConfidence' + property :language_code, as: 'languageCode' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + + hash :parameters, as: 'parameters' + property :query_text, as: 'queryText' + property :speech_recognition_confidence, as: 'speechRecognitionConfidence' + hash :webhook_payload, as: 'webhookPayload' + property :webhook_source, as: 'webhookSource' + end + end + + class GoogleCloudDialogflowV2RestoreAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowV2SearchAgentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :agents, as: 'agents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2SessionEntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity::Representation + + property :entity_override_mode, as: 'entityOverrideMode' + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2TextInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2TrainAgentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV2WebhookRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_detect_intent_request, as: 'originalDetectIntentRequest', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OriginalDetectIntentRequest, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OriginalDetectIntentRequest::Representation + + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult::Representation + + property :response_id, as: 'responseId' + property :session, as: 'session' + end + end + + class GoogleCloudDialogflowV2WebhookResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :followup_event_input, as: 'followupEventInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput::Representation + + collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage::Representation + + property :fulfillment_text, as: 'fulfillmentText' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + + hash :payload, as: 'payload' + property :source, as: 'source' + end + end + + class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entity_types, as: 'entityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityType::Representation + + end + end + + class GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :intents, as: 'intents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent::Representation + + end + end + + class GoogleCloudDialogflowV2beta1Context + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lifespan_count, as: 'lifespanCount' + property :name, as: 'name' + hash :parameters, as: 'parameters' + end + end + + class GoogleCloudDialogflowV2beta1EntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_expansion_mode, as: 'autoExpansionMode' + property :display_name, as: 'displayName' + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity::Representation + + property :kind, as: 'kind' + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2beta1EntityTypeEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :synonyms, as: 'synonyms' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowV2beta1EventInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :name, as: 'name' + hash :parameters, as: 'parameters' + end + end + + class GoogleCloudDialogflowV2beta1ExportAgentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_content, :base64 => true, as: 'agentContent' + property :agent_uri, as: 'agentUri' + end + end + + class GoogleCloudDialogflowV2beta1Intent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + collection :default_response_platforms, as: 'defaultResponsePlatforms' + property :display_name, as: 'displayName' + collection :events, as: 'events' + collection :followup_intent_info, as: 'followupIntentInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::Representation + + collection :input_context_names, as: 'inputContextNames' + property :is_fallback, as: 'isFallback' + collection :messages, as: 'messages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation + + property :ml_disabled, as: 'mlDisabled' + property :ml_enabled, as: 'mlEnabled' + property :name, as: 'name' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation + + collection :parameters, as: 'parameters', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentParameter, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentParameter::Representation + + property :parent_followup_intent_name, as: 'parentFollowupIntentName' + property :priority, as: 'priority' + property :reset_contexts, as: 'resetContexts' + property :root_followup_intent_name, as: 'rootFollowupIntentName' + collection :training_phrases, as: 'trainingPhrases', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase::Representation + + property :webhook_state, as: 'webhookState' + end + end + + class GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :followup_intent_name, as: 'followupIntentName' + property :parent_followup_intent_name, as: 'parentFollowupIntentName' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :basic_card, as: 'basicCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard::Representation + + property :card, as: 'card', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard::Representation + + property :carousel_select, as: 'carouselSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect::Representation + + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :link_out_suggestion, as: 'linkOutSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion::Representation + + property :list_select, as: 'listSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect::Representation + + hash :payload, as: 'payload' + property :platform, as: 'platform' + property :quick_replies, as: 'quickReplies', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies::Representation + + property :simple_responses, as: 'simpleResponses', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses::Representation + + property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation + + property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageText::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton::Representation + + property :formatted_text, as: 'formattedText' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :open_uri_action, as: 'openUriAction', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCardButton, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCardButton::Representation + + property :image_uri, as: 'imageUri' + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageCardButton + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :postback, as: 'postback' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :info, as: 'info', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :accessibility_text, as: 'accessibilityText' + property :image_uri, as: 'imageUri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_name, as: 'destinationName' + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageListSelect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageListSelectItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :info, as: 'info', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :quick_replies, as: 'quickReplies' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + collection :synonyms, as: 'synonyms' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_text, as: 'displayText' + property :ssml, as: 'ssml' + property :text_to_speech, as: 'textToSpeech' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :simple_responses, as: 'simpleResponses', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageSuggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageSuggestions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestion::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :default_value, as: 'defaultValue' + property :display_name, as: 'displayName' + property :entity_type_display_name, as: 'entityTypeDisplayName' + property :is_list, as: 'isList' + property :mandatory, as: 'mandatory' + property :name, as: 'name' + collection :prompts, as: 'prompts' + property :value, as: 'value' + end + end + + class GoogleCloudDialogflowV2beta1IntentTrainingPhrase + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :parts, as: 'parts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart::Representation + + property :times_added_count, as: 'timesAddedCount' + property :type, as: 'type' + end + end + + class GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' + property :entity_type, as: 'entityType' + property :text, as: 'text' + property :user_defined, as: 'userDefined' + end + end + + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :payload, as: 'payload' + property :source, as: 'source' + end + end + + class GoogleCloudDialogflowV2beta1QueryResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :all_required_params_present, as: 'allRequiredParamsPresent' + hash :diagnostic_info, as: 'diagnosticInfo' + collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation + + property :fulfillment_text, as: 'fulfillmentText' + property :intent, as: 'intent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent::Representation + + property :intent_detection_confidence, as: 'intentDetectionConfidence' + property :language_code, as: 'languageCode' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation + + hash :parameters, as: 'parameters' + property :query_text, as: 'queryText' + property :speech_recognition_confidence, as: 'speechRecognitionConfidence' + hash :webhook_payload, as: 'webhookPayload' + property :webhook_source, as: 'webhookSource' + end + end + + class GoogleCloudDialogflowV2beta1WebhookRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :original_detect_intent_request, as: 'originalDetectIntentRequest', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest::Representation + + property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1QueryResult::Representation + + property :response_id, as: 'responseId' + property :session, as: 'session' + end + end + + class GoogleCloudDialogflowV2beta1WebhookResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :followup_event_input, as: 'followupEventInput', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput::Representation + + collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation + + property :fulfillment_text, as: 'fulfillmentText' + collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation + + hash :payload, as: 'payload' + property :source, as: 'source' + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleRpcStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + 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_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb new file mode 100644 index 000000000..44fde1395 --- /dev/null +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -0,0 +1,1897 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DialogflowV2 + # Dialogflow API + # + # An end-to-end development suite for conversational interfaces (e.g., chatbots, + # voice-powered apps and devices). + # + # @example + # require 'google/apis/dialogflow_v2' + # + # Dialogflow = Google::Apis::DialogflowV2 # Alias the module + # service = Dialogflow::DialogflowService.new + # + # @see https://cloud.google.com/dialogflow-enterprise/ + class DialogflowService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://dialogflow.googleapis.com/', '') + @batch_path = 'batch' + end + + # Retrieves the specified agent. + # @param [String] parent + # Required. The project that the agent to fetch is associated with. + # Format: `projects/`. + # @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::DialogflowV2::GoogleCloudDialogflowV2Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] + # + # @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_agent(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/agent', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent + 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 + + # Exports the specified agent to a ZIP file. + # Operation + # @param [String] parent + # Required. The project that the agent to export is associated with. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportAgentRequest] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent(parent, google_cloud_dialogflow_v2_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent:export', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportAgentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_export_agent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Imports the specified agent from a ZIP file. + # Uploads new intents and entity types without deleting the existing ones. + # Intents and entity types with the same name are replaced with the new + # versions from ImportAgentRequest. + # Operation + # @param [String] parent + # Required. The project that the agent to import is associated with. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportAgentRequest] google_cloud_dialogflow_v2_import_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 import_project_agent(parent, google_cloud_dialogflow_v2_import_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent:import', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportAgentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_import_agent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Restores the specified agent from a ZIP file. + # Replaces the current agent version with a new one. All the intents and + # entity types in the older version are deleted. + # Operation + # @param [String] parent + # Required. The project that the agent to restore is associated with. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RestoreAgentRequest] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent(parent, google_cloud_dialogflow_v2_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent:restore', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RestoreAgentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_restore_agent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Returns the list of agents. + # Since there is at most one conversational agent per project, this method is + # useful primarily for listing all agents across projects the caller has + # access to. One can achieve that with a wildcard project collection id "-". + # Refer to [List + # Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub- + # collections). + # @param [String] parent + # Required. The project to list agents from. + # Format: `projects/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2SearchAgentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchAgentsResponse] + # + # @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 search_project_agents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/agent:search', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchAgentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchAgentsResponse + 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 + + # Trains the specified agent. + # Operation + # @param [String] parent + # Required. The project that the agent to train is associated with. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TrainAgentRequest] google_cloud_dialogflow_v2_train_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent(parent, google_cloud_dialogflow_v2_train_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent:train', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TrainAgentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_train_agent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 entity types in the specified agent. + # Operation + # @param [String] parent + # Required. The name of the agent to delete all entities types for. Format: + # `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest] google_cloud_dialogflow_v2_batch_delete_entity_types_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_entity_type_delete(parent, google_cloud_dialogflow_v2_batch_delete_entity_types_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entityTypes:batchDelete', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_delete_entity_types_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Updates/Creates multiple entity types in the specified agent. + # Operation + # @param [String] parent + # Required. The name of the agent to update or create entity types in. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest] google_cloud_dialogflow_v2_batch_update_entity_types_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_entity_type_update(parent, google_cloud_dialogflow_v2_batch_update_entity_types_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entityTypes:batchUpdate', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_update_entity_types_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Creates an entity type in the specified agent. + # @param [String] parent + # Required. The agent to create a entity type for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] google_cloud_dialogflow_v2_entity_type_object + # @param [String] language_code + # Optional. The language of entity synonyms defined in `entity_type`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/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::DialogflowV2::GoogleCloudDialogflowV2EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] + # + # @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_agent_entity_type(parent, google_cloud_dialogflow_v2_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + command.request_object = google_cloud_dialogflow_v2_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType + 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//agent/entityTypes/`. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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 entity type. + # @param [String] name + # Required. The name of the entity type. + # Format: `projects//agent/entityTypes/`. + # @param [String] language_code + # Optional. The language to retrieve entity synonyms for. If not specified, + # the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/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::DialogflowV2::GoogleCloudDialogflowV2EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] + # + # @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_agent_entity_type(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType + 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 from. + # Format: `projects//agent`. + # @param [String] language_code + # Optional. The language to list entity synonyms for. If not specified, + # the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEntityTypesResponse] + # + # @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_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, 'v2/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListEntityTypesResponse + 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 + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of the entity type. Format: + # `projects//agent/entityTypes/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] google_cloud_dialogflow_v2_entity_type_object + # @param [String] language_code + # Optional. The language of entity synonyms defined in `entity_type`. If not + # specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] + # + # @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_agent_entity_type(name, google_cloud_dialogflow_v2_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + command.request_object = google_cloud_dialogflow_v2_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType + 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 multiple new entities in the specified entity type (extends the + # existing collection of entries). + # Operation + # @param [String] parent + # Required. The name of the entity type to create entities in. Format: + # `projects//agent/entityTypes/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchCreateEntitiesRequest] google_cloud_dialogflow_v2_batch_create_entities_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_entity_type_entity_create(parent, google_cloud_dialogflow_v2_batch_create_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entities:batchCreate', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchCreateEntitiesRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_create_entities_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 entities in the specified entity type. + # Operation + # @param [String] parent + # Required. The name of the entity type to delete entries for. Format: + # `projects//agent/entityTypes/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteEntitiesRequest] google_cloud_dialogflow_v2_batch_delete_entities_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_entity_type_entity_delete(parent, google_cloud_dialogflow_v2_batch_delete_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entities:batchDelete', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteEntitiesRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_delete_entities_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Updates entities in the specified entity type (replaces the existing + # collection of entries). + # Operation + # @param [String] parent + # Required. The name of the entity type to update the entities in. Format: + # `projects//agent/entityTypes/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateEntitiesRequest] google_cloud_dialogflow_v2_batch_update_entities_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_entity_type_entity_update(parent, google_cloud_dialogflow_v2_batch_update_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entities:batchUpdate', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateEntitiesRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_update_entities_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 intents in the specified agent. + # Operation + # @param [String] parent + # Required. The name of the agent to delete all entities types for. Format: + # `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteIntentsRequest] google_cloud_dialogflow_v2_batch_delete_intents_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_intent_delete(parent, google_cloud_dialogflow_v2_batch_delete_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/intents:batchDelete', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchDeleteIntentsRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_delete_intents_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Updates/Creates multiple intents in the specified agent. + # Operation + # @param [String] parent + # Required. The name of the agent to update or create intents in. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateIntentsRequest] google_cloud_dialogflow_v2_batch_update_intents_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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 batch_project_agent_intent_update(parent, google_cloud_dialogflow_v2_batch_update_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/intents:batchUpdate', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2BatchUpdateIntentsRequest::Representation + command.request_object = google_cloud_dialogflow_v2_batch_update_intents_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + # Creates an intent in the specified agent. + # @param [String] parent + # Required. The agent to create a intent for. + # Format: `projects//agent`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] google_cloud_dialogflow_v2_intent_object + # @param [String] intent_view + # Optional. The resource view to apply to the returned intent. + # @param [String] language_code + # Optional. The language of training phrases, parameters and rich messages + # defined in `intent`. If not specified, the agent's default language is + # used. [More than a dozen + # languages](https://dialogflow.com/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::DialogflowV2::GoogleCloudDialogflowV2Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] + # + # @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_agent_intent(parent, google_cloud_dialogflow_v2_intent_object = nil, intent_view: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/intents', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + command.request_object = google_cloud_dialogflow_v2_intent_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent + 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['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//agent/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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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//agent/intents/`. + # @param [String] intent_view + # Optional. The resource view to apply to the returned intent. + # @param [String] language_code + # Optional. The language to retrieve training phrases, parameters and rich + # messages for. If not specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/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::DialogflowV2::GoogleCloudDialogflowV2Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] + # + # @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_agent_intent(name, intent_view: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent + command.params['name'] = name unless name.nil? + command.query['intentView'] = intent_view unless intent_view.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 from. + # Format: `projects//agent`. + # @param [String] intent_view + # Optional. The resource view to apply to the returned intent. + # @param [String] language_code + # Optional. The language to list training phrases, parameters and rich + # messages for. If not specified, the agent's default language is used. + # [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent before they can be used. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse] + # + # @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_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, 'v2/{+parent}/intents', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse + 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 + # Required for all methods except `create` (`create` populates the name + # automatically. + # The unique identifier of this intent. + # Format: `projects//agent/intents/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] google_cloud_dialogflow_v2_intent_object + # @param [String] intent_view + # Optional. The resource view to apply to the returned intent. + # @param [String] language_code + # Optional. The language of training phrases, parameters and rich messages + # defined in `intent`. If not specified, the agent's default language is + # used. [More than a dozen + # languages](https://dialogflow.com/docs/reference/language) are supported. + # Note: languages must be enabled in the agent, before they can be used. + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2Intent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] + # + # @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_agent_intent(name, google_cloud_dialogflow_v2_intent_object = nil, intent_view: nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + command.request_object = google_cloud_dialogflow_v2_intent_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent + command.params['name'] = name unless name.nil? + command.query['intentView'] = intent_view unless intent_view.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 + + # Deletes all active contexts in the specified session. + # @param [String] parent + # Required. The name of the session to delete all contexts from. Format: + # `projects//agent/sessions/` or `projects//agent/runtimes//sessions/`. Note: Runtimes are + # under construction and will be available soon. If is not + # specified we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_runtime_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty + 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 + + # Processes a natural language query and returns structured, actionable data + # as a result. This method is not idempotent, because it may cause contexts + # and session entity types to be updated, which in turn might affect + # results of future queries. + # @param [String] session + # Required. The name of the session this query is sent to. Format: + # `projects//agent/sessions/`, or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # It's up to the API caller to choose an appropriate session ID. It can be + # a random number or some type of user identifier (preferably hashed). + # The length of the session ID must not exceed 36 bytes. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] + # + # @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_agent_runtime_session_intent(session, google_cloud_dialogflow_v2_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+session}:detectIntent', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_detect_intent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse + 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 context. + # @param [String] parent + # Required. The session to create a context for. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_runtime_session_context(parent, google_cloud_dialogflow_v2_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/contexts', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.request_object = google_cloud_dialogflow_v2_context_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 context. + # @param [String] name + # Required. The name of the context to delete. Format: + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If is not specified, we assume default + # 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_runtime_session_context(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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 context. + # @param [String] name + # Required. The name of the context. Format: + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If is not specified, we assume default + # 'sandbox' runtime. + # @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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_runtime_session_context(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 contexts in the specified session. + # @param [String] parent + # Required. The session to list all contexts from. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse] + # + # @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_agent_runtime_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse + 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 context. + # @param [String] name + # Required. The unique identifier of the context. Format: + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_runtime_session_context(name, google_cloud_dialogflow_v2_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.request_object = google_cloud_dialogflow_v2_context_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 session entity type. + # @param [String] parent + # Required. The session to create a session entity type for. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_runtime_session_entity_type(parent, google_cloud_dialogflow_v2_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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 entity type to delete. Format: + # `projects//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # is not specified, we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_runtime_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # is not specified, we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_runtime_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] + # + # @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_agent_runtime_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse + 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 this session entity type. Format: + # `projects//agent/sessions//entityTypes/`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_runtime_session_entity_type(name, google_cloud_dialogflow_v2_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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 + + # Deletes all active contexts in the specified session. + # @param [String] parent + # Required. The name of the session to delete all contexts from. Format: + # `projects//agent/sessions/` or `projects//agent/runtimes//sessions/`. Note: Runtimes are + # under construction and will be available soon. If is not + # specified we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty + 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 + + # Processes a natural language query and returns structured, actionable data + # as a result. This method is not idempotent, because it may cause contexts + # and session entity types to be updated, which in turn might affect + # results of future queries. + # @param [String] session + # Required. The name of the session this query is sent to. Format: + # `projects//agent/sessions/`, or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # It's up to the API caller to choose an appropriate session ID. It can be + # a random number or some type of user identifier (preferably hashed). + # The length of the session ID must not exceed 36 bytes. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] + # + # @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_agent_session_intent(session, google_cloud_dialogflow_v2_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+session}:detectIntent', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest::Representation + command.request_object = google_cloud_dialogflow_v2_detect_intent_request_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse + 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 context. + # @param [String] parent + # Required. The session to create a context for. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_session_context(parent, google_cloud_dialogflow_v2_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/contexts', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.request_object = google_cloud_dialogflow_v2_context_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 context. + # @param [String] name + # Required. The name of the context to delete. Format: + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If is not specified, we assume default + # 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_session_context(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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 context. + # @param [String] name + # Required. The name of the context. Format: + # `projects//agent/sessions//contexts/` + # or `projects//agent/runtimes//sessions//contexts/`. Note: Runtimes are under construction and will + # be available soon. If is not specified, we assume default + # 'sandbox' runtime. + # @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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_session_context(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 contexts in the specified session. + # @param [String] parent + # Required. The session to list all contexts from. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse] + # + # @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_agent_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/contexts', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse + 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 context. + # @param [String] name + # Required. The unique identifier of the context. Format: + # `projects//agent/sessions//contexts/`, + # or + # `projects//agent/runtimes//sessions//contexts/`. + # Note: Runtimes are under construction and will be available soon. + # The Context ID is always converted to lowercase. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] + # + # @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_agent_session_context(name, google_cloud_dialogflow_v2_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.request_object = google_cloud_dialogflow_v2_context_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context + 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 session entity type. + # @param [String] parent + # Required. The session to create a session entity type for. + # Format: `projects//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_session_entity_type(parent, google_cloud_dialogflow_v2_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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 entity type to delete. Format: + # `projects//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # is not specified, we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::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//agent/sessions//entityTypes/` or `projects//agent/runtimes//sessions//entityTypes/`. Note: + # Runtimes are under construction and will be available soon. If + # is not specified, we assume default 'sandbox' runtime. + # @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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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//agent/sessions/` or + # `projects//agent/runtimes//sessions/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. By + # default 100 and at most 1000. + # @param [String] page_token + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] + # + # @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_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse + 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 this session entity type. Format: + # `projects//agent/sessions//entityTypes/`, or + # `projects//agent/runtimes/sessions//entityTypes/`. + # Note: Runtimes are under construction and will be available soon. + # If is not specified, we assume default 'sandbox' runtime. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object + # @param [String] update_mask + # Optional. 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::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] + # + # @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_agent_session_entity_type(name, google_cloud_dialogflow_v2_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.request_object = google_cloud_dialogflow_v2_session_entity_type_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType + 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 + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @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::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::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 get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index 21623942b..7719c91ec 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1beta2 VERSION = 'V1beta2' - REVISION = '20180119' + REVISION = '20180314' # 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/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb index b31b1a052..391ea83d1 100644 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ b/generated/google/apis/dns_v1beta2/classes.rb @@ -501,25 +501,6 @@ module Google end end - # - class ManagedZonesDeleteResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - end - end - # class ManagedZonesListResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dns_v1beta2/representations.rb b/generated/google/apis/dns_v1beta2/representations.rb index af6f05f16..6abe474d4 100644 --- a/generated/google/apis/dns_v1beta2/representations.rb +++ b/generated/google/apis/dns_v1beta2/representations.rb @@ -76,12 +76,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ManagedZonesDeleteResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ManagedZonesListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -251,14 +245,6 @@ module Google end end - class ManagedZonesDeleteResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation - - end - end - class ManagedZonesListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dns_v1beta2/service.rb b/generated/google/apis/dns_v1beta2/service.rb index a9bbeb804..63ea963e3 100644 --- a/generated/google/apis/dns_v1beta2/service.rb +++ b/generated/google/apis/dns_v1beta2/service.rb @@ -460,18 +460,16 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse] + # @return [void] # # @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options) - command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse::Representation - command.response_class = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index c12f91ffe..1d052bf2e 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV2beta1 VERSION = 'V2beta1' - REVISION = '20180309' + REVISION = '20180314' # 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/dns_v2beta1/classes.rb b/generated/google/apis/dns_v2beta1/classes.rb index 7d1dfbf00..a4bf38b1e 100644 --- a/generated/google/apis/dns_v2beta1/classes.rb +++ b/generated/google/apis/dns_v2beta1/classes.rb @@ -501,25 +501,6 @@ module Google end end - # - class ManagedZonesDeleteResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - end - end - # class ManagedZonesListResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dns_v2beta1/representations.rb b/generated/google/apis/dns_v2beta1/representations.rb index a1831095e..7f26b2d91 100644 --- a/generated/google/apis/dns_v2beta1/representations.rb +++ b/generated/google/apis/dns_v2beta1/representations.rb @@ -76,12 +76,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ManagedZonesDeleteResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ManagedZonesListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -251,14 +245,6 @@ module Google end end - class ManagedZonesDeleteResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation - - end - end - class ManagedZonesListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dns_v2beta1/service.rb b/generated/google/apis/dns_v2beta1/service.rb index b50150a5b..716ae2baa 100644 --- a/generated/google/apis/dns_v2beta1/service.rb +++ b/generated/google/apis/dns_v2beta1/service.rb @@ -460,18 +460,16 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse] + # @return [void] # # @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options) - command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse::Representation - command.response_class = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 314fc5eef..9a94d153e 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20180227' + REVISION = '20180314' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 00123ba21..4ef27d114 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -82,9 +82,7 @@ module Google # @return [String] attr_accessor :kind - # Whether replication log archiving is enabled. Replication log archiving is - # required for the point-in-time recovery (PITR) feature. PostgreSQL instances - # only. + # Reserved for future use. # Corresponds to the JSON property `replicationLogArchivingEnabled` # @return [Boolean] attr_accessor :replication_log_archiving_enabled @@ -282,9 +280,7 @@ module Google # @return [String] attr_accessor :kind - # The epoch timestamp, in milliseconds, of the time to which a point-in-time - # recovery (PITR) is performed. PostgreSQL instances only. For MySQL instances, - # use the binLogCoordinates property. + # Reserved for future use. # Corresponds to the JSON property `pitrTimestampMs` # @return [Fixnum] attr_accessor :pitr_timestamp_ms diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb index a9b369a1d..4fcc1a492 100644 --- a/generated/google/apis/storagetransfer_v1.rb +++ b/generated/google/apis/storagetransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/storage/transfer module StoragetransferV1 VERSION = 'V1' - REVISION = '20180308' + REVISION = '20180319' # 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/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb index 3f9286337..af8fdb42d 100644 --- a/generated/google/apis/storagetransfer_v1/service.rb +++ b/generated/google/apis/storagetransfer_v1/service.rb @@ -44,7 +44,7 @@ module Google attr_accessor :quota_user def initialize - super('https://content-storagetransfer.googleapis.com/', '') + super('https://storagetransfer.googleapis.com/', '') @batch_path = 'batch' end