google-apis-dialogflow_v3beta1 0.90.0 → 0.92.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ea58b78f9dc3ca4bd1133aa319e979f077545cd2d8d5762567f3d672f33a29a
4
- data.tar.gz: c289dbc901964ca1479b757ce0819f6c782e59d0d3da16bffb218612e47837cd
3
+ metadata.gz: 150a056dd1796360dbced75a1f1e3e615564bf37e14a5a4e5bd98b6c75503849
4
+ data.tar.gz: de8ad082e7af450947518546e208b2d0491fe55349433fa73406c94878945102
5
5
  SHA512:
6
- metadata.gz: d0c3fcc266cab77de7cb790ccd23657c9276e47d71b9bb88e8ac8baa51a75dffa80b4e9c768b16102b88486029e2940bd7c9f38a8df6396090816697021a6395
7
- data.tar.gz: 921aefd776d5e2d23f7ecb4c3ff8dd6a1866e6dbb244bbaab3515cfa1c5c5263f580854e15f05e387d25192a1d089209ef51999637a57985f87e4639073ca37b
6
+ metadata.gz: 1ee5f53cc66636a95037358e1e7e985a0ae482145dc8ed841ae08ccc14a7ab6d06a6da852d58eaac2531360ece3759d71980b4018399dc561d6fde12c7395b50
7
+ data.tar.gz: fd75b20706143df369b10090538e313e9f28dc1da4efe22f16c326031b64da73ff5a6b0db188d4306585ecedac86c6907ec9a2645542d18d39dba07d584d9912
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dialogflow_v3beta1
2
2
 
3
+ ### v0.92.0 (2024-12-22)
4
+
5
+ * Regenerated from discovery document revision 20241216
6
+
7
+ ### v0.91.0 (2024-12-15)
8
+
9
+ * Regenerated from discovery document revision 20241212
10
+
3
11
  ### v0.90.0 (2024-12-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20241119
@@ -5091,6 +5091,11 @@ module Google
5091
5091
  class GoogleCloudDialogflowCxV3beta1ConversationInteraction
5092
5092
  include Google::Apis::Core::Hashable
5093
5093
 
5094
+ # Stores information about feedback provided by users about a response.
5095
+ # Corresponds to the JSON property `answerFeedback`
5096
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback]
5097
+ attr_accessor :answer_feedback
5098
+
5094
5099
  # The time that the interaction was created.
5095
5100
  # Corresponds to the JSON property `createTime`
5096
5101
  # @return [String]
@@ -5130,12 +5135,19 @@ module Google
5130
5135
  # @return [String]
5131
5136
  attr_accessor :response_utterances
5132
5137
 
5138
+ # Metrics associated with different processing steps. Names and number of steps
5139
+ # depend on the request and can change without a notice.
5140
+ # Corresponds to the JSON property `stepMetrics`
5141
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics>]
5142
+ attr_accessor :step_metrics
5143
+
5133
5144
  def initialize(**args)
5134
5145
  update!(**args)
5135
5146
  end
5136
5147
 
5137
5148
  # Update properties of this object
5138
5149
  def update!(**args)
5150
+ @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
5139
5151
  @create_time = args[:create_time] if args.key?(:create_time)
5140
5152
  @missing_transition = args[:missing_transition] if args.key?(:missing_transition)
5141
5153
  @partial_responses = args[:partial_responses] if args.key?(:partial_responses)
@@ -5143,6 +5155,7 @@ module Google
5143
5155
  @request_utterances = args[:request_utterances] if args.key?(:request_utterances)
5144
5156
  @response = args[:response] if args.key?(:response)
5145
5157
  @response_utterances = args[:response_utterances] if args.key?(:response_utterances)
5158
+ @step_metrics = args[:step_metrics] if args.key?(:step_metrics)
5146
5159
  end
5147
5160
  end
5148
5161
 
@@ -5174,6 +5187,31 @@ module Google
5174
5187
  end
5175
5188
  end
5176
5189
 
5190
+ # Metrics of each processing step.
5191
+ class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
5192
+ include Google::Apis::Core::Hashable
5193
+
5194
+ # Processing latency of the step.
5195
+ # Corresponds to the JSON property `latency`
5196
+ # @return [String]
5197
+ attr_accessor :latency
5198
+
5199
+ # Name of the request processing step.
5200
+ # Corresponds to the JSON property `name`
5201
+ # @return [String]
5202
+ attr_accessor :name
5203
+
5204
+ def initialize(**args)
5205
+ update!(**args)
5206
+ end
5207
+
5208
+ # Update properties of this object
5209
+ def update!(**args)
5210
+ @latency = args[:latency] if args.key?(:latency)
5211
+ @name = args[:name] if args.key?(:name)
5212
+ end
5213
+ end
5214
+
5177
5215
  # Represents metrics for the conversation.
5178
5216
  class GoogleCloudDialogflowCxV3beta1ConversationMetrics
5179
5217
  include Google::Apis::Core::Hashable
@@ -7210,6 +7248,38 @@ module Google
7210
7248
  end
7211
7249
  end
7212
7250
 
7251
+ # The request message for Playbooks.ExportPlaybook.
7252
+ class GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest
7253
+ include Google::Apis::Core::Hashable
7254
+
7255
+ # Optional. The data format of the exported agent. If not specified, `BLOB` is
7256
+ # assumed.
7257
+ # Corresponds to the JSON property `dataFormat`
7258
+ # @return [String]
7259
+ attr_accessor :data_format
7260
+
7261
+ # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
7262
+ # URI to export the playbook to. The format of this URI must be `gs:///`. If
7263
+ # left unspecified, the serialized playbook is returned inline. Dialogflow
7264
+ # performs a write operation for the Cloud Storage object on the caller's behalf,
7265
+ # so your request authentication must have write permissions for the object.
7266
+ # For more information, see [Dialogflow access control](https://cloud.google.com/
7267
+ # dialogflow/cx/docs/concept/access-control#storage).
7268
+ # Corresponds to the JSON property `playbookUri`
7269
+ # @return [String]
7270
+ attr_accessor :playbook_uri
7271
+
7272
+ def initialize(**args)
7273
+ update!(**args)
7274
+ end
7275
+
7276
+ # Update properties of this object
7277
+ def update!(**args)
7278
+ @data_format = args[:data_format] if args.key?(:data_format)
7279
+ @playbook_uri = args[:playbook_uri] if args.key?(:playbook_uri)
7280
+ end
7281
+ end
7282
+
7213
7283
  # Metadata returned for the TestCases.ExportTestCases long running operation.
7214
7284
  # This message currently has no fields.
7215
7285
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
@@ -7515,6 +7585,11 @@ module Google
7515
7585
  class GoogleCloudDialogflowCxV3beta1FlowInvocation
7516
7586
  include Google::Apis::Core::Hashable
7517
7587
 
7588
+ # Output only. The display name of the flow.
7589
+ # Corresponds to the JSON property `displayName`
7590
+ # @return [String]
7591
+ attr_accessor :display_name
7592
+
7518
7593
  # Required. The unique identifier of the flow. Format: `projects//locations//
7519
7594
  # agents//flows/`.
7520
7595
  # Corresponds to the JSON property `flow`
@@ -7542,6 +7617,7 @@ module Google
7542
7617
 
7543
7618
  # Update properties of this object
7544
7619
  def update!(**args)
7620
+ @display_name = args[:display_name] if args.key?(:display_name)
7545
7621
  @flow = args[:flow] if args.key?(:flow)
7546
7622
  @flow_state = args[:flow_state] if args.key?(:flow_state)
7547
7623
  @input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
@@ -8669,6 +8745,40 @@ module Google
8669
8745
  end
8670
8746
  end
8671
8747
 
8748
+ # The request message for Playbooks.ImportPlaybook.
8749
+ class GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest
8750
+ include Google::Apis::Core::Hashable
8751
+
8752
+ # The playbook import strategy used for resource conflict resolution associated
8753
+ # with an ImportPlaybookRequest.
8754
+ # Corresponds to the JSON property `importStrategy`
8755
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy]
8756
+ attr_accessor :import_strategy
8757
+
8758
+ # Uncompressed raw byte content for playbook.
8759
+ # Corresponds to the JSON property `playbookContent`
8760
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
8761
+ # @return [String]
8762
+ attr_accessor :playbook_content
8763
+
8764
+ # [Dialogflow access control] (https://cloud.google.com/dialogflow/cx/docs/
8765
+ # concept/access-control#storage).
8766
+ # Corresponds to the JSON property `playbookUri`
8767
+ # @return [String]
8768
+ attr_accessor :playbook_uri
8769
+
8770
+ def initialize(**args)
8771
+ update!(**args)
8772
+ end
8773
+
8774
+ # Update properties of this object
8775
+ def update!(**args)
8776
+ @import_strategy = args[:import_strategy] if args.key?(:import_strategy)
8777
+ @playbook_content = args[:playbook_content] if args.key?(:playbook_content)
8778
+ @playbook_uri = args[:playbook_uri] if args.key?(:playbook_uri)
8779
+ end
8780
+ end
8781
+
8672
8782
  # Metadata returned for the TestCases.ImportTestCases long running operation.
8673
8783
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
8674
8784
  include Google::Apis::Core::Hashable
@@ -10599,6 +10709,43 @@ module Google
10599
10709
  end
10600
10710
  end
10601
10711
 
10712
+ # The playbook import strategy used for resource conflict resolution associated
10713
+ # with an ImportPlaybookRequest.
10714
+ class GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy
10715
+ include Google::Apis::Core::Hashable
10716
+
10717
+ # Optional. Specifies the import strategy used when resolving conflicts with the
10718
+ # main playbook. If not specified, 'CREATE_NEW' is assumed.
10719
+ # Corresponds to the JSON property `mainPlaybookImportStrategy`
10720
+ # @return [String]
10721
+ attr_accessor :main_playbook_import_strategy
10722
+
10723
+ # Optional. Specifies the import strategy used when resolving referenced
10724
+ # playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
10725
+ # Corresponds to the JSON property `nestedResourceImportStrategy`
10726
+ # @return [String]
10727
+ attr_accessor :nested_resource_import_strategy
10728
+
10729
+ # Optional. Specifies the import strategy used when resolving tool conflicts. If
10730
+ # not specified, 'CREATE_NEW' is assumed. This will be applied after the main
10731
+ # playbook and nested resource import strategies, meaning if the playbook that
10732
+ # references the tool is skipped, the tool will also be skipped.
10733
+ # Corresponds to the JSON property `toolImportStrategy`
10734
+ # @return [String]
10735
+ attr_accessor :tool_import_strategy
10736
+
10737
+ def initialize(**args)
10738
+ update!(**args)
10739
+ end
10740
+
10741
+ # Update properties of this object
10742
+ def update!(**args)
10743
+ @main_playbook_import_strategy = args[:main_playbook_import_strategy] if args.key?(:main_playbook_import_strategy)
10744
+ @nested_resource_import_strategy = args[:nested_resource_import_strategy] if args.key?(:nested_resource_import_strategy)
10745
+ @tool_import_strategy = args[:tool_import_strategy] if args.key?(:tool_import_strategy)
10746
+ end
10747
+ end
10748
+
10602
10749
  # Input of the playbook.
10603
10750
  class GoogleCloudDialogflowCxV3beta1PlaybookInput
10604
10751
  include Google::Apis::Core::Hashable
@@ -10648,6 +10795,11 @@ module Google
10648
10795
  class GoogleCloudDialogflowCxV3beta1PlaybookInvocation
10649
10796
  include Google::Apis::Core::Hashable
10650
10797
 
10798
+ # Output only. The display name of the playbook.
10799
+ # Corresponds to the JSON property `displayName`
10800
+ # @return [String]
10801
+ attr_accessor :display_name
10802
+
10651
10803
  # Required. The unique identifier of the playbook. Format: `projects//locations//
10652
10804
  # agents//playbooks/`.
10653
10805
  # Corresponds to the JSON property `playbook`
@@ -10675,6 +10827,7 @@ module Google
10675
10827
 
10676
10828
  # Update properties of this object
10677
10829
  def update!(**args)
10830
+ @display_name = args[:display_name] if args.key?(:display_name)
10678
10831
  @playbook = args[:playbook] if args.key?(:playbook)
10679
10832
  @playbook_input = args[:playbook_input] if args.key?(:playbook_input)
10680
10833
  @playbook_output = args[:playbook_output] if args.key?(:playbook_output)
@@ -11713,6 +11866,43 @@ module Google
11713
11866
  end
11714
11867
  end
11715
11868
 
11869
+ # The request message for Playbooks.RestorePlaybookVersion.
11870
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest
11871
+ include Google::Apis::Core::Hashable
11872
+
11873
+ def initialize(**args)
11874
+ update!(**args)
11875
+ end
11876
+
11877
+ # Update properties of this object
11878
+ def update!(**args)
11879
+ end
11880
+ end
11881
+
11882
+ # The response message for Playbooks.RestorePlaybookVersion.
11883
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse
11884
+ include Google::Apis::Core::Hashable
11885
+
11886
+ # Playbook is the basic building block to instruct the LLM how to execute a
11887
+ # certain task. A playbook consists of a goal to accomplish, an optional list of
11888
+ # step by step instructions (the step instruction may refers to name of the
11889
+ # custom or default plugin tools to use) to perform the task, a list of
11890
+ # contextual input data to be passed in at the beginning of the invoked, and a
11891
+ # list of output parameters to store the playbook result.
11892
+ # Corresponds to the JSON property `playbook`
11893
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Playbook]
11894
+ attr_accessor :playbook
11895
+
11896
+ def initialize(**args)
11897
+ update!(**args)
11898
+ end
11899
+
11900
+ # Update properties of this object
11901
+ def update!(**args)
11902
+ @playbook = args[:playbook] if args.key?(:playbook)
11903
+ end
11904
+ end
11905
+
11716
11906
  # The configuration for auto rollout.
11717
11907
  class GoogleCloudDialogflowCxV3beta1RolloutConfig
11718
11908
  include Google::Apis::Core::Hashable
@@ -13232,6 +13422,11 @@ module Google
13232
13422
  # @return [String]
13233
13423
  attr_accessor :action
13234
13424
 
13425
+ # Output only. The display name of the tool.
13426
+ # Corresponds to the JSON property `displayName`
13427
+ # @return [String]
13428
+ attr_accessor :display_name
13429
+
13235
13430
  # Optional. A list of input parameters for the action.
13236
13431
  # Corresponds to the JSON property `inputActionParameters`
13237
13432
  # @return [Hash<String,Object>]
@@ -13255,6 +13450,7 @@ module Google
13255
13450
  # Update properties of this object
13256
13451
  def update!(**args)
13257
13452
  @action = args[:action] if args.key?(:action)
13453
+ @display_name = args[:display_name] if args.key?(:display_name)
13258
13454
  @input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
13259
13455
  @output_action_parameters = args[:output_action_parameters] if args.key?(:output_action_parameters)
13260
13456
  @tool = args[:tool] if args.key?(:tool)
@@ -14811,6 +15007,33 @@ module Google
14811
15007
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message]
14812
15008
  attr_accessor :new_message_payload
14813
15009
 
15010
+ # Contains a speech recognition result corresponding to a portion of the audio
15011
+ # that is currently being processed or an indication that this is the end of the
15012
+ # single requested utterance. While end-user audio is being processed,
15013
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
15014
+ # value. A transcript represents a portion of the utterance. While the
15015
+ # recognizer is processing audio, transcript values may be interim values or
15016
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
15017
+ # to true and processing continues for the next transcript. If `
15018
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
15019
+ # true, and the recognizer has completed processing audio, the `message_type`
15020
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
15021
+ # contains the last finalized transcript. The complete end-user utterance is
15022
+ # determined by concatenating the finalized transcript values received for the
15023
+ # series of results. In the following example, single utterance is enabled. In
15024
+ # the case where single utterance is not enabled, result 7 would not occur. ```
15025
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
15026
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
15027
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
15028
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
15029
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
15030
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
15031
+ # set to true, the complete utterance becomes "to be or not to be that is the
15032
+ # question".
15033
+ # Corresponds to the JSON property `newRecognitionResultPayload`
15034
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult]
15035
+ attr_accessor :new_recognition_result_payload
15036
+
14814
15037
  # The type of the event that this notification refers to.
14815
15038
  # Corresponds to the JSON property `type`
14816
15039
  # @return [String]
@@ -14825,6 +15048,7 @@ module Google
14825
15048
  @conversation = args[:conversation] if args.key?(:conversation)
14826
15049
  @error_status = args[:error_status] if args.key?(:error_status)
14827
15050
  @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
15051
+ @new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
14828
15052
  @type = args[:type] if args.key?(:type)
14829
15053
  end
14830
15054
  end
@@ -17473,6 +17697,140 @@ module Google
17473
17697
  end
17474
17698
  end
17475
17699
 
17700
+ # Information for a word recognized by the speech recognizer.
17701
+ class GoogleCloudDialogflowV2SpeechWordInfo
17702
+ include Google::Apis::Core::Hashable
17703
+
17704
+ # The Speech confidence between 0.0 and 1.0 for this word. A higher number
17705
+ # indicates an estimated greater likelihood that the recognized word is correct.
17706
+ # The default of 0.0 is a sentinel value indicating that confidence was not set.
17707
+ # This field is not guaranteed to be fully stable over time for the same audio
17708
+ # input. Users should also not rely on it to always be provided.
17709
+ # Corresponds to the JSON property `confidence`
17710
+ # @return [Float]
17711
+ attr_accessor :confidence
17712
+
17713
+ # Time offset relative to the beginning of the audio that corresponds to the end
17714
+ # of the spoken word. This is an experimental feature and the accuracy of the
17715
+ # time offset can vary.
17716
+ # Corresponds to the JSON property `endOffset`
17717
+ # @return [String]
17718
+ attr_accessor :end_offset
17719
+
17720
+ # Time offset relative to the beginning of the audio that corresponds to the
17721
+ # start of the spoken word. This is an experimental feature and the accuracy of
17722
+ # the time offset can vary.
17723
+ # Corresponds to the JSON property `startOffset`
17724
+ # @return [String]
17725
+ attr_accessor :start_offset
17726
+
17727
+ # The word this info is for.
17728
+ # Corresponds to the JSON property `word`
17729
+ # @return [String]
17730
+ attr_accessor :word
17731
+
17732
+ def initialize(**args)
17733
+ update!(**args)
17734
+ end
17735
+
17736
+ # Update properties of this object
17737
+ def update!(**args)
17738
+ @confidence = args[:confidence] if args.key?(:confidence)
17739
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
17740
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
17741
+ @word = args[:word] if args.key?(:word)
17742
+ end
17743
+ end
17744
+
17745
+ # Contains a speech recognition result corresponding to a portion of the audio
17746
+ # that is currently being processed or an indication that this is the end of the
17747
+ # single requested utterance. While end-user audio is being processed,
17748
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
17749
+ # value. A transcript represents a portion of the utterance. While the
17750
+ # recognizer is processing audio, transcript values may be interim values or
17751
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
17752
+ # to true and processing continues for the next transcript. If `
17753
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
17754
+ # true, and the recognizer has completed processing audio, the `message_type`
17755
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
17756
+ # contains the last finalized transcript. The complete end-user utterance is
17757
+ # determined by concatenating the finalized transcript values received for the
17758
+ # series of results. In the following example, single utterance is enabled. In
17759
+ # the case where single utterance is not enabled, result 7 would not occur. ```
17760
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
17761
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
17762
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
17763
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
17764
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
17765
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
17766
+ # set to true, the complete utterance becomes "to be or not to be that is the
17767
+ # question".
17768
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
17769
+ include Google::Apis::Core::Hashable
17770
+
17771
+ # The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
17772
+ # higher number indicates an estimated greater likelihood that the recognized
17773
+ # words are correct. The default of 0.0 is a sentinel value indicating that
17774
+ # confidence was not set. This field is typically only provided if `is_final` is
17775
+ # true and you should not rely on it being accurate or even set.
17776
+ # Corresponds to the JSON property `confidence`
17777
+ # @return [Float]
17778
+ attr_accessor :confidence
17779
+
17780
+ # If `false`, the `StreamingRecognitionResult` represents an interim result that
17781
+ # may change. If `true`, the recognizer will not return any further hypotheses
17782
+ # about this piece of the audio. May only be populated for `message_type` = `
17783
+ # TRANSCRIPT`.
17784
+ # Corresponds to the JSON property `isFinal`
17785
+ # @return [Boolean]
17786
+ attr_accessor :is_final
17787
+ alias_method :is_final?, :is_final
17788
+
17789
+ # Detected language code for the transcript.
17790
+ # Corresponds to the JSON property `languageCode`
17791
+ # @return [String]
17792
+ attr_accessor :language_code
17793
+
17794
+ # Type of the result message.
17795
+ # Corresponds to the JSON property `messageType`
17796
+ # @return [String]
17797
+ attr_accessor :message_type
17798
+
17799
+ # Time offset of the end of this Speech recognition result relative to the
17800
+ # beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
17801
+ # Corresponds to the JSON property `speechEndOffset`
17802
+ # @return [String]
17803
+ attr_accessor :speech_end_offset
17804
+
17805
+ # Word-specific information for the words recognized by Speech in transcript.
17806
+ # Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
17807
+ # enable_word_info] is set.
17808
+ # Corresponds to the JSON property `speechWordInfo`
17809
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo>]
17810
+ attr_accessor :speech_word_info
17811
+
17812
+ # Transcript text representing the words that the user spoke. Populated if and
17813
+ # only if `message_type` = `TRANSCRIPT`.
17814
+ # Corresponds to the JSON property `transcript`
17815
+ # @return [String]
17816
+ attr_accessor :transcript
17817
+
17818
+ def initialize(**args)
17819
+ update!(**args)
17820
+ end
17821
+
17822
+ # Update properties of this object
17823
+ def update!(**args)
17824
+ @confidence = args[:confidence] if args.key?(:confidence)
17825
+ @is_final = args[:is_final] if args.key?(:is_final)
17826
+ @language_code = args[:language_code] if args.key?(:language_code)
17827
+ @message_type = args[:message_type] if args.key?(:message_type)
17828
+ @speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
17829
+ @speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
17830
+ @transcript = args[:transcript] if args.key?(:transcript)
17831
+ end
17832
+ end
17833
+
17476
17834
  # The response message for Participants.SuggestArticles.
17477
17835
  class GoogleCloudDialogflowV2SuggestArticlesResponse
17478
17836
  include Google::Apis::Core::Hashable
@@ -18063,6 +18421,33 @@ module Google
18063
18421
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message]
18064
18422
  attr_accessor :new_message_payload
18065
18423
 
18424
+ # Contains a speech recognition result corresponding to a portion of the audio
18425
+ # that is currently being processed or an indication that this is the end of the
18426
+ # single requested utterance. While end-user audio is being processed,
18427
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
18428
+ # value. A transcript represents a portion of the utterance. While the
18429
+ # recognizer is processing audio, transcript values may be interim values or
18430
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
18431
+ # to true and processing continues for the next transcript. If `
18432
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
18433
+ # true, and the recognizer has completed processing audio, the `message_type`
18434
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
18435
+ # contains the last finalized transcript. The complete end-user utterance is
18436
+ # determined by concatenating the finalized transcript values received for the
18437
+ # series of results. In the following example, single utterance is enabled. In
18438
+ # the case where single utterance is not enabled, result 7 would not occur. ```
18439
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
18440
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
18441
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
18442
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
18443
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
18444
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
18445
+ # set to true, the complete utterance becomes "to be or not to be that is the
18446
+ # question".
18447
+ # Corresponds to the JSON property `newRecognitionResultPayload`
18448
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult]
18449
+ attr_accessor :new_recognition_result_payload
18450
+
18066
18451
  # Required. The type of the event that this notification refers to.
18067
18452
  # Corresponds to the JSON property `type`
18068
18453
  # @return [String]
@@ -18077,6 +18462,7 @@ module Google
18077
18462
  @conversation = args[:conversation] if args.key?(:conversation)
18078
18463
  @error_status = args[:error_status] if args.key?(:error_status)
18079
18464
  @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
18465
+ @new_recognition_result_payload = args[:new_recognition_result_payload] if args.key?(:new_recognition_result_payload)
18080
18466
  @type = args[:type] if args.key?(:type)
18081
18467
  end
18082
18468
  end
@@ -21217,6 +21603,157 @@ module Google
21217
21603
  end
21218
21604
  end
21219
21605
 
21606
+ # Information for a word recognized by the speech recognizer.
21607
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
21608
+ include Google::Apis::Core::Hashable
21609
+
21610
+ # The Speech confidence between 0.0 and 1.0 for this word. A higher number
21611
+ # indicates an estimated greater likelihood that the recognized word is correct.
21612
+ # The default of 0.0 is a sentinel value indicating that confidence was not set.
21613
+ # This field is not guaranteed to be fully stable over time for the same audio
21614
+ # input. Users should also not rely on it to always be provided.
21615
+ # Corresponds to the JSON property `confidence`
21616
+ # @return [Float]
21617
+ attr_accessor :confidence
21618
+
21619
+ # Time offset relative to the beginning of the audio that corresponds to the end
21620
+ # of the spoken word. This is an experimental feature and the accuracy of the
21621
+ # time offset can vary.
21622
+ # Corresponds to the JSON property `endOffset`
21623
+ # @return [String]
21624
+ attr_accessor :end_offset
21625
+
21626
+ # Time offset relative to the beginning of the audio that corresponds to the
21627
+ # start of the spoken word. This is an experimental feature and the accuracy of
21628
+ # the time offset can vary.
21629
+ # Corresponds to the JSON property `startOffset`
21630
+ # @return [String]
21631
+ attr_accessor :start_offset
21632
+
21633
+ # The word this info is for.
21634
+ # Corresponds to the JSON property `word`
21635
+ # @return [String]
21636
+ attr_accessor :word
21637
+
21638
+ def initialize(**args)
21639
+ update!(**args)
21640
+ end
21641
+
21642
+ # Update properties of this object
21643
+ def update!(**args)
21644
+ @confidence = args[:confidence] if args.key?(:confidence)
21645
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
21646
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
21647
+ @word = args[:word] if args.key?(:word)
21648
+ end
21649
+ end
21650
+
21651
+ # Contains a speech recognition result corresponding to a portion of the audio
21652
+ # that is currently being processed or an indication that this is the end of the
21653
+ # single requested utterance. While end-user audio is being processed,
21654
+ # Dialogflow sends a series of results. Each result may contain a `transcript`
21655
+ # value. A transcript represents a portion of the utterance. While the
21656
+ # recognizer is processing audio, transcript values may be interim values or
21657
+ # finalized values. Once a transcript is finalized, the `is_final` value is set
21658
+ # to true and processing continues for the next transcript. If `
21659
+ # StreamingDetectIntentRequest.query_input.audio_config.single_utterance` was
21660
+ # true, and the recognizer has completed processing audio, the `message_type`
21661
+ # value is set to `END_OF_SINGLE_UTTERANCE and the following (last) result
21662
+ # contains the last finalized transcript. The complete end-user utterance is
21663
+ # determined by concatenating the finalized transcript values received for the
21664
+ # series of results. In the following example, single utterance is enabled. In
21665
+ # the case where single utterance is not enabled, result 7 would not occur. ```
21666
+ # Num | transcript | message_type | is_final --- | ----------------------- | ----
21667
+ # ------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "to be a" |
21668
+ # TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be or not to be" |
21669
+ # TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "that is | TRANSCRIPT |
21670
+ # false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | " that is the question"
21671
+ # | TRANSCRIPT | true ``` Concatenating the finalized transcripts with `is_final`
21672
+ # set to true, the complete utterance becomes "to be or not to be that is the
21673
+ # question".
21674
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
21675
+ include Google::Apis::Core::Hashable
21676
+
21677
+ # The Speech confidence between 0.0 and 1.0 for the current portion of audio. A
21678
+ # higher number indicates an estimated greater likelihood that the recognized
21679
+ # words are correct. The default of 0.0 is a sentinel value indicating that
21680
+ # confidence was not set. This field is typically only provided if `is_final` is
21681
+ # true and you should not rely on it being accurate or even set.
21682
+ # Corresponds to the JSON property `confidence`
21683
+ # @return [Float]
21684
+ attr_accessor :confidence
21685
+
21686
+ # A wrapper of repeated TelephonyDtmf digits.
21687
+ # Corresponds to the JSON property `dtmfDigits`
21688
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
21689
+ attr_accessor :dtmf_digits
21690
+
21691
+ # If `false`, the `StreamingRecognitionResult` represents an interim result that
21692
+ # may change. If `true`, the recognizer will not return any further hypotheses
21693
+ # about this piece of the audio. May only be populated for `message_type` = `
21694
+ # TRANSCRIPT`.
21695
+ # Corresponds to the JSON property `isFinal`
21696
+ # @return [Boolean]
21697
+ attr_accessor :is_final
21698
+ alias_method :is_final?, :is_final
21699
+
21700
+ # Detected language code for the transcript.
21701
+ # Corresponds to the JSON property `languageCode`
21702
+ # @return [String]
21703
+ attr_accessor :language_code
21704
+
21705
+ # Type of the result message.
21706
+ # Corresponds to the JSON property `messageType`
21707
+ # @return [String]
21708
+ attr_accessor :message_type
21709
+
21710
+ # Time offset of the end of this Speech recognition result relative to the
21711
+ # beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
21712
+ # Corresponds to the JSON property `speechEndOffset`
21713
+ # @return [String]
21714
+ attr_accessor :speech_end_offset
21715
+
21716
+ # Word-specific information for the words recognized by Speech in transcript.
21717
+ # Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.
21718
+ # enable_word_info] is set.
21719
+ # Corresponds to the JSON property `speechWordInfo`
21720
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo>]
21721
+ attr_accessor :speech_word_info
21722
+
21723
+ # An estimate of the likelihood that the speech recognizer will not change its
21724
+ # guess about this interim recognition result: * If the value is unspecified or
21725
+ # 0.0, Dialogflow didn't compute the stability. In particular, Dialogflow will
21726
+ # only provide stability for `TRANSCRIPT` results with `is_final = false`. *
21727
+ # Otherwise, the value is in (0.0, 1.0] where 0.0 means completely unstable and
21728
+ # 1.0 means completely stable.
21729
+ # Corresponds to the JSON property `stability`
21730
+ # @return [Float]
21731
+ attr_accessor :stability
21732
+
21733
+ # Transcript text representing the words that the user spoke. Populated if and
21734
+ # only if `message_type` = `TRANSCRIPT`.
21735
+ # Corresponds to the JSON property `transcript`
21736
+ # @return [String]
21737
+ attr_accessor :transcript
21738
+
21739
+ def initialize(**args)
21740
+ update!(**args)
21741
+ end
21742
+
21743
+ # Update properties of this object
21744
+ def update!(**args)
21745
+ @confidence = args[:confidence] if args.key?(:confidence)
21746
+ @dtmf_digits = args[:dtmf_digits] if args.key?(:dtmf_digits)
21747
+ @is_final = args[:is_final] if args.key?(:is_final)
21748
+ @language_code = args[:language_code] if args.key?(:language_code)
21749
+ @message_type = args[:message_type] if args.key?(:message_type)
21750
+ @speech_end_offset = args[:speech_end_offset] if args.key?(:speech_end_offset)
21751
+ @speech_word_info = args[:speech_word_info] if args.key?(:speech_word_info)
21752
+ @stability = args[:stability] if args.key?(:stability)
21753
+ @transcript = args[:transcript] if args.key?(:transcript)
21754
+ end
21755
+ end
21756
+
21220
21757
  # The response message for Participants.SuggestArticles.
21221
21758
  class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
21222
21759
  include Google::Apis::Core::Hashable
@@ -21454,6 +21991,25 @@ module Google
21454
21991
  end
21455
21992
  end
21456
21993
 
21994
+ # A wrapper of repeated TelephonyDtmf digits.
21995
+ class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
21996
+ include Google::Apis::Core::Hashable
21997
+
21998
+ # A sequence of TelephonyDtmf digits.
21999
+ # Corresponds to the JSON property `dtmfEvents`
22000
+ # @return [Array<String>]
22001
+ attr_accessor :dtmf_events
22002
+
22003
+ def initialize(**args)
22004
+ update!(**args)
22005
+ end
22006
+
22007
+ # Update properties of this object
22008
+ def update!(**args)
22009
+ @dtmf_events = args[:dtmf_events] if args.key?(:dtmf_events)
22010
+ end
22011
+ end
22012
+
21457
22013
  # The request message for a webhook call.
21458
22014
  class GoogleCloudDialogflowV2beta1WebhookRequest
21459
22015
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV3beta1
18
18
  # Version of the google-apis-dialogflow_v3beta1 gem
19
- GEM_VERSION = "0.90.0"
19
+ GEM_VERSION = "0.92.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241119"
25
+ REVISION = "20241216"
26
26
  end
27
27
  end
28
28
  end
@@ -838,6 +838,12 @@ module Google
838
838
  include Google::Apis::Core::JsonObjectSupport
839
839
  end
840
840
 
841
+ class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
842
+ class Representation < Google::Apis::Core::JsonRepresentation; end
843
+
844
+ include Google::Apis::Core::JsonObjectSupport
845
+ end
846
+
841
847
  class GoogleCloudDialogflowCxV3beta1ConversationMetrics
842
848
  class Representation < Google::Apis::Core::JsonRepresentation; end
843
849
 
@@ -1150,6 +1156,12 @@ module Google
1150
1156
  include Google::Apis::Core::JsonObjectSupport
1151
1157
  end
1152
1158
 
1159
+ class GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest
1160
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1161
+
1162
+ include Google::Apis::Core::JsonObjectSupport
1163
+ end
1164
+
1153
1165
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
1154
1166
  class Representation < Google::Apis::Core::JsonRepresentation; end
1155
1167
 
@@ -1384,6 +1396,12 @@ module Google
1384
1396
  include Google::Apis::Core::JsonObjectSupport
1385
1397
  end
1386
1398
 
1399
+ class GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest
1400
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1401
+
1402
+ include Google::Apis::Core::JsonObjectSupport
1403
+ end
1404
+
1387
1405
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
1388
1406
  class Representation < Google::Apis::Core::JsonRepresentation; end
1389
1407
 
@@ -1708,6 +1726,12 @@ module Google
1708
1726
  include Google::Apis::Core::JsonObjectSupport
1709
1727
  end
1710
1728
 
1729
+ class GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy
1730
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1731
+
1732
+ include Google::Apis::Core::JsonObjectSupport
1733
+ end
1734
+
1711
1735
  class GoogleCloudDialogflowCxV3beta1PlaybookInput
1712
1736
  class Representation < Google::Apis::Core::JsonRepresentation; end
1713
1737
 
@@ -1846,6 +1870,18 @@ module Google
1846
1870
  include Google::Apis::Core::JsonObjectSupport
1847
1871
  end
1848
1872
 
1873
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest
1874
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1875
+
1876
+ include Google::Apis::Core::JsonObjectSupport
1877
+ end
1878
+
1879
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse
1880
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1881
+
1882
+ include Google::Apis::Core::JsonObjectSupport
1883
+ end
1884
+
1849
1885
  class GoogleCloudDialogflowCxV3beta1RolloutConfig
1850
1886
  class Representation < Google::Apis::Core::JsonRepresentation; end
1851
1887
 
@@ -2812,6 +2848,18 @@ module Google
2812
2848
  include Google::Apis::Core::JsonObjectSupport
2813
2849
  end
2814
2850
 
2851
+ class GoogleCloudDialogflowV2SpeechWordInfo
2852
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2853
+
2854
+ include Google::Apis::Core::JsonObjectSupport
2855
+ end
2856
+
2857
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
2858
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2859
+
2860
+ include Google::Apis::Core::JsonObjectSupport
2861
+ end
2862
+
2815
2863
  class GoogleCloudDialogflowV2SuggestArticlesResponse
2816
2864
  class Representation < Google::Apis::Core::JsonRepresentation; end
2817
2865
 
@@ -3418,6 +3466,18 @@ module Google
3418
3466
  include Google::Apis::Core::JsonObjectSupport
3419
3467
  end
3420
3468
 
3469
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
3470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3471
+
3472
+ include Google::Apis::Core::JsonObjectSupport
3473
+ end
3474
+
3475
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
3476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3477
+
3478
+ include Google::Apis::Core::JsonObjectSupport
3479
+ end
3480
+
3421
3481
  class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
3422
3482
  class Representation < Google::Apis::Core::JsonRepresentation; end
3423
3483
 
@@ -3454,6 +3514,12 @@ module Google
3454
3514
  include Google::Apis::Core::JsonObjectSupport
3455
3515
  end
3456
3516
 
3517
+ class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
3518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3519
+
3520
+ include Google::Apis::Core::JsonObjectSupport
3521
+ end
3522
+
3457
3523
  class GoogleCloudDialogflowV2beta1WebhookRequest
3458
3524
  class Representation < Google::Apis::Core::JsonRepresentation; end
3459
3525
 
@@ -4885,6 +4951,8 @@ module Google
4885
4951
  class GoogleCloudDialogflowCxV3beta1ConversationInteraction
4886
4952
  # @private
4887
4953
  class Representation < Google::Apis::Core::JsonRepresentation
4954
+ property :answer_feedback, as: 'answerFeedback', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback::Representation
4955
+
4888
4956
  property :create_time, as: 'createTime'
4889
4957
  property :missing_transition, as: 'missingTransition', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition::Representation
4890
4958
 
@@ -4896,6 +4964,8 @@ module Google
4896
4964
  property :response, as: 'response', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse::Representation
4897
4965
 
4898
4966
  property :response_utterances, as: 'responseUtterances'
4967
+ collection :step_metrics, as: 'stepMetrics', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics::Representation
4968
+
4899
4969
  end
4900
4970
  end
4901
4971
 
@@ -4907,6 +4977,14 @@ module Google
4907
4977
  end
4908
4978
  end
4909
4979
 
4980
+ class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics
4981
+ # @private
4982
+ class Representation < Google::Apis::Core::JsonRepresentation
4983
+ property :latency, as: 'latency'
4984
+ property :name, as: 'name'
4985
+ end
4986
+ end
4987
+
4910
4988
  class GoogleCloudDialogflowCxV3beta1ConversationMetrics
4911
4989
  # @private
4912
4990
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5456,6 +5534,14 @@ module Google
5456
5534
  end
5457
5535
  end
5458
5536
 
5537
+ class GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest
5538
+ # @private
5539
+ class Representation < Google::Apis::Core::JsonRepresentation
5540
+ property :data_format, as: 'dataFormat'
5541
+ property :playbook_uri, as: 'playbookUri'
5542
+ end
5543
+ end
5544
+
5459
5545
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
5460
5546
  # @private
5461
5547
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5530,6 +5616,7 @@ module Google
5530
5616
  class GoogleCloudDialogflowCxV3beta1FlowInvocation
5531
5617
  # @private
5532
5618
  class Representation < Google::Apis::Core::JsonRepresentation
5619
+ property :display_name, as: 'displayName'
5533
5620
  property :flow, as: 'flow'
5534
5621
  property :flow_state, as: 'flowState'
5535
5622
  hash :input_action_parameters, as: 'inputActionParameters'
@@ -5847,6 +5934,16 @@ module Google
5847
5934
  end
5848
5935
  end
5849
5936
 
5937
+ class GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest
5938
+ # @private
5939
+ class Representation < Google::Apis::Core::JsonRepresentation
5940
+ property :import_strategy, as: 'importStrategy', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy::Representation
5941
+
5942
+ property :playbook_content, :base64 => true, as: 'playbookContent'
5943
+ property :playbook_uri, as: 'playbookUri'
5944
+ end
5945
+ end
5946
+
5850
5947
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
5851
5948
  # @private
5852
5949
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6379,6 +6476,15 @@ module Google
6379
6476
  end
6380
6477
  end
6381
6478
 
6479
+ class GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy
6480
+ # @private
6481
+ class Representation < Google::Apis::Core::JsonRepresentation
6482
+ property :main_playbook_import_strategy, as: 'mainPlaybookImportStrategy'
6483
+ property :nested_resource_import_strategy, as: 'nestedResourceImportStrategy'
6484
+ property :tool_import_strategy, as: 'toolImportStrategy'
6485
+ end
6486
+ end
6487
+
6382
6488
  class GoogleCloudDialogflowCxV3beta1PlaybookInput
6383
6489
  # @private
6384
6490
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6398,6 +6504,7 @@ module Google
6398
6504
  class GoogleCloudDialogflowCxV3beta1PlaybookInvocation
6399
6505
  # @private
6400
6506
  class Representation < Google::Apis::Core::JsonRepresentation
6507
+ property :display_name, as: 'displayName'
6401
6508
  property :playbook, as: 'playbook'
6402
6509
  property :playbook_input, as: 'playbookInput', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInput, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInput::Representation
6403
6510
 
@@ -6654,6 +6761,20 @@ module Google
6654
6761
  end
6655
6762
  end
6656
6763
 
6764
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest
6765
+ # @private
6766
+ class Representation < Google::Apis::Core::JsonRepresentation
6767
+ end
6768
+ end
6769
+
6770
+ class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse
6771
+ # @private
6772
+ class Representation < Google::Apis::Core::JsonRepresentation
6773
+ property :playbook, as: 'playbook', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Playbook, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Playbook::Representation
6774
+
6775
+ end
6776
+ end
6777
+
6657
6778
  class GoogleCloudDialogflowCxV3beta1RolloutConfig
6658
6779
  # @private
6659
6780
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7101,6 +7222,7 @@ module Google
7101
7222
  # @private
7102
7223
  class Representation < Google::Apis::Core::JsonRepresentation
7103
7224
  property :action, as: 'action'
7225
+ property :display_name, as: 'displayName'
7104
7226
  hash :input_action_parameters, as: 'inputActionParameters'
7105
7227
  hash :output_action_parameters, as: 'outputActionParameters'
7106
7228
  property :tool, as: 'tool'
@@ -7523,6 +7645,8 @@ module Google
7523
7645
 
7524
7646
  property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Message::Representation
7525
7647
 
7648
+ property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2StreamingRecognitionResult::Representation
7649
+
7526
7650
  property :type, as: 'type'
7527
7651
  end
7528
7652
  end
@@ -8264,6 +8388,30 @@ module Google
8264
8388
  end
8265
8389
  end
8266
8390
 
8391
+ class GoogleCloudDialogflowV2SpeechWordInfo
8392
+ # @private
8393
+ class Representation < Google::Apis::Core::JsonRepresentation
8394
+ property :confidence, as: 'confidence'
8395
+ property :end_offset, as: 'endOffset'
8396
+ property :start_offset, as: 'startOffset'
8397
+ property :word, as: 'word'
8398
+ end
8399
+ end
8400
+
8401
+ class GoogleCloudDialogflowV2StreamingRecognitionResult
8402
+ # @private
8403
+ class Representation < Google::Apis::Core::JsonRepresentation
8404
+ property :confidence, as: 'confidence'
8405
+ property :is_final, as: 'isFinal'
8406
+ property :language_code, as: 'languageCode'
8407
+ property :message_type, as: 'messageType'
8408
+ property :speech_end_offset, as: 'speechEndOffset'
8409
+ collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SpeechWordInfo::Representation
8410
+
8411
+ property :transcript, as: 'transcript'
8412
+ end
8413
+ end
8414
+
8267
8415
  class GoogleCloudDialogflowV2SuggestArticlesResponse
8268
8416
  # @private
8269
8417
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8420,6 +8568,8 @@ module Google
8420
8568
 
8421
8569
  property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message::Representation
8422
8570
 
8571
+ property :new_recognition_result_payload, as: 'newRecognitionResultPayload', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1StreamingRecognitionResult::Representation
8572
+
8423
8573
  property :type, as: 'type'
8424
8574
  end
8425
8575
  end
@@ -9303,6 +9453,33 @@ module Google
9303
9453
  end
9304
9454
  end
9305
9455
 
9456
+ class GoogleCloudDialogflowV2beta1SpeechWordInfo
9457
+ # @private
9458
+ class Representation < Google::Apis::Core::JsonRepresentation
9459
+ property :confidence, as: 'confidence'
9460
+ property :end_offset, as: 'endOffset'
9461
+ property :start_offset, as: 'startOffset'
9462
+ property :word, as: 'word'
9463
+ end
9464
+ end
9465
+
9466
+ class GoogleCloudDialogflowV2beta1StreamingRecognitionResult
9467
+ # @private
9468
+ class Representation < Google::Apis::Core::JsonRepresentation
9469
+ property :confidence, as: 'confidence'
9470
+ property :dtmf_digits, as: 'dtmfDigits', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents::Representation
9471
+
9472
+ property :is_final, as: 'isFinal'
9473
+ property :language_code, as: 'languageCode'
9474
+ property :message_type, as: 'messageType'
9475
+ property :speech_end_offset, as: 'speechEndOffset'
9476
+ collection :speech_word_info, as: 'speechWordInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo::Representation
9477
+
9478
+ property :stability, as: 'stability'
9479
+ property :transcript, as: 'transcript'
9480
+ end
9481
+ end
9482
+
9306
9483
  class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
9307
9484
  # @private
9308
9485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9373,6 +9550,13 @@ module Google
9373
9550
  end
9374
9551
  end
9375
9552
 
9553
+ class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
9554
+ # @private
9555
+ class Representation < Google::Apis::Core::JsonRepresentation
9556
+ collection :dtmf_events, as: 'dtmfEvents'
9557
+ end
9558
+ end
9559
+
9376
9560
  class GoogleCloudDialogflowV2beta1WebhookRequest
9377
9561
  # @private
9378
9562
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3658,6 +3658,41 @@ module Google
3658
3658
  execute_or_queue_command(command, &block)
3659
3659
  end
3660
3660
 
3661
+ # Exports the specified playbook to a binary file. Note that resources (e.g.
3662
+ # examples, tools) that the playbook references will also be exported.
3663
+ # @param [String] name
3664
+ # Required. The name of the playbook to export. Format: `projects//locations//
3665
+ # agents//playbooks/`.
3666
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest] google_cloud_dialogflow_cx_v3beta1_export_playbook_request_object
3667
+ # @param [String] fields
3668
+ # Selector specifying which fields to include in a partial response.
3669
+ # @param [String] quota_user
3670
+ # Available to use for quota purposes for server-side applications. Can be any
3671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3672
+ # @param [Google::Apis::RequestOptions] options
3673
+ # Request-specific options
3674
+ #
3675
+ # @yield [result, err] Result & error if block supplied
3676
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
3677
+ # @yieldparam err [StandardError] error object if request failed
3678
+ #
3679
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
3680
+ #
3681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3684
+ def export_project_location_agent_playbook(name, google_cloud_dialogflow_cx_v3beta1_export_playbook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3685
+ command = make_simple_command(:post, 'v3beta1/{+name}:export', options)
3686
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest::Representation
3687
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_export_playbook_request_object
3688
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
3689
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
3690
+ command.params['name'] = name unless name.nil?
3691
+ command.query['fields'] = fields unless fields.nil?
3692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3693
+ execute_or_queue_command(command, &block)
3694
+ end
3695
+
3661
3696
  # Retrieves the specified Playbook.
3662
3697
  # @param [String] name
3663
3698
  # Required. The name of the playbook. Format: `projects//locations//agents//
@@ -3689,6 +3724,40 @@ module Google
3689
3724
  execute_or_queue_command(command, &block)
3690
3725
  end
3691
3726
 
3727
+ # Imports the specified playbook to the specified agent from a binary file.
3728
+ # @param [String] parent
3729
+ # Required. The agent to import the playbook into. Format: `projects//locations//
3730
+ # agents/`.
3731
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest] google_cloud_dialogflow_cx_v3beta1_import_playbook_request_object
3732
+ # @param [String] fields
3733
+ # Selector specifying which fields to include in a partial response.
3734
+ # @param [String] quota_user
3735
+ # Available to use for quota purposes for server-side applications. Can be any
3736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3737
+ # @param [Google::Apis::RequestOptions] options
3738
+ # Request-specific options
3739
+ #
3740
+ # @yield [result, err] Result & error if block supplied
3741
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
3742
+ # @yieldparam err [StandardError] error object if request failed
3743
+ #
3744
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
3745
+ #
3746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3749
+ def import_project_location_agent_playbook(parent, google_cloud_dialogflow_cx_v3beta1_import_playbook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3750
+ command = make_simple_command(:post, 'v3beta1/{+parent}/playbooks:import', options)
3751
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest::Representation
3752
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_import_playbook_request_object
3753
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
3754
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
3755
+ command.params['parent'] = parent unless parent.nil?
3756
+ command.query['fields'] = fields unless fields.nil?
3757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3758
+ execute_or_queue_command(command, &block)
3759
+ end
3760
+
3692
3761
  # Returns a list of playbooks in the specified agent.
3693
3762
  # @param [String] parent
3694
3763
  # Required. The agent to list playbooks from. Format: `projects//locations//
@@ -4076,6 +4145,41 @@ module Google
4076
4145
  execute_or_queue_command(command, &block)
4077
4146
  end
4078
4147
 
4148
+ # Retrieves the specified version of the Playbook and stores it as the current
4149
+ # playbook draft, returning the playbook with resources updated.
4150
+ # @param [String] name
4151
+ # Required. The name of the playbook version. Format: `projects//locations//
4152
+ # agents//playbooks//versions/`.
4153
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest] google_cloud_dialogflow_cx_v3beta1_restore_playbook_version_request_object
4154
+ # @param [String] fields
4155
+ # Selector specifying which fields to include in a partial response.
4156
+ # @param [String] quota_user
4157
+ # Available to use for quota purposes for server-side applications. Can be any
4158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4159
+ # @param [Google::Apis::RequestOptions] options
4160
+ # Request-specific options
4161
+ #
4162
+ # @yield [result, err] Result & error if block supplied
4163
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse] parsed result object
4164
+ # @yieldparam err [StandardError] error object if request failed
4165
+ #
4166
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse]
4167
+ #
4168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4171
+ def restore_project_location_agent_playbook_version(name, google_cloud_dialogflow_cx_v3beta1_restore_playbook_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4172
+ command = make_simple_command(:post, 'v3beta1/{+name}:restore', options)
4173
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest::Representation
4174
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_restore_playbook_version_request_object
4175
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse::Representation
4176
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse
4177
+ command.params['name'] = name unless name.nil?
4178
+ command.query['fields'] = fields unless fields.nil?
4179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4180
+ execute_or_queue_command(command, &block)
4181
+ end
4182
+
4079
4183
  # Processes a natural language query and returns structured, actionable data as
4080
4184
  # a result. This method is not idempotent, because it may cause session entity
4081
4185
  # types to be updated, which in turn might affect results of future queries.
@@ -5536,8 +5640,8 @@ module Google
5536
5640
  # Clients can use Operations.GetOperation or other methods to check whether the
5537
5641
  # cancellation succeeded or whether the operation completed despite cancellation.
5538
5642
  # On successful cancellation, the operation is not deleted; instead, it becomes
5539
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
5540
- # corresponding to `Code.CANCELLED`.
5643
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
5644
+ # , corresponding to `Code.CANCELLED`.
5541
5645
  # @param [String] name
5542
5646
  # The name of the operation resource to be cancelled.
5543
5647
  # @param [String] fields
@@ -5819,8 +5923,8 @@ module Google
5819
5923
  # Clients can use Operations.GetOperation or other methods to check whether the
5820
5924
  # cancellation succeeded or whether the operation completed despite cancellation.
5821
5925
  # On successful cancellation, the operation is not deleted; instead, it becomes
5822
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
5823
- # corresponding to `Code.CANCELLED`.
5926
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
5927
+ # , corresponding to `Code.CANCELLED`.
5824
5928
  # @param [String] name
5825
5929
  # The name of the operation resource to be cancelled.
5826
5930
  # @param [String] fields
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v3beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.0
4
+ version: 0.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
11
+ date: 2025-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.90.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.92.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Dialogflow API V3beta1