google-apis-contactcenterinsights_v1 0.81.0 → 0.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -729,6 +729,105 @@ module Google
729
729
  end
730
730
  end
731
731
 
732
+ # Rule for auto-labeling conversations.
733
+ class GoogleCloudContactcenterinsightsV1AutoLabelingRule
734
+ include Google::Apis::Core::Hashable
735
+
736
+ # Whether the rule is active.
737
+ # Corresponds to the JSON property `active`
738
+ # @return [Boolean]
739
+ attr_accessor :active
740
+ alias_method :active?, :active
741
+
742
+ # Conditions to apply for auto-labeling the label_key. Representing sequential
743
+ # block of if .. else if .. else statements. The value of the first matching
744
+ # condition will be used.
745
+ # Corresponds to the JSON property `conditions`
746
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition>]
747
+ attr_accessor :conditions
748
+
749
+ # Output only. The time at which this rule was created.
750
+ # Corresponds to the JSON property `createTime`
751
+ # @return [String]
752
+ attr_accessor :create_time
753
+
754
+ # The description of the rule.
755
+ # Corresponds to the JSON property `description`
756
+ # @return [String]
757
+ attr_accessor :description
758
+
759
+ # The user-provided display name of the rule.
760
+ # Corresponds to the JSON property `displayName`
761
+ # @return [String]
762
+ attr_accessor :display_name
763
+
764
+ # The label key. This is also the `auto_labeling_rule` in the resource name.
765
+ # Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
766
+ # Corresponds to the JSON property `labelKey`
767
+ # @return [String]
768
+ attr_accessor :label_key
769
+
770
+ # The type of the label key.
771
+ # Corresponds to the JSON property `labelKeyType`
772
+ # @return [String]
773
+ attr_accessor :label_key_type
774
+
775
+ # Identifier. The resource name of the auto-labeling rule. Format: projects/`
776
+ # project`/locations/`location`/autoLabelingRules/`auto_labeling_rule`
777
+ # Corresponds to the JSON property `name`
778
+ # @return [String]
779
+ attr_accessor :name
780
+
781
+ # Output only. The most recent time at which the rule was updated.
782
+ # Corresponds to the JSON property `updateTime`
783
+ # @return [String]
784
+ attr_accessor :update_time
785
+
786
+ def initialize(**args)
787
+ update!(**args)
788
+ end
789
+
790
+ # Update properties of this object
791
+ def update!(**args)
792
+ @active = args[:active] if args.key?(:active)
793
+ @conditions = args[:conditions] if args.key?(:conditions)
794
+ @create_time = args[:create_time] if args.key?(:create_time)
795
+ @description = args[:description] if args.key?(:description)
796
+ @display_name = args[:display_name] if args.key?(:display_name)
797
+ @label_key = args[:label_key] if args.key?(:label_key)
798
+ @label_key_type = args[:label_key_type] if args.key?(:label_key_type)
799
+ @name = args[:name] if args.key?(:name)
800
+ @update_time = args[:update_time] if args.key?(:update_time)
801
+ end
802
+ end
803
+
804
+ # Condition for auto-labeling conversations.
805
+ class GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # A optional CEL expression to be evaluated as a boolean value. Once evaluated
809
+ # as true, then we will proceed with the value evaluation. An empty condition
810
+ # will be auto evaluated as true.
811
+ # Corresponds to the JSON property `condition`
812
+ # @return [String]
813
+ attr_accessor :condition
814
+
815
+ # CEL expression to be evaluated as the value.
816
+ # Corresponds to the JSON property `value`
817
+ # @return [String]
818
+ attr_accessor :value
819
+
820
+ def initialize(**args)
821
+ update!(**args)
822
+ end
823
+
824
+ # Update properties of this object
825
+ def update!(**args)
826
+ @condition = args[:condition] if args.key?(:condition)
827
+ @value = args[:value] if args.key?(:value)
828
+ end
829
+ end
830
+
732
831
  # The metadata for a bulk analyze conversations operation.
733
832
  class GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata
734
833
  include Google::Apis::Core::Hashable
@@ -1578,6 +1677,74 @@ module Google
1578
1677
  end
1579
1678
  end
1580
1679
 
1680
+ # The result of testing a constraint expression on a pair of conversations.
1681
+ class GoogleCloudContactcenterinsightsV1ConstraintEvaluationResult
1682
+ include Google::Apis::Core::Hashable
1683
+
1684
+ # The first conversation resource name.
1685
+ # Corresponds to the JSON property `conversationA`
1686
+ # @return [String]
1687
+ attr_accessor :conversation_a
1688
+
1689
+ # The second conversation resource name.
1690
+ # Corresponds to the JSON property `conversationB`
1691
+ # @return [String]
1692
+ attr_accessor :conversation_b
1693
+
1694
+ # The results for each applicable constraint rule.
1695
+ # Corresponds to the JSON property `ruleConstraintResults`
1696
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConstraintEvaluationResultRuleConstraintResult>]
1697
+ attr_accessor :rule_constraint_results
1698
+
1699
+ def initialize(**args)
1700
+ update!(**args)
1701
+ end
1702
+
1703
+ # Update properties of this object
1704
+ def update!(**args)
1705
+ @conversation_a = args[:conversation_a] if args.key?(:conversation_a)
1706
+ @conversation_b = args[:conversation_b] if args.key?(:conversation_b)
1707
+ @rule_constraint_results = args[:rule_constraint_results] if args.key?(:rule_constraint_results)
1708
+ end
1709
+ end
1710
+
1711
+ # The result of a single constraint rule on the pair of conversations.
1712
+ class GoogleCloudContactcenterinsightsV1ConstraintEvaluationResultRuleConstraintResult
1713
+ include Google::Apis::Core::Hashable
1714
+
1715
+ # Whether the constraint expression evaluated to true for (A, B) or (B, A).
1716
+ # Corresponds to the JSON property `constraintMet`
1717
+ # @return [Boolean]
1718
+ attr_accessor :constraint_met
1719
+ alias_method :constraint_met?, :constraint_met
1720
+
1721
+ # The `Status` type defines a logical error model that is suitable for different
1722
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1723
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1724
+ # data: error code, error message, and error details. You can find out more
1725
+ # about this error model and how to work with it in the [API Design Guide](https:
1726
+ # //cloud.google.com/apis/design/errors).
1727
+ # Corresponds to the JSON property `error`
1728
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
1729
+ attr_accessor :error
1730
+
1731
+ # The rule ID.
1732
+ # Corresponds to the JSON property `ruleId`
1733
+ # @return [String]
1734
+ attr_accessor :rule_id
1735
+
1736
+ def initialize(**args)
1737
+ update!(**args)
1738
+ end
1739
+
1740
+ # Update properties of this object
1741
+ def update!(**args)
1742
+ @constraint_met = args[:constraint_met] if args.key?(:constraint_met)
1743
+ @error = args[:error] if args.key?(:error)
1744
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
1745
+ end
1746
+ end
1747
+
1581
1748
  # The conversation resource.
1582
1749
  class GoogleCloudContactcenterinsightsV1Conversation
1583
1750
  include Google::Apis::Core::Hashable
@@ -1593,6 +1760,11 @@ module Google
1593
1760
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationCallMetadata]
1594
1761
  attr_accessor :call_metadata
1595
1762
 
1763
+ # Info for correlating across conversations.
1764
+ # Corresponds to the JSON property `correlationInfo`
1765
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo]
1766
+ attr_accessor :correlation_info
1767
+
1596
1768
  # Output only. The time at which the conversation was created.
1597
1769
  # Corresponds to the JSON property `createTime`
1598
1770
  # @return [String]
@@ -1642,7 +1814,7 @@ module Google
1642
1814
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData]
1643
1815
  attr_accessor :latest_summary
1644
1816
 
1645
- # Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
1817
+ # Immutable. The conversation medium.
1646
1818
  # Corresponds to the JSON property `medium`
1647
1819
  # @return [String]
1648
1820
  attr_accessor :medium
@@ -1710,6 +1882,7 @@ module Google
1710
1882
  def update!(**args)
1711
1883
  @agent_id = args[:agent_id] if args.key?(:agent_id)
1712
1884
  @call_metadata = args[:call_metadata] if args.key?(:call_metadata)
1885
+ @correlation_info = args[:correlation_info] if args.key?(:correlation_info)
1713
1886
  @create_time = args[:create_time] if args.key?(:create_time)
1714
1887
  @data_source = args[:data_source] if args.key?(:data_source)
1715
1888
  @dialogflow_intents = args[:dialogflow_intents] if args.key?(:dialogflow_intents)
@@ -1758,6 +1931,124 @@ module Google
1758
1931
  end
1759
1932
  end
1760
1933
 
1934
+ # Info for correlating across conversations.
1935
+ class GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo
1936
+ include Google::Apis::Core::Hashable
1937
+
1938
+ # Output only. The correlation types of this conversation. A single conversation
1939
+ # can have multiple correlation types. For example a conversation that only has
1940
+ # a single segment is both a SEGMENT and a FULL_CONVERSATION.
1941
+ # Corresponds to the JSON property `correlationTypes`
1942
+ # @return [Array<String>]
1943
+ attr_accessor :correlation_types
1944
+
1945
+ # Output only. The full conversation correlation id this conversation is a
1946
+ # segment of.
1947
+ # Corresponds to the JSON property `fullConversationCorrelationId`
1948
+ # @return [String]
1949
+ attr_accessor :full_conversation_correlation_id
1950
+
1951
+ # Output only. The full conversation correlation id this conversation is a
1952
+ # merged conversation of.
1953
+ # Corresponds to the JSON property `mergedFullConversationCorrelationId`
1954
+ # @return [String]
1955
+ attr_accessor :merged_full_conversation_correlation_id
1956
+
1957
+ def initialize(**args)
1958
+ update!(**args)
1959
+ end
1960
+
1961
+ # Update properties of this object
1962
+ def update!(**args)
1963
+ @correlation_types = args[:correlation_types] if args.key?(:correlation_types)
1964
+ @full_conversation_correlation_id = args[:full_conversation_correlation_id] if args.key?(:full_conversation_correlation_id)
1965
+ @merged_full_conversation_correlation_id = args[:merged_full_conversation_correlation_id] if args.key?(:merged_full_conversation_correlation_id)
1966
+ end
1967
+ end
1968
+
1969
+ # The result of testing correlation config on a single conversation.
1970
+ class GoogleCloudContactcenterinsightsV1ConversationCorrelationResult
1971
+ include Google::Apis::Core::Hashable
1972
+
1973
+ # The conversation resource name.
1974
+ # Corresponds to the JSON property `conversation`
1975
+ # @return [String]
1976
+ attr_accessor :conversation
1977
+
1978
+ # The results for each correlation rule.
1979
+ # Corresponds to the JSON property `ruleResults`
1980
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationCorrelationResultRuleCorrelationResult>]
1981
+ attr_accessor :rule_results
1982
+
1983
+ def initialize(**args)
1984
+ update!(**args)
1985
+ end
1986
+
1987
+ # Update properties of this object
1988
+ def update!(**args)
1989
+ @conversation = args[:conversation] if args.key?(:conversation)
1990
+ @rule_results = args[:rule_results] if args.key?(:rule_results)
1991
+ end
1992
+ end
1993
+
1994
+ # The result of a single correlation rule.
1995
+ class GoogleCloudContactcenterinsightsV1ConversationCorrelationResultRuleCorrelationResult
1996
+ include Google::Apis::Core::Hashable
1997
+
1998
+ # The correlation ID generated by the join key expression.
1999
+ # Corresponds to the JSON property `correlationId`
2000
+ # @return [String]
2001
+ attr_accessor :correlation_id
2002
+
2003
+ # The `Status` type defines a logical error model that is suitable for different
2004
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2005
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2006
+ # data: error code, error message, and error details. You can find out more
2007
+ # about this error model and how to work with it in the [API Design Guide](https:
2008
+ # //cloud.google.com/apis/design/errors).
2009
+ # Corresponds to the JSON property `error`
2010
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
2011
+ attr_accessor :error
2012
+
2013
+ # The rule ID.
2014
+ # Corresponds to the JSON property `ruleId`
2015
+ # @return [String]
2016
+ attr_accessor :rule_id
2017
+
2018
+ def initialize(**args)
2019
+ update!(**args)
2020
+ end
2021
+
2022
+ # Update properties of this object
2023
+ def update!(**args)
2024
+ @correlation_id = args[:correlation_id] if args.key?(:correlation_id)
2025
+ @error = args[:error] if args.key?(:error)
2026
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
2027
+ end
2028
+ end
2029
+
2030
+ # Options for configuring what metadata is included in the conversation data
2031
+ # used in QAI and Discovery Engine.
2032
+ class GoogleCloudContactcenterinsightsV1ConversationDataOptions
2033
+ include Google::Apis::Core::Hashable
2034
+
2035
+ # Whether to include the per turn Dialogflow interaction data in conversation
2036
+ # transcript.
2037
+ # Corresponds to the JSON property `includeDialogflowInteractionData`
2038
+ # @return [Boolean]
2039
+ attr_accessor :include_dialogflow_interaction_data
2040
+ alias_method :include_dialogflow_interaction_data?, :include_dialogflow_interaction_data
2041
+
2042
+ def initialize(**args)
2043
+ update!(**args)
2044
+ end
2045
+
2046
+ # Update properties of this object
2047
+ def update!(**args)
2048
+ @include_dialogflow_interaction_data = args[:include_dialogflow_interaction_data] if args.key?(:include_dialogflow_interaction_data)
2049
+ end
2050
+ end
2051
+
1761
2052
  # The conversation source, which is a combination of transcript and audio.
1762
2053
  class GoogleCloudContactcenterinsightsV1ConversationDataSource
1763
2054
  include Google::Apis::Core::Hashable
@@ -2247,6 +2538,111 @@ module Google
2247
2538
  end
2248
2539
  end
2249
2540
 
2541
+ # A configuration that defines how to correlate conversations for a given a
2542
+ # given project.
2543
+ class GoogleCloudContactcenterinsightsV1CorrelationConfig
2544
+ include Google::Apis::Core::Hashable
2545
+
2546
+ # Output only. The time at which the correlation config was created.
2547
+ # Corresponds to the JSON property `createTime`
2548
+ # @return [String]
2549
+ attr_accessor :create_time
2550
+
2551
+ # A list of correlation rules for a given correlation type.
2552
+ # Corresponds to the JSON property `fullConversationConfig`
2553
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CorrelationTypeConfig]
2554
+ attr_accessor :full_conversation_config
2555
+
2556
+ # Immutable. Identifier. The resource name of the correlation config. Format:
2557
+ # projects/`project`/locations/`location`/correlationConfig
2558
+ # Corresponds to the JSON property `name`
2559
+ # @return [String]
2560
+ attr_accessor :name
2561
+
2562
+ # Output only. The time at which the correlation config was last updated.
2563
+ # Corresponds to the JSON property `updateTime`
2564
+ # @return [String]
2565
+ attr_accessor :update_time
2566
+
2567
+ def initialize(**args)
2568
+ update!(**args)
2569
+ end
2570
+
2571
+ # Update properties of this object
2572
+ def update!(**args)
2573
+ @create_time = args[:create_time] if args.key?(:create_time)
2574
+ @full_conversation_config = args[:full_conversation_config] if args.key?(:full_conversation_config)
2575
+ @name = args[:name] if args.key?(:name)
2576
+ @update_time = args[:update_time] if args.key?(:update_time)
2577
+ end
2578
+ end
2579
+
2580
+ # A correlation rule that defines how to join conversations for a given
2581
+ # correlation type.
2582
+ class GoogleCloudContactcenterinsightsV1CorrelationRule
2583
+ include Google::Apis::Core::Hashable
2584
+
2585
+ # Optional. Whether the config is active to be evaluated.
2586
+ # Corresponds to the JSON property `active`
2587
+ # @return [Boolean]
2588
+ attr_accessor :active
2589
+ alias_method :active?, :active
2590
+
2591
+ # Optional. A cel expression (go/cel) to be evaluated as a boolean value. Two
2592
+ # variables conversation_a and conversation_b will be available for evaluation.
2593
+ # This expression should evaluate to true if conversation_a and conversation_b
2594
+ # should be joined. This is used as an extra constraint on top of the
2595
+ # join_key_expression to further refine the group of conversations that are
2596
+ # joined together and will be evaluated in both directions. for two
2597
+ # conversations c1 and c2 and the result will be OR'd. We will evaluate: f(c1,
2598
+ # c2) OR f(c2, c1)
2599
+ # Corresponds to the JSON property `constraintExpression`
2600
+ # @return [String]
2601
+ attr_accessor :constraint_expression
2602
+
2603
+ # Optional. A cel expression (go/cel) to be evaluated as a string value. This
2604
+ # string value will be used as the join key for the correlation.
2605
+ # Corresponds to the JSON property `joinKeyExpression`
2606
+ # @return [String]
2607
+ attr_accessor :join_key_expression
2608
+
2609
+ # Required. The unique identifier of the rule.
2610
+ # Corresponds to the JSON property `ruleId`
2611
+ # @return [String]
2612
+ attr_accessor :rule_id
2613
+
2614
+ def initialize(**args)
2615
+ update!(**args)
2616
+ end
2617
+
2618
+ # Update properties of this object
2619
+ def update!(**args)
2620
+ @active = args[:active] if args.key?(:active)
2621
+ @constraint_expression = args[:constraint_expression] if args.key?(:constraint_expression)
2622
+ @join_key_expression = args[:join_key_expression] if args.key?(:join_key_expression)
2623
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
2624
+ end
2625
+ end
2626
+
2627
+ # A list of correlation rules for a given correlation type.
2628
+ class GoogleCloudContactcenterinsightsV1CorrelationTypeConfig
2629
+ include Google::Apis::Core::Hashable
2630
+
2631
+ # A list of correlation rules to be evaluated for correlation.
2632
+ # Corresponds to the JSON property `correlationRules`
2633
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CorrelationRule>]
2634
+ attr_accessor :correlation_rules
2635
+
2636
+ def initialize(**args)
2637
+ update!(**args)
2638
+ end
2639
+
2640
+ # Update properties of this object
2641
+ def update!(**args)
2642
+ @correlation_rules = args[:correlation_rules] if args.key?(:correlation_rules)
2643
+ end
2644
+ end
2645
+
2250
2646
  # Metadata for a create analysis operation.
2251
2647
  class GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata
2252
2648
  include Google::Apis::Core::Hashable
@@ -4675,6 +5071,32 @@ module Google
4675
5071
  end
4676
5072
  end
4677
5073
 
5074
+ # The response message for listing auto labeling rules.
5075
+ class GoogleCloudContactcenterinsightsV1ListAutoLabelingRulesResponse
5076
+ include Google::Apis::Core::Hashable
5077
+
5078
+ # The auto labeling rules.
5079
+ # Corresponds to the JSON property `autoLabelingRules`
5080
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRule>]
5081
+ attr_accessor :auto_labeling_rules
5082
+
5083
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
5084
+ # field is omitted, there are no subsequent pages.
5085
+ # Corresponds to the JSON property `nextPageToken`
5086
+ # @return [String]
5087
+ attr_accessor :next_page_token
5088
+
5089
+ def initialize(**args)
5090
+ update!(**args)
5091
+ end
5092
+
5093
+ # Update properties of this object
5094
+ def update!(**args)
5095
+ @auto_labeling_rules = args[:auto_labeling_rules] if args.key?(:auto_labeling_rules)
5096
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5097
+ end
5098
+ end
5099
+
4678
5100
  # The response of listing conversations.
4679
5101
  class GoogleCloudContactcenterinsightsV1ListConversationsResponse
4680
5102
  include Google::Apis::Core::Hashable
@@ -5505,6 +5927,11 @@ module Google
5505
5927
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig]
5506
5928
  attr_accessor :predefined_question_config
5507
5929
 
5930
+ # Options for configuring the data used to generate the QA question.
5931
+ # Corresponds to the JSON property `qaQuestionDataOptions`
5932
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionQaQuestionDataOptions]
5933
+ attr_accessor :qa_question_data_options
5934
+
5508
5935
  # Question text. E.g., "Did the agent greet the customer?"
5509
5936
  # Corresponds to the JSON property `questionBody`
5510
5937
  # @return [String]
@@ -5551,6 +5978,7 @@ module Google
5551
5978
  @name = args[:name] if args.key?(:name)
5552
5979
  @order = args[:order] if args.key?(:order)
5553
5980
  @predefined_question_config = args[:predefined_question_config] if args.key?(:predefined_question_config)
5981
+ @qa_question_data_options = args[:qa_question_data_options] if args.key?(:qa_question_data_options)
5554
5982
  @question_body = args[:question_body] if args.key?(:question_body)
5555
5983
  @question_type = args[:question_type] if args.key?(:question_type)
5556
5984
  @tags = args[:tags] if args.key?(:tags)
@@ -5654,6 +6082,26 @@ module Google
5654
6082
  end
5655
6083
  end
5656
6084
 
6085
+ # Options for configuring the data used to generate the QA question.
6086
+ class GoogleCloudContactcenterinsightsV1QaQuestionQaQuestionDataOptions
6087
+ include Google::Apis::Core::Hashable
6088
+
6089
+ # Options for configuring what metadata is included in the conversation data
6090
+ # used in QAI and Discovery Engine.
6091
+ # Corresponds to the JSON property `conversationDataOptions`
6092
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationDataOptions]
6093
+ attr_accessor :conversation_data_options
6094
+
6095
+ def initialize(**args)
6096
+ update!(**args)
6097
+ end
6098
+
6099
+ # Update properties of this object
6100
+ def update!(**args)
6101
+ @conversation_data_options = args[:conversation_data_options] if args.key?(:conversation_data_options)
6102
+ end
6103
+ end
6104
+
5657
6105
  # A tag is a resource which aims to categorize a set of questions across
5658
6106
  # multiple scorecards, e.g., "Customer Satisfaction","Billing", etc.
5659
6107
  class GoogleCloudContactcenterinsightsV1QaQuestionTag
@@ -7525,11 +7973,275 @@ module Google
7525
7973
  attr_accessor :disable_word_time_offsets
7526
7974
  alias_method :disable_word_time_offsets?, :disable_word_time_offsets
7527
7975
 
7528
- # The fully-qualified Speech Recognizer resource name. Format: `projects/`
7529
- # project_id`/locations/`location`/recognizer/`recognizer``
7530
- # Corresponds to the JSON property `speechRecognizer`
7531
- # @return [String]
7532
- attr_accessor :speech_recognizer
7976
+ # The fully-qualified Speech Recognizer resource name. Format: `projects/`
7977
+ # project_id`/locations/`location`/recognizer/`recognizer``
7978
+ # Corresponds to the JSON property `speechRecognizer`
7979
+ # @return [String]
7980
+ attr_accessor :speech_recognizer
7981
+
7982
+ def initialize(**args)
7983
+ update!(**args)
7984
+ end
7985
+
7986
+ # Update properties of this object
7987
+ def update!(**args)
7988
+ @disable_word_time_offsets = args[:disable_word_time_offsets] if args.key?(:disable_word_time_offsets)
7989
+ @speech_recognizer = args[:speech_recognizer] if args.key?(:speech_recognizer)
7990
+ end
7991
+ end
7992
+
7993
+ # The request message for testing auto labeling rules.
7994
+ class GoogleCloudContactcenterinsightsV1TestAutoLabelingRuleRequest
7995
+ include Google::Apis::Core::Hashable
7996
+
7997
+ # Rule for auto-labeling conversations.
7998
+ # Corresponds to the JSON property `autoLabelingRule`
7999
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRule]
8000
+ attr_accessor :auto_labeling_rule
8001
+
8002
+ # The conversation resource.
8003
+ # Corresponds to the JSON property `conversation`
8004
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
8005
+ attr_accessor :conversation
8006
+
8007
+ def initialize(**args)
8008
+ update!(**args)
8009
+ end
8010
+
8011
+ # Update properties of this object
8012
+ def update!(**args)
8013
+ @auto_labeling_rule = args[:auto_labeling_rule] if args.key?(:auto_labeling_rule)
8014
+ @conversation = args[:conversation] if args.key?(:conversation)
8015
+ end
8016
+ end
8017
+
8018
+ # The response message for testing auto labeling rules.
8019
+ class GoogleCloudContactcenterinsightsV1TestAutoLabelingRuleResponse
8020
+ include Google::Apis::Core::Hashable
8021
+
8022
+ # The result of the test auto labeling rule.
8023
+ # Corresponds to the JSON property `labelResult`
8024
+ # @return [String]
8025
+ attr_accessor :label_result
8026
+
8027
+ def initialize(**args)
8028
+ update!(**args)
8029
+ end
8030
+
8031
+ # Update properties of this object
8032
+ def update!(**args)
8033
+ @label_result = args[:label_result] if args.key?(:label_result)
8034
+ end
8035
+ end
8036
+
8037
+ # Metadata for testing correlation config.
8038
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigMetadata
8039
+ include Google::Apis::Core::Hashable
8040
+
8041
+ # Output only. The time the operation was created.
8042
+ # Corresponds to the JSON property `createTime`
8043
+ # @return [String]
8044
+ attr_accessor :create_time
8045
+
8046
+ # The dataset used for sampling conversations.
8047
+ # Corresponds to the JSON property `dataset`
8048
+ # @return [String]
8049
+ attr_accessor :dataset
8050
+
8051
+ # Statistics for TestCorrelationConfig operation.
8052
+ # Corresponds to the JSON property `stats`
8053
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TestCorrelationConfigMetadataFullConversationCorrelationStats]
8054
+ attr_accessor :stats
8055
+
8056
+ def initialize(**args)
8057
+ update!(**args)
8058
+ end
8059
+
8060
+ # Update properties of this object
8061
+ def update!(**args)
8062
+ @create_time = args[:create_time] if args.key?(:create_time)
8063
+ @dataset = args[:dataset] if args.key?(:dataset)
8064
+ @stats = args[:stats] if args.key?(:stats)
8065
+ end
8066
+ end
8067
+
8068
+ # Statistics for TestCorrelationConfig operation.
8069
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigMetadataFullConversationCorrelationStats
8070
+ include Google::Apis::Core::Hashable
8071
+
8072
+ # A list of errors that occurred during correlation, one for each conversation
8073
+ # that failed.
8074
+ # Corresponds to the JSON property `conversationCorrelationErrors`
8075
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError>]
8076
+ attr_accessor :conversation_correlation_errors
8077
+
8078
+ # The number of conversations correlated.
8079
+ # Corresponds to the JSON property `correlatedConversationsCount`
8080
+ # @return [Fixnum]
8081
+ attr_accessor :correlated_conversations_count
8082
+
8083
+ # The number of conversations that failed correlation.
8084
+ # Corresponds to the JSON property `failedConversationsCount`
8085
+ # @return [Fixnum]
8086
+ attr_accessor :failed_conversations_count
8087
+
8088
+ # Partial errors during test correlation config operation that might cause the
8089
+ # operation output to be incomplete.
8090
+ # Corresponds to the JSON property `partialErrors`
8091
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
8092
+ attr_accessor :partial_errors
8093
+
8094
+ # The number of conversations sampled.
8095
+ # Corresponds to the JSON property `sampledConversationsCount`
8096
+ # @return [Fixnum]
8097
+ attr_accessor :sampled_conversations_count
8098
+
8099
+ def initialize(**args)
8100
+ update!(**args)
8101
+ end
8102
+
8103
+ # Update properties of this object
8104
+ def update!(**args)
8105
+ @conversation_correlation_errors = args[:conversation_correlation_errors] if args.key?(:conversation_correlation_errors)
8106
+ @correlated_conversations_count = args[:correlated_conversations_count] if args.key?(:correlated_conversations_count)
8107
+ @failed_conversations_count = args[:failed_conversations_count] if args.key?(:failed_conversations_count)
8108
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
8109
+ @sampled_conversations_count = args[:sampled_conversations_count] if args.key?(:sampled_conversations_count)
8110
+ end
8111
+ end
8112
+
8113
+ # An error that occurred during correlation for a specific conversation.
8114
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError
8115
+ include Google::Apis::Core::Hashable
8116
+
8117
+ # The conversation resource name that had an error during correlation.
8118
+ # Corresponds to the JSON property `conversation`
8119
+ # @return [String]
8120
+ attr_accessor :conversation
8121
+
8122
+ # The `Status` type defines a logical error model that is suitable for different
8123
+ # programming environments, including REST APIs and RPC APIs. It is used by [
8124
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
8125
+ # data: error code, error message, and error details. You can find out more
8126
+ # about this error model and how to work with it in the [API Design Guide](https:
8127
+ # //cloud.google.com/apis/design/errors).
8128
+ # Corresponds to the JSON property `status`
8129
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
8130
+ attr_accessor :status
8131
+
8132
+ def initialize(**args)
8133
+ update!(**args)
8134
+ end
8135
+
8136
+ # Update properties of this object
8137
+ def update!(**args)
8138
+ @conversation = args[:conversation] if args.key?(:conversation)
8139
+ @status = args[:status] if args.key?(:status)
8140
+ end
8141
+ end
8142
+
8143
+ # The request to test correlation config.
8144
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigRequest
8145
+ include Google::Apis::Core::Hashable
8146
+
8147
+ # Wrapper for a list of conversations.
8148
+ # Corresponds to the JSON property `conversations`
8149
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TestCorrelationConfigRequestConversations]
8150
+ attr_accessor :conversations
8151
+
8152
+ # A configuration that defines how to correlate conversations for a given a
8153
+ # given project.
8154
+ # Corresponds to the JSON property `correlationConfig`
8155
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CorrelationConfig]
8156
+ attr_accessor :correlation_config
8157
+
8158
+ # Optional. Filter to select conversations to test correlation against.
8159
+ # Conversations matching this filter will be sampled based on start time. The
8160
+ # most recent `max_sample_count` conversations will be selected. If no
8161
+ # conversations match the filter, the request will fail with an `
8162
+ # INVALID_ARGUMENT` error.
8163
+ # Corresponds to the JSON property `filter`
8164
+ # @return [String]
8165
+ attr_accessor :filter
8166
+
8167
+ # Optional. The maximum number of conversations to sample when using the `filter`
8168
+ # . If not set, defaults to 1000. Values greater than 1000 are coerced to 1000.
8169
+ # This field is ignored if `conversations` is provided.
8170
+ # Corresponds to the JSON property `maxSampleCount`
8171
+ # @return [Fixnum]
8172
+ attr_accessor :max_sample_count
8173
+
8174
+ def initialize(**args)
8175
+ update!(**args)
8176
+ end
8177
+
8178
+ # Update properties of this object
8179
+ def update!(**args)
8180
+ @conversations = args[:conversations] if args.key?(:conversations)
8181
+ @correlation_config = args[:correlation_config] if args.key?(:correlation_config)
8182
+ @filter = args[:filter] if args.key?(:filter)
8183
+ @max_sample_count = args[:max_sample_count] if args.key?(:max_sample_count)
8184
+ end
8185
+ end
8186
+
8187
+ # Wrapper for a list of conversations.
8188
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigRequestConversations
8189
+ include Google::Apis::Core::Hashable
8190
+
8191
+ # Optional. The conversations.
8192
+ # Corresponds to the JSON property `conversations`
8193
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation>]
8194
+ attr_accessor :conversations
8195
+
8196
+ def initialize(**args)
8197
+ update!(**args)
8198
+ end
8199
+
8200
+ # Update properties of this object
8201
+ def update!(**args)
8202
+ @conversations = args[:conversations] if args.key?(:conversations)
8203
+ end
8204
+ end
8205
+
8206
+ # The response of testing correlation config.
8207
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigResponse
8208
+ include Google::Apis::Core::Hashable
8209
+
8210
+ # Wrapper for detailed, step-by-step results.
8211
+ # Corresponds to the JSON property `detailedResults`
8212
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1TestCorrelationConfigResponseDetailedCorrelationResults]
8213
+ attr_accessor :detailed_results
8214
+
8215
+ # Partial errors during test correlation config operation that might cause the
8216
+ # operation output to be incomplete.
8217
+ # Corresponds to the JSON property `partialErrors`
8218
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
8219
+ attr_accessor :partial_errors
8220
+
8221
+ def initialize(**args)
8222
+ update!(**args)
8223
+ end
8224
+
8225
+ # Update properties of this object
8226
+ def update!(**args)
8227
+ @detailed_results = args[:detailed_results] if args.key?(:detailed_results)
8228
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
8229
+ end
8230
+ end
8231
+
8232
+ # Wrapper for detailed, step-by-step results.
8233
+ class GoogleCloudContactcenterinsightsV1TestCorrelationConfigResponseDetailedCorrelationResults
8234
+ include Google::Apis::Core::Hashable
8235
+
8236
+ # A list of constraint evaluation results for each pair of conversations.
8237
+ # Corresponds to the JSON property `constraintResults`
8238
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConstraintEvaluationResult>]
8239
+ attr_accessor :constraint_results
8240
+
8241
+ # A list of join key correlation results for each conversation tested.
8242
+ # Corresponds to the JSON property `joinKeyResults`
8243
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ConversationCorrelationResult>]
8244
+ attr_accessor :join_key_results
7533
8245
 
7534
8246
  def initialize(**args)
7535
8247
  update!(**args)
@@ -7537,8 +8249,8 @@ module Google
7537
8249
 
7538
8250
  # Update properties of this object
7539
8251
  def update!(**args)
7540
- @disable_word_time_offsets = args[:disable_word_time_offsets] if args.key?(:disable_word_time_offsets)
7541
- @speech_recognizer = args[:speech_recognizer] if args.key?(:speech_recognizer)
8252
+ @constraint_results = args[:constraint_results] if args.key?(:constraint_results)
8253
+ @join_key_results = args[:join_key_results] if args.key?(:join_key_results)
7542
8254
  end
7543
8255
  end
7544
8256
 
@@ -8666,6 +9378,74 @@ module Google
8666
9378
  end
8667
9379
  end
8668
9380
 
9381
+ # The result of testing a constraint expression on a pair of conversations.
9382
+ class GoogleCloudContactcenterinsightsV1alpha1ConstraintEvaluationResult
9383
+ include Google::Apis::Core::Hashable
9384
+
9385
+ # The first conversation resource name.
9386
+ # Corresponds to the JSON property `conversationA`
9387
+ # @return [String]
9388
+ attr_accessor :conversation_a
9389
+
9390
+ # The second conversation resource name.
9391
+ # Corresponds to the JSON property `conversationB`
9392
+ # @return [String]
9393
+ attr_accessor :conversation_b
9394
+
9395
+ # The results for each applicable constraint rule.
9396
+ # Corresponds to the JSON property `ruleConstraintResults`
9397
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConstraintEvaluationResultRuleConstraintResult>]
9398
+ attr_accessor :rule_constraint_results
9399
+
9400
+ def initialize(**args)
9401
+ update!(**args)
9402
+ end
9403
+
9404
+ # Update properties of this object
9405
+ def update!(**args)
9406
+ @conversation_a = args[:conversation_a] if args.key?(:conversation_a)
9407
+ @conversation_b = args[:conversation_b] if args.key?(:conversation_b)
9408
+ @rule_constraint_results = args[:rule_constraint_results] if args.key?(:rule_constraint_results)
9409
+ end
9410
+ end
9411
+
9412
+ # The result of a single constraint rule on the pair of conversations.
9413
+ class GoogleCloudContactcenterinsightsV1alpha1ConstraintEvaluationResultRuleConstraintResult
9414
+ include Google::Apis::Core::Hashable
9415
+
9416
+ # Whether the constraint expression evaluated to true for (A, B) or (B, A).
9417
+ # Corresponds to the JSON property `constraintMet`
9418
+ # @return [Boolean]
9419
+ attr_accessor :constraint_met
9420
+ alias_method :constraint_met?, :constraint_met
9421
+
9422
+ # The `Status` type defines a logical error model that is suitable for different
9423
+ # programming environments, including REST APIs and RPC APIs. It is used by [
9424
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
9425
+ # data: error code, error message, and error details. You can find out more
9426
+ # about this error model and how to work with it in the [API Design Guide](https:
9427
+ # //cloud.google.com/apis/design/errors).
9428
+ # Corresponds to the JSON property `error`
9429
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
9430
+ attr_accessor :error
9431
+
9432
+ # The rule ID.
9433
+ # Corresponds to the JSON property `ruleId`
9434
+ # @return [String]
9435
+ attr_accessor :rule_id
9436
+
9437
+ def initialize(**args)
9438
+ update!(**args)
9439
+ end
9440
+
9441
+ # Update properties of this object
9442
+ def update!(**args)
9443
+ @constraint_met = args[:constraint_met] if args.key?(:constraint_met)
9444
+ @error = args[:error] if args.key?(:error)
9445
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
9446
+ end
9447
+ end
9448
+
8669
9449
  # The conversation resource.
8670
9450
  class GoogleCloudContactcenterinsightsV1alpha1Conversation
8671
9451
  include Google::Apis::Core::Hashable
@@ -8681,6 +9461,11 @@ module Google
8681
9461
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata]
8682
9462
  attr_accessor :call_metadata
8683
9463
 
9464
+ # Info for correlating across conversations.
9465
+ # Corresponds to the JSON property `correlationInfo`
9466
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationInfo]
9467
+ attr_accessor :correlation_info
9468
+
8684
9469
  # Output only. The time at which the conversation was created.
8685
9470
  # Corresponds to the JSON property `createTime`
8686
9471
  # @return [String]
@@ -8730,7 +9515,7 @@ module Google
8730
9515
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData]
8731
9516
  attr_accessor :latest_summary
8732
9517
 
8733
- # Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
9518
+ # Immutable. The conversation medium.
8734
9519
  # Corresponds to the JSON property `medium`
8735
9520
  # @return [String]
8736
9521
  attr_accessor :medium
@@ -8798,6 +9583,7 @@ module Google
8798
9583
  def update!(**args)
8799
9584
  @agent_id = args[:agent_id] if args.key?(:agent_id)
8800
9585
  @call_metadata = args[:call_metadata] if args.key?(:call_metadata)
9586
+ @correlation_info = args[:correlation_info] if args.key?(:correlation_info)
8801
9587
  @create_time = args[:create_time] if args.key?(:create_time)
8802
9588
  @data_source = args[:data_source] if args.key?(:data_source)
8803
9589
  @dialogflow_intents = args[:dialogflow_intents] if args.key?(:dialogflow_intents)
@@ -8846,6 +9632,102 @@ module Google
8846
9632
  end
8847
9633
  end
8848
9634
 
9635
+ # Info for correlating across conversations.
9636
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationInfo
9637
+ include Google::Apis::Core::Hashable
9638
+
9639
+ # Output only. The correlation types of this conversation. A single conversation
9640
+ # can have multiple correlation types. For example a conversation that only has
9641
+ # a single segment is both a SEGMENT and a FULL_CONVERSATION.
9642
+ # Corresponds to the JSON property `correlationTypes`
9643
+ # @return [Array<String>]
9644
+ attr_accessor :correlation_types
9645
+
9646
+ # Output only. The full conversation correlation id this conversation is a
9647
+ # segment of.
9648
+ # Corresponds to the JSON property `fullConversationCorrelationId`
9649
+ # @return [String]
9650
+ attr_accessor :full_conversation_correlation_id
9651
+
9652
+ # Output only. The full conversation correlation id this conversation is a
9653
+ # merged conversation of.
9654
+ # Corresponds to the JSON property `mergedFullConversationCorrelationId`
9655
+ # @return [String]
9656
+ attr_accessor :merged_full_conversation_correlation_id
9657
+
9658
+ def initialize(**args)
9659
+ update!(**args)
9660
+ end
9661
+
9662
+ # Update properties of this object
9663
+ def update!(**args)
9664
+ @correlation_types = args[:correlation_types] if args.key?(:correlation_types)
9665
+ @full_conversation_correlation_id = args[:full_conversation_correlation_id] if args.key?(:full_conversation_correlation_id)
9666
+ @merged_full_conversation_correlation_id = args[:merged_full_conversation_correlation_id] if args.key?(:merged_full_conversation_correlation_id)
9667
+ end
9668
+ end
9669
+
9670
+ # The result of testing correlation config on a single conversation.
9671
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationResult
9672
+ include Google::Apis::Core::Hashable
9673
+
9674
+ # The conversation resource name.
9675
+ # Corresponds to the JSON property `conversation`
9676
+ # @return [String]
9677
+ attr_accessor :conversation
9678
+
9679
+ # The results for each correlation rule.
9680
+ # Corresponds to the JSON property `ruleResults`
9681
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationResultRuleCorrelationResult>]
9682
+ attr_accessor :rule_results
9683
+
9684
+ def initialize(**args)
9685
+ update!(**args)
9686
+ end
9687
+
9688
+ # Update properties of this object
9689
+ def update!(**args)
9690
+ @conversation = args[:conversation] if args.key?(:conversation)
9691
+ @rule_results = args[:rule_results] if args.key?(:rule_results)
9692
+ end
9693
+ end
9694
+
9695
+ # The result of a single correlation rule.
9696
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationResultRuleCorrelationResult
9697
+ include Google::Apis::Core::Hashable
9698
+
9699
+ # The correlation ID generated by the join key expression.
9700
+ # Corresponds to the JSON property `correlationId`
9701
+ # @return [String]
9702
+ attr_accessor :correlation_id
9703
+
9704
+ # The `Status` type defines a logical error model that is suitable for different
9705
+ # programming environments, including REST APIs and RPC APIs. It is used by [
9706
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
9707
+ # data: error code, error message, and error details. You can find out more
9708
+ # about this error model and how to work with it in the [API Design Guide](https:
9709
+ # //cloud.google.com/apis/design/errors).
9710
+ # Corresponds to the JSON property `error`
9711
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
9712
+ attr_accessor :error
9713
+
9714
+ # The rule ID.
9715
+ # Corresponds to the JSON property `ruleId`
9716
+ # @return [String]
9717
+ attr_accessor :rule_id
9718
+
9719
+ def initialize(**args)
9720
+ update!(**args)
9721
+ end
9722
+
9723
+ # Update properties of this object
9724
+ def update!(**args)
9725
+ @correlation_id = args[:correlation_id] if args.key?(:correlation_id)
9726
+ @error = args[:error] if args.key?(:error)
9727
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
9728
+ end
9729
+ end
9730
+
8849
9731
  # The conversation source, which is a combination of transcript and audio.
8850
9732
  class GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource
8851
9733
  include Google::Apis::Core::Hashable
@@ -13008,33 +13890,198 @@ module Google
13008
13890
  end
13009
13891
  end
13010
13892
 
13011
- # Agent Assist Smart Reply data.
13012
- class GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
13893
+ # Agent Assist Smart Reply data.
13894
+ class GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
13895
+ include Google::Apis::Core::Hashable
13896
+
13897
+ # The system's confidence score that this reply is a good match for this
13898
+ # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
13899
+ # certain).
13900
+ # Corresponds to the JSON property `confidenceScore`
13901
+ # @return [Float]
13902
+ attr_accessor :confidence_score
13903
+
13904
+ # Map that contains metadata about the Smart Reply and the document from which
13905
+ # it originates.
13906
+ # Corresponds to the JSON property `metadata`
13907
+ # @return [Hash<String,String>]
13908
+ attr_accessor :metadata
13909
+
13910
+ # The name of the answer record. Format: projects/`project`/locations/`location`/
13911
+ # answerRecords/`answer_record`
13912
+ # Corresponds to the JSON property `queryRecord`
13913
+ # @return [String]
13914
+ attr_accessor :query_record
13915
+
13916
+ # The content of the reply.
13917
+ # Corresponds to the JSON property `reply`
13918
+ # @return [String]
13919
+ attr_accessor :reply
13920
+
13921
+ def initialize(**args)
13922
+ update!(**args)
13923
+ end
13924
+
13925
+ # Update properties of this object
13926
+ def update!(**args)
13927
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
13928
+ @metadata = args[:metadata] if args.key?(:metadata)
13929
+ @query_record = args[:query_record] if args.key?(:query_record)
13930
+ @reply = args[:reply] if args.key?(:reply)
13931
+ end
13932
+ end
13933
+
13934
+ # Speech-to-Text configuration. Speech-to-Text settings are applied to
13935
+ # conversations ingested from the `UploadConversation` and `IngestConversations`
13936
+ # endpoints, including conversation coming from CCAI Platform. They are not
13937
+ # applied to conversations ingested from the `CreateConversation` endpoint.
13938
+ class GoogleCloudContactcenterinsightsV1alpha1SpeechConfig
13939
+ include Google::Apis::Core::Hashable
13940
+
13941
+ # Whether to disable word time offsets. If true, the `enable_word_time_offsets`
13942
+ # field in the recognition config will be set to false.
13943
+ # Corresponds to the JSON property `disableWordTimeOffsets`
13944
+ # @return [Boolean]
13945
+ attr_accessor :disable_word_time_offsets
13946
+ alias_method :disable_word_time_offsets?, :disable_word_time_offsets
13947
+
13948
+ # The fully-qualified Speech Recognizer resource name. Format: `projects/`
13949
+ # project_id`/locations/`location`/recognizer/`recognizer``
13950
+ # Corresponds to the JSON property `speechRecognizer`
13951
+ # @return [String]
13952
+ attr_accessor :speech_recognizer
13953
+
13954
+ def initialize(**args)
13955
+ update!(**args)
13956
+ end
13957
+
13958
+ # Update properties of this object
13959
+ def update!(**args)
13960
+ @disable_word_time_offsets = args[:disable_word_time_offsets] if args.key?(:disable_word_time_offsets)
13961
+ @speech_recognizer = args[:speech_recognizer] if args.key?(:speech_recognizer)
13962
+ end
13963
+ end
13964
+
13965
+ # Metadata for testing correlation config.
13966
+ class GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigMetadata
13967
+ include Google::Apis::Core::Hashable
13968
+
13969
+ # Output only. The time the operation was created.
13970
+ # Corresponds to the JSON property `createTime`
13971
+ # @return [String]
13972
+ attr_accessor :create_time
13973
+
13974
+ # The dataset used for sampling conversations.
13975
+ # Corresponds to the JSON property `dataset`
13976
+ # @return [String]
13977
+ attr_accessor :dataset
13978
+
13979
+ # Statistics for TestCorrelationConfig operation.
13980
+ # Corresponds to the JSON property `stats`
13981
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigMetadataFullConversationCorrelationStats]
13982
+ attr_accessor :stats
13983
+
13984
+ def initialize(**args)
13985
+ update!(**args)
13986
+ end
13987
+
13988
+ # Update properties of this object
13989
+ def update!(**args)
13990
+ @create_time = args[:create_time] if args.key?(:create_time)
13991
+ @dataset = args[:dataset] if args.key?(:dataset)
13992
+ @stats = args[:stats] if args.key?(:stats)
13993
+ end
13994
+ end
13995
+
13996
+ # Statistics for TestCorrelationConfig operation.
13997
+ class GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigMetadataFullConversationCorrelationStats
13998
+ include Google::Apis::Core::Hashable
13999
+
14000
+ # A list of errors that occurred during correlation, one for each conversation
14001
+ # that failed.
14002
+ # Corresponds to the JSON property `conversationCorrelationErrors`
14003
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError>]
14004
+ attr_accessor :conversation_correlation_errors
14005
+
14006
+ # The number of conversations correlated.
14007
+ # Corresponds to the JSON property `correlatedConversationsCount`
14008
+ # @return [Fixnum]
14009
+ attr_accessor :correlated_conversations_count
14010
+
14011
+ # The number of conversations that failed correlation.
14012
+ # Corresponds to the JSON property `failedConversationsCount`
14013
+ # @return [Fixnum]
14014
+ attr_accessor :failed_conversations_count
14015
+
14016
+ # Partial errors during test correlation config operation that might cause the
14017
+ # operation output to be incomplete.
14018
+ # Corresponds to the JSON property `partialErrors`
14019
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
14020
+ attr_accessor :partial_errors
14021
+
14022
+ # The number of conversations sampled.
14023
+ # Corresponds to the JSON property `sampledConversationsCount`
14024
+ # @return [Fixnum]
14025
+ attr_accessor :sampled_conversations_count
14026
+
14027
+ def initialize(**args)
14028
+ update!(**args)
14029
+ end
14030
+
14031
+ # Update properties of this object
14032
+ def update!(**args)
14033
+ @conversation_correlation_errors = args[:conversation_correlation_errors] if args.key?(:conversation_correlation_errors)
14034
+ @correlated_conversations_count = args[:correlated_conversations_count] if args.key?(:correlated_conversations_count)
14035
+ @failed_conversations_count = args[:failed_conversations_count] if args.key?(:failed_conversations_count)
14036
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
14037
+ @sampled_conversations_count = args[:sampled_conversations_count] if args.key?(:sampled_conversations_count)
14038
+ end
14039
+ end
14040
+
14041
+ # An error that occurred during correlation for a specific conversation.
14042
+ class GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError
14043
+ include Google::Apis::Core::Hashable
14044
+
14045
+ # The conversation resource name that had an error during correlation.
14046
+ # Corresponds to the JSON property `conversation`
14047
+ # @return [String]
14048
+ attr_accessor :conversation
14049
+
14050
+ # The `Status` type defines a logical error model that is suitable for different
14051
+ # programming environments, including REST APIs and RPC APIs. It is used by [
14052
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
14053
+ # data: error code, error message, and error details. You can find out more
14054
+ # about this error model and how to work with it in the [API Design Guide](https:
14055
+ # //cloud.google.com/apis/design/errors).
14056
+ # Corresponds to the JSON property `status`
14057
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
14058
+ attr_accessor :status
14059
+
14060
+ def initialize(**args)
14061
+ update!(**args)
14062
+ end
14063
+
14064
+ # Update properties of this object
14065
+ def update!(**args)
14066
+ @conversation = args[:conversation] if args.key?(:conversation)
14067
+ @status = args[:status] if args.key?(:status)
14068
+ end
14069
+ end
14070
+
14071
+ # The response of testing correlation config.
14072
+ class GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigResponse
13013
14073
  include Google::Apis::Core::Hashable
13014
14074
 
13015
- # The system's confidence score that this reply is a good match for this
13016
- # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
13017
- # certain).
13018
- # Corresponds to the JSON property `confidenceScore`
13019
- # @return [Float]
13020
- attr_accessor :confidence_score
13021
-
13022
- # Map that contains metadata about the Smart Reply and the document from which
13023
- # it originates.
13024
- # Corresponds to the JSON property `metadata`
13025
- # @return [Hash<String,String>]
13026
- attr_accessor :metadata
13027
-
13028
- # The name of the answer record. Format: projects/`project`/locations/`location`/
13029
- # answerRecords/`answer_record`
13030
- # Corresponds to the JSON property `queryRecord`
13031
- # @return [String]
13032
- attr_accessor :query_record
14075
+ # Wrapper for detailed, step-by-step results.
14076
+ # Corresponds to the JSON property `detailedResults`
14077
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigResponseDetailedCorrelationResults]
14078
+ attr_accessor :detailed_results
13033
14079
 
13034
- # The content of the reply.
13035
- # Corresponds to the JSON property `reply`
13036
- # @return [String]
13037
- attr_accessor :reply
14080
+ # Partial errors during test correlation config operation that might cause the
14081
+ # operation output to be incomplete.
14082
+ # Corresponds to the JSON property `partialErrors`
14083
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
14084
+ attr_accessor :partial_errors
13038
14085
 
13039
14086
  def initialize(**args)
13040
14087
  update!(**args)
@@ -13042,32 +14089,24 @@ module Google
13042
14089
 
13043
14090
  # Update properties of this object
13044
14091
  def update!(**args)
13045
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
13046
- @metadata = args[:metadata] if args.key?(:metadata)
13047
- @query_record = args[:query_record] if args.key?(:query_record)
13048
- @reply = args[:reply] if args.key?(:reply)
14092
+ @detailed_results = args[:detailed_results] if args.key?(:detailed_results)
14093
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
13049
14094
  end
13050
14095
  end
13051
14096
 
13052
- # Speech-to-Text configuration. Speech-to-Text settings are applied to
13053
- # conversations ingested from the `UploadConversation` and `IngestConversations`
13054
- # endpoints, including conversation coming from CCAI Platform. They are not
13055
- # applied to conversations ingested from the `CreateConversation` endpoint.
13056
- class GoogleCloudContactcenterinsightsV1alpha1SpeechConfig
14097
+ # Wrapper for detailed, step-by-step results.
14098
+ class GoogleCloudContactcenterinsightsV1alpha1TestCorrelationConfigResponseDetailedCorrelationResults
13057
14099
  include Google::Apis::Core::Hashable
13058
14100
 
13059
- # Whether to disable word time offsets. If true, the `enable_word_time_offsets`
13060
- # field in the recognition config will be set to false.
13061
- # Corresponds to the JSON property `disableWordTimeOffsets`
13062
- # @return [Boolean]
13063
- attr_accessor :disable_word_time_offsets
13064
- alias_method :disable_word_time_offsets?, :disable_word_time_offsets
14101
+ # A list of constraint evaluation results for each pair of conversations.
14102
+ # Corresponds to the JSON property `constraintResults`
14103
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConstraintEvaluationResult>]
14104
+ attr_accessor :constraint_results
13065
14105
 
13066
- # The fully-qualified Speech Recognizer resource name. Format: `projects/`
13067
- # project_id`/locations/`location`/recognizer/`recognizer``
13068
- # Corresponds to the JSON property `speechRecognizer`
13069
- # @return [String]
13070
- attr_accessor :speech_recognizer
14106
+ # A list of join key correlation results for each conversation tested.
14107
+ # Corresponds to the JSON property `joinKeyResults`
14108
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationCorrelationResult>]
14109
+ attr_accessor :join_key_results
13071
14110
 
13072
14111
  def initialize(**args)
13073
14112
  update!(**args)
@@ -13075,8 +14114,8 @@ module Google
13075
14114
 
13076
14115
  # Update properties of this object
13077
14116
  def update!(**args)
13078
- @disable_word_time_offsets = args[:disable_word_time_offsets] if args.key?(:disable_word_time_offsets)
13079
- @speech_recognizer = args[:speech_recognizer] if args.key?(:speech_recognizer)
14117
+ @constraint_results = args[:constraint_results] if args.key?(:constraint_results)
14118
+ @join_key_results = args[:join_key_results] if args.key?(:join_key_results)
13080
14119
  end
13081
14120
  end
13082
14121
 
@@ -14344,6 +15383,74 @@ module Google
14344
15383
  end
14345
15384
  end
14346
15385
 
15386
+ # The result of testing a constraint expression on a pair of conversations.
15387
+ class GoogleCloudContactcenterinsightsV1mainConstraintEvaluationResult
15388
+ include Google::Apis::Core::Hashable
15389
+
15390
+ # The first conversation resource name.
15391
+ # Corresponds to the JSON property `conversationA`
15392
+ # @return [String]
15393
+ attr_accessor :conversation_a
15394
+
15395
+ # The second conversation resource name.
15396
+ # Corresponds to the JSON property `conversationB`
15397
+ # @return [String]
15398
+ attr_accessor :conversation_b
15399
+
15400
+ # The results for each applicable constraint rule.
15401
+ # Corresponds to the JSON property `ruleConstraintResults`
15402
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConstraintEvaluationResultRuleConstraintResult>]
15403
+ attr_accessor :rule_constraint_results
15404
+
15405
+ def initialize(**args)
15406
+ update!(**args)
15407
+ end
15408
+
15409
+ # Update properties of this object
15410
+ def update!(**args)
15411
+ @conversation_a = args[:conversation_a] if args.key?(:conversation_a)
15412
+ @conversation_b = args[:conversation_b] if args.key?(:conversation_b)
15413
+ @rule_constraint_results = args[:rule_constraint_results] if args.key?(:rule_constraint_results)
15414
+ end
15415
+ end
15416
+
15417
+ # The result of a single constraint rule on the pair of conversations.
15418
+ class GoogleCloudContactcenterinsightsV1mainConstraintEvaluationResultRuleConstraintResult
15419
+ include Google::Apis::Core::Hashable
15420
+
15421
+ # Whether the constraint expression evaluated to true for (A, B) or (B, A).
15422
+ # Corresponds to the JSON property `constraintMet`
15423
+ # @return [Boolean]
15424
+ attr_accessor :constraint_met
15425
+ alias_method :constraint_met?, :constraint_met
15426
+
15427
+ # The `Status` type defines a logical error model that is suitable for different
15428
+ # programming environments, including REST APIs and RPC APIs. It is used by [
15429
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
15430
+ # data: error code, error message, and error details. You can find out more
15431
+ # about this error model and how to work with it in the [API Design Guide](https:
15432
+ # //cloud.google.com/apis/design/errors).
15433
+ # Corresponds to the JSON property `error`
15434
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
15435
+ attr_accessor :error
15436
+
15437
+ # The rule ID.
15438
+ # Corresponds to the JSON property `ruleId`
15439
+ # @return [String]
15440
+ attr_accessor :rule_id
15441
+
15442
+ def initialize(**args)
15443
+ update!(**args)
15444
+ end
15445
+
15446
+ # Update properties of this object
15447
+ def update!(**args)
15448
+ @constraint_met = args[:constraint_met] if args.key?(:constraint_met)
15449
+ @error = args[:error] if args.key?(:error)
15450
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
15451
+ end
15452
+ end
15453
+
14347
15454
  # The conversation resource.
14348
15455
  class GoogleCloudContactcenterinsightsV1mainConversation
14349
15456
  include Google::Apis::Core::Hashable
@@ -14359,6 +15466,11 @@ module Google
14359
15466
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConversationCallMetadata]
14360
15467
  attr_accessor :call_metadata
14361
15468
 
15469
+ # Info for correlating across conversations.
15470
+ # Corresponds to the JSON property `correlationInfo`
15471
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConversationCorrelationInfo]
15472
+ attr_accessor :correlation_info
15473
+
14362
15474
  # Output only. The time at which the conversation was created.
14363
15475
  # Corresponds to the JSON property `createTime`
14364
15476
  # @return [String]
@@ -14408,7 +15520,7 @@ module Google
14408
15520
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConversationSummarizationSuggestionData]
14409
15521
  attr_accessor :latest_summary
14410
15522
 
14411
- # Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
15523
+ # Immutable. The conversation medium.
14412
15524
  # Corresponds to the JSON property `medium`
14413
15525
  # @return [String]
14414
15526
  attr_accessor :medium
@@ -14476,6 +15588,7 @@ module Google
14476
15588
  def update!(**args)
14477
15589
  @agent_id = args[:agent_id] if args.key?(:agent_id)
14478
15590
  @call_metadata = args[:call_metadata] if args.key?(:call_metadata)
15591
+ @correlation_info = args[:correlation_info] if args.key?(:correlation_info)
14479
15592
  @create_time = args[:create_time] if args.key?(:create_time)
14480
15593
  @data_source = args[:data_source] if args.key?(:data_source)
14481
15594
  @dialogflow_intents = args[:dialogflow_intents] if args.key?(:dialogflow_intents)
@@ -14524,6 +15637,102 @@ module Google
14524
15637
  end
14525
15638
  end
14526
15639
 
15640
+ # Info for correlating across conversations.
15641
+ class GoogleCloudContactcenterinsightsV1mainConversationCorrelationInfo
15642
+ include Google::Apis::Core::Hashable
15643
+
15644
+ # Output only. The correlation types of this conversation. A single conversation
15645
+ # can have multiple correlation types. For example a conversation that only has
15646
+ # a single segment is both a SEGMENT and a FULL_CONVERSATION.
15647
+ # Corresponds to the JSON property `correlationTypes`
15648
+ # @return [Array<String>]
15649
+ attr_accessor :correlation_types
15650
+
15651
+ # Output only. The full conversation correlation id this conversation is a
15652
+ # segment of.
15653
+ # Corresponds to the JSON property `fullConversationCorrelationId`
15654
+ # @return [String]
15655
+ attr_accessor :full_conversation_correlation_id
15656
+
15657
+ # Output only. The full conversation correlation id this conversation is a
15658
+ # merged conversation of.
15659
+ # Corresponds to the JSON property `mergedFullConversationCorrelationId`
15660
+ # @return [String]
15661
+ attr_accessor :merged_full_conversation_correlation_id
15662
+
15663
+ def initialize(**args)
15664
+ update!(**args)
15665
+ end
15666
+
15667
+ # Update properties of this object
15668
+ def update!(**args)
15669
+ @correlation_types = args[:correlation_types] if args.key?(:correlation_types)
15670
+ @full_conversation_correlation_id = args[:full_conversation_correlation_id] if args.key?(:full_conversation_correlation_id)
15671
+ @merged_full_conversation_correlation_id = args[:merged_full_conversation_correlation_id] if args.key?(:merged_full_conversation_correlation_id)
15672
+ end
15673
+ end
15674
+
15675
+ # The result of testing correlation config on a single conversation.
15676
+ class GoogleCloudContactcenterinsightsV1mainConversationCorrelationResult
15677
+ include Google::Apis::Core::Hashable
15678
+
15679
+ # The conversation resource name.
15680
+ # Corresponds to the JSON property `conversation`
15681
+ # @return [String]
15682
+ attr_accessor :conversation
15683
+
15684
+ # The results for each correlation rule.
15685
+ # Corresponds to the JSON property `ruleResults`
15686
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConversationCorrelationResultRuleCorrelationResult>]
15687
+ attr_accessor :rule_results
15688
+
15689
+ def initialize(**args)
15690
+ update!(**args)
15691
+ end
15692
+
15693
+ # Update properties of this object
15694
+ def update!(**args)
15695
+ @conversation = args[:conversation] if args.key?(:conversation)
15696
+ @rule_results = args[:rule_results] if args.key?(:rule_results)
15697
+ end
15698
+ end
15699
+
15700
+ # The result of a single correlation rule.
15701
+ class GoogleCloudContactcenterinsightsV1mainConversationCorrelationResultRuleCorrelationResult
15702
+ include Google::Apis::Core::Hashable
15703
+
15704
+ # The correlation ID generated by the join key expression.
15705
+ # Corresponds to the JSON property `correlationId`
15706
+ # @return [String]
15707
+ attr_accessor :correlation_id
15708
+
15709
+ # The `Status` type defines a logical error model that is suitable for different
15710
+ # programming environments, including REST APIs and RPC APIs. It is used by [
15711
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
15712
+ # data: error code, error message, and error details. You can find out more
15713
+ # about this error model and how to work with it in the [API Design Guide](https:
15714
+ # //cloud.google.com/apis/design/errors).
15715
+ # Corresponds to the JSON property `error`
15716
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
15717
+ attr_accessor :error
15718
+
15719
+ # The rule ID.
15720
+ # Corresponds to the JSON property `ruleId`
15721
+ # @return [String]
15722
+ attr_accessor :rule_id
15723
+
15724
+ def initialize(**args)
15725
+ update!(**args)
15726
+ end
15727
+
15728
+ # Update properties of this object
15729
+ def update!(**args)
15730
+ @correlation_id = args[:correlation_id] if args.key?(:correlation_id)
15731
+ @error = args[:error] if args.key?(:error)
15732
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
15733
+ end
15734
+ end
15735
+
14527
15736
  # The conversation source, which is a combination of transcript and audio.
14528
15737
  class GoogleCloudContactcenterinsightsV1mainConversationDataSource
14529
15738
  include Google::Apis::Core::Hashable
@@ -18758,6 +19967,163 @@ module Google
18758
19967
  end
18759
19968
  end
18760
19969
 
19970
+ # Metadata for testing correlation config.
19971
+ class GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigMetadata
19972
+ include Google::Apis::Core::Hashable
19973
+
19974
+ # Output only. The time the operation was created.
19975
+ # Corresponds to the JSON property `createTime`
19976
+ # @return [String]
19977
+ attr_accessor :create_time
19978
+
19979
+ # The dataset used for sampling conversations.
19980
+ # Corresponds to the JSON property `dataset`
19981
+ # @return [String]
19982
+ attr_accessor :dataset
19983
+
19984
+ # Statistics for TestCorrelationConfig operation.
19985
+ # Corresponds to the JSON property `stats`
19986
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigMetadataFullConversationCorrelationStats]
19987
+ attr_accessor :stats
19988
+
19989
+ def initialize(**args)
19990
+ update!(**args)
19991
+ end
19992
+
19993
+ # Update properties of this object
19994
+ def update!(**args)
19995
+ @create_time = args[:create_time] if args.key?(:create_time)
19996
+ @dataset = args[:dataset] if args.key?(:dataset)
19997
+ @stats = args[:stats] if args.key?(:stats)
19998
+ end
19999
+ end
20000
+
20001
+ # Statistics for TestCorrelationConfig operation.
20002
+ class GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigMetadataFullConversationCorrelationStats
20003
+ include Google::Apis::Core::Hashable
20004
+
20005
+ # A list of errors that occurred during correlation, one for each conversation
20006
+ # that failed.
20007
+ # Corresponds to the JSON property `conversationCorrelationErrors`
20008
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError>]
20009
+ attr_accessor :conversation_correlation_errors
20010
+
20011
+ # The number of conversations correlated.
20012
+ # Corresponds to the JSON property `correlatedConversationsCount`
20013
+ # @return [Fixnum]
20014
+ attr_accessor :correlated_conversations_count
20015
+
20016
+ # The number of conversations that failed correlation.
20017
+ # Corresponds to the JSON property `failedConversationsCount`
20018
+ # @return [Fixnum]
20019
+ attr_accessor :failed_conversations_count
20020
+
20021
+ # Partial errors during test correlation config operation that might cause the
20022
+ # operation output to be incomplete.
20023
+ # Corresponds to the JSON property `partialErrors`
20024
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
20025
+ attr_accessor :partial_errors
20026
+
20027
+ # The number of conversations sampled.
20028
+ # Corresponds to the JSON property `sampledConversationsCount`
20029
+ # @return [Fixnum]
20030
+ attr_accessor :sampled_conversations_count
20031
+
20032
+ def initialize(**args)
20033
+ update!(**args)
20034
+ end
20035
+
20036
+ # Update properties of this object
20037
+ def update!(**args)
20038
+ @conversation_correlation_errors = args[:conversation_correlation_errors] if args.key?(:conversation_correlation_errors)
20039
+ @correlated_conversations_count = args[:correlated_conversations_count] if args.key?(:correlated_conversations_count)
20040
+ @failed_conversations_count = args[:failed_conversations_count] if args.key?(:failed_conversations_count)
20041
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
20042
+ @sampled_conversations_count = args[:sampled_conversations_count] if args.key?(:sampled_conversations_count)
20043
+ end
20044
+ end
20045
+
20046
+ # An error that occurred during correlation for a specific conversation.
20047
+ class GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigMetadataFullConversationCorrelationStatsConversationCorrelationError
20048
+ include Google::Apis::Core::Hashable
20049
+
20050
+ # The conversation resource name that had an error during correlation.
20051
+ # Corresponds to the JSON property `conversation`
20052
+ # @return [String]
20053
+ attr_accessor :conversation
20054
+
20055
+ # The `Status` type defines a logical error model that is suitable for different
20056
+ # programming environments, including REST APIs and RPC APIs. It is used by [
20057
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
20058
+ # data: error code, error message, and error details. You can find out more
20059
+ # about this error model and how to work with it in the [API Design Guide](https:
20060
+ # //cloud.google.com/apis/design/errors).
20061
+ # Corresponds to the JSON property `status`
20062
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus]
20063
+ attr_accessor :status
20064
+
20065
+ def initialize(**args)
20066
+ update!(**args)
20067
+ end
20068
+
20069
+ # Update properties of this object
20070
+ def update!(**args)
20071
+ @conversation = args[:conversation] if args.key?(:conversation)
20072
+ @status = args[:status] if args.key?(:status)
20073
+ end
20074
+ end
20075
+
20076
+ # The response of testing correlation config.
20077
+ class GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigResponse
20078
+ include Google::Apis::Core::Hashable
20079
+
20080
+ # Wrapper for detailed, step-by-step results.
20081
+ # Corresponds to the JSON property `detailedResults`
20082
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigResponseDetailedCorrelationResults]
20083
+ attr_accessor :detailed_results
20084
+
20085
+ # Partial errors during test correlation config operation that might cause the
20086
+ # operation output to be incomplete.
20087
+ # Corresponds to the JSON property `partialErrors`
20088
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
20089
+ attr_accessor :partial_errors
20090
+
20091
+ def initialize(**args)
20092
+ update!(**args)
20093
+ end
20094
+
20095
+ # Update properties of this object
20096
+ def update!(**args)
20097
+ @detailed_results = args[:detailed_results] if args.key?(:detailed_results)
20098
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
20099
+ end
20100
+ end
20101
+
20102
+ # Wrapper for detailed, step-by-step results.
20103
+ class GoogleCloudContactcenterinsightsV1mainTestCorrelationConfigResponseDetailedCorrelationResults
20104
+ include Google::Apis::Core::Hashable
20105
+
20106
+ # A list of constraint evaluation results for each pair of conversations.
20107
+ # Corresponds to the JSON property `constraintResults`
20108
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConstraintEvaluationResult>]
20109
+ attr_accessor :constraint_results
20110
+
20111
+ # A list of join key correlation results for each conversation tested.
20112
+ # Corresponds to the JSON property `joinKeyResults`
20113
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainConversationCorrelationResult>]
20114
+ attr_accessor :join_key_results
20115
+
20116
+ def initialize(**args)
20117
+ update!(**args)
20118
+ end
20119
+
20120
+ # Update properties of this object
20121
+ def update!(**args)
20122
+ @constraint_results = args[:constraint_results] if args.key?(:constraint_results)
20123
+ @join_key_results = args[:join_key_results] if args.key?(:join_key_results)
20124
+ end
20125
+ end
20126
+
18761
20127
  # Metadata for undeploying an issue model.
18762
20128
  class GoogleCloudContactcenterinsightsV1mainUndeployIssueModelMetadata
18763
20129
  include Google::Apis::Core::Hashable