generated/google/apis/dialogflow_v3beta1/classes.rb in google-api-client-0.45.0 vs generated/google/apis/dialogflow_v3beta1/classes.rb in google-api-client-0.45.1

- old
+ new

@@ -497,10 +497,29 @@ @target_page = args[:target_page] if args.key?(:target_page) @trigger_fulfillment = args[:trigger_fulfillment] if args.key?(:trigger_fulfillment) end end + # Represents the event to trigger. + class GoogleCloudDialogflowCxV3beta1EventInput + include Google::Apis::Core::Hashable + + # Name of the event. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + end + end + # The request message for Agents.ExportAgent. class GoogleCloudDialogflowCxV3beta1ExportAgentRequest include Google::Apis::Core::Hashable # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) @@ -2030,10 +2049,15 @@ # Represents the natural speech audio to be processed. # Corresponds to the JSON property `audio` # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AudioInput] attr_accessor :audio + # Represents the event to trigger. + # Corresponds to the JSON property `event` + # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventInput] + attr_accessor :event + # Represents the intent to trigger programmatically rather than as a result of # natural language processing. # Corresponds to the JSON property `intent` # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentInput] attr_accessor :intent @@ -2056,20 +2080,28 @@ end # Update properties of this object def update!(**args) @audio = args[:audio] if args.key?(:audio) + @event = args[:event] if args.key?(:event) @intent = args[:intent] if args.key?(:intent) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end end # Represents the parameters of a conversational query. class GoogleCloudDialogflowCxV3beta1QueryParameters include Google::Apis::Core::Hashable + # Configures whether sentiment analysis should be performed. If not provided, + # sentiment analysis is not performed. + # Corresponds to the JSON property `analyzeQueryTextSentiment` + # @return [Boolean] + attr_accessor :analyze_query_text_sentiment + alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment + # An object representing a latitude/longitude pair. This is expressed as a pair # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `geoLocation` @@ -2113,10 +2145,11 @@ update!(**args) end # Update properties of this object def update!(**args) + @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) @geo_location = args[:geo_location] if args.key?(:geo_location) @parameters = args[:parameters] if args.key?(:parameters) @payload = args[:payload] if args.key?(:payload) @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @time_zone = args[:time_zone] if args.key?(:time_zone) @@ -2197,10 +2230,17 @@ # logic. # Corresponds to the JSON property `responseMessages` # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>] attr_accessor :response_messages + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + # Corresponds to the JSON property `sentimentAnalysisResult` + # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult] + attr_accessor :sentiment_analysis_result + # If natural language text was provided as input, this field will contain a copy # of the text. # Corresponds to the JSON property `text` # @return [String] attr_accessor :text @@ -2247,10 +2287,11 @@ @intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence) @language_code = args[:language_code] if args.key?(:language_code) @match = args[:match] if args.key?(:match) @parameters = args[:parameters] if args.key?(:parameters) @response_messages = args[:response_messages] if args.key?(:response_messages) + @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @text = args[:text] if args.key?(:text) @transcript = args[:transcript] if args.key?(:transcript) @trigger_event = args[:trigger_event] if args.key?(:trigger_event) @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) @webhook_payloads = args[:webhook_payloads] if args.key?(:webhook_payloads) @@ -2589,10 +2630,38 @@ @agent_content = args[:agent_content] if args.key?(:agent_content) @agent_uri = args[:agent_uri] if args.key?(:agent_uri) end end + # The result of sentiment analysis. Sentiment analysis inspects user input and + # identifies the prevailing subjective opinion, especially to determine a user's + # attitude as positive, negative, or neutral. + class GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult + include Google::Apis::Core::Hashable + + # A non-negative number in the [0, +inf) range, which represents the absolute + # magnitude of sentiment, regardless of score (positive or negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @magnitude = args[:magnitude] if args.key?(:magnitude) + @score = args[:score] if args.key?(:score) + end + end + # Session entity types are referred to as **User** entity types and are entities # that are built for an individual user such as favorites, preferences, # playlists, and so on. You can redefine a session entity type at the session # level to extend or replace a custom entity type at the user session level (we # refer to the entity types defined at the agent level as "custom entity types"). @@ -8014,10 +8083,50 @@ @agent_content = args[:agent_content] if args.key?(:agent_content) @agent_uri = args[:agent_uri] if args.key?(:agent_uri) end end + # Metadata returned for the TestCases.ExportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ExportTestCases. + class GoogleCloudDialogflowV3alpha1ExportTestCasesResponse + include Google::Apis::Core::Hashable + + # Uncompressed raw byte content for test cases. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # The URI to a file containing the exported test cases. This field is populated + # only if `gcs_uri` is specified in ExportTestCasesRequest. + # Corresponds to the JSON property `gcsUri` + # @return [String] + attr_accessor :gcs_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri) + end + end + # The response message for Agents.ImportAgent. class GoogleCloudDialogflowV3alpha1ImportAgentResponse include Google::Apis::Core::Hashable # The unique identifier of the new agent. Format: `projects//locations//agents/`. @@ -8030,9 +8139,42 @@ end # Update properties of this object def update!(**args) @agent = args[:agent] if args.key?(:agent) + end + end + + # Metadata returned for the TestCases.ImportTestCases long running operation. + class GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for TestCases.ImportTestCases. + class GoogleCloudDialogflowV3alpha1ImportTestCasesResponse + include Google::Apis::Core::Hashable + + # The unique identifiers of the new test cases. Format: `projects//locations// + # agents//testCases/`. + # Corresponds to the JSON property `names` + # @return [Array<String>] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) end end # The response message for Operations.ListOperations. class GoogleLongrunningListOperationsResponse