google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  7. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
  8. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
  24. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  31. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  35. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
  36. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
  40. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  42. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
  43. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  45. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
  48. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  49. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
  50. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  52. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
  53. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
  54. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  56. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
  57. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
  58. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  59. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
  60. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
  62. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
  63. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
  64. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  65. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
  66. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
  67. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  68. data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
  69. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
  77. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
  78. metadata +16 -2
@@ -112,7 +112,7 @@ module Google
112
112
  # Multiple request messages should be sent in order:
113
113
  #
114
114
  # 1. The first message must contain
115
- # {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#session session},
115
+ # {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#session session},
116
116
  # {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#query_input query_input} plus optionally
117
117
  # {::Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentRequest#query_params query_params}. If the client
118
118
  # wants to receive an audio response, it should also contain
@@ -173,21 +173,29 @@ module Google
173
173
  extend ::Google::Protobuf::MessageExts::ClassMethods
174
174
  end
175
175
 
176
- # The top-level message returned from the `StreamingDetectIntent` method.
176
+ # The top-level message returned from the
177
+ # {::Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent StreamingDetectIntent} method.
177
178
  #
178
- # Multiple response messages can be returned in order:
179
+ # Multiple response messages (N) can be returned in order.
179
180
  #
180
- # 1. If the input was set to streaming audio, the first one or more messages
181
- # contain `recognition_result`. Each `recognition_result` represents a more
182
- # complete transcript of what the user said. The last `recognition_result`
183
- # has `is_final` set to `true`.
181
+ # The first (N-1) responses set either the `recognition_result` or
182
+ # `detect_intent_response` field, depending on the request:
184
183
  #
185
- # 2. If `enable_partial_response` is true, the following N messages
186
- # (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1)
187
- # `detect_intent_response`s will have `response_type` set to `PARTIAL`.
188
- # The last `detect_intent_response` has `response_type` set to `FINAL`.
189
- # If `response_type` is false, response stream only contains
190
- # the final `detect_intent_response`.
184
+ # * If the `StreamingDetectIntentRequest.query_input.audio` field was
185
+ # set, and the `StreamingDetectIntentRequest.enable_partial_response`
186
+ # field was false, the `recognition_result` field is populated for each
187
+ # of the (N-1) responses.
188
+ # See the {::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult StreamingRecognitionResult} message for details
189
+ # about the result message sequence.
190
+ #
191
+ # * If the `StreamingDetectIntentRequest.enable_partial_response` field was
192
+ # true, the `detect_intent_response` field is populated for each
193
+ # of the (N-1) responses, where 1 <= N <= 4.
194
+ # These responses set the {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type DetectIntentResponse.response_type} field
195
+ # to `PARTIAL`.
196
+ #
197
+ # For the final Nth response message, the `detect_intent_response` is fully
198
+ # populated, and {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type DetectIntentResponse.response_type} is set to `FINAL`.
191
199
  # @!attribute [rw] recognition_result
192
200
  # @return [::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult]
193
201
  # The result of speech recognition.
@@ -203,35 +211,39 @@ module Google
203
211
  # that is currently being processed or an indication that this is the end
204
212
  # of the single requested utterance.
205
213
  #
206
- # Example:
207
- #
208
- # 1. transcript: "tube"
209
- #
210
- # 2. transcript: "to be a"
211
- #
212
- # 3. transcript: "to be"
213
- #
214
- # 4. transcript: "to be or not to be"
215
- # is_final: true
216
- #
217
- # 5. transcript: " that's"
218
- #
219
- # 6. transcript: " that is"
220
- #
221
- # 7. message_type: `END_OF_SINGLE_UTTERANCE`
222
- #
223
- # 8. transcript: " that is the question"
224
- # is_final: true
225
- #
226
- # Only two of the responses contain final results (#4 and #8 indicated by
227
- # `is_final: true`). Concatenating these generates the full transcript: "to be
228
- # or not to be that is the question".
229
- #
230
- # In each response we populate:
231
- #
232
- # * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
233
- #
234
- # * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
214
+ # While end-user audio is being processed, Dialogflow sends a series of
215
+ # results. Each result may contain a `transcript` value. A transcript
216
+ # represents a portion of the utterance. While the recognizer is processing
217
+ # audio, transcript values may be interim values or finalized values.
218
+ # Once a transcript is finalized, the `is_final` value is set to true and
219
+ # processing continues for the next transcript.
220
+ #
221
+ # If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance`
222
+ # was true, and the recognizer has completed processing audio,
223
+ # the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the
224
+ # following (last) result contains the last finalized transcript.
225
+ #
226
+ # The complete end-user utterance is determined by concatenating the
227
+ # finalized transcript values received for the series of results.
228
+ #
229
+ # In the following example, single utterance is enabled. In the case where
230
+ # single utterance is not enabled, result 7 would not occur.
231
+ #
232
+ # ```
233
+ # Num | transcript | message_type | is_final
234
+ # --- | ----------------------- | ----------------------- | --------
235
+ # 1 | "tube" | TRANSCRIPT | false
236
+ # 2 | "to be a" | TRANSCRIPT | false
237
+ # 3 | "to be" | TRANSCRIPT | false
238
+ # 4 | "to be or not to be" | TRANSCRIPT | true
239
+ # 5 | "that's" | TRANSCRIPT | false
240
+ # 6 | "that is | TRANSCRIPT | false
241
+ # 7 | unset | END_OF_SINGLE_UTTERANCE | unset
242
+ # 8 | " that is the question" | TRANSCRIPT | true
243
+ # ```
244
+ #
245
+ # Concatenating the finalized transcripts with `is_final` set to true,
246
+ # the complete utterance becomes "to be or not to be that is the question".
235
247
  # @!attribute [rw] message_type
236
248
  # @return [::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult::MessageType]
237
249
  # Type of the result message.
@@ -463,6 +475,10 @@ module Google
463
475
  # @return [::String]
464
476
  # If an {::Google::Cloud::Dialogflow::CX::V3::EventInput event} was provided as input, this field will contain
465
477
  # the name of the event.
478
+ # @!attribute [rw] dtmf
479
+ # @return [::Google::Cloud::Dialogflow::CX::V3::DtmfInput]
480
+ # If a [DTMF][DTMFInput] was provided as input, this field will contain
481
+ # a copy of the [DTMFInput][].
466
482
  # @!attribute [rw] language_code
467
483
  # @return [::String]
468
484
  # The language that was triggered during intent detection.
@@ -666,6 +666,7 @@ module Google
666
666
 
667
667
  # Metadata returned for the {::Google::Cloud::Dialogflow::CX::V3::TestCases::Client#export_test_cases TestCases.ExportTestCases} long running
668
668
  # operation.
669
+ # This message currently has no fields.
669
670
  class ExportTestCasesMetadata
670
671
  include ::Google::Protobuf::MessageExts
671
672
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -175,6 +175,49 @@ module Google
175
175
  include ::Google::Protobuf::MessageExts
176
176
  extend ::Google::Protobuf::MessageExts::ClassMethods
177
177
  end
178
+
179
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Versions::Client#compare_versions Versions.CompareVersions}.
180
+ # @!attribute [rw] base_version
181
+ # @return [::String]
182
+ # Required. Name of the base flow version to compare with the target version. Use
183
+ # version ID `0` to indicate the draft version of the specified flow.
184
+ #
185
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/
186
+ # <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
187
+ # @!attribute [rw] target_version
188
+ # @return [::String]
189
+ # Required. Name of the target flow version to compare with the
190
+ # base version. Use version ID `0` to indicate the draft version of the
191
+ # specified flow. Format: `projects/<Project ID>/locations/<Location
192
+ # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
193
+ # @!attribute [rw] language_code
194
+ # @return [::String]
195
+ # The language to compare the flow versions for.
196
+ #
197
+ # If not specified, the agent's default language is used.
198
+ # [Many
199
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
200
+ # supported. Note: languages must be enabled in the agent before they can be
201
+ # used.
202
+ class CompareVersionsRequest
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Versions::Client#compare_versions Versions.CompareVersions}.
208
+ # @!attribute [rw] base_version_content_json
209
+ # @return [::String]
210
+ # JSON representation of the base version content.
211
+ # @!attribute [rw] target_version_content_json
212
+ # @return [::String]
213
+ # JSON representation of the target version content.
214
+ # @!attribute [rw] compare_time
215
+ # @return [::Google::Protobuf::Timestamp]
216
+ # The timestamp when the two version compares.
217
+ class CompareVersionsResponse
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
178
221
  end
179
222
  end
180
223
  end
@@ -69,6 +69,19 @@ module Google
69
69
  # @return [::Google::Protobuf::Map{::String => ::String}]
70
70
  # The HTTP request headers to send together with webhook
71
71
  # requests.
72
+ # @!attribute [rw] allowed_ca_certs
73
+ # @return [::Array<::String>]
74
+ # Optional. Specifies a list of allowed custom CA certificates (in DER format) for
75
+ # HTTPS verification. This overrides the default SSL trust store. If this
76
+ # is empty or unspecified, Dialogflow will use Google's default trust store
77
+ # to verify certificates.
78
+ # N.B. Make sure the HTTPS server certificates are signed with "subject alt
79
+ # name". For instance a certificate can be self-signed using the following
80
+ # command,
81
+ # openssl x509 -req -days 200 -in example.com.csr \
82
+ # -signkey example.com.key \
83
+ # -out example.com.crt \
84
+ # -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
72
85
  class GenericWebService
73
86
  include ::Google::Protobuf::MessageExts
74
87
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-cx-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.4.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: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -185,6 +185,18 @@ files:
185
185
  - lib/google/cloud/dialogflow/cx/v3/agents/operations.rb
186
186
  - lib/google/cloud/dialogflow/cx/v3/agents/paths.rb
187
187
  - lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb
188
+ - lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb
189
+ - lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb
190
+ - lib/google/cloud/dialogflow/cx/v3/changelogs.rb
191
+ - lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb
192
+ - lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb
193
+ - lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb
194
+ - lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb
195
+ - lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb
196
+ - lib/google/cloud/dialogflow/cx/v3/deployments.rb
197
+ - lib/google/cloud/dialogflow/cx/v3/deployments/client.rb
198
+ - lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb
199
+ - lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb
188
200
  - lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb
189
201
  - lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb
190
202
  - lib/google/cloud/dialogflow/cx/v3/entity_types.rb
@@ -277,6 +289,8 @@ files:
277
289
  - proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb
278
290
  - proto_docs/google/cloud/dialogflow/cx/v3/agent.rb
279
291
  - proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb
292
+ - proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb
293
+ - proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb
280
294
  - proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb
281
295
  - proto_docs/google/cloud/dialogflow/cx/v3/environment.rb
282
296
  - proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb