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.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
- 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
|
-
#
|
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
|
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
|
-
#
|
181
|
-
#
|
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
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
# the
|
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
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
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.
|
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-
|
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
|