# frozen_string_literal: true # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Auto-generated by gapic-generator-ruby. DO NOT EDIT! module Google module Cloud module Dialogflow module V2 # Defines the services to connect to incoming Dialogflow conversations. # @!attribute [rw] name # @return [::String] # The unique identifier of this conversation profile. # Format: `projects//locations//conversationProfiles/`. # @!attribute [rw] display_name # @return [::String] # Required. Human readable name for this profile. Max length 1024 bytes. # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] # Output only. Create time of the conversation profile. # @!attribute [r] update_time # @return [::Google::Protobuf::Timestamp] # Output only. Update time of the conversation profile. # @!attribute [rw] automated_agent_config # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentConfig] # Configuration for an automated agent to use with this profile. # @!attribute [rw] human_agent_assistant_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig] # Configuration for agent assistance to use with this profile. # @!attribute [rw] human_agent_handoff_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig] # Configuration for connecting to a live agent. # # Currently, this feature is not general available, please contact Google # to get access. # @!attribute [rw] notification_config # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig] # Configuration for publishing conversation lifecycle events. # @!attribute [rw] logging_config # @return [::Google::Cloud::Dialogflow::V2::LoggingConfig] # Configuration for logging conversation lifecycle events. # @!attribute [rw] new_message_event_notification_config # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig] # Configuration for publishing new message events. Event will be sent in # format of {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent} # @!attribute [rw] stt_config # @return [::Google::Cloud::Dialogflow::V2::SpeechToTextConfig] # Settings for speech transcription. # @!attribute [rw] language_code # @return [::String] # Language code for the conversation profile. If not specified, the language # is en-US. Language at ConversationProfile should be set for all non en-US # languages. # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) # language tag. Example: "en-US". # @!attribute [rw] time_zone # @return [::String] # The time zone of this conversational profile from the # [time zone database](https://www.iana.org/time-zones), e.g., # America/New_York, Europe/Paris. Defaults to America/New_York. # @!attribute [rw] security_settings # @return [::String] # Name of the CX SecuritySettings reference for the agent. # Format: `projects//locations//securitySettings/`. # @!attribute [rw] tts_config # @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig] # Configuration for Text-to-Speech synthesization. # # Used by Phone Gateway to specify synthesization options. If agent defines # synthesization options as well, agent settings overrides the option here. class ConversationProfile include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#list_conversation_profiles ConversationProfiles.ListConversationProfiles}. # @!attribute [rw] parent # @return [::String] # Required. The project to list all conversation profiles from. # Format: `projects//locations/`. # @!attribute [rw] page_size # @return [::Integer] # The maximum number of items to return in a single page. By # default 100 and at most 1000. # @!attribute [rw] page_token # @return [::String] # The next_page_token value returned from a previous list request. class ListConversationProfilesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The response message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#list_conversation_profiles ConversationProfiles.ListConversationProfiles}. # @!attribute [rw] conversation_profiles # @return [::Array<::Google::Cloud::Dialogflow::V2::ConversationProfile>] # The list of project conversation profiles. There is a maximum number # of items returned based on the page_size field in the request. # @!attribute [rw] next_page_token # @return [::String] # Token to retrieve the next page of results, or empty if there are no # more results in the list. class ListConversationProfilesResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile ConversationProfiles.GetConversationProfile}. # @!attribute [rw] name # @return [::String] # Required. The resource name of the conversation profile. # Format: `projects//locations//conversationProfiles/`. class GetConversationProfileRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#create_conversation_profile ConversationProfiles.CreateConversationProfile}. # @!attribute [rw] parent # @return [::String] # Required. The project to create a conversation profile for. # Format: `projects//locations/`. # @!attribute [rw] conversation_profile # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile] # Required. The conversation profile to create. class CreateConversationProfileRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#update_conversation_profile ConversationProfiles.UpdateConversationProfile}. # @!attribute [rw] conversation_profile # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile] # Required. The conversation profile to update. # @!attribute [rw] update_mask # @return [::Google::Protobuf::FieldMask] # Required. The mask to control which fields to update. class UpdateConversationProfileRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#delete_conversation_profile ConversationProfiles.DeleteConversationProfile}. # # This operation fails if the conversation profile is still referenced from # a phone number. # @!attribute [rw] name # @return [::String] # Required. The name of the conversation profile to delete. # Format: `projects//locations//conversationProfiles/`. class DeleteConversationProfileRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines the Automated Agent to connect to a conversation. # @!attribute [rw] agent # @return [::String] # 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. # # - For ES agents, use format: `projects//locations//agent/environments/`. If environment is not # specified, the default `draft` environment is used. Refer to # [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) # for more details. # # - For CX agents, use format `projects//locations//agents//environments/`. If environment is not specified, the default `draft` environment # is used. # @!attribute [rw] session_ttl # @return [::Google::Protobuf::Duration] # Optional. Configure lifetime of the Dialogflow session. # By default, a Dialogflow CX session remains active and its data is stored # for 30 minutes after the last request is sent for the session. # This value should be no longer than 1 day. class AutomatedAgentConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines the Human Agent Assist to connect to a conversation. # @!attribute [rw] notification_config # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig] # Pub/Sub topic on which to publish new agent assistant events. # @!attribute [rw] human_agent_suggestion_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig] # Configuration for agent assistance of human agent participant. # @!attribute [rw] end_user_suggestion_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig] # Configuration for agent assistance of end user participant. # # Currently, this feature is not general available, please contact Google # to get access. # @!attribute [rw] message_analysis_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::MessageAnalysisConfig] # Configuration for message analysis. class HumanAgentAssistantConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Settings of suggestion trigger. # @!attribute [rw] no_smalltalk # @return [::Boolean] # Do not trigger if last utterance is small talk. # @!attribute [rw] only_end_user # @return [::Boolean] # Only trigger suggestion if participant role of last utterance is # END_USER. class SuggestionTriggerSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Config for suggestion features. # @!attribute [rw] suggestion_feature # @return [::Google::Cloud::Dialogflow::V2::SuggestionFeature] # The suggestion feature. # @!attribute [rw] enable_event_based_suggestion # @return [::Boolean] # Automatically iterates all participants and tries to compile # suggestions. # # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, # KNOWLEDGE_ASSIST. # @!attribute [rw] disable_agent_query_logging # @return [::Boolean] # Optional. Disable the logging of search queries sent by human agents. It # can prevent those queries from being stored at answer records. # # Supported features: KNOWLEDGE_SEARCH. # @!attribute [rw] enable_query_suggestion_when_no_answer # @return [::Boolean] # Optional. Enable query suggestion even if we can't find its answer. # By default, queries are suggested only if we find its answer. # Supported features: KNOWLEDGE_ASSIST # @!attribute [rw] enable_conversation_augmented_query # @return [::Boolean] # Optional. Enable including conversation context during query answer # generation. Supported features: KNOWLEDGE_SEARCH. # @!attribute [rw] enable_query_suggestion_only # @return [::Boolean] # Optional. Enable query suggestion only. # Supported features: KNOWLEDGE_ASSIST # @!attribute [rw] suggestion_trigger_settings # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionTriggerSettings] # Settings of suggestion trigger. # # Currently, only ARTICLE_SUGGESTION and FAQ will use this field. # @!attribute [rw] query_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig] # Configs of query. # @!attribute [rw] conversation_model_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::ConversationModelConfig] # Configs of custom conversation model. # @!attribute [rw] conversation_process_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::ConversationProcessConfig] # Configs for processing conversation. class SuggestionFeatureConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Detail human agent assistant config. # @!attribute [rw] feature_configs # @return [::Array<::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionFeatureConfig>] # Configuration of different suggestion features. One feature can have only # one config. # @!attribute [rw] group_suggestion_responses # @return [::Boolean] # If `group_suggestion_responses` is false, and there are multiple # `feature_configs` in `event based suggestion` or # StreamingAnalyzeContent, we will try to deliver suggestions to customers # as soon as we get new suggestion. Different type of suggestions based on # the same context will be in separate Pub/Sub event or # `StreamingAnalyzeContentResponse`. # # If `group_suggestion_responses` set to true. All the suggestions to the # same participant based on the same context will be grouped into a single # Pub/Sub event or StreamingAnalyzeContentResponse. # @!attribute [rw] generators # @return [::Array<::String>] # Optional. List of various generator resource names used in the # conversation profile. # @!attribute [rw] disable_high_latency_features_sync_delivery # @return [::Boolean] # Optional. When disable_high_latency_features_sync_delivery is true and # using the AnalyzeContent API, we will not deliver the responses from high # latency features in the API response. The # human_agent_assistant_config.notification_config must be configured and # enable_event_based_suggestion must be set to true to receive the # responses from high latency features in Pub/Sub. High latency feature(s): # KNOWLEDGE_ASSIST class SuggestionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Config for suggestion query. # @!attribute [rw] knowledge_base_query_source # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource] # Query from knowledgebase. It is used by: # ARTICLE_SUGGESTION, FAQ. # @!attribute [rw] document_query_source # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource] # Query from knowledge base document. It is used by: # SMART_REPLY, SMART_COMPOSE. # @!attribute [rw] dialogflow_query_source # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource] # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. # @!attribute [rw] max_results # @return [::Integer] # Maximum number of results to return. Currently, if unset, defaults to 10. # And the max number is 20. # @!attribute [rw] confidence_threshold # @return [::Float] # Confidence threshold of query result. # # Agent Assist gives each suggestion a score in the range [0.0, 1.0], based # on the relevance between the suggestion and the current conversation # context. A score of 0.0 has no relevance, while a score of 1.0 has high # relevance. Only suggestions with a score greater than or equal to the # value of this field are included in the results. # # For a baseline model (the default), the recommended value is in the range # [0.05, 0.1]. # # For a custom model, there is no recommended value. Tune this value by # starting from a very low value and slowly increasing until you have # desired results. # # If this field is not set, it defaults to 0.0, which means that all # suggestions are returned. # # Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, # KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. # @!attribute [rw] context_filter_settings # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings] # Determines how recent conversation context is filtered when generating # suggestions. If unspecified, no messages will be dropped. # @!attribute [rw] sections # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections] # Optional. The customized sections chosen to return when requesting a # summary of a conversation. class SuggestionQueryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Knowledge base source settings. # # Supported features: ARTICLE_SUGGESTION, FAQ. # @!attribute [rw] knowledge_bases # @return [::Array<::String>] # Required. Knowledge bases to query. Format: # `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge # bases are supported. class KnowledgeBaseQuerySource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Document source settings. # # Supported features: SMART_REPLY, SMART_COMPOSE. # @!attribute [rw] documents # @return [::Array<::String>] # Required. Knowledge documents to query from. Format: # `projects//locations//knowledgeBases//documents/`. # Currently, at most 5 documents are supported. class DocumentQuerySource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Dialogflow source setting. # # Supported feature: DIALOGFLOW_ASSIST. # @!attribute [rw] agent # @return [::String] # Required. The name of a Dialogflow virtual agent used for end user side # intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in # the same Dialogflow project. # @!attribute [rw] human_agent_side_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource::HumanAgentSideConfig] # Optional. The Dialogflow assist configuration for human agent. class DialogflowQuerySource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration used for human agent side Dialogflow assist # suggestion. # @!attribute [rw] agent # @return [::String] # Optional. The name of a dialogflow virtual agent used for intent # detection and suggestion triggered by human agent. # Format: `projects//locations//agent`. class HumanAgentSideConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Settings that determine how to filter recent conversation context when # generating suggestions. # @!attribute [rw] drop_handoff_messages # @return [::Boolean] # If set to true, the last message from virtual agent (hand off message) # and the message before it (trigger message of hand off) are dropped. # @!attribute [rw] drop_virtual_agent_messages # @return [::Boolean] # If set to true, all messages from virtual agent are dropped. # @!attribute [rw] drop_ivr_messages # @return [::Boolean] # If set to true, all messages from ivr stage are dropped. class ContextFilterSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Custom sections to return when requesting a summary of a conversation. # This is only supported when `baseline_model_version` == '2.0'. # # Supported features: CONVERSATION_SUMMARIZATION, # CONVERSATION_SUMMARIZATION_VOICE. # @!attribute [rw] section_types # @return [::Array<::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections::SectionType>] # The selected sections chosen to return when requesting a summary of a # conversation. A duplicate selected section will be treated as a single # selected section. If section types are not provided, the default will # be \\{SITUATION, ACTION, RESULT}. class Sections include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Selectable sections to return when requesting a summary of a # conversation. module SectionType # Undefined section type, does not return anything. SECTION_TYPE_UNSPECIFIED = 0 # What the customer needs help with or has question about. # Section name: "situation". SITUATION = 1 # What the agent does to help the customer. # Section name: "action". ACTION = 2 # Result of the customer service. A single word describing the result # of the conversation. # Section name: "resolution". RESOLUTION = 3 # Reason for cancellation if the customer requests for a cancellation. # "N/A" otherwise. # Section name: "reason_for_cancellation". REASON_FOR_CANCELLATION = 4 # "Unsatisfied" or "Satisfied" depending on the customer's feelings at # the end of the conversation. # Section name: "customer_satisfaction". CUSTOMER_SATISFACTION = 5 # Key entities extracted from the conversation, such as ticket number, # order number, dollar amount, etc. # Section names are prefixed by "entities/". ENTITIES = 6 end end end # Custom conversation models used in agent assist feature. # # Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY, # CONVERSATION_SUMMARIZATION. # @!attribute [rw] model # @return [::String] # Conversation model resource name. Format: `projects//conversationModels/`. # @!attribute [rw] baseline_model_version # @return [::String] # Version of current baseline model. It will be ignored if # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::ConversationModelConfig#model model} # is set. Valid versions are: # Article Suggestion baseline model: # - 0.9 # - 1.0 (default) # Summarization baseline model: # - 1.0 class ConversationModelConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Config to process conversation. # @!attribute [rw] recent_sentences_count # @return [::Integer] # Number of recent non-small-talk sentences to use as context for article # and FAQ suggestion class ConversationProcessConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for analyses to run on each conversation message. # @!attribute [rw] enable_entity_extraction # @return [::Boolean] # Enable entity extraction in conversation messages on [agent assist # stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). # If unspecified, defaults to false. # # Currently, this feature is not general available, please contact Google # to get access. # @!attribute [rw] enable_sentiment_analysis # @return [::Boolean] # Enable sentiment analysis in conversation messages on [agent assist # stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). # If unspecified, defaults to false. Sentiment analysis inspects user input # and identifies the prevailing subjective opinion, especially to determine # a user's attitude as positive, negative, or neutral: # https://cloud.google.com/natural-language/docs/basics#sentiment_analysis # For # {::Google::Cloud::Dialogflow::V2::Participants::Client#streaming_analyze_content Participants.StreamingAnalyzeContent} # method, result will be in # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentResponse#message StreamingAnalyzeContentResponse.message.SentimentAnalysisResult}. # For # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} # method, result will be in # {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#message AnalyzeContentResponse.message.SentimentAnalysisResult} # For # {::Google::Cloud::Dialogflow::V2::Conversations::Client#list_messages Conversations.ListMessages} # method, result will be in # {::Google::Cloud::Dialogflow::V2::ListMessagesResponse#messages ListMessagesResponse.messages.SentimentAnalysisResult} # If Pub/Sub notification is configured, result will be in # {::Google::Cloud::Dialogflow::V2::ConversationEvent#new_message_payload ConversationEvent.new_message_payload.SentimentAnalysisResult}. class MessageAnalysisConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Defines the hand off to a live agent, typically on which external agent # service provider to connect to a conversation. # # Currently, this feature is not general available, please contact Google # to get access. # @!attribute [rw] live_person_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::LivePersonConfig] # Uses [LivePerson](https://www.liveperson.com). # @!attribute [rw] salesforce_live_agent_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::SalesforceLiveAgentConfig] # Uses Salesforce Live Agent. class HumanAgentHandoffConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration specific to [LivePerson](https://www.liveperson.com). # @!attribute [rw] account_number # @return [::String] # Required. Account number of the LivePerson account to connect. This is # the account number you input at the login page. class LivePersonConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration specific to Salesforce Live Agent. # @!attribute [rw] organization_id # @return [::String] # Required. The organization ID of the Salesforce account. # @!attribute [rw] deployment_id # @return [::String] # Required. Live Agent deployment ID. # @!attribute [rw] button_id # @return [::String] # Required. Live Agent chat button ID. # @!attribute [rw] endpoint_domain # @return [::String] # Required. Domain of the Live Agent endpoint for this agent. You can find # the endpoint URL in the `Live Agent settings` page. For example if URL # has the form https://d.la4-c2-phx.salesforceliveagent.com/..., # you should fill in d.la4-c2-phx.salesforceliveagent.com. class SalesforceLiveAgentConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Defines notification behavior. # @!attribute [rw] topic # @return [::String] # Name of the Pub/Sub topic to publish conversation # events like # {::Google::Cloud::Dialogflow::V2::ConversationEvent::Type::CONVERSATION_STARTED CONVERSATION_STARTED} # as serialized # {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent} protos. # # For telephony integration to receive notification, make sure either this # topic 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. # # For chat integration to receive notification, make sure API caller has been # granted the `Dialogflow Service Agent` role for the topic. # # Format: `projects//locations//topics/`. # @!attribute [rw] message_format # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig::MessageFormat] # Format of message. class NotificationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Format of cloud pub/sub message. module MessageFormat # If it is unspecified, PROTO will be used. MESSAGE_FORMAT_UNSPECIFIED = 0 # Pub/Sub message will be serialized proto. PROTO = 1 # Pub/Sub message will be json. JSON = 2 end end # Defines logging behavior for conversation lifecycle events. # @!attribute [rw] enable_stackdriver_logging # @return [::Boolean] # Whether to log conversation events like # {::Google::Cloud::Dialogflow::V2::ConversationEvent::Type::CONVERSATION_STARTED CONVERSATION_STARTED} # to Stackdriver in the conversation project as JSON format # {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent} protos. class LoggingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of Human Agent Assistant API suggestion to perform, and the maximum # number of results to return for that type. Multiple `Feature` objects can # be specified in the `features` list. # @!attribute [rw] type # @return [::Google::Cloud::Dialogflow::V2::SuggestionFeature::Type] # Type of Human Agent Assistant API feature to request. class SuggestionFeature include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines the type of Human Agent Assistant feature. module Type # Unspecified feature type. TYPE_UNSPECIFIED = 0 # Run article suggestion model for chat. ARTICLE_SUGGESTION = 1 # Run FAQ model for chat. FAQ = 2 # Run smart reply model for chat. SMART_REPLY = 3 # Run knowledge search with text input from agent or text generated query. KNOWLEDGE_SEARCH = 14 # Run knowledge assist with automatic query generation. KNOWLEDGE_ASSIST = 15 end end # The request message for # [ConversationProfiles.SetSuggestionFeature][]. # @!attribute [rw] conversation_profile # @return [::String] # Required. The Conversation Profile to add or update the suggestion feature # config. Format: `projects//locations//conversationProfiles/`. # @!attribute [rw] participant_role # @return [::Google::Cloud::Dialogflow::V2::Participant::Role] # Required. The participant role to add or update the suggestion feature # config. Only HUMAN_AGENT or END_USER can be used. # @!attribute [rw] suggestion_feature_config # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionFeatureConfig] # Required. The suggestion feature config to add or update. class SetSuggestionFeatureConfigRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The request message for [ConversationProfiles.ClearFeature][]. # @!attribute [rw] conversation_profile # @return [::String] # Required. The Conversation Profile to add or update the suggestion feature # config. Format: `projects//locations//conversationProfiles/`. # @!attribute [rw] participant_role # @return [::Google::Cloud::Dialogflow::V2::Participant::Role] # Required. The participant role to remove the suggestion feature # config. Only HUMAN_AGENT or END_USER can be used. # @!attribute [rw] suggestion_feature_type # @return [::Google::Cloud::Dialogflow::V2::SuggestionFeature::Type] # Required. The type of the suggestion feature to remove. class ClearSuggestionFeatureConfigRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][] # operation. # @!attribute [rw] conversation_profile # @return [::String] # The resource name of the conversation profile. Format: # `projects//locations//conversationProfiles/` # @!attribute [rw] participant_role # @return [::Google::Cloud::Dialogflow::V2::Participant::Role] # Required. The participant role to add or update the suggestion feature # config. Only HUMAN_AGENT or END_USER can be used. # @!attribute [rw] suggestion_feature_type # @return [::Google::Cloud::Dialogflow::V2::SuggestionFeature::Type] # Required. The type of the suggestion feature to add or update. # @!attribute [rw] create_time # @return [::Google::Protobuf::Timestamp] # Timestamp whe the request was created. The time is measured on server side. class SetSuggestionFeatureConfigOperationMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata for a [ConversationProfile.ClearSuggestionFeatureConfig][] # operation. # @!attribute [rw] conversation_profile # @return [::String] # The resource name of the conversation profile. Format: # `projects//locations//conversationProfiles/` # @!attribute [rw] participant_role # @return [::Google::Cloud::Dialogflow::V2::Participant::Role] # Required. The participant role to remove the suggestion feature # config. Only HUMAN_AGENT or END_USER can be used. # @!attribute [rw] suggestion_feature_type # @return [::Google::Cloud::Dialogflow::V2::SuggestionFeature::Type] # Required. The type of the suggestion feature to remove. # @!attribute [rw] create_time # @return [::Google::Protobuf::Timestamp] # Timestamp whe the request was created. The time is measured on server side. class ClearSuggestionFeatureConfigOperationMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end end end