google-cloud-dialogflow 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/AUTHENTICATION.md +199 -0
- data/README.md +2 -2
- data/lib/google/cloud/dialogflow.rb +21 -14
- data/lib/google/cloud/dialogflow/v2.rb +21 -14
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +14 -14
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +56 -36
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +7 -3
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +48 -26
- data/lib/google/cloud/dialogflow/v2/credentials.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +31 -26
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +120 -0
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +8 -4
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +74 -56
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +78 -44
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +111 -37
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session_entity_type.rb +11 -5
- data/lib/google/cloud/dialogflow/v2/doc/google/longrunning/operations.rb +2 -44
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/any.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/field_mask.rb +19 -27
- data/lib/google/cloud/dialogflow/v2/doc/google/protobuf/struct.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/rpc/status.rb +18 -15
- data/lib/google/cloud/dialogflow/v2/doc/google/type/latlng.rb +1 -35
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +104 -69
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +6 -4
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +73 -45
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +28 -8
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +23 -0
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +15 -3
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
- metadata +28 -6
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/dialogflow/v2/session.proto for package 'google.cloud.dialogflow.v2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -57,7 +57,8 @@ module Google
|
|
57
57
|
# The scopes needed to make gRPC calls to all of the methods defined in
|
58
58
|
# this service.
|
59
59
|
ALL_SCOPES = [
|
60
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
60
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
61
|
+
"https://www.googleapis.com/auth/dialogflow"
|
61
62
|
].freeze
|
62
63
|
|
63
64
|
|
@@ -183,7 +184,10 @@ module Google
|
|
183
184
|
@detect_intent = Google::Gax.create_api_call(
|
184
185
|
@sessions_stub.method(:detect_intent),
|
185
186
|
defaults["detect_intent"],
|
186
|
-
exception_transformer: exception_transformer
|
187
|
+
exception_transformer: exception_transformer,
|
188
|
+
params_extractor: proc do |request|
|
189
|
+
{'session' => request.session}
|
190
|
+
end
|
187
191
|
)
|
188
192
|
@streaming_detect_intent = Google::Gax.create_api_call(
|
189
193
|
@sessions_stub.method(:streaming_detect_intent),
|
@@ -220,6 +224,12 @@ module Google
|
|
220
224
|
# Optional. The parameters of this query.
|
221
225
|
# A hash of the same form as `Google::Cloud::Dialogflow::V2::QueryParameters`
|
222
226
|
# can also be provided.
|
227
|
+
# @param output_audio_config [Google::Cloud::Dialogflow::V2::OutputAudioConfig | Hash]
|
228
|
+
# Optional. Instructs the speech synthesizer how to generate the output
|
229
|
+
# audio. If this field is not set and agent-level speech synthesizer is not
|
230
|
+
# configured, no output audio is generated.
|
231
|
+
# A hash of the same form as `Google::Cloud::Dialogflow::V2::OutputAudioConfig`
|
232
|
+
# can also be provided.
|
223
233
|
# @param input_audio [String]
|
224
234
|
# Optional. The natural language speech audio to be processed. This field
|
225
235
|
# should be populated iff `query_input` is set to an input audio config.
|
@@ -246,6 +256,7 @@ module Google
|
|
246
256
|
session,
|
247
257
|
query_input,
|
248
258
|
query_params: nil,
|
259
|
+
output_audio_config: nil,
|
249
260
|
input_audio: nil,
|
250
261
|
options: nil,
|
251
262
|
&block
|
@@ -253,6 +264,7 @@ module Google
|
|
253
264
|
session: session,
|
254
265
|
query_input: query_input,
|
255
266
|
query_params: query_params,
|
267
|
+
output_audio_config: output_audio_config,
|
256
268
|
input_audio: input_audio
|
257
269
|
}.delete_if { |_, v| v.nil? }
|
258
270
|
req = Google::Gax::to_proto(req, Google::Cloud::Dialogflow::V2::DetectIntentRequest)
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/dialogflow/v2/context_pb'
|
9
8
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
10
9
|
require 'google/cloud/dialogflow/v2/session_pb'
|
11
10
|
require 'google/protobuf/struct_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_message "google.cloud.dialogflow.v2.WebhookRequest" do
|
14
14
|
optional :session, :string, 4
|
@@ -26,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
end
|
27
27
|
add_message "google.cloud.dialogflow.v2.OriginalDetectIntentRequest" do
|
28
28
|
optional :source, :string, 1
|
29
|
+
optional :version, :string, 2
|
29
30
|
optional :payload, :message, 3, "google.protobuf.Struct"
|
30
31
|
end
|
31
32
|
end
|
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.3.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:
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -24,6 +24,26 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: googleapis-common-protos
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.3.9
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2.0'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.3.9
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: minitest
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +78,14 @@ dependencies:
|
|
58
78
|
requirements:
|
59
79
|
- - "~>"
|
60
80
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
81
|
+
version: 0.64.0
|
62
82
|
type: :development
|
63
83
|
prerelease: false
|
64
84
|
version_requirements: !ruby/object:Gem::Requirement
|
65
85
|
requirements:
|
66
86
|
- - "~>"
|
67
87
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
88
|
+
version: 0.64.0
|
69
89
|
- !ruby/object:Gem::Dependency
|
70
90
|
name: simplecov
|
71
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +121,7 @@ extensions: []
|
|
101
121
|
extra_rdoc_files: []
|
102
122
|
files:
|
103
123
|
- ".yardopts"
|
124
|
+
- AUTHENTICATION.md
|
104
125
|
- LICENSE
|
105
126
|
- README.md
|
106
127
|
- lib/google/cloud/dialogflow.rb
|
@@ -109,12 +130,14 @@ files:
|
|
109
130
|
- lib/google/cloud/dialogflow/v2/agent_services_pb.rb
|
110
131
|
- lib/google/cloud/dialogflow/v2/agents_client.rb
|
111
132
|
- lib/google/cloud/dialogflow/v2/agents_client_config.json
|
133
|
+
- lib/google/cloud/dialogflow/v2/audio_config_pb.rb
|
112
134
|
- lib/google/cloud/dialogflow/v2/context_pb.rb
|
113
135
|
- lib/google/cloud/dialogflow/v2/context_services_pb.rb
|
114
136
|
- lib/google/cloud/dialogflow/v2/contexts_client.rb
|
115
137
|
- lib/google/cloud/dialogflow/v2/contexts_client_config.json
|
116
138
|
- lib/google/cloud/dialogflow/v2/credentials.rb
|
117
139
|
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb
|
140
|
+
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb
|
118
141
|
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb
|
119
142
|
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb
|
120
143
|
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb
|
@@ -163,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
186
|
- !ruby/object:Gem::Version
|
164
187
|
version: '0'
|
165
188
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.7
|
189
|
+
rubygems_version: 3.0.3
|
168
190
|
signing_key:
|
169
191
|
specification_version: 4
|
170
192
|
summary: API Client library for Dialogflow API
|