google-cloud-dataqna-v1alpha 0.2.4 → 0.2.5
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/dataqna/v1alpha/auto_suggestion_service/client.rb +20 -3
- data/lib/google/cloud/dataqna/v1alpha/auto_suggestion_service_pb.rb +2 -2
- data/lib/google/cloud/dataqna/v1alpha/question_pb.rb +2 -2
- data/lib/google/cloud/dataqna/v1alpha/question_service/client.rb +100 -15
- data/lib/google/cloud/dataqna/v1alpha/question_service_pb.rb +2 -2
- data/lib/google/cloud/dataqna/v1alpha/user_feedback_pb.rb +2 -2
- data/lib/google/cloud/dataqna/v1alpha/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: 97026080cad20da35c49e74f411fe42db96ac73ab863826fa7d9736c3dbeed42
|
4
|
+
data.tar.gz: 4b7330e493789b85e56d740092e50bb2013e37d11718cd7aa0e106cec07c140c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd6086e1cdb72256f5d31f2e6eeb2d83b030e1851233549bc06a5cbebabaafe0ce4b8d81fb2c327343803effdb777e4847a5d300f75989f56a496fa2abb44bf3
|
7
|
+
data.tar.gz: a3784c5e79a89b29d4d4c53e2a82d3027be93d04568e5e4138e9a02eb7d596a1c71a74798605c6f8fa386d74393b6745b7763c26d69360840bde9ab6d3db149a
|
@@ -257,6 +257,21 @@ module Google
|
|
257
257
|
#
|
258
258
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
259
259
|
#
|
260
|
+
# @example Basic example
|
261
|
+
# require "google/cloud/dataqna/v1alpha"
|
262
|
+
#
|
263
|
+
# # Create a client object. The client can be reused for multiple calls.
|
264
|
+
# client = Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
|
265
|
+
#
|
266
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
267
|
+
# request = Google::Cloud::DataQnA::V1alpha::SuggestQueriesRequest.new
|
268
|
+
#
|
269
|
+
# # Call the suggest_queries method.
|
270
|
+
# result = client.suggest_queries request
|
271
|
+
#
|
272
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::SuggestQueriesResponse.
|
273
|
+
# p result
|
274
|
+
#
|
260
275
|
def suggest_queries request, options = nil
|
261
276
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
262
277
|
|
@@ -274,9 +289,11 @@ module Google
|
|
274
289
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
275
290
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
276
291
|
|
277
|
-
header_params = {
|
278
|
-
|
279
|
-
|
292
|
+
header_params = {}
|
293
|
+
if request.parent
|
294
|
+
header_params["parent"] = request.parent
|
295
|
+
end
|
296
|
+
|
280
297
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
281
298
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
282
299
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataqna/v1alpha/auto_suggestion_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/field_behavior_pb'
|
8
6
|
require 'google/api/resource_pb'
|
9
7
|
require 'google/cloud/dataqna/v1alpha/annotated_string_pb'
|
10
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/dataqna/v1alpha/auto_suggestion_service.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.dataqna.v1alpha.SuggestQueriesRequest" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataqna/v1alpha/question.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/dataqna/v1alpha/annotated_string_pb'
|
9
7
|
require 'google/protobuf/any_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/rpc/status_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dataqna/v1alpha/question.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dataqna.v1alpha.Question" do
|
@@ -201,6 +201,21 @@ module Google
|
|
201
201
|
#
|
202
202
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
203
203
|
#
|
204
|
+
# @example Basic example
|
205
|
+
# require "google/cloud/dataqna/v1alpha"
|
206
|
+
#
|
207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
208
|
+
# client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
209
|
+
#
|
210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
211
|
+
# request = Google::Cloud::DataQnA::V1alpha::GetQuestionRequest.new
|
212
|
+
#
|
213
|
+
# # Call the get_question method.
|
214
|
+
# result = client.get_question request
|
215
|
+
#
|
216
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
|
217
|
+
# p result
|
218
|
+
#
|
204
219
|
def get_question request, options = nil
|
205
220
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
221
|
|
@@ -218,9 +233,11 @@ module Google
|
|
218
233
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
219
234
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
220
235
|
|
221
|
-
header_params = {
|
222
|
-
|
223
|
-
|
236
|
+
header_params = {}
|
237
|
+
if request.name
|
238
|
+
header_params["name"] = request.name
|
239
|
+
end
|
240
|
+
|
224
241
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
225
242
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
226
243
|
|
@@ -272,6 +289,21 @@ module Google
|
|
272
289
|
#
|
273
290
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
274
291
|
#
|
292
|
+
# @example Basic example
|
293
|
+
# require "google/cloud/dataqna/v1alpha"
|
294
|
+
#
|
295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
296
|
+
# client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
297
|
+
#
|
298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
299
|
+
# request = Google::Cloud::DataQnA::V1alpha::CreateQuestionRequest.new
|
300
|
+
#
|
301
|
+
# # Call the create_question method.
|
302
|
+
# result = client.create_question request
|
303
|
+
#
|
304
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
|
305
|
+
# p result
|
306
|
+
#
|
275
307
|
def create_question request, options = nil
|
276
308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
277
309
|
|
@@ -289,9 +321,11 @@ module Google
|
|
289
321
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
290
322
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
291
323
|
|
292
|
-
header_params = {
|
293
|
-
|
294
|
-
|
324
|
+
header_params = {}
|
325
|
+
if request.parent
|
326
|
+
header_params["parent"] = request.parent
|
327
|
+
end
|
328
|
+
|
295
329
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
296
330
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
297
331
|
|
@@ -343,6 +377,21 @@ module Google
|
|
343
377
|
#
|
344
378
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
345
379
|
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/dataqna/v1alpha"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::DataQnA::V1alpha::ExecuteQuestionRequest.new
|
388
|
+
#
|
389
|
+
# # Call the execute_question method.
|
390
|
+
# result = client.execute_question request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::Question.
|
393
|
+
# p result
|
394
|
+
#
|
346
395
|
def execute_question request, options = nil
|
347
396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
397
|
|
@@ -360,9 +409,11 @@ module Google
|
|
360
409
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
361
410
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
411
|
|
363
|
-
header_params = {
|
364
|
-
|
365
|
-
|
412
|
+
header_params = {}
|
413
|
+
if request.name
|
414
|
+
header_params["name"] = request.name
|
415
|
+
end
|
416
|
+
|
366
417
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
367
418
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
368
419
|
|
@@ -413,6 +464,21 @@ module Google
|
|
413
464
|
#
|
414
465
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
415
466
|
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/dataqna/v1alpha"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::DataQnA::V1alpha::GetUserFeedbackRequest.new
|
475
|
+
#
|
476
|
+
# # Call the get_user_feedback method.
|
477
|
+
# result = client.get_user_feedback request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::UserFeedback.
|
480
|
+
# p result
|
481
|
+
#
|
416
482
|
def get_user_feedback request, options = nil
|
417
483
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
418
484
|
|
@@ -430,9 +496,11 @@ module Google
|
|
430
496
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
431
497
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
432
498
|
|
433
|
-
header_params = {
|
434
|
-
|
435
|
-
|
499
|
+
header_params = {}
|
500
|
+
if request.name
|
501
|
+
header_params["name"] = request.name
|
502
|
+
end
|
503
|
+
|
436
504
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
437
505
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
438
506
|
|
@@ -487,6 +555,21 @@ module Google
|
|
487
555
|
#
|
488
556
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
489
557
|
#
|
558
|
+
# @example Basic example
|
559
|
+
# require "google/cloud/dataqna/v1alpha"
|
560
|
+
#
|
561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
562
|
+
# client = Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
|
563
|
+
#
|
564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
565
|
+
# request = Google::Cloud::DataQnA::V1alpha::UpdateUserFeedbackRequest.new
|
566
|
+
#
|
567
|
+
# # Call the update_user_feedback method.
|
568
|
+
# result = client.update_user_feedback request
|
569
|
+
#
|
570
|
+
# # The returned object is of type Google::Cloud::DataQnA::V1alpha::UserFeedback.
|
571
|
+
# p result
|
572
|
+
#
|
490
573
|
def update_user_feedback request, options = nil
|
491
574
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
492
575
|
|
@@ -504,9 +587,11 @@ module Google
|
|
504
587
|
gapic_version: ::Google::Cloud::DataQnA::V1alpha::VERSION
|
505
588
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
506
589
|
|
507
|
-
header_params = {
|
508
|
-
|
509
|
-
|
590
|
+
header_params = {}
|
591
|
+
if request.user_feedback&.name
|
592
|
+
header_params["user_feedback.name"] = request.user_feedback.name
|
593
|
+
end
|
594
|
+
|
510
595
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
511
596
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
512
597
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataqna/v1alpha/question_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/dataqna/v1alpha/question_pb'
|
11
9
|
require 'google/cloud/dataqna/v1alpha/user_feedback_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/dataqna/v1alpha/question_service.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.dataqna.v1alpha.GetQuestionRequest" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataqna/v1alpha/user_feedback.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/dataqna/v1alpha/user_feedback.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.dataqna.v1alpha.UserFeedback" do
|
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.5
|
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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|