google-cloud-dataqna-v1alpha 0.2.2 → 0.2.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0dd80763e6eff610e2f4c0784a603bbd12c6caf64f469c4b7f4422f589ae63d
|
4
|
+
data.tar.gz: 7236a56cc5292b979f10722ad8732921cdd3ed54d185437f086c6bff5119c711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58787ecfb76dae0373bcc1cd9a6eb94364564d7847fe3d41dddd924bcb51eb443445995939058054b4a34d22839ffb50418b8708322b08387eb52f72c52a03f3
|
7
|
+
data.tar.gz: b315c83ef2da964712c34d418f342f3bdbe304fe2b55cd93f13a9ff055a196061db9bde58c4501a2060720b83fcd7e494ccd2e70f5cd3385565025fb98ea593f
|
@@ -106,13 +106,12 @@ module Google
|
|
106
106
|
# See {::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client::Configuration}
|
107
107
|
# for a description of the configuration fields.
|
108
108
|
#
|
109
|
-
#
|
109
|
+
# @example
|
110
110
|
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
# end
|
111
|
+
# # Modify the configuration for all AutoSuggestionService clients
|
112
|
+
# ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
|
113
|
+
# config.timeout = 10.0
|
114
|
+
# end
|
116
115
|
#
|
117
116
|
# @yield [config] Configure the Client client.
|
118
117
|
# @yieldparam config [Client::Configuration]
|
@@ -161,19 +160,15 @@ module Google
|
|
161
160
|
##
|
162
161
|
# Create a new AutoSuggestionService client object.
|
163
162
|
#
|
164
|
-
#
|
165
|
-
#
|
166
|
-
# To create a new AutoSuggestionService client with the default
|
167
|
-
# configuration:
|
163
|
+
# @example
|
168
164
|
#
|
169
|
-
#
|
165
|
+
# # Create a client using the default configuration
|
166
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
|
170
167
|
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
# config.timeout = 10.0
|
176
|
-
# end
|
168
|
+
# # Create a client using a custom configuration
|
169
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
|
170
|
+
# config.timeout = 10.0
|
171
|
+
# end
|
177
172
|
#
|
178
173
|
# @yield [config] Configure the AutoSuggestionService client.
|
179
174
|
# @yieldparam config [Client::Configuration]
|
@@ -193,10 +188,9 @@ module Google
|
|
193
188
|
|
194
189
|
# Create credentials
|
195
190
|
credentials = @config.credentials
|
196
|
-
# Use self-signed JWT if the
|
191
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
197
192
|
# but only if the default endpoint does not have a region prefix.
|
198
|
-
enable_self_signed_jwt = @config.
|
199
|
-
@config.endpoint == Client.configure.endpoint &&
|
193
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
200
194
|
!@config.endpoint.split(".").first.include?("-")
|
201
195
|
credentials ||= Credentials.default scope: @config.scope,
|
202
196
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -289,7 +283,9 @@ module Google
|
|
289
283
|
options.apply_defaults timeout: @config.rpcs.suggest_queries.timeout,
|
290
284
|
metadata: metadata,
|
291
285
|
retry_policy: @config.rpcs.suggest_queries.retry_policy
|
292
|
-
|
286
|
+
|
287
|
+
options.apply_defaults timeout: @config.timeout,
|
288
|
+
metadata: @config.metadata,
|
293
289
|
retry_policy: @config.retry_policy
|
294
290
|
|
295
291
|
@auto_suggestion_service_stub.call_rpc :suggest_queries, request, options: options do |response, operation|
|
@@ -313,22 +309,21 @@ module Google
|
|
313
309
|
# Configuration can be applied globally to all clients, or to a single client
|
314
310
|
# on construction.
|
315
311
|
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# to 20 seconds,
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
# end
|
312
|
+
# @example
|
313
|
+
#
|
314
|
+
# # Modify the global config, setting the timeout for
|
315
|
+
# # suggest_queries to 20 seconds,
|
316
|
+
# # and all remaining timeouts to 10 seconds.
|
317
|
+
# ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
|
318
|
+
# config.timeout = 10.0
|
319
|
+
# config.rpcs.suggest_queries.timeout = 20.0
|
320
|
+
# end
|
321
|
+
#
|
322
|
+
# # Apply the above configuration only to a new client.
|
323
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
|
324
|
+
# config.timeout = 10.0
|
325
|
+
# config.rpcs.suggest_queries.timeout = 20.0
|
326
|
+
# end
|
332
327
|
#
|
333
328
|
# @!attribute [rw] endpoint
|
334
329
|
# The hostname or hostname:port of the service endpoint.
|
@@ -55,13 +55,12 @@ module Google
|
|
55
55
|
# See {::Google::Cloud::DataQnA::V1alpha::QuestionService::Client::Configuration}
|
56
56
|
# for a description of the configuration fields.
|
57
57
|
#
|
58
|
-
#
|
58
|
+
# @example
|
59
59
|
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
# end
|
60
|
+
# # Modify the configuration for all QuestionService clients
|
61
|
+
# ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
|
62
|
+
# config.timeout = 10.0
|
63
|
+
# end
|
65
64
|
#
|
66
65
|
# @yield [config] Configure the Client client.
|
67
66
|
# @yieldparam config [Client::Configuration]
|
@@ -119,19 +118,15 @@ module Google
|
|
119
118
|
##
|
120
119
|
# Create a new QuestionService client object.
|
121
120
|
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
# To create a new QuestionService client with the default
|
125
|
-
# configuration:
|
126
|
-
#
|
127
|
-
# client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
121
|
+
# @example
|
128
122
|
#
|
129
|
-
#
|
130
|
-
#
|
123
|
+
# # Create a client using the default configuration
|
124
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
131
125
|
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
126
|
+
# # Create a client using a custom configuration
|
127
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
|
128
|
+
# config.timeout = 10.0
|
129
|
+
# end
|
135
130
|
#
|
136
131
|
# @yield [config] Configure the QuestionService client.
|
137
132
|
# @yieldparam config [Client::Configuration]
|
@@ -151,10 +146,9 @@ module Google
|
|
151
146
|
|
152
147
|
# Create credentials
|
153
148
|
credentials = @config.credentials
|
154
|
-
# Use self-signed JWT if the
|
149
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
150
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.
|
157
|
-
@config.endpoint == Client.configure.endpoint &&
|
151
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
158
152
|
!@config.endpoint.split(".").first.include?("-")
|
159
153
|
credentials ||= Credentials.default scope: @config.scope,
|
160
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -233,7 +227,9 @@ module Google
|
|
233
227
|
options.apply_defaults timeout: @config.rpcs.get_question.timeout,
|
234
228
|
metadata: metadata,
|
235
229
|
retry_policy: @config.rpcs.get_question.retry_policy
|
236
|
-
|
230
|
+
|
231
|
+
options.apply_defaults timeout: @config.timeout,
|
232
|
+
metadata: @config.metadata,
|
237
233
|
retry_policy: @config.retry_policy
|
238
234
|
|
239
235
|
@question_service_stub.call_rpc :get_question, request, options: options do |response, operation|
|
@@ -302,7 +298,9 @@ module Google
|
|
302
298
|
options.apply_defaults timeout: @config.rpcs.create_question.timeout,
|
303
299
|
metadata: metadata,
|
304
300
|
retry_policy: @config.rpcs.create_question.retry_policy
|
305
|
-
|
301
|
+
|
302
|
+
options.apply_defaults timeout: @config.timeout,
|
303
|
+
metadata: @config.metadata,
|
306
304
|
retry_policy: @config.retry_policy
|
307
305
|
|
308
306
|
@question_service_stub.call_rpc :create_question, request, options: options do |response, operation|
|
@@ -371,7 +369,9 @@ module Google
|
|
371
369
|
options.apply_defaults timeout: @config.rpcs.execute_question.timeout,
|
372
370
|
metadata: metadata,
|
373
371
|
retry_policy: @config.rpcs.execute_question.retry_policy
|
374
|
-
|
372
|
+
|
373
|
+
options.apply_defaults timeout: @config.timeout,
|
374
|
+
metadata: @config.metadata,
|
375
375
|
retry_policy: @config.retry_policy
|
376
376
|
|
377
377
|
@question_service_stub.call_rpc :execute_question, request, options: options do |response, operation|
|
@@ -439,7 +439,9 @@ module Google
|
|
439
439
|
options.apply_defaults timeout: @config.rpcs.get_user_feedback.timeout,
|
440
440
|
metadata: metadata,
|
441
441
|
retry_policy: @config.rpcs.get_user_feedback.retry_policy
|
442
|
-
|
442
|
+
|
443
|
+
options.apply_defaults timeout: @config.timeout,
|
444
|
+
metadata: @config.metadata,
|
443
445
|
retry_policy: @config.retry_policy
|
444
446
|
|
445
447
|
@question_service_stub.call_rpc :get_user_feedback, request, options: options do |response, operation|
|
@@ -511,7 +513,9 @@ module Google
|
|
511
513
|
options.apply_defaults timeout: @config.rpcs.update_user_feedback.timeout,
|
512
514
|
metadata: metadata,
|
513
515
|
retry_policy: @config.rpcs.update_user_feedback.retry_policy
|
514
|
-
|
516
|
+
|
517
|
+
options.apply_defaults timeout: @config.timeout,
|
518
|
+
metadata: @config.metadata,
|
515
519
|
retry_policy: @config.retry_policy
|
516
520
|
|
517
521
|
@question_service_stub.call_rpc :update_user_feedback, request, options: options do |response, operation|
|
@@ -535,22 +539,21 @@ module Google
|
|
535
539
|
# Configuration can be applied globally to all clients, or to a single client
|
536
540
|
# on construction.
|
537
541
|
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
# to 20 seconds,
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
552
|
-
#
|
553
|
-
# end
|
542
|
+
# @example
|
543
|
+
#
|
544
|
+
# # Modify the global config, setting the timeout for
|
545
|
+
# # get_question to 20 seconds,
|
546
|
+
# # and all remaining timeouts to 10 seconds.
|
547
|
+
# ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
|
548
|
+
# config.timeout = 10.0
|
549
|
+
# config.rpcs.get_question.timeout = 20.0
|
550
|
+
# end
|
551
|
+
#
|
552
|
+
# # Apply the above configuration only to a new client.
|
553
|
+
# client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
|
554
|
+
# config.timeout = 10.0
|
555
|
+
# config.rpcs.get_question.timeout = 20.0
|
556
|
+
# end
|
554
557
|
#
|
555
558
|
# @!attribute [rw] endpoint
|
556
559
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataqna-v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|