diff --git a/api_names_out.yaml b/api_names_out.yaml index e43a48897..14bf826a6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -36451,6 +36451,7 @@ "/content:v2/AccountStatusAccountLevelIssue/country": country "/content:v2/AccountStatusAccountLevelIssue/destination": destination "/content:v2/AccountStatusAccountLevelIssue/detail": detail +"/content:v2/AccountStatusAccountLevelIssue/documentation": documentation "/content:v2/AccountStatusAccountLevelIssue/id": id "/content:v2/AccountStatusAccountLevelIssue/severity": severity "/content:v2/AccountStatusAccountLevelIssue/title": title @@ -57118,6 +57119,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2WebhookResponse/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2WebhookResponse/payload/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2WebhookResponse/source": source +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest": google_cloud_dialogflow_v2beta1_add_conversation_phone_number_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent": google_cloud_dialogflow_v2beta1_agent "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent/avatarUri": avatar_uri "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent/classificationThreshold": classification_threshold @@ -57130,6 +57132,20 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent/supportedLanguageCodes": supported_language_codes "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent/supportedLanguageCodes/supported_language_code": supported_language_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Agent/timeZone": time_zone +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentRequest": google_cloud_dialogflow_v2beta1_analyze_content_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentRequest/audio": audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentRequest/replyAudioConfig": reply_audio_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentRequest/text": text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentResponse": google_cloud_dialogflow_v2beta1_analyze_content_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentResponse/automatedAgentReply": automated_agent_reply +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentResponse/replyAudio": reply_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AnalyzeContentResponse/replyText": reply_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ArticleSuggestionConfig": google_cloud_dialogflow_v2beta1_article_suggestion_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ArticleSuggestionConfig/knowledgeBaseName": knowledge_base_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentConfig": google_cloud_dialogflow_v2beta1_automated_agent_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentConfig/agent": agent +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply": google_cloud_dialogflow_v2beta1_automated_agent_reply +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1AutomatedAgentReply/detectIntentResponse": detect_intent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest": google_cloud_dialogflow_v2beta1_batch_create_entities_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest/entities": entities "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest/entities/entity": entity @@ -57166,11 +57182,35 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse": google_cloud_dialogflow_v2beta1_batch_update_intents_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents": intents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest": google_cloud_dialogflow_v2beta1_cancel_phone_number_order_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsRequest": google_cloud_dialogflow_v2beta1_compile_suggestions_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsRequest/messages": messages +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsRequest/messages/message": message +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsResponse": google_cloud_dialogflow_v2beta1_compile_suggestions_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsResponse/suggestions": suggestions +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsResponse/suggestions/suggestion": suggestion +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompleteConversationRequest": google_cloud_dialogflow_v2beta1_complete_conversation_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context": google_cloud_dialogflow_v2beta1_context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context/lifespanCount": lifespan_count "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context/name": name "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context/parameters": parameters "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Context/parameters/parameter": parameter +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation": google_cloud_dialogflow_v2beta1_conversation +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/conversationProfile": conversation_profile +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/endTime": end_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/lifecycleState": lifecycle_state +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/phoneNumber": phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Conversation/startTime": start_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationPhoneNumber": google_cloud_dialogflow_v2beta1_conversation_phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationPhoneNumber/phoneNumber": phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile": google_cloud_dialogflow_v2beta1_conversation_profile +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/automatedAgentConfig": automated_agent_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/displayName": display_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/humanAgentAssistantConfig": human_agent_assistant_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/loggingConfig": logging_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ConversationProfile/notificationConfig": notification_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest": google_cloud_dialogflow_v2beta1_detect_intent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/inputAudio": input_audio "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1DetectIntentRequest/outputAudioConfig": output_audio_config @@ -57217,9 +57257,22 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse": google_cloud_dialogflow_v2beta1_export_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1FaqAnswersConfig": google_cloud_dialogflow_v2beta1_faq_answers_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1FaqAnswersConfig/knowledgeBaseName": knowledge_base_name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1FaqAnswersConfig/maxResults": max_results +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistant": google_cloud_dialogflow_v2beta1_human_agent_assistant +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistant/articleSuggestionConfig": article_suggestion_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistant/faqAnswersConfig": faq_answers_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistant/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig": google_cloud_dialogflow_v2beta1_human_agent_assistant_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig/notificationConfig": notification_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest": google_cloud_dialogflow_v2beta1_import_agent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest/agentUri": agent_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio": google_cloud_dialogflow_v2beta1_input_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio/audio": audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio/config": config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig": google_cloud_dialogflow_v2beta1_input_audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/audioEncoding": audio_encoding "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/languageCode": language_code @@ -57227,6 +57280,11 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/phraseHints": phrase_hints "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/phraseHints/phrase_hint": phrase_hint "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudioConfig/sampleRateHertz": sample_rate_hertz +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputText": google_cloud_dialogflow_v2beta1_input_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputText/languageCode": language_code +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputText/text": text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputTextConfig": google_cloud_dialogflow_v2beta1_input_text_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputTextConfig/languageCode": language_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent": google_cloud_dialogflow_v2beta1_intent "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/action": action "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms @@ -57392,6 +57450,14 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts": contexts "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts/context": context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationProfilesResponse": google_cloud_dialogflow_v2beta1_list_conversation_profiles_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationProfilesResponse/conversationProfiles": conversation_profiles +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationProfilesResponse/conversationProfiles/conversation_profile": conversation_profile +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationProfilesResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationsResponse": google_cloud_dialogflow_v2beta1_list_conversations_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationsResponse/conversations": conversations +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationsResponse/conversations/conversation": conversation +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListConversationsResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse": google_cloud_dialogflow_v2beta1_list_documents_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse/documents": documents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListDocumentsResponse/documents/document": document @@ -57400,6 +57466,10 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse/entityTypes": entity_types "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse/entityTypes/entity_type": entity_type "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListEntityTypesResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse": google_cloud_dialogflow_v2beta1_list_human_agent_assistants_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse/humanAgentAssistants": human_agent_assistants +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse/humanAgentAssistants/human_agent_assistant": human_agent_assistant +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse": google_cloud_dialogflow_v2beta1_list_intents_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse/intents": intents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListIntentsResponse/intents/intent": intent @@ -57408,19 +57478,73 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/knowledgeBases": knowledge_bases "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/knowledgeBases/knowledge_basis": knowledge_basis "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListMessagesResponse": google_cloud_dialogflow_v2beta1_list_messages_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListMessagesResponse/messages": messages +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListMessagesResponse/messages/message": message +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListMessagesResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListParticipantsResponse": google_cloud_dialogflow_v2beta1_list_participants_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListParticipantsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListParticipantsResponse/participants": participants +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListParticipantsResponse/participants/participant": participant +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse": google_cloud_dialogflow_v2beta1_list_phone_number_orders_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse/phoneNumberOrders": phone_number_orders +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse/phoneNumberOrders/phone_number_order": phone_number_order +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse": google_cloud_dialogflow_v2beta1_list_phone_numbers_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse/phoneNumbers": phone_numbers +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse/phoneNumbers/phone_number": phone_number "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse": google_cloud_dialogflow_v2beta1_list_session_entity_types_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse/nextPageToken": next_page_token "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse/sessionEntityTypes": session_entity_types "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse/sessionEntityTypes/session_entity_type": session_entity_type +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSuggestionsResponse": google_cloud_dialogflow_v2beta1_list_suggestions_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSuggestionsResponse/nextPageToken": next_page_token +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSuggestionsResponse/suggestions": suggestions +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListSuggestionsResponse/suggestions/suggestion": suggestion +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1LoggingConfig": google_cloud_dialogflow_v2beta1_logging_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message": google_cloud_dialogflow_v2beta1_message +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/content": content +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/createTime": create_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/languageCode": language_code +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/participant": participant +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Message/participantRole": participant_role +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1NotificationConfig": google_cloud_dialogflow_v2beta1_notification_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1NotificationConfig/topic": topic "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest": google_cloud_dialogflow_v2beta1_original_detect_intent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload/payload": payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/source": source "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/version": version +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudio": google_cloud_dialogflow_v2beta1_output_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudio/audio": audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudio/config": config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig": google_cloud_dialogflow_v2beta1_output_audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/audioEncoding": audio_encoding "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/sampleRateHertz": sample_rate_hertz "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1OutputAudioConfig/synthesizeSpeechConfig": synthesize_speech_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Participant": google_cloud_dialogflow_v2beta1_participant +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Participant/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Participant/role": role +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumber": google_cloud_dialogflow_v2beta1_phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumber/conversationProfile": conversation_profile +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumber/lifecycleState": lifecycle_state +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumber/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumber/phoneNumber": phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder": google_cloud_dialogflow_v2beta1_phone_number_order +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/createTime": create_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/description": description +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/lifecycleState": lifecycle_state +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/phoneNumberSpec": phone_number_spec +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/phoneNumbers": phone_numbers +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/phoneNumbers/phone_number": phone_number +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberOrder/updateTime": update_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberSpec": google_cloud_dialogflow_v2beta1_phone_number_spec +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberSpec/count": count +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberSpec/preferredAreaCodes": preferred_area_codes +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1PhoneNumberSpec/preferredAreaCodes/preferred_area_code": preferred_area_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput": google_cloud_dialogflow_v2beta1_query_input "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput/audioConfig": audio_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryInput/event": event @@ -57479,6 +57603,43 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entities/entity": entity "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entityOverrideMode": entity_override_mode "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest": google_cloud_dialogflow_v2beta1_streaming_analyze_content_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest/audioConfig": audio_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest/inputAudio": input_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest/inputText": input_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest/replyAudioConfig": reply_audio_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest/textConfig": text_config +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse": google_cloud_dialogflow_v2beta1_streaming_analyze_content_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse/automatedAgentReply": automated_agent_reply +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse/recognitionResult": recognition_result +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse/replyAudio": reply_audio +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse/replyText": reply_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingRecognitionResult": google_cloud_dialogflow_v2beta1_streaming_recognition_result +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingRecognitionResult/confidence": confidence +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingRecognitionResult/isFinal": is_final +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingRecognitionResult/messageType": message_type +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingRecognitionResult/transcript": transcript +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion": google_cloud_dialogflow_v2beta1_suggestion +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/articles": articles +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/articles/article": article +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/createTime": create_time +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/faqAnswers": faq_answers +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/faqAnswers/faq_answer": faq_answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Suggestion/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle": google_cloud_dialogflow_v2beta1_suggestion_article +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/metadata": metadata +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/metadata/metadatum": metadatum +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/snippets": snippets +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/snippets/snippet": snippet +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/title": title +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionArticle/uri": uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer": google_cloud_dialogflow_v2beta1_suggestion_faq_answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/answer": answer +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/confidence": confidence +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/metadata": metadata +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/metadata/metadatum": metadatum +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/question": question +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SuggestionFaqAnswer/source": source "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig": google_cloud_dialogflow_v2beta1_synthesize_speech_config "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/effectsProfileId": effects_profile_id "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig/effectsProfileId/effects_profile_id": effects_profile_id @@ -57490,6 +57651,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TextInput/languageCode": language_code "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TextInput/text": text "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1TrainAgentRequest": google_cloud_dialogflow_v2beta1_train_agent_request +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest": google_cloud_dialogflow_v2beta1_undelete_phone_number_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams": google_cloud_dialogflow_v2beta1_voice_selection_params "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams/name": name "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1VoiceSelectionParams/ssmlGender": ssml_gender @@ -57950,6 +58112,23 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.sessions.entityTypes.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.agent.train": train_agent "/dialogflow:v2beta1/dialogflow.projects.agent.train/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.create": create_project_conversation_profile +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.delete": delete_project_conversation_profile +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.get": get_project_conversation_profile +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.list": list_project_conversation_profiles +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.patch": patch_project_conversation_profile +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversationProfiles.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.conversations.addConversationPhoneNumber": add_project_conversation_conversation_phone_number +"/dialogflow:v2beta1/dialogflow.projects.conversations.addConversationPhoneNumber/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversations.complete": complete_project_conversation +"/dialogflow:v2beta1/dialogflow.projects.conversations.complete/name": name "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.create": create_project_conversation_context "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.create/parent": parent "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.delete": delete_project_conversation_context @@ -57963,10 +58142,69 @@ "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.patch": patch_project_conversation_context "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.patch/name": name "/dialogflow:v2beta1/dialogflow.projects.conversations.contexts.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.conversations.create": create_project_conversation +"/dialogflow:v2beta1/dialogflow.projects.conversations.create/parent": parent "/dialogflow:v2beta1/dialogflow.projects.conversations.deleteContexts": delete_project_conversation_contexts "/dialogflow:v2beta1/dialogflow.projects.conversations.deleteContexts/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversations.get": get_project_conversation +"/dialogflow:v2beta1/dialogflow.projects.conversations.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversations.list": list_project_conversations +"/dialogflow:v2beta1/dialogflow.projects.conversations.list/filter": filter +"/dialogflow:v2beta1/dialogflow.projects.conversations.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.conversations.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.conversations.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversations.messages.list": list_project_conversation_messages +"/dialogflow:v2beta1/dialogflow.projects.conversations.messages.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.conversations.messages.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.conversations.messages.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.analyzeContent": analyze_project_conversation_participant_content +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.analyzeContent/participant": participant +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.create": create_project_conversation_participant +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.get": get_project_conversation_participant +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.list": list_project_conversation_participants +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.streamingAnalyzeContent": streaming_project_conversation_participant_analyze_content +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.streamingAnalyzeContent/participant": participant +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.suggestions.list": list_project_conversation_participant_suggestions +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.suggestions.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.suggestions.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.conversations.participants.suggestions.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.create": create_project_environment_user_conversation_context +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.delete": delete_project_environment_user_conversation_context +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.get": get_project_environment_user_conversation_context +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.list": list_project_environment_user_conversation_contexts +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.patch": patch_project_environment_user_conversation_context +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.contexts.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.deleteContexts": delete_project_environment_user_conversation_contexts +"/dialogflow:v2beta1/dialogflow.projects.environments.users.conversations.deleteContexts/parent": parent "/dialogflow:v2beta1/dialogflow.projects.getAgent": get_project_agent "/dialogflow:v2beta1/dialogflow.projects.getAgent/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.compileSuggestions": compile_project_human_agent_assistant_suggestions +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.compileSuggestions/name": name +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.create": create_project_human_agent_assistant +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.delete": delete_project_human_agent_assistant +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.get": get_project_human_agent_assistant +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.list": list_project_human_agent_assistants +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.patch": patch_project_human_agent_assistant +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.humanAgentAssistants.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.create": create_project_knowledge_basis "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.create/parent": parent "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.delete": delete_project_knowledge_basis @@ -57990,6 +58228,31 @@ "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/parent": parent "/dialogflow:v2beta1/dialogflow.projects.operations.get": get_project_operation "/dialogflow:v2beta1/dialogflow.projects.operations.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.cancel": cancel_project_phone_number_order +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.cancel/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.create": create_project_phone_number_order +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.create/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.get": get_project_phone_number_order +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.get/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.list": list_project_phone_number_orders +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.patch": patch_project_phone_number_order +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.delete": delete_project_phone_number +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.delete/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.list": list_project_phone_numbers +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.list/pageSize": page_size +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.list/pageToken": page_token +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.list/showDeleted": show_deleted +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.patch": patch_project_phone_number +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.undelete": undelete_project_phone_number +"/dialogflow:v2beta1/dialogflow.projects.phoneNumbers.undelete/name": name "/dialogflow:v2beta1/fields": fields "/dialogflow:v2beta1/key": key "/dialogflow:v2beta1/quotaUser": quota_user @@ -87927,6 +88190,8 @@ "/tpu:v1/ListNodesResponse/nextPageToken": next_page_token "/tpu:v1/ListNodesResponse/nodes": nodes "/tpu:v1/ListNodesResponse/nodes/node": node +"/tpu:v1/ListNodesResponse/unreachable": unreachable +"/tpu:v1/ListNodesResponse/unreachable/unreachable": unreachable "/tpu:v1/ListOperationsResponse": list_operations_response "/tpu:v1/ListOperationsResponse/nextPageToken": next_page_token "/tpu:v1/ListOperationsResponse/operations": operations @@ -88069,6 +88334,8 @@ "/tpu:v1alpha1/ListNodesResponse/nextPageToken": next_page_token "/tpu:v1alpha1/ListNodesResponse/nodes": nodes "/tpu:v1alpha1/ListNodesResponse/nodes/node": node +"/tpu:v1alpha1/ListNodesResponse/unreachable": unreachable +"/tpu:v1alpha1/ListNodesResponse/unreachable/unreachable": unreachable "/tpu:v1alpha1/ListOperationsResponse": list_operations_response "/tpu:v1alpha1/ListOperationsResponse/nextPageToken": next_page_token "/tpu:v1alpha1/ListOperationsResponse/operations": operations diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index f3c3b8cfa..b0c6ee09c 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 = '20181002' + REVISION = '20181009' # 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 2cc4eab99..188bb08a1 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -384,6 +384,11 @@ module Google # @return [String] attr_accessor :detail + # The URL of a web page to help resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + # Issue identifier. # Corresponds to the JSON property `id` # @return [String] @@ -408,6 +413,7 @@ module Google @country = args[:country] if args.key?(:country) @destination = args[:destination] if args.key?(:destination) @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) @id = args[:id] if args.key?(:id) @severity = args[:severity] if args.key?(:severity) @title = args[:title] if args.key?(:title) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index d9c0c17d0..28ea2b78a 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -1705,6 +1705,7 @@ module Google property :country, as: 'country' property :destination, as: 'destination' property :detail, as: 'detail' + property :documentation, as: 'documentation' property :id, as: 'id' property :severity, as: 'severity' property :title, as: 'title' diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index dbbe566e8..3105b7292 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20180920' + REVISION = '20181009' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 74254680d..1c8283535 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -384,7 +384,7 @@ module Google # 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 + # immediately. Contexts expire automatically after 20 minutes even if there # are no matching queries. # Corresponds to the JSON property `lifespanCount` # @return [Fixnum] @@ -535,7 +535,7 @@ module Google # @return [String] attr_accessor :auto_expansion_mode - # Required. The name of the entity. + # Required. The name of the entity type. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -1981,9 +1981,9 @@ module Google 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. + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. # Corresponds to the JSON property `sessionEntityTypes` # @return [Array] attr_accessor :session_entity_types @@ -2229,6 +2229,8 @@ module Google # Required. The unique identifier of this session entity type. Format: # `projects//agent/sessions//entityTypes/`. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2497,7 +2499,7 @@ module Google # @return [String] attr_accessor :auto_expansion_mode - # Required. The name of the entity. + # Required. The name of the entity type. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index dc3bb1f5c..e0ae7f81c 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -1010,6 +1010,7 @@ module Google end # Creates a context. + # If the specified context already exists, overrides the context. # @param [String] parent # Required. The session to create a context for. # Format: `projects//agent/sessions/`. @@ -1181,6 +1182,8 @@ module Google end # Creates a session entity type. + # If the specified session entity type already exists, overrides the session + # entity type. # @param [String] parent # Required. The session to create a session entity type for. # Format: `projects//agent/sessions/`. @@ -1321,6 +1324,8 @@ module Google # Required. The unique identifier of this session entity type. Format: # `projects//agent/sessions//entityTypes/`. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. # @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. diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 8929f33ee..4b599328c 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20180920' + REVISION = '20181009' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index e4d5b4e54..f6c99e71a 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -66,7 +66,7 @@ module Google # 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 + # immediately. Contexts expire automatically after 20 minutes even if there # are no matching queries. # Corresponds to the JSON property `lifespanCount` # @return [Fixnum] @@ -109,7 +109,7 @@ module Google # @return [String] attr_accessor :auto_expansion_mode - # Required. The name of the entity. + # Required. The name of the entity type. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -1470,6 +1470,19 @@ module Google end end + # The request message for Conversations.AddConversationPhoneNumber. + class GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Represents a conversational agent. class GoogleCloudDialogflowV2beta1Agent include Google::Apis::Core::Hashable @@ -1560,6 +1573,138 @@ module Google end end + # The request message for Conversations.AnalyzeContent. + class GoogleCloudDialogflowV2beta1AnalyzeContentRequest + include Google::Apis::Core::Hashable + + # Represents the natural language speech audio to be processed. + # Corresponds to the JSON property `audio` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio] + attr_accessor :audio + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `replyAudioConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] + attr_accessor :reply_audio_config + + # Represents the natural language text to be processed. + # Corresponds to the JSON property `text` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config) + @text = args[:text] if args.key?(:text) + end + end + + # The response message for Conversations.AnalyzeContent. + class GoogleCloudDialogflowV2beta1AnalyzeContentResponse + include Google::Apis::Core::Hashable + + # Represent a response from an automated agent. + # Corresponds to the JSON property `automatedAgentReply` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply] + attr_accessor :automated_agent_reply + + # Represents the natural language speech audio to be played to the end user. + # Corresponds to the JSON property `replyAudio` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio] + attr_accessor :reply_audio + + # Output only. The output text content. + # This field is set if the automated agent responded with text to show to + # the user. + # Corresponds to the JSON property `replyText` + # @return [String] + attr_accessor :reply_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automated_agent_reply = args[:automated_agent_reply] if args.key?(:automated_agent_reply) + @reply_audio = args[:reply_audio] if args.key?(:reply_audio) + @reply_text = args[:reply_text] if args.key?(:reply_text) + end + end + + # Defines article suggestions that a human agent assistant can provide. + class GoogleCloudDialogflowV2beta1ArticleSuggestionConfig + include Google::Apis::Core::Hashable + + # Required. Settings for knowledge base, Format: + # `projects//knowledgeBases/`. + # Corresponds to the JSON property `knowledgeBaseName` + # @return [String] + attr_accessor :knowledge_base_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @knowledge_base_name = args[:knowledge_base_name] if args.key?(:knowledge_base_name) + end + end + + # Defines the Automated Agent to connect to a conversation. + class GoogleCloudDialogflowV2beta1AutomatedAgentConfig + include Google::Apis::Core::Hashable + + # Required. ID of the Dialogflow agent environment to use. + # This project needs to either be the same project as the conversation or you + # need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API + # Service Agent` role in this project. + # Format: `projects//agent/environments/` + # If environment is not specified, the default `draft` environment is + # used. Refer to + # [DetectIntentRequest](/dialogflow-enterprise/docs/reference/rpc/google.cloud. + # dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.DetectIntentRequest) + # for more details. + # Corresponds to the JSON property `agent` + # @return [String] + attr_accessor :agent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent = args[:agent] if args.key?(:agent) + end + end + + # Represent a response from an automated agent. + class GoogleCloudDialogflowV2beta1AutomatedAgentReply + include Google::Apis::Core::Hashable + + # The message returned from the DetectIntent method. + # Corresponds to the JSON property `detectIntentResponse` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse] + attr_accessor :detect_intent_response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response) + end + end + # The request message for EntityTypes.BatchCreateEntities. class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest include Google::Apis::Core::Hashable @@ -1826,6 +1971,72 @@ module Google end end + # The request message for PhoneNumberOrders.CancelPhoneNumberOrder. + class GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest + 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 + # HumanAgentAssistants.RequestCompileSuggestions. + class GoogleCloudDialogflowV2beta1CompileSuggestionsRequest + include Google::Apis::Core::Hashable + + # Required. List of messages in a conversation in chronological order. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @messages = args[:messages] if args.key?(:messages) + end + end + + # The response message for + # HumanAgentAssistants.RequestCompileSuggestions + class GoogleCloudDialogflowV2beta1CompileSuggestionsResponse + include Google::Apis::Core::Hashable + + # Required. + # 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 request message for Conversations.CompleteConversation. + class GoogleCloudDialogflowV2beta1CompleteConversationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Represents a context. class GoogleCloudDialogflowV2beta1Context include Google::Apis::Core::Hashable @@ -1868,6 +2079,138 @@ module Google end end + # Represents a conversation. + # A conversation is an interaction between an agent, including live agents + # and Dialogflow agents, and a support customer. Conversations can + # include phone calls and text-based chat sessions. + class GoogleCloudDialogflowV2beta1Conversation + include Google::Apis::Core::Hashable + + # Required. The Conversation Profile to be used to configure this + # Conversation. This field cannot be updated. + # Format: `projects//conversationProfiles/`. + # Corresponds to the JSON property `conversationProfile` + # @return [String] + attr_accessor :conversation_profile + + # Output only. The time the conversation was finished. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Output only. The current state of the Conversation. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # The unique identifier of this conversation. + # Required for all methods except `create` (`create` populates the name + # automatically). + # Format: `projects//conversations/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Represents a phone number for telephony integration. It allows for connecting + # a particular conversation over telephony. + # Corresponds to the JSON property `phoneNumber` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber] + attr_accessor :phone_number + + # Output only. The time the conversation was started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile) + @end_time = args[:end_time] if args.key?(:end_time) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @name = args[:name] if args.key?(:name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Represents a phone number for telephony integration. It allows for connecting + # a particular conversation over telephony. + class GoogleCloudDialogflowV2beta1ConversationPhoneNumber + include Google::Apis::Core::Hashable + + # Output only. The phone number to connect to this conversation. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # Defines the services to connect to incoming Dialogflow conversations. + class GoogleCloudDialogflowV2beta1ConversationProfile + include Google::Apis::Core::Hashable + + # Defines the Automated Agent to connect to a conversation. + # Corresponds to the JSON property `automatedAgentConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentConfig] + attr_accessor :automated_agent_config + + # Required. Human readable name for this profile. Max length 1024 bytes. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Defines the Human Agent Assistant to connect to a conversation. + # Corresponds to the JSON property `humanAgentAssistantConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig] + attr_accessor :human_agent_assistant_config + + # Defines logging behavior for conversation lifecycle events. + # Corresponds to the JSON property `loggingConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1LoggingConfig] + attr_accessor :logging_config + + # Required for all methods except `create` (`create` populates the name + # automatically). + # The unique identifier of this conversation profile. + # Format: `projects//conversationProfiles/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Defines notification behavior for conversation lifecycle events. + # Corresponds to the JSON property `notificationConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig] + attr_accessor :notification_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automated_agent_config = args[:automated_agent_config] if args.key?(:automated_agent_config) + @display_name = args[:display_name] if args.key?(:display_name) + @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config) + @logging_config = args[:logging_config] if args.key?(:logging_config) + @name = args[:name] if args.key?(:name) + @notification_config = args[:notification_config] if args.key?(:notification_config) + end + end + # The request to detect user's intent. class GoogleCloudDialogflowV2beta1DetectIntentRequest include Google::Apis::Core::Hashable @@ -2009,6 +2352,8 @@ module Google end # A document resource. + # Note: resource `projects.agent.knowledgeBases.documents` is deprecated, + # please use `projects.knowledgeBases.documents` instead. class GoogleCloudDialogflowV2beta1Document include Google::Apis::Core::Hashable @@ -2090,7 +2435,7 @@ module Google # @return [String] attr_accessor :auto_expansion_mode - # Required. The name of the entity. + # Required. The name of the entity type. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -2278,6 +2623,96 @@ module Google end end + # Defines FAQ responses that a human agent assistant can provide. + class GoogleCloudDialogflowV2beta1FaqAnswersConfig + include Google::Apis::Core::Hashable + + # Required. Settings for knowledge base, Format: + # `projects//knowledgeBases/`. + # Corresponds to the JSON property `knowledgeBaseName` + # @return [String] + attr_accessor :knowledge_base_name + + # Optional. Maximum number of results to return. If unset, defaults to 10. + # Corresponds to the JSON property `maxResults` + # @return [Fixnum] + attr_accessor :max_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @knowledge_base_name = args[:knowledge_base_name] if args.key?(:knowledge_base_name) + @max_results = args[:max_results] if args.key?(:max_results) + end + end + + # Represents a human agent assistant that provides suggestions to help + # human agents to resolve customer issues. This defines the types of content + # that the human agent assistant can present to a human agent. + class GoogleCloudDialogflowV2beta1HumanAgentAssistant + include Google::Apis::Core::Hashable + + # Defines article suggestions that a human agent assistant can provide. + # Corresponds to the JSON property `articleSuggestionConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionConfig] + attr_accessor :article_suggestion_config + + # Defines FAQ responses that a human agent assistant can provide. + # Corresponds to the JSON property `faqAnswersConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswersConfig] + attr_accessor :faq_answers_config + + # Required for all methods except `create` (`create` populates the name + # automatically). + # The unique identifier of human agent assistant. + # Format: `projects//humanAgentAssistants/`. + # 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) + @article_suggestion_config = args[:article_suggestion_config] if args.key?(:article_suggestion_config) + @faq_answers_config = args[:faq_answers_config] if args.key?(:faq_answers_config) + @name = args[:name] if args.key?(:name) + end + end + + # Defines the Human Agent Assistant to connect to a conversation. + class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig + include Google::Apis::Core::Hashable + + # Required. ID of the agent assistant to use. + # Format: `projects//humanAgentAssistants/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Defines notification behavior for conversation lifecycle events. + # Corresponds to the JSON property `notificationConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig] + attr_accessor :notification_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @notification_config = args[:notification_config] if args.key?(:notification_config) + end + end + # The request message for Agents.ImportAgent. class GoogleCloudDialogflowV2beta1ImportAgentRequest include Google::Apis::Core::Hashable @@ -2318,6 +2753,34 @@ module Google end end + # Represents the natural language speech audio to be processed. + class GoogleCloudDialogflowV2beta1InputAudio + include Google::Apis::Core::Hashable + + # Required. The natural language speech audio to be processed. + # A single request can contain up to 1 minute of speech audio data. + # The transcribed text cannot contain more than 256 bytes. + # Corresponds to the JSON property `audio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :audio + + # Instructs the speech recognizer how to process the audio content. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @config = args[:config] if args.key?(:config) + end + end + # Instructs the speech recognizer how to process the audio content. class GoogleCloudDialogflowV2beta1InputAudioConfig include Google::Apis::Core::Hashable @@ -2386,6 +2849,55 @@ module Google end end + # Represents the natural language text to be processed. + class GoogleCloudDialogflowV2beta1InputText + 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. + # 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 + + # Defines the language used in the input text. + class GoogleCloudDialogflowV2beta1InputTextConfig + 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. + # 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) + @language_code = args[:language_code] if args.key?(:language_code) + 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. @@ -3536,6 +4048,8 @@ module Google end # Represents knowledge base resource. + # Note: resource `projects.agent.knowledgeBases` is deprecated, please use + # `projects.knowledgeBases` instead. class GoogleCloudDialogflowV2beta1KnowledgeBase include Google::Apis::Core::Hashable @@ -3609,6 +4123,60 @@ module Google end end + # The response message for ConversationProfiles.ListConversationProfiles. + class GoogleCloudDialogflowV2beta1ListConversationProfilesResponse + include Google::Apis::Core::Hashable + + # The list of project conversation profiles. There is a maximum number + # of items returned based on the page_size field in the request. + # Corresponds to the JSON property `conversationProfiles` + # @return [Array] + attr_accessor :conversation_profiles + + # 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) + @conversation_profiles = args[:conversation_profiles] if args.key?(:conversation_profiles) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Conversations.ListConversations. + class GoogleCloudDialogflowV2beta1ListConversationsResponse + include Google::Apis::Core::Hashable + + # The list of conversations. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `conversations` + # @return [Array] + attr_accessor :conversations + + # 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) + @conversations = args[:conversations] if args.key?(:conversations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # Response message for Documents.ListDocuments. class GoogleCloudDialogflowV2beta1ListDocumentsResponse include Google::Apis::Core::Hashable @@ -3662,6 +4230,33 @@ module Google end end + # The response message for HumanAgentAssistants.ListHumanAgentAssistants. + class GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse + include Google::Apis::Core::Hashable + + # The list of project agent assistants. There is a maximum number of + # items returned based on the page_size field in the request. + # Corresponds to the JSON property `humanAgentAssistants` + # @return [Array] + attr_accessor :human_agent_assistants + + # 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) + @human_agent_assistants = args[:human_agent_assistants] if args.key?(:human_agent_assistants) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Intents.ListIntents. class GoogleCloudDialogflowV2beta1ListIntentsResponse include Google::Apis::Core::Hashable @@ -3715,6 +4310,114 @@ module Google end end + # The response message for Conversations.ListMessages. + class GoogleCloudDialogflowV2beta1ListMessagesResponse + include Google::Apis::Core::Hashable + + # Required. The list of messages. There will be a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `messages` + # @return [Array] + attr_accessor :messages + + # Optional. 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) + @messages = args[:messages] if args.key?(:messages) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for Conversations.ListParticipants. + class GoogleCloudDialogflowV2beta1ListParticipantsResponse + 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 participants. There is a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `participants` + # @return [Array] + attr_accessor :participants + + 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) + @participants = args[:participants] if args.key?(:participants) + end + end + + # The response message for PhoneNumberOrders.ListPhoneNumberOrders. + class GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse + 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 orders. There is a maximum number of items returned based + # on the page_size field in the request. + # Corresponds to the JSON property `phoneNumberOrders` + # @return [Array] + attr_accessor :phone_number_orders + + 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) + @phone_number_orders = args[:phone_number_orders] if args.key?(:phone_number_orders) + end + end + + # The response message for PhoneNumbers.ListPhoneNumbers. + class GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse + 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 `PhoneNumber` resources. There is a maximum number of items + # returned based on the page_size field in the request. + # Corresponds to the JSON property `phoneNumbers` + # @return [Array] + attr_accessor :phone_numbers + + 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) + @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) + end + end + # The response message for SessionEntityTypes.ListSessionEntityTypes. class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse include Google::Apis::Core::Hashable @@ -3742,6 +4445,128 @@ module Google end end + # The response message for [Conversations.ListSuggestions] + class GoogleCloudDialogflowV2beta1ListSuggestionsResponse + include Google::Apis::Core::Hashable + + # Optional. 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 + + # Required. + # 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) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @suggestions = args[:suggestions] if args.key?(:suggestions) + end + end + + # Defines logging behavior for conversation lifecycle events. + class GoogleCloudDialogflowV2beta1LoggingConfig + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents a message posted into a conversation. + class GoogleCloudDialogflowV2beta1Message + include Google::Apis::Core::Hashable + + # Required. The message content. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Optional. The time when the message was sent. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. The message language. + # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + # language tag. Example: "en-US". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Required. The unique identifier of the message. + # Format: `projects//conversations//messages/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The participant that said this message. + # Corresponds to the JSON property `participant` + # @return [String] + attr_accessor :participant + + # Optional. The role of the participant. + # Corresponds to the JSON property `participantRole` + # @return [String] + attr_accessor :participant_role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @create_time = args[:create_time] if args.key?(:create_time) + @language_code = args[:language_code] if args.key?(:language_code) + @name = args[:name] if args.key?(:name) + @participant = args[:participant] if args.key?(:participant) + @participant_role = args[:participant_role] if args.key?(:participant_role) + end + end + + # Defines notification behavior for conversation lifecycle events. + class GoogleCloudDialogflowV2beta1NotificationConfig + include Google::Apis::Core::Hashable + + # Optional. Name of the Cloud Pub/Sub topic to publish conversation + # events like + # CONVERSATION_STARTED as + # serialized ConversationEvent protos. + # If enable_notifications is + # `true` and no topic is supplied, a new topic is created and listed + # here. + # Notification works for phone calls, if this topic either is in the same + # project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service + # Agent` role in the topic project. + # Format: `projects//topics/`. + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @topic = args[:topic] if args.key?(:topic) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest @@ -3787,6 +4612,32 @@ module Google end end + # Represents the natural language speech audio to be played to the end user. + class GoogleCloudDialogflowV2beta1OutputAudio + include Google::Apis::Core::Hashable + + # Required. The natural language speech audio. + # Corresponds to the JSON property `audio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :audio + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @config = args[:config] if args.key?(:config) + end + end + # Instructs the speech synthesizer how to generate the output audio content. class GoogleCloudDialogflowV2beta1OutputAudioConfig include Google::Apis::Core::Hashable @@ -3822,6 +4673,170 @@ module Google end end + # Represents a single side of the conversation. + class GoogleCloudDialogflowV2beta1Participant + include Google::Apis::Core::Hashable + + # Required. The unique identifier of this participant. + # Format: `projects//conversations//participants/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The role this participant plays in the conversation. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @role = args[:role] if args.key?(:role) + end + end + + # Represents a phone number. + # `PhoneNumber` resources enable phone calls to be answered by Dialogflow + # services and are added to a project through a `PhoneNumberOrder`. + class GoogleCloudDialogflowV2beta1PhoneNumber + include Google::Apis::Core::Hashable + + # Optional. The conversation profile calls to this `PhoneNumber` should use. + # Format: `projects//conversationProfiles/`. + # Corresponds to the JSON property `conversationProfile` + # @return [String] + attr_accessor :conversation_profile + + # Output only. The state of the `PhoneNumber`. Defaults to `ACTIVE`. + # `PhoneNumber` objects set to `DELETE_REQUESTED` always decline incoming + # calls and can be removed completely within 30 days. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # Required. The unique identifier of this phone number. + # Format: `projects//phoneNumbers/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Phone number in [E.164](https://en.wikipedia.org/wiki/E.164) + # format. An example of a correctly formatted phone number: +15556767888. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @name = args[:name] if args.key?(:name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # Represents a phone number order. + # Orders can assign phone numbers to projects. + class GoogleCloudDialogflowV2beta1PhoneNumberOrder + include Google::Apis::Core::Hashable + + # Output only. The time this order was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. A description of the order, limit is 1024 bytes. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The current status of the order. + # Corresponds to the JSON property `lifecycleState` + # @return [String] + attr_accessor :lifecycle_state + + # Required. The unique identifier of this order. + # Format: `projects//phoneNumberOrders/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Request for new numbers fitting a set of parameters. + # The country code for newly requested numbers defaults to 1 (US) until the + # service is available in other regions. + # Corresponds to the JSON property `phoneNumberSpec` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberSpec] + attr_accessor :phone_number_spec + + # Output only. A map of ordered numbers filled so far, keyed by their + # resource name. Key format: + # `projects//phoneNumbers/`. + # Value format: E.164 phone number. Output only. + # Corresponds to the JSON property `phoneNumbers` + # @return [Hash] + attr_accessor :phone_numbers + + # Output only. The time this order was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @name = args[:name] if args.key?(:name) + @phone_number_spec = args[:phone_number_spec] if args.key?(:phone_number_spec) + @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Request for new numbers fitting a set of parameters. + # The country code for newly requested numbers defaults to 1 (US) until the + # service is available in other regions. + class GoogleCloudDialogflowV2beta1PhoneNumberSpec + include Google::Apis::Core::Hashable + + # Required. Total numbers requested, between 1 and 10 inclusive. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # Optional. Area codes to use. An empty list means 'any code'. Each value + # is treated as equally preferred. Each entry has a limit of 10 bytes. + # "area code" corresponds to "National Destination Code" described in + # [E.164](https://en.wikipedia.org/wiki/E.164) standard. + # Corresponds to the JSON property `preferredAreaCodes` + # @return [Array] + attr_accessor :preferred_area_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @preferred_area_codes = args[:preferred_area_codes] if args.key?(:preferred_area_codes) + 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. @@ -3905,9 +4920,9 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig] attr_accessor :sentiment_analysis_request_config - # 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. + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. # Corresponds to the JSON property `sessionEntityTypes` # @return [Array] attr_accessor :session_entity_types @@ -4243,6 +5258,8 @@ module Google # ID>/sessions//entityTypes/`. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4259,6 +5276,327 @@ module Google end end + # The top-level message sent by the client to the `StreamingAnalyzeContent` + # method. + # Multiple request messages must be sent in the following order: + # 1. The first message must contain `participant` and `config` fields. To + # receive an audio response, the first message must also contain the + # `reply_audio_config` field. The first message must not contain `input`. + # 2. All subsequent messages must contain only input data. Specifically: + # - If the `config` in the first message was set to `audio_config`, then + # all subsequent messages must contain only `input_audio`. It is a good + # practice to split the input audio into short chunks and deliver each + # chunk in a separate message. + # - If the `config` in the first message was set to `text_config`, then + # the second message must contain only `input_text`. Moreover, the + # `input_text` field can be only sent once. + # After all input is delivered, the client must half-close, or abort the + # request stream. + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest + include Google::Apis::Core::Hashable + + # Instructs the speech recognizer how to process the audio content. + # Corresponds to the JSON property `audioConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig] + attr_accessor :audio_config + + # The input audio content to be recognized. Must be sent if `audio_config` + # is set in the first message. The complete audio over all streaming + # messages must not exceed 1 minute. + # Corresponds to the JSON property `inputAudio` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :input_audio + + # The UTF-8 encoded natural language text to be processed. Must be sent if + # `text_config` is set in the first message. Text length must not exceed + # 256 bytes. The `input_text` field can be only sent once. + # Corresponds to the JSON property `inputText` + # @return [String] + attr_accessor :input_text + + # Instructs the speech synthesizer how to generate the output audio content. + # Corresponds to the JSON property `replyAudioConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig] + attr_accessor :reply_audio_config + + # Defines the language used in the input text. + # Corresponds to the JSON property `textConfig` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputTextConfig] + attr_accessor :text_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio_config = args[:audio_config] if args.key?(:audio_config) + @input_audio = args[:input_audio] if args.key?(:input_audio) + @input_text = args[:input_text] if args.key?(:input_text) + @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config) + @text_config = args[:text_config] if args.key?(:text_config) + end + end + + # The top-level message returned from the `StreamingAnalyzeContent` method. + # Multiple response messages can be returned in order: + # 1. If the input was set to streaming audio, the first one or more messages + # contain `recognition_result`. Each `recognition_result` represents a more + # complete transcript of what the user said. The last `recognition_result` + # has `is_final` set to `true`. + # 2. The next message contains `reply_text` and optionally `reply_audio` + # returned by an agent. This message may also contain + # `automated_agent_reply`. + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse + include Google::Apis::Core::Hashable + + # Represent a response from an automated agent. + # Corresponds to the JSON property `automatedAgentReply` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply] + attr_accessor :automated_agent_reply + + # Contains a speech recognition result corresponding to a portion of the audio + # that is currently being processed or an indication that this is the end + # of the single requested utterance. + # Example: + # 1. transcript: "tube" + # 2. transcript: "to be a" + # 3. transcript: "to be" + # 4. transcript: "to be or not to be" + # is_final: true + # 5. transcript: " that's" + # 6. transcript: " that is" + # 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE` + # 8. transcript: " that is the question" + # is_final: true + # Only two of the responses contain final results (#4 and #8 indicated by + # `is_final: true`). Concatenating these generates the full transcript: "to be + # or not to be that is the question". + # In each response we populate: + # * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`. + # * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`. + # Corresponds to the JSON property `recognitionResult` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult] + attr_accessor :recognition_result + + # Represents the natural language speech audio to be played to the end user. + # Corresponds to the JSON property `replyAudio` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio] + attr_accessor :reply_audio + + # Optional. The output text content. + # This field is set if an automated agent responded with a text for the user. + # Corresponds to the JSON property `replyText` + # @return [String] + attr_accessor :reply_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automated_agent_reply = args[:automated_agent_reply] if args.key?(:automated_agent_reply) + @recognition_result = args[:recognition_result] if args.key?(:recognition_result) + @reply_audio = args[:reply_audio] if args.key?(:reply_audio) + @reply_text = args[:reply_text] if args.key?(:reply_text) + end + end + + # Contains a speech recognition result corresponding to a portion of the audio + # that is currently being processed or an indication that this is the end + # of the single requested utterance. + # Example: + # 1. transcript: "tube" + # 2. transcript: "to be a" + # 3. transcript: "to be" + # 4. transcript: "to be or not to be" + # is_final: true + # 5. transcript: " that's" + # 6. transcript: " that is" + # 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE` + # 8. transcript: " that is the question" + # is_final: true + # Only two of the responses contain final results (#4 and #8 indicated by + # `is_final: true`). Concatenating these generates the full transcript: "to be + # or not to be that is the question". + # In each response we populate: + # * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`. + # * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`. + class GoogleCloudDialogflowV2beta1StreamingRecognitionResult + include Google::Apis::Core::Hashable + + # The Speech confidence between 0.0 and 1.0 for the current portion of audio. + # 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. + # This field is typically only provided if `is_final` is true and you should + # not rely on it being accurate or even set. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The default of 0.0 is a sentinel value indicating `confidence` was not set. + # If `false`, the `StreamingRecognitionResult` represents an + # interim result that may change. If `true`, the recognizer will not return + # any further hypotheses about this piece of the audio. May only be populated + # for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + # Corresponds to the JSON property `isFinal` + # @return [Boolean] + attr_accessor :is_final + alias_method :is_final?, :is_final + + # Type of the result message. + # Corresponds to the JSON property `messageType` + # @return [String] + attr_accessor :message_type + + # Transcript text representing the words that the user spoke. + # Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`. + # Corresponds to the JSON property `transcript` + # @return [String] + attr_accessor :transcript + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @is_final = args[:is_final] if args.key?(:is_final) + @message_type = args[:message_type] if args.key?(:message_type) + @transcript = args[:transcript] if args.key?(:transcript) + end + end + + # Represents a suggestion for a human agent. + class GoogleCloudDialogflowV2beta1Suggestion + include Google::Apis::Core::Hashable + + # Output only. Articles ordered by score in descending order. + # Corresponds to the JSON property `articles` + # @return [Array] + attr_accessor :articles + + # Output only. The time the suggestion was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. Answers extracted from FAQ documents. + # Corresponds to the JSON property `faqAnswers` + # @return [Array] + attr_accessor :faq_answers + + # Output only. The name of this suggestion. Format: + # `projects//conversations//participants/*/suggestions/`. + # 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) + @articles = args[:articles] if args.key?(:articles) + @create_time = args[:create_time] if args.key?(:create_time) + @faq_answers = args[:faq_answers] if args.key?(:faq_answers) + @name = args[:name] if args.key?(:name) + end + end + + # Represents suggested article. + class GoogleCloudDialogflowV2beta1SuggestionArticle + include Google::Apis::Core::Hashable + + # Output only. A map that contains metadata about the answer and the + # document from which it originates. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Output only. Article snippets. + # Corresponds to the JSON property `snippets` + # @return [Array] + attr_accessor :snippets + + # Output only. The article title. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Output only. The article 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) + @metadata = args[:metadata] if args.key?(:metadata) + @snippets = args[:snippets] if args.key?(:snippets) + @title = args[:title] if args.key?(:title) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Represents suggested answer from "frequently asked questions". + class GoogleCloudDialogflowV2beta1SuggestionFaqAnswer + include Google::Apis::Core::Hashable + + # Output only. The piece of text from the `source` knowledge base document. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + # The system's confidence score that this Knowledge answer is a good match + # for this conversational query, range from 0.0 (completely uncertain) + # to 1.0 (completely certain). + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Output only. A map that contains metadata about the answer and the + # document from which it originates. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Output only. The corresponding FAQ question. + # Corresponds to the JSON property `question` + # @return [String] + attr_accessor :question + + # Output only. Indicates which Knowledge Document this answer was extracted + # from. + # Format: `projects//agent/knowledgeBases//documents/`. + # 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) + @answer = args[:answer] if args.key?(:answer) + @confidence = args[:confidence] if args.key?(:confidence) + @metadata = args[:metadata] if args.key?(:metadata) + @question = args[:question] if args.key?(:question) + @source = args[:source] if args.key?(:source) + end + end + # Configuration of how speech should be synthesized. class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig include Google::Apis::Core::Hashable @@ -4358,6 +5696,19 @@ module Google end end + # The request message for PhoneNumbers.UndeletePhoneNumber. + class GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Description of which voice to use for speech synthesis. class GoogleCloudDialogflowV2beta1VoiceSelectionParams include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 5af1a7d08..3a8bc1ed0 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -232,12 +232,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Agent class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1AnalyzeContentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1AnalyzeContentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ArticleSuggestionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1AutomatedAgentConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1AutomatedAgentReply + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,12 +328,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1CompileSuggestionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1CompileSuggestionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1CompleteConversationRequest + 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 GoogleCloudDialogflowV2beta1Conversation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ConversationPhoneNumber + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ConversationProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1DetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -352,18 +430,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1FaqAnswersConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1HumanAgentAssistant + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ImportAgentRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1InputAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1InputAudioConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1InputText + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1InputTextConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -562,6 +676,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListConversationProfilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ListConversationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListDocumentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +700,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListIntentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -586,24 +718,102 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListMessagesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ListParticipantsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ListSuggestionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1LoggingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1Message + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1NotificationConfig + 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 GoogleCloudDialogflowV2beta1OutputAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1OutputAudioConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1Participant + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1PhoneNumber + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1PhoneNumberOrder + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1PhoneNumberSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1QueryInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -658,6 +868,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1StreamingRecognitionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1Suggestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SuggestionArticle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SuggestionFaqAnswer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -676,6 +922,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1099,6 +1351,12 @@ module Google end end + class GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudDialogflowV2beta1Agent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1115,6 +1373,51 @@ module Google end end + class GoogleCloudDialogflowV2beta1AnalyzeContentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, as: 'audio', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio::Representation + + property :reply_audio_config, as: 'replyAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + + property :text, as: 'text', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText::Representation + + end + end + + class GoogleCloudDialogflowV2beta1AnalyzeContentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automated_agent_reply, as: 'automatedAgentReply', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply::Representation + + property :reply_audio, as: 'replyAudio', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio::Representation + + property :reply_text, as: 'replyText' + end + end + + class GoogleCloudDialogflowV2beta1ArticleSuggestionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :knowledge_base_name, as: 'knowledgeBaseName' + end + end + + class GoogleCloudDialogflowV2beta1AutomatedAgentConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent, as: 'agent' + end + end + + class GoogleCloudDialogflowV2beta1AutomatedAgentReply + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detect_intent_response, as: 'detectIntentResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse::Representation + + end + end + class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1196,6 +1499,34 @@ module Google end end + class GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV2beta1CompileSuggestionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message::Representation + + end + end + + class GoogleCloudDialogflowV2beta1CompileSuggestionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion::Representation + + end + end + + class GoogleCloudDialogflowV2beta1CompleteConversationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudDialogflowV2beta1Context # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1205,6 +1536,42 @@ module Google end end + class GoogleCloudDialogflowV2beta1Conversation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversation_profile, as: 'conversationProfile' + property :end_time, as: 'endTime' + property :lifecycle_state, as: 'lifecycleState' + property :name, as: 'name' + property :phone_number, as: 'phoneNumber', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber::Representation + + property :start_time, as: 'startTime' + end + end + + class GoogleCloudDialogflowV2beta1ConversationPhoneNumber + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :phone_number, as: 'phoneNumber' + end + end + + class GoogleCloudDialogflowV2beta1ConversationProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automated_agent_config, as: 'automatedAgentConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentConfig::Representation + + property :display_name, as: 'displayName' + property :human_agent_assistant_config, as: 'humanAgentAssistantConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig::Representation + + property :logging_config, as: 'loggingConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1LoggingConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1LoggingConfig::Representation + + property :name, as: 'name' + property :notification_config, as: 'notificationConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig::Representation + + end + end + class GoogleCloudDialogflowV2beta1DetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1299,6 +1666,34 @@ module Google end end + class GoogleCloudDialogflowV2beta1FaqAnswersConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :knowledge_base_name, as: 'knowledgeBaseName' + property :max_results, as: 'maxResults' + end + end + + class GoogleCloudDialogflowV2beta1HumanAgentAssistant + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :article_suggestion_config, as: 'articleSuggestionConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionConfig::Representation + + property :faq_answers_config, as: 'faqAnswersConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswersConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswersConfig::Representation + + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :notification_config, as: 'notificationConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1NotificationConfig::Representation + + end + end + class GoogleCloudDialogflowV2beta1ImportAgentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1307,6 +1702,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1InputAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, :base64 => true, as: 'audio' + property :config, as: 'config', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig::Representation + + end + end + class GoogleCloudDialogflowV2beta1InputAudioConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1318,6 +1722,21 @@ module Google end end + class GoogleCloudDialogflowV2beta1InputText + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1InputTextConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + end + end + class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1659,6 +2078,24 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListConversationProfilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conversation_profiles, as: 'conversationProfiles', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2beta1ListConversationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conversations, as: 'conversations', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2beta1ListDocumentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1677,6 +2114,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :human_agent_assistants, as: 'humanAgentAssistants', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudDialogflowV2beta1ListIntentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1695,6 +2141,42 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListMessagesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudDialogflowV2beta1ListParticipantsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :participants, as: 'participants', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant::Representation + + end + end + + class GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :phone_number_orders, as: 'phoneNumberOrders', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + + end + end + + class GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :phone_numbers, as: 'phoneNumbers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber::Representation + + end + end + class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1704,6 +2186,40 @@ module Google end end + class GoogleCloudDialogflowV2beta1ListSuggestionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion::Representation + + end + end + + class GoogleCloudDialogflowV2beta1LoggingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDialogflowV2beta1Message + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :create_time, as: 'createTime' + property :language_code, as: 'languageCode' + property :name, as: 'name' + property :participant, as: 'participant' + property :participant_role, as: 'participantRole' + end + end + + class GoogleCloudDialogflowV2beta1NotificationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :topic, as: 'topic' + end + end + class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1713,6 +2229,15 @@ module Google end end + class GoogleCloudDialogflowV2beta1OutputAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, :base64 => true, as: 'audio' + property :config, as: 'config', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + + end + end + class GoogleCloudDialogflowV2beta1OutputAudioConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1723,6 +2248,46 @@ module Google end end + class GoogleCloudDialogflowV2beta1Participant + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :role, as: 'role' + end + end + + class GoogleCloudDialogflowV2beta1PhoneNumber + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversation_profile, as: 'conversationProfile' + property :lifecycle_state, as: 'lifecycleState' + property :name, as: 'name' + property :phone_number, as: 'phoneNumber' + end + end + + class GoogleCloudDialogflowV2beta1PhoneNumberOrder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :lifecycle_state, as: 'lifecycleState' + property :name, as: 'name' + property :phone_number_spec, as: 'phoneNumberSpec', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberSpec, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberSpec::Representation + + hash :phone_numbers, as: 'phoneNumbers' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDialogflowV2beta1PhoneNumberSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, as: 'count' + collection :preferred_area_codes, as: 'preferredAreaCodes' + end + end + class GoogleCloudDialogflowV2beta1QueryInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1830,6 +2395,76 @@ module Google end end + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio_config, as: 'audioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig::Representation + + property :input_audio, :base64 => true, as: 'inputAudio' + property :input_text, as: 'inputText' + property :reply_audio_config, as: 'replyAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation + + property :text_config, as: 'textConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputTextConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputTextConfig::Representation + + end + end + + class GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automated_agent_reply, as: 'automatedAgentReply', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentReply::Representation + + property :recognition_result, as: 'recognitionResult', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult::Representation + + property :reply_audio, as: 'replyAudio', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudio::Representation + + property :reply_text, as: 'replyText' + end + end + + class GoogleCloudDialogflowV2beta1StreamingRecognitionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :is_final, as: 'isFinal' + property :message_type, as: 'messageType' + property :transcript, as: 'transcript' + end + end + + class GoogleCloudDialogflowV2beta1Suggestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :articles, as: 'articles', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionArticle, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionArticle::Representation + + property :create_time, as: 'createTime' + collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionFaqAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionFaqAnswer::Representation + + property :name, as: 'name' + end + end + + class GoogleCloudDialogflowV2beta1SuggestionArticle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + collection :snippets, as: 'snippets' + property :title, as: 'title' + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1SuggestionFaqAnswer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + property :confidence, as: 'confidence' + hash :metadata, as: 'metadata' + property :question, as: 'question' + property :source, as: 'source' + end + end + class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1856,6 +2491,12 @@ module Google end end + class GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index e182465fd..4389e79e4 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -733,6 +733,7 @@ module Google end # Creates a context. + # If the specified context already exists, overrides the context. # @param [String] parent # Required. The session to create a context for. # Format: `projects//agent/sessions/` or @@ -925,6 +926,8 @@ module Google end # Creates a session entity type. + # If the specified session entity type already exists, overrides the + # session entity type. # @param [String] parent # Required. The session to create a session entity type for. # Format: `projects//agent/sessions/` or @@ -1083,6 +1086,8 @@ module Google # ID>/sessions//entityTypes/`. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -1757,6 +1762,7 @@ module Google end # Creates a context. + # If the specified context already exists, overrides the context. # @param [String] parent # Required. The session to create a context for. # Format: `projects//agent/sessions/` or @@ -1949,6 +1955,8 @@ module Google end # Creates a session entity type. + # If the specified session entity type already exists, overrides the + # session entity type. # @param [String] parent # Required. The session to create a session entity type for. # Format: `projects//agent/sessions/` or @@ -2107,6 +2115,8 @@ module Google # ID>/sessions//entityTypes/`. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -2140,6 +2150,637 @@ module Google execute_or_queue_command(command, &block) end + # Creates a conversation profile in the specified project. + # @param [String] parent + # Required. The project to create a conversation profile for. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] google_cloud_dialogflow_v2beta1_conversation_profile_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] + # + # @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_conversation_profile(parent, google_cloud_dialogflow_v2beta1_conversation_profile_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/conversationProfiles', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + command.request_object = google_cloud_dialogflow_v2beta1_conversation_profile_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile + 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 conversation profile. + # @param [String] name + # Required. The name of the conversation profile to delete. + # Format: `projects//conversationProfiles/`. + # @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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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 conversation profile. + # @param [String] name + # Required. The resource name of the conversation profile. + # Format: `projects//conversationProfiles/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] + # + # @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_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile + 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 conversation profiles in the specified project. + # @param [String] parent + # Required. The project to list all conversation profiles 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse] + # + # @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_conversation_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/conversationProfiles', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse + 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 conversation profile. + # @param [String] name + # Required for all methods except `create` (`create` populates the name + # automatically). + # The unique identifier of this conversation profile. + # Format: `projects//conversationProfiles/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] google_cloud_dialogflow_v2beta1_conversation_profile_object + # @param [String] update_mask + # Required. The mask to control which fields to update. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] + # + # @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_conversation_profile(name, google_cloud_dialogflow_v2beta1_conversation_profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + command.request_object = google_cloud_dialogflow_v2beta1_conversation_profile_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile + 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 + + # Sets a phone number for this converstion to connect to. + # @param [String] name + # The name of this conversation. + # Format: `projects//conversations/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest] google_cloud_dialogflow_v2beta1_add_conversation_phone_number_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber] + # + # @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 add_project_conversation_conversation_phone_number(name, google_cloud_dialogflow_v2beta1_add_conversation_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:addConversationPhoneNumber', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AddConversationPhoneNumberRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_add_conversation_phone_number_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber + 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 + + # Completes the specified conversation. Finished conversations are purged + # from the database after 30 days. + # @param [String] name + # Required. Resource identifier of the conversation to close. + # Format: `projects//conversations/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompleteConversationRequest] google_cloud_dialogflow_v2beta1_complete_conversation_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] + # + # @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 complete_project_conversation(name, google_cloud_dialogflow_v2beta1_complete_conversation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:complete', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompleteConversationRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_complete_conversation_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new conversation. Conversation are auto-completed after 24 hours. + # @param [String] parent + # Required. Resource identifier of the project creating the conversation. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] google_cloud_dialogflow_v2beta1_conversation_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] + # + # @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_conversation(parent, google_cloud_dialogflow_v2beta1_conversation_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/conversations', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation::Representation + command.request_object = google_cloud_dialogflow_v2beta1_conversation_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation + 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 + + # Retrieves the specific conversation. + # @param [String] name + # Required. The name of the conversation. Format: + # `projects//conversations/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation] + # + # @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_conversation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Conversation + 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 conversations in the specified project. + # @param [String] parent + # Required. The project from which to list all conversation. + # Format: `projects/`. + # @param [String] filter + # A filter expression that filters conversations listed in the response. In + # general, the expression must specify the field name, a comparison operator, + # and the value to use for filtering: + #
    + #
  • The value must be a string, a number, or a boolean.
  • + #
  • The comparison operator must be either `=`,`!=`, `>`, or `<`.
  • + #
  • To filter on multiple expressions, separate the + # expressions with `AND` or `OR` (omitting both implies `AND`).
  • + #
  • For clarity, expressions can be enclosed in parentheses.
  • + #
+ # Only `lifecycle_state` can be filtered on in this way. For example, + # the following expression only returns `FINISHED` conversations: + # `lifecycle_state = "FINISHED"` + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationsResponse] + # + # @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_conversations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/conversations', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.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 + + # Lists messages that belong to a given conversation. + # @param [String] parent + # Required. The name of the conversation to list messages for. + # Format: `projects//conversations/` + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListMessagesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListMessagesResponse] + # + # @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_conversation_messages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/messages', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListMessagesResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListMessagesResponse + 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 + + # Adds a text (chat, for example), or audio (phone recording, for example) + # message from a participan into the conversation. + # @param [String] participant + # Required. The name of the participant this text comes from. + # Format: `projects//conversations//participants/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentRequest] google_cloud_dialogflow_v2beta1_analyze_content_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentResponse] + # + # @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 analyze_project_conversation_participant_content(participant, google_cloud_dialogflow_v2beta1_analyze_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+participant}:analyzeContent', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_analyze_content_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnalyzeContentResponse + command.params['participant'] = participant unless participant.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 new participant in a conversation. + # @param [String] parent + # Required. Resource identifier of the conversation adding the participant. + # Format: `projects//conversations/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant] google_cloud_dialogflow_v2beta1_participant_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant] + # + # @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_conversation_participant(parent, google_cloud_dialogflow_v2beta1_participant_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/participants', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant::Representation + command.request_object = google_cloud_dialogflow_v2beta1_participant_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant + 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 + + # Retrieves a conversation participant. + # @param [String] name + # Required. The name of the participant. Format: + # `projects//conversations//participants/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant] + # + # @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_conversation_participant(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Participant + 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 participants in the specified conversation. + # @param [String] parent + # Required. The conversation to list all contexts from. + # Format: `projects//conversations/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListParticipantsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListParticipantsResponse] + # + # @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_conversation_participants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/participants', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListParticipantsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListParticipantsResponse + 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 + + # Adds a text (chat, for example), or audio (phone recording, for example) + # message from a participan into the conversation. + # Note: This method is only available through the gRPC API (not REST). + # The top-level message sent to the client by the server is + # `StreamingAnalyzeContentResponse`. Multiple response messages can be + # returned in order. The first one or more messages contain the + # `recognition_result` field. Each result represents a more complete + # transcript of what the user said. The next message contains the + # `reply_text` field and potentially the `reply_audio` field. The message can + # also contain the `automated_agent_reply` field. + # @param [String] participant + # Required. The name of the participant this text comes from. + # Format: `projects//conversations//participants/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest] google_cloud_dialogflow_v2beta1_streaming_analyze_content_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse] + # + # @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 streaming_project_conversation_participant_analyze_content(participant, google_cloud_dialogflow_v2beta1_streaming_analyze_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+participant}:streamingAnalyzeContent', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_streaming_analyze_content_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentResponse + command.params['participant'] = participant unless participant.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 suggestions for live agents. + # This method should be used by human agent client software to fetch + # suggestions in real-time, while the conversation with an end user is in + # progress. The functionality is implemented in terms of the + # [list pagination](/apis/design/design_patterns#list_pagination) + # design pattern. The client app should use the `next_page_token` field + # to fetch the next batch of suggestions. + # @param [String] parent + # Required. The name of the conversation participant for whom to fetch + # suggestions. + # Format: `projects//conversations//participants/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. The + # default value is 100; the maximum value is 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSuggestionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSuggestionsResponse] + # + # @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_conversation_participant_suggestions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/suggestions', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSuggestionsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSuggestionsResponse + 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 + # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: @@ -2164,7 +2805,7 @@ 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 delete_project_conversation_contexts(parent, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_environment_user_conversation_contexts(parent, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta1/{+parent}/contexts', options) command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty @@ -2175,6 +2816,7 @@ module Google end # Creates a context. + # If the specified context already exists, overrides the context. # @param [String] parent # Required. The session to create a context for. # Format: `projects//agent/sessions/` or @@ -2200,7 +2842,7 @@ 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 create_project_conversation_context(parent, google_cloud_dialogflow_v2beta1_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_environment_user_conversation_context(parent, google_cloud_dialogflow_v2beta1_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/{+parent}/contexts', options) command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation command.request_object = google_cloud_dialogflow_v2beta1_context_object @@ -2237,7 +2879,7 @@ 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 delete_project_conversation_context(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_environment_user_conversation_context(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta1/{+name}', options) command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty @@ -2272,7 +2914,7 @@ 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 get_project_conversation_context(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_environment_user_conversation_context(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}', options) command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context @@ -2312,7 +2954,7 @@ 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_project_conversation_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_environment_user_conversation_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+parent}/contexts', options) command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse::Representation command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse @@ -2353,7 +2995,7 @@ 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 patch_project_conversation_context(name, google_cloud_dialogflow_v2beta1_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_environment_user_conversation_context(name, google_cloud_dialogflow_v2beta1_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta1/{+name}', options) command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation command.request_object = google_cloud_dialogflow_v2beta1_context_object @@ -2366,6 +3008,218 @@ module Google execute_or_queue_command(command, &block) end + # Uses the specified human agent assistant to come up with suggestions + # (relevant articles and FAQs) on how to respond to a given conversation. + # @param [String] name + # Required. The resource name of the agent assistant. + # Format: `projects//humanAgentAssistants/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsRequest] google_cloud_dialogflow_v2beta1_compile_suggestions_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsResponse] + # + # @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 compile_project_human_agent_assistant_suggestions(name, google_cloud_dialogflow_v2beta1_compile_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:compileSuggestions', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_compile_suggestions_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CompileSuggestionsResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a human agent assistant. + # @param [String] parent + # Required. The project to create a agent assistant for. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] google_cloud_dialogflow_v2beta1_human_agent_assistant_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] + # + # @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_human_agent_assistant(parent, google_cloud_dialogflow_v2beta1_human_agent_assistant_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/humanAgentAssistants', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + command.request_object = google_cloud_dialogflow_v2beta1_human_agent_assistant_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant + 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 human agent assistant. + # @param [String] name + # Required. The resource name of the agent assistant. + # Format: `projects//humanAgentAssistants/`. + # @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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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_human_agent_assistant(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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 a human agent assistant. + # @param [String] name + # Required. The resource name of the agent assistant. + # Format: `projects//humanAgentAssistants/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] + # + # @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_human_agent_assistant(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant + 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 human agent assistants. + # @param [String] parent + # Required. The project to list all agent assistants from. + # Format: `projects/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. + # The default value is 100; the maximum value is 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse] + # + # @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_human_agent_assistants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/humanAgentAssistants', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListHumanAgentAssistantsResponse + 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 human agent assistant. + # @param [String] name + # Required for all methods except `create` (`create` populates the name + # automatically). + # The unique identifier of human agent assistant. + # Format: `projects//humanAgentAssistants/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] google_cloud_dialogflow_v2beta1_human_agent_assistant_object + # @param [String] update_mask + # Optional. The mask to specify which fields to update. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant] + # + # @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_human_agent_assistant(name, google_cloud_dialogflow_v2beta1_human_agent_assistant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + command.request_object = google_cloud_dialogflow_v2beta1_human_agent_assistant_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistant + 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 knowledge base. # @param [String] parent # Required. The project to create a knowledge base for. @@ -2675,6 +3529,339 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Cancels an `PhoneNumberOrder`. + # Returns an error if the order is in state + # IN_PROGRESS or + # COMPLETED. + # @param [String] name + # Required. The unique identifier of the order to delete. + # Format: `projects//phoneNumberOrders/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest] google_cloud_dialogflow_v2beta1_cancel_phone_number_order_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::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::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 cancel_project_phone_number_order(name, google_cloud_dialogflow_v2beta1_cancel_phone_number_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_cancel_phone_number_order_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::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 + + # Creates an order to request phone numbers be added to a project. + # The initial `LifecycleState` of a newly created order is + # PENDING. + # @param [String] parent + # Required. Resource identifier of the project requesting the orders. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] google_cloud_dialogflow_v2beta1_phone_number_order_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] + # + # @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_phone_number_order(parent, google_cloud_dialogflow_v2beta1_phone_number_order_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/phoneNumberOrders', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + command.request_object = google_cloud_dialogflow_v2beta1_phone_number_order_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder + 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 a specific `PhoneNumberOrder`. + # @param [String] name + # Required. The unique identifier of the order to retrieve. + # Format: `projects//phoneNumberOrders/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] + # + # @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_phone_number_order(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder + 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 + + # Lists of all `PhoneNumberOrder` resources in the specified project. + # @param [String] parent + # Required. The project to list all orders from. + # Format: `projects/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. + # The default value is 100. The maximum value is 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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse] + # + # @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_phone_number_orders(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/phoneNumberOrders', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumberOrdersResponse + 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 `PhoneNumberOrder` resource. + # Returns an error if the order is in state + # IN_PROGRESS or + # COMPLETED. + # @param [String] name + # Required. The unique identifier of this order. + # Format: `projects//phoneNumberOrders/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] google_cloud_dialogflow_v2beta1_phone_number_order_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder] + # + # @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_phone_number_order(name, google_cloud_dialogflow_v2beta1_phone_number_order_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + command.request_object = google_cloud_dialogflow_v2beta1_phone_number_order_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberOrder + 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 + + # Requests deletion of a `PhoneNumber`. The `PhoneNumber` is moved into the + # DELETE_REQUESTED state + # immediately, and is deleted approximately 30 days later. This method may + # only be called on a `PhoneNumber` in the + # ACTIVE state. + # @param [String] name + # Required. The unique identifier of the `PhoneNumber` to delete. + # Format: `projects//phoneNumbers/`. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] + # + # @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_phone_number(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber + 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 phone numbers in the specified project. + # @param [String] parent + # Required. The project to list all `PhoneNumber` resources from. + # Format: `projects/`. + # @param [Fixnum] page_size + # Optional. The maximum number of items to return in a single page. + # The default value is 100. The maximum value is 1000. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list request. + # @param [Boolean] show_deleted + # Optional. Controls whether `PhoneNumber` resources in the + # DELETE_REQUESTED + # state should be returned. Defaults to false. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse] + # + # @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_phone_numbers(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/phoneNumbers', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse + 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['showDeleted'] = show_deleted unless show_deleted.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 `PhoneNumber`. + # @param [String] name + # Required. The unique identifier of this phone number. + # Format: `projects//phoneNumbers/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] google_cloud_dialogflow_v2beta1_phone_number_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] + # + # @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_phone_number(name, google_cloud_dialogflow_v2beta1_phone_number_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber::Representation + command.request_object = google_cloud_dialogflow_v2beta1_phone_number_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber + 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 + + # Cancels the deletion request for a `PhoneNumber`. This method may only be + # called on a `PhoneNumber` in the + # DELETE_REQUESTED state. + # @param [String] name + # Required. The unique identifier of the `PhoneNumber` to delete. + # Format: `projects//phoneNumbers/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest] google_cloud_dialogflow_v2beta1_undelete_phone_number_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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber] + # + # @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 undelete_project_phone_number(name, google_cloud_dialogflow_v2beta1_undelete_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:undelete', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_undelete_phone_number_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber + 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 diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 05b2204ca..92b80649f 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20180929' + REVISION = '20181009' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 386fd3bbc..d2bafe33d 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -552,13 +552,12 @@ module Google end end - # Used to perform string matching. Currently, this matches on the exact content. - # In the future, it can be expanded to allow for regular expressions and more - # complex matching. + # Used to perform string matching. It allows substring and regular expressions, + # together with their negations. class ContentMatcher include Google::Apis::Core::Hashable - # String content to match (max 1024 bytes) + # String or regex content to match (max 1024 bytes) # Corresponds to the JSON property `content` # @return [String] attr_accessor :content diff --git a/generated/google/apis/tpu_v1.rb b/generated/google/apis/tpu_v1.rb index 92d99fab5..c32744455 100644 --- a/generated/google/apis/tpu_v1.rb +++ b/generated/google/apis/tpu_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1 VERSION = 'V1' - REVISION = '20180902' + REVISION = '20181010' # 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/tpu_v1/classes.rb b/generated/google/apis/tpu_v1/classes.rb index adf3bd08c..0f42c387b 100644 --- a/generated/google/apis/tpu_v1/classes.rb +++ b/generated/google/apis/tpu_v1/classes.rb @@ -130,6 +130,11 @@ module Google # @return [Array] attr_accessor :nodes + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + def initialize(**args) update!(**args) end @@ -138,6 +143,7 @@ module Google def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @nodes = args[:nodes] if args.key?(:nodes) + @unreachable = args[:unreachable] if args.key?(:unreachable) end end diff --git a/generated/google/apis/tpu_v1/representations.rb b/generated/google/apis/tpu_v1/representations.rb index 675288d29..a7a15b970 100644 --- a/generated/google/apis/tpu_v1/representations.rb +++ b/generated/google/apis/tpu_v1/representations.rb @@ -168,6 +168,7 @@ module Google property :next_page_token, as: 'nextPageToken' collection :nodes, as: 'nodes', class: Google::Apis::TpuV1::Node, decorator: Google::Apis::TpuV1::Node::Representation + collection :unreachable, as: 'unreachable' end end diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index ea5477b72..b7af1febf 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180902' + REVISION = '20181010' # 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/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index b7dca7c74..33bebc23b 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -130,6 +130,11 @@ module Google # @return [Array] attr_accessor :nodes + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + def initialize(**args) update!(**args) end @@ -138,6 +143,7 @@ module Google def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @nodes = args[:nodes] if args.key?(:nodes) + @unreachable = args[:unreachable] if args.key?(:unreachable) end end diff --git a/generated/google/apis/tpu_v1alpha1/representations.rb b/generated/google/apis/tpu_v1alpha1/representations.rb index c9f4b606b..f86991d4c 100644 --- a/generated/google/apis/tpu_v1alpha1/representations.rb +++ b/generated/google/apis/tpu_v1alpha1/representations.rb @@ -168,6 +168,7 @@ module Google property :next_page_token, as: 'nextPageToken' collection :nodes, as: 'nodes', class: Google::Apis::TpuV1alpha1::Node, decorator: Google::Apis::TpuV1alpha1::Node::Representation + collection :unreachable, as: 'unreachable' end end