google-cloud-talent-v4 0.5.0 → 0.6.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/lib/google/cloud/talent/v4/common_pb.rb +2 -2
  5. data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
  6. data/lib/google/cloud/talent/v4/company_service/client.rb +106 -15
  7. data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
  8. data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
  9. data/lib/google/cloud/talent/v4/completion/client.rb +20 -3
  10. data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
  12. data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4/event_service/client.rb +20 -3
  14. data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
  15. data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
  17. data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
  18. data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
  19. data/lib/google/cloud/talent/v4/job_service/client.rb +260 -34
  20. data/lib/google/cloud/talent/v4/job_service/operations.rb +115 -12
  21. data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
  22. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
  23. data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4/tenant_service/client.rb +106 -15
  25. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
  26. data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
  27. data/lib/google/cloud/talent/v4/version.rb +1 -1
  28. data/proto_docs/google/api/resource.rb +10 -71
  29. data/proto_docs/google/cloud/talent/v4/job.rb +1 -1
  30. data/proto_docs/google/cloud/talent/v4/job_service.rb +72 -6
  31. metadata +3 -3
@@ -164,6 +164,7 @@ module Google
164
164
 
165
165
  @operations_client = Operations.new do |config|
166
166
  config.credentials = credentials
167
+ config.quota_project = @quota_project_id
167
168
  config.endpoint = @config.endpoint
168
169
  end
169
170
 
@@ -222,6 +223,21 @@ module Google
222
223
  #
223
224
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
224
225
  #
226
+ # @example Basic example
227
+ # require "google/cloud/talent/v4"
228
+ #
229
+ # # Create a client object. The client can be reused for multiple calls.
230
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
231
+ #
232
+ # # Create a request. To set request fields, pass in keyword arguments.
233
+ # request = Google::Cloud::Talent::V4::CreateJobRequest.new
234
+ #
235
+ # # Call the create_job method.
236
+ # result = client.create_job request
237
+ #
238
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
239
+ # p result
240
+ #
225
241
  def create_job request, options = nil
226
242
  raise ::ArgumentError, "request must be provided" if request.nil?
227
243
 
@@ -239,9 +255,11 @@ module Google
239
255
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
240
256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
241
257
 
242
- header_params = {
243
- "parent" => request.parent
244
- }
258
+ header_params = {}
259
+ if request.parent
260
+ header_params["parent"] = request.parent
261
+ end
262
+
245
263
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
246
264
  metadata[:"x-goog-request-params"] ||= request_params_header
247
265
 
@@ -296,6 +314,28 @@ module Google
296
314
  #
297
315
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
298
316
  #
317
+ # @example Basic example
318
+ # require "google/cloud/talent/v4"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::Talent::V4::BatchCreateJobsRequest.new
325
+ #
326
+ # # Call the batch_create_jobs method.
327
+ # result = client.batch_create_jobs request
328
+ #
329
+ # # The returned object is of type Gapic::Operation. You can use this
330
+ # # object to check the status of an operation, cancel it, or wait
331
+ # # for results. Here is how to block until completion:
332
+ # result.wait_until_done! timeout: 60
333
+ # if result.response?
334
+ # p result.response
335
+ # else
336
+ # puts "Error!"
337
+ # end
338
+ #
299
339
  def batch_create_jobs request, options = nil
300
340
  raise ::ArgumentError, "request must be provided" if request.nil?
301
341
 
@@ -313,9 +353,11 @@ module Google
313
353
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
314
354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
355
 
316
- header_params = {
317
- "parent" => request.parent
318
- }
356
+ header_params = {}
357
+ if request.parent
358
+ header_params["parent"] = request.parent
359
+ end
360
+
319
361
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
320
362
  metadata[:"x-goog-request-params"] ||= request_params_header
321
363
 
@@ -370,6 +412,21 @@ module Google
370
412
  #
371
413
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
372
414
  #
415
+ # @example Basic example
416
+ # require "google/cloud/talent/v4"
417
+ #
418
+ # # Create a client object. The client can be reused for multiple calls.
419
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
420
+ #
421
+ # # Create a request. To set request fields, pass in keyword arguments.
422
+ # request = Google::Cloud::Talent::V4::GetJobRequest.new
423
+ #
424
+ # # Call the get_job method.
425
+ # result = client.get_job request
426
+ #
427
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
428
+ # p result
429
+ #
373
430
  def get_job request, options = nil
374
431
  raise ::ArgumentError, "request must be provided" if request.nil?
375
432
 
@@ -387,9 +444,11 @@ module Google
387
444
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
388
445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
446
 
390
- header_params = {
391
- "name" => request.name
392
- }
447
+ header_params = {}
448
+ if request.name
449
+ header_params["name"] = request.name
450
+ end
451
+
393
452
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
394
453
  metadata[:"x-goog-request-params"] ||= request_params_header
395
454
 
@@ -449,6 +508,21 @@ module Google
449
508
  #
450
509
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
451
510
  #
511
+ # @example Basic example
512
+ # require "google/cloud/talent/v4"
513
+ #
514
+ # # Create a client object. The client can be reused for multiple calls.
515
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
516
+ #
517
+ # # Create a request. To set request fields, pass in keyword arguments.
518
+ # request = Google::Cloud::Talent::V4::UpdateJobRequest.new
519
+ #
520
+ # # Call the update_job method.
521
+ # result = client.update_job request
522
+ #
523
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
524
+ # p result
525
+ #
452
526
  def update_job request, options = nil
453
527
  raise ::ArgumentError, "request must be provided" if request.nil?
454
528
 
@@ -466,9 +540,11 @@ module Google
466
540
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
467
541
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
468
542
 
469
- header_params = {
470
- "job.name" => request.job.name
471
- }
543
+ header_params = {}
544
+ if request.job&.name
545
+ header_params["job.name"] = request.job.name
546
+ end
547
+
472
548
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
473
549
  metadata[:"x-goog-request-params"] ||= request_params_header
474
550
 
@@ -538,6 +614,28 @@ module Google
538
614
  #
539
615
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
540
616
  #
617
+ # @example Basic example
618
+ # require "google/cloud/talent/v4"
619
+ #
620
+ # # Create a client object. The client can be reused for multiple calls.
621
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
622
+ #
623
+ # # Create a request. To set request fields, pass in keyword arguments.
624
+ # request = Google::Cloud::Talent::V4::BatchUpdateJobsRequest.new
625
+ #
626
+ # # Call the batch_update_jobs method.
627
+ # result = client.batch_update_jobs request
628
+ #
629
+ # # The returned object is of type Gapic::Operation. You can use this
630
+ # # object to check the status of an operation, cancel it, or wait
631
+ # # for results. Here is how to block until completion:
632
+ # result.wait_until_done! timeout: 60
633
+ # if result.response?
634
+ # p result.response
635
+ # else
636
+ # puts "Error!"
637
+ # end
638
+ #
541
639
  def batch_update_jobs request, options = nil
542
640
  raise ::ArgumentError, "request must be provided" if request.nil?
543
641
 
@@ -555,9 +653,11 @@ module Google
555
653
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
556
654
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
557
655
 
558
- header_params = {
559
- "parent" => request.parent
560
- }
656
+ header_params = {}
657
+ if request.parent
658
+ header_params["parent"] = request.parent
659
+ end
660
+
561
661
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
562
662
  metadata[:"x-goog-request-params"] ||= request_params_header
563
663
 
@@ -614,6 +714,21 @@ module Google
614
714
  #
615
715
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
616
716
  #
717
+ # @example Basic example
718
+ # require "google/cloud/talent/v4"
719
+ #
720
+ # # Create a client object. The client can be reused for multiple calls.
721
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
722
+ #
723
+ # # Create a request. To set request fields, pass in keyword arguments.
724
+ # request = Google::Cloud::Talent::V4::DeleteJobRequest.new
725
+ #
726
+ # # Call the delete_job method.
727
+ # result = client.delete_job request
728
+ #
729
+ # # The returned object is of type Google::Protobuf::Empty.
730
+ # p result
731
+ #
617
732
  def delete_job request, options = nil
618
733
  raise ::ArgumentError, "request must be provided" if request.nil?
619
734
 
@@ -631,9 +746,11 @@ module Google
631
746
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
632
747
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
633
748
 
634
- header_params = {
635
- "name" => request.name
636
- }
749
+ header_params = {}
750
+ if request.name
751
+ header_params["name"] = request.name
752
+ end
753
+
637
754
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
638
755
  metadata[:"x-goog-request-params"] ||= request_params_header
639
756
 
@@ -694,6 +811,28 @@ module Google
694
811
  #
695
812
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
696
813
  #
814
+ # @example Basic example
815
+ # require "google/cloud/talent/v4"
816
+ #
817
+ # # Create a client object. The client can be reused for multiple calls.
818
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
819
+ #
820
+ # # Create a request. To set request fields, pass in keyword arguments.
821
+ # request = Google::Cloud::Talent::V4::BatchDeleteJobsRequest.new
822
+ #
823
+ # # Call the batch_delete_jobs method.
824
+ # result = client.batch_delete_jobs request
825
+ #
826
+ # # The returned object is of type Gapic::Operation. You can use this
827
+ # # object to check the status of an operation, cancel it, or wait
828
+ # # for results. Here is how to block until completion:
829
+ # result.wait_until_done! timeout: 60
830
+ # if result.response?
831
+ # p result.response
832
+ # else
833
+ # puts "Error!"
834
+ # end
835
+ #
697
836
  def batch_delete_jobs request, options = nil
698
837
  raise ::ArgumentError, "request must be provided" if request.nil?
699
838
 
@@ -711,9 +850,11 @@ module Google
711
850
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
712
851
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
713
852
 
714
- header_params = {
715
- "parent" => request.parent
716
- }
853
+ header_params = {}
854
+ if request.parent
855
+ header_params["parent"] = request.parent
856
+ end
857
+
717
858
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
718
859
  metadata[:"x-goog-request-params"] ||= request_params_header
719
860
 
@@ -803,6 +944,27 @@ module Google
803
944
  #
804
945
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
805
946
  #
947
+ # @example Basic example
948
+ # require "google/cloud/talent/v4"
949
+ #
950
+ # # Create a client object. The client can be reused for multiple calls.
951
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
952
+ #
953
+ # # Create a request. To set request fields, pass in keyword arguments.
954
+ # request = Google::Cloud::Talent::V4::ListJobsRequest.new
955
+ #
956
+ # # Call the list_jobs method.
957
+ # result = client.list_jobs request
958
+ #
959
+ # # The returned object is of type Gapic::PagedEnumerable. You can
960
+ # # iterate over all elements by calling #each, and the enumerable
961
+ # # will lazily make API calls to fetch subsequent pages. Other
962
+ # # methods are also available for managing paging directly.
963
+ # result.each do |response|
964
+ # # Each element is of type ::Google::Cloud::Talent::V4::Job.
965
+ # p response
966
+ # end
967
+ #
806
968
  def list_jobs request, options = nil
807
969
  raise ::ArgumentError, "request must be provided" if request.nil?
808
970
 
@@ -820,9 +982,11 @@ module Google
820
982
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
821
983
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
984
 
823
- header_params = {
824
- "parent" => request.parent
825
- }
985
+ header_params = {}
986
+ if request.parent
987
+ header_params["parent"] = request.parent
988
+ end
989
+
826
990
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
827
991
  metadata[:"x-goog-request-params"] ||= request_params_header
828
992
 
@@ -860,7 +1024,7 @@ module Google
860
1024
  # @param options [::Gapic::CallOptions, ::Hash]
861
1025
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
862
1026
  #
863
- # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
1027
+ # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
864
1028
  # Pass arguments to `search_jobs` via keyword arguments. Note that at
865
1029
  # least one keyword argument is required. To specify no parameters, or to keep all
866
1030
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -900,7 +1064,7 @@ module Google
900
1064
  #
901
1065
  # Data types:
902
1066
  #
903
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
1067
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
904
1068
  # * String: string like "any string with backslash escape for quote(\")."
905
1069
  # * Number: whole number and floating point number like 10, -1 and -0.01.
906
1070
  # * List: list of elements with comma(,) separator surrounded by square
@@ -1068,6 +1232,14 @@ module Google
1068
1232
  # Controls over how job documents get ranked on top of existing relevance
1069
1233
  # score (determined by API algorithm).
1070
1234
  # @param disable_keyword_match [::Boolean]
1235
+ # This field is deprecated. Please use
1236
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
1237
+ #
1238
+ # To migrate, disable_keyword_match set to false maps to
1239
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
1240
+ # true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
1241
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
1242
+ #
1071
1243
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
1072
1244
  # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
1073
1245
  # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -1087,6 +1259,12 @@ module Google
1087
1259
  # requests.
1088
1260
  #
1089
1261
  # Defaults to false.
1262
+ # @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
1263
+ # Controls what keyword match options to use. If both keyword_match_mode and
1264
+ # disable_keyword_match are set, keyword_match_mode will take precedence.
1265
+ #
1266
+ # Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
1267
+ # is specified.
1090
1268
  #
1091
1269
  # @yield [response, operation] Access the result along with the RPC operation
1092
1270
  # @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
@@ -1096,6 +1274,21 @@ module Google
1096
1274
  #
1097
1275
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1098
1276
  #
1277
+ # @example Basic example
1278
+ # require "google/cloud/talent/v4"
1279
+ #
1280
+ # # Create a client object. The client can be reused for multiple calls.
1281
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
1282
+ #
1283
+ # # Create a request. To set request fields, pass in keyword arguments.
1284
+ # request = Google::Cloud::Talent::V4::SearchJobsRequest.new
1285
+ #
1286
+ # # Call the search_jobs method.
1287
+ # result = client.search_jobs request
1288
+ #
1289
+ # # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
1290
+ # p result
1291
+ #
1099
1292
  def search_jobs request, options = nil
1100
1293
  raise ::ArgumentError, "request must be provided" if request.nil?
1101
1294
 
@@ -1113,9 +1306,11 @@ module Google
1113
1306
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
1114
1307
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1115
1308
 
1116
- header_params = {
1117
- "parent" => request.parent
1118
- }
1309
+ header_params = {}
1310
+ if request.parent
1311
+ header_params["parent"] = request.parent
1312
+ end
1313
+
1119
1314
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1120
1315
  metadata[:"x-goog-request-params"] ||= request_params_header
1121
1316
 
@@ -1157,7 +1352,7 @@ module Google
1157
1352
  # @param options [::Gapic::CallOptions, ::Hash]
1158
1353
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1159
1354
  #
1160
- # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
1355
+ # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, histogram_queries: nil, job_view: nil, offset: nil, max_page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
1161
1356
  # Pass arguments to `search_jobs_for_alert` via keyword arguments. Note that at
1162
1357
  # least one keyword argument is required. To specify no parameters, or to keep all
1163
1358
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1197,7 +1392,7 @@ module Google
1197
1392
  #
1198
1393
  # Data types:
1199
1394
  #
1200
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
1395
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
1201
1396
  # * String: string like "any string with backslash escape for quote(\")."
1202
1397
  # * Number: whole number and floating point number like 10, -1 and -0.01.
1203
1398
  # * List: list of elements with comma(,) separator surrounded by square
@@ -1365,6 +1560,14 @@ module Google
1365
1560
  # Controls over how job documents get ranked on top of existing relevance
1366
1561
  # score (determined by API algorithm).
1367
1562
  # @param disable_keyword_match [::Boolean]
1563
+ # This field is deprecated. Please use
1564
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
1565
+ #
1566
+ # To migrate, disable_keyword_match set to false maps to
1567
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
1568
+ # true maps to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
1569
+ # {::Google::Cloud::Talent::V4::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
1570
+ #
1368
1571
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4::Job#title Job.title},
1369
1572
  # {::Google::Cloud::Talent::V4::Job#description Job.description}, {::Google::Cloud::Talent::V4::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4::Job#addresses Job.addresses},
1370
1573
  # {::Google::Cloud::Talent::V4::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -1384,6 +1587,12 @@ module Google
1384
1587
  # requests.
1385
1588
  #
1386
1589
  # Defaults to false.
1590
+ # @param keyword_match_mode [::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode]
1591
+ # Controls what keyword match options to use. If both keyword_match_mode and
1592
+ # disable_keyword_match are set, keyword_match_mode will take precedence.
1593
+ #
1594
+ # Defaults to {::Google::Cloud::Talent::V4::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
1595
+ # is specified.
1387
1596
  #
1388
1597
  # @yield [response, operation] Access the result along with the RPC operation
1389
1598
  # @yieldparam response [::Google::Cloud::Talent::V4::SearchJobsResponse]
@@ -1393,6 +1602,21 @@ module Google
1393
1602
  #
1394
1603
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1395
1604
  #
1605
+ # @example Basic example
1606
+ # require "google/cloud/talent/v4"
1607
+ #
1608
+ # # Create a client object. The client can be reused for multiple calls.
1609
+ # client = Google::Cloud::Talent::V4::JobService::Client.new
1610
+ #
1611
+ # # Create a request. To set request fields, pass in keyword arguments.
1612
+ # request = Google::Cloud::Talent::V4::SearchJobsRequest.new
1613
+ #
1614
+ # # Call the search_jobs_for_alert method.
1615
+ # result = client.search_jobs_for_alert request
1616
+ #
1617
+ # # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
1618
+ # p result
1619
+ #
1396
1620
  def search_jobs_for_alert request, options = nil
1397
1621
  raise ::ArgumentError, "request must be provided" if request.nil?
1398
1622
 
@@ -1410,9 +1634,11 @@ module Google
1410
1634
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
1411
1635
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1412
1636
 
1413
- header_params = {
1414
- "parent" => request.parent
1415
- }
1637
+ header_params = {}
1638
+ if request.parent
1639
+ header_params["parent"] = request.parent
1640
+ end
1641
+
1416
1642
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1417
1643
  metadata[:"x-goog-request-params"] ||= request_params_header
1418
1644
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552