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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fae500f6801b10c3544142902d3eaebf78c856ff49aa51067897fcc13d3af4e
4
- data.tar.gz: 155a758433bcca4929e191cb1d0262f1e5a7b04c2a0af240122489437ba0a99b
3
+ metadata.gz: 97026080cad20da35c49e74f411fe42db96ac73ab863826fa7d9736c3dbeed42
4
+ data.tar.gz: 4b7330e493789b85e56d740092e50bb2013e37d11718cd7aa0e106cec07c140c
5
5
  SHA512:
6
- metadata.gz: fa875972b613d9e3446cc19e6b2ecc03ca689f86848e2b424d897d10f705393de94daa27d0f20c6fbaec8f9473070e3a8f8a9e1feb2d2f3e259bf485ad0797b5
7
- data.tar.gz: b371a1c7cd27330954d595547848a00ffc17254d8870c18ec07ad0a30bce4828b7b2636a96d057dca4a853ac994e160179b518cc25874bb36c8179cbda1f3c5c
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
- "parent" => request.parent
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
- "name" => request.name
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
- "parent" => request.parent
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
- "name" => request.name
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
- "name" => request.name
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
- "user_feedback.name" => request.user_feedback.name
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataQnA
23
23
  module V1alpha
24
- VERSION = "0.2.4"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
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
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-09-28 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common