google-cloud-dialogflow 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +7 -10
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +14 -19
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +7 -0
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90692d1a004f0273a937d3cd3715d5b8961e3e0aefd5c938eee361a87b64d364
|
4
|
+
data.tar.gz: 8c0807a26d1bf4f62e78c5037bd7cc5b05d975d0f43b28ef45af9daa534d3320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a409f481e233641b7a93c5869be43376cc377381c46801753f36575f9a8e334850f8c0113899651c195d6950d2dacc2e0bf2bf83aeac282190ec17950f20712
|
7
|
+
data.tar.gz: 1e538dd2f770eca725e18cb020e250fca17d4a9c5fd733c04980a1589266f709cfdde78a41aebfa215a45bb4efe27f25c577f6262b681bd5a92b5f8bc1df433e
|
@@ -5,10 +5,12 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/longrunning/operations_pb'
|
9
12
|
require 'google/protobuf/empty_pb'
|
10
13
|
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/api/client_pb'
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_message "google.cloud.dialogflow.v2.Agent" do
|
14
16
|
optional :parent, :string, 1
|
@@ -541,8 +541,7 @@ module Google
|
|
541
541
|
# Required. The project that the agent to export is associated with.
|
542
542
|
# Format: `projects/<Project ID>`.
|
543
543
|
# @param agent_uri [String]
|
544
|
-
#
|
545
|
-
# [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
544
|
+
# Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
546
545
|
# URI to export the agent to.
|
547
546
|
# The format of this URI must be `gs://<bucket-name>/<object-name>`.
|
548
547
|
# If left unspecified, the serialized agent is returned inline.
|
@@ -623,13 +622,12 @@ module Google
|
|
623
622
|
#
|
624
623
|
# Example for how to import an agent via the command line:
|
625
624
|
# <pre>curl \
|
626
|
-
# 'https://dialogflow.googleapis.com/v2/projects/<
|
625
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:import'\
|
627
626
|
# -X POST \
|
628
|
-
# -H 'Authorization: Bearer
|
629
|
-
# print-access-token) \
|
627
|
+
# -H 'Authorization: Bearer'\
|
628
|
+
# $(gcloud auth application-default print-access-token) \
|
630
629
|
# -H 'Accept: application/json' \
|
631
630
|
# -H 'Content-Type: application/json' \
|
632
|
-
# --compressed \
|
633
631
|
# --data-binary "{
|
634
632
|
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
|
635
633
|
# }"</pre>
|
@@ -711,13 +709,12 @@ module Google
|
|
711
709
|
#
|
712
710
|
# Example for how to restore an agent via the command line:
|
713
711
|
# <pre>curl \
|
714
|
-
# 'https://dialogflow.googleapis.com/v2/projects/<
|
712
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:restore'\
|
715
713
|
# -X POST \
|
716
|
-
# -H 'Authorization: Bearer
|
717
|
-
# print-access-token) \
|
714
|
+
# -H 'Authorization: Bearer' \
|
715
|
+
# $(gcloud auth application-default print-access-token) \
|
718
716
|
# -H 'Accept: application/json' \
|
719
717
|
# -H 'Content-Type: application/json' \
|
720
|
-
# --compressed \
|
721
718
|
# --data-binary "{
|
722
719
|
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
|
723
720
|
# }"</pre>
|
@@ -5,10 +5,12 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/protobuf/empty_pb'
|
9
12
|
require 'google/protobuf/field_mask_pb'
|
10
13
|
require 'google/protobuf/struct_pb'
|
11
|
-
require 'google/api/client_pb'
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_message "google.cloud.dialogflow.v2.Context" do
|
14
16
|
optional :name, :string, 1
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
# default 100 and at most 1000.
|
157
157
|
# @!attribute [rw] page_token
|
158
158
|
# @return [String]
|
159
|
-
#
|
159
|
+
# The next_page_token value returned from a previous list request.
|
160
160
|
class SearchAgentsRequest; end
|
161
161
|
|
162
162
|
# The response message for {Google::Cloud::Dialogflow::V2::Agents::SearchAgents Agents::SearchAgents}.
|
@@ -184,8 +184,7 @@ module Google
|
|
184
184
|
# Format: `projects/<Project ID>`.
|
185
185
|
# @!attribute [rw] agent_uri
|
186
186
|
# @return [String]
|
187
|
-
#
|
188
|
-
# [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
187
|
+
# Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
189
188
|
# URI to export the agent to.
|
190
189
|
# The format of this URI must be `gs://<bucket-name>/<object-name>`.
|
191
190
|
# If left unspecified, the serialized agent is returned inline.
|
@@ -202,16 +201,14 @@ module Google
|
|
202
201
|
#
|
203
202
|
# Example for how to export an agent to a zip file via a command line:
|
204
203
|
# <pre>curl \
|
205
|
-
# 'https://dialogflow.googleapis.com/v2/projects/<
|
204
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:export'\
|
206
205
|
# -X POST \
|
207
|
-
# -H 'Authorization: Bearer
|
208
|
-
# print-access-token) \
|
209
|
-
# -H 'Accept: application/json'
|
210
|
-
# -H 'Content-Type: application/json' \
|
206
|
+
# -H 'Authorization: Bearer' \
|
207
|
+
# $(gcloud auth application-default print-access-token) \
|
208
|
+
# -H 'Accept: application/json'
|
211
209
|
# --compressed \
|
212
|
-
#
|
213
|
-
#
|
214
|
-
# | base64 --decode > <agent zip file></pre>
|
210
|
+
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
|
211
|
+
# | base64 --decode > <agent zip file></pre>
|
215
212
|
class ExportAgentResponse; end
|
216
213
|
|
217
214
|
# The request message for {Google::Cloud::Dialogflow::V2::Agents::ImportAgent Agents::ImportAgent}.
|
@@ -229,13 +226,12 @@ module Google
|
|
229
226
|
#
|
230
227
|
# Example for how to import an agent via the command line:
|
231
228
|
# <pre>curl \
|
232
|
-
# 'https://dialogflow.googleapis.com/v2/projects/<
|
229
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:import'\
|
233
230
|
# -X POST \
|
234
|
-
# -H 'Authorization: Bearer
|
235
|
-
# print-access-token) \
|
231
|
+
# -H 'Authorization: Bearer'\
|
232
|
+
# $(gcloud auth application-default print-access-token) \
|
236
233
|
# -H 'Accept: application/json' \
|
237
234
|
# -H 'Content-Type: application/json' \
|
238
|
-
# --compressed \
|
239
235
|
# --data-binary "{
|
240
236
|
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
|
241
237
|
# }"</pre>
|
@@ -256,13 +252,12 @@ module Google
|
|
256
252
|
#
|
257
253
|
# Example for how to restore an agent via the command line:
|
258
254
|
# <pre>curl \
|
259
|
-
# 'https://dialogflow.googleapis.com/v2/projects/<
|
255
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:restore'\
|
260
256
|
# -X POST \
|
261
|
-
# -H 'Authorization: Bearer
|
262
|
-
# print-access-token) \
|
257
|
+
# -H 'Authorization: Bearer' \
|
258
|
+
# $(gcloud auth application-default print-access-token) \
|
263
259
|
# -H 'Accept: application/json' \
|
264
260
|
# -H 'Content-Type: application/json' \
|
265
|
-
# --compressed \
|
266
261
|
# --data-binary "{
|
267
262
|
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
|
268
263
|
# }"</pre>
|
@@ -39,6 +39,9 @@ module Google
|
|
39
39
|
# @!attribute [rw] entities
|
40
40
|
# @return [Array<Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
41
41
|
# Optional. The collection of entity entries associated with the entity type.
|
42
|
+
# @!attribute [rw] enable_fuzzy_extraction
|
43
|
+
# @return [true, false]
|
44
|
+
# Optional. Enables fuzzy entity extraction during classification.
|
42
45
|
class EntityType
|
43
46
|
# An **entity entry** for an associated entity type.
|
44
47
|
# @!attribute [rw] value
|
@@ -91,6 +94,10 @@ module Google
|
|
91
94
|
# values. However, list entity types can contain references to other entity
|
92
95
|
# types (with or without aliases).
|
93
96
|
KIND_LIST = 2
|
97
|
+
|
98
|
+
# Regexp entity types allow to specify regular expressions in entries
|
99
|
+
# values.
|
100
|
+
KIND_REGEXP = 3
|
94
101
|
end
|
95
102
|
end
|
96
103
|
|
@@ -302,7 +302,7 @@ module Google
|
|
302
302
|
# @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::Card::Button>]
|
303
303
|
# Optional. The collection of card buttons.
|
304
304
|
class Card
|
305
|
-
#
|
305
|
+
# Contains information about a button.
|
306
306
|
# @!attribute [rw] text
|
307
307
|
# @return [String]
|
308
308
|
# Optional. The text to show on the button.
|
@@ -267,8 +267,8 @@ module Google
|
|
267
267
|
# 3. an event that specifies which intent to trigger.
|
268
268
|
# @!attribute [rw] single_utterance
|
269
269
|
# @return [true, false]
|
270
|
-
#
|
271
|
-
#
|
270
|
+
# Optional. Please use {Google::Cloud::Dialogflow::V2::InputAudioConfig#single_utterance InputAudioConfig#single_utterance} instead.
|
271
|
+
# If `false` (default), recognition does not cease until
|
272
272
|
# the client closes the stream. If `true`, the recognizer will detect a
|
273
273
|
# single spoken utterance in input audio. Recognition ceases when it detects
|
274
274
|
# the audio's voice has stopped or paused. In this case, once a detected
|
@@ -5,10 +5,12 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/longrunning/operations_pb'
|
9
12
|
require 'google/protobuf/empty_pb'
|
10
13
|
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/api/client_pb'
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_message "google.cloud.dialogflow.v2.EntityType" do
|
14
16
|
optional :name, :string, 1
|
@@ -16,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
18
|
optional :kind, :enum, 3, "google.cloud.dialogflow.v2.EntityType.Kind"
|
17
19
|
optional :auto_expansion_mode, :enum, 4, "google.cloud.dialogflow.v2.EntityType.AutoExpansionMode"
|
18
20
|
repeated :entities, :message, 6, "google.cloud.dialogflow.v2.EntityType.Entity"
|
21
|
+
optional :enable_fuzzy_extraction, :bool, 7
|
19
22
|
end
|
20
23
|
add_message "google.cloud.dialogflow.v2.EntityType.Entity" do
|
21
24
|
optional :value, :string, 1
|
@@ -25,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
28
|
value :KIND_UNSPECIFIED, 0
|
26
29
|
value :KIND_MAP, 1
|
27
30
|
value :KIND_LIST, 2
|
31
|
+
value :KIND_REGEXP, 3
|
28
32
|
end
|
29
33
|
add_enum "google.cloud.dialogflow.v2.EntityType.AutoExpansionMode" do
|
30
34
|
value :AUTO_EXPANSION_MODE_UNSPECIFIED, 0
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
9
12
|
require 'google/cloud/dialogflow/v2/context_pb'
|
10
13
|
require 'google/longrunning/operations_pb'
|
@@ -12,7 +15,6 @@ require 'google/protobuf/duration_pb'
|
|
12
15
|
require 'google/protobuf/empty_pb'
|
13
16
|
require 'google/protobuf/field_mask_pb'
|
14
17
|
require 'google/protobuf/struct_pb'
|
15
|
-
require 'google/api/client_pb'
|
16
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
19
|
add_message "google.cloud.dialogflow.v2.Intent" do
|
18
20
|
optional :name, :string, 1
|
@@ -5,10 +5,12 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/cloud/dialogflow/v2/entity_type_pb'
|
9
12
|
require 'google/protobuf/empty_pb'
|
10
13
|
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/api/client_pb'
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_message "google.cloud.dialogflow.v2.SessionEntityType" do
|
14
16
|
optional :name, :string, 1
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
9
12
|
require 'google/cloud/dialogflow/v2/context_pb'
|
10
13
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
@@ -13,7 +16,6 @@ require 'google/protobuf/duration_pb'
|
|
13
16
|
require 'google/protobuf/struct_pb'
|
14
17
|
require 'google/rpc/status_pb'
|
15
18
|
require 'google/type/latlng_pb'
|
16
|
-
require 'google/api/client_pb'
|
17
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
20
|
add_message "google.cloud.dialogflow.v2.DetectIntentRequest" do
|
19
21
|
optional :session, :string, 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2019-
|
11
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|