google-cloud-talent-v4beta1 0.4.0 → 0.4.4

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/talent/v4beta1/application_pb.rb +2 -2
  5. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +73 -69
  6. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +2 -2
  7. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +1 -1
  8. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +1 -1
  9. data/lib/google/cloud/talent/v4beta1/common_pb.rb +2 -2
  10. data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +73 -69
  12. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +1 -1
  14. data/lib/google/cloud/talent/v4beta1/completion/client.rb +39 -45
  15. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +2 -2
  16. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +1 -1
  17. data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -2
  18. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +38 -41
  19. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -2
  20. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +1 -1
  21. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +2 -2
  22. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
  23. data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +115 -91
  25. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +54 -37
  26. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +2 -2
  27. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +1 -1
  28. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +2 -2
  29. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +82 -74
  30. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +2 -2
  31. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +1 -1
  32. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -2
  33. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +73 -69
  34. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -2
  35. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +1 -1
  36. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  37. data/proto_docs/google/api/field_behavior.rb +7 -1
  38. data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
  39. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +1 -1
  40. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +1 -1
  41. data/proto_docs/google/type/date.rb +14 -11
  42. data/proto_docs/google/type/money.rb +1 -1
  43. data/proto_docs/google/type/timeofday.rb +2 -1
  44. metadata +13 -7
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/job.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/talent/v4beta1/common_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/type/postal_address_pb'
11
9
  require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/talent/v4beta1/job.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.talent.v4beta1.Job" do
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Talent::V4beta1::JobService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all JobService clients:
47
- #
48
- # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all JobService clients
47
+ # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -71,10 +70,7 @@ module Google
71
70
 
72
71
  default_config.rpcs.get_job.timeout = 30.0
73
72
  default_config.rpcs.get_job.retry_policy = {
74
- initial_delay: 0.1,
75
- max_delay: 60.0,
76
- multiplier: 1.3,
77
- retry_codes: [4, 14]
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
78
74
  }
79
75
 
80
76
  default_config.rpcs.update_job.timeout = 30.0
@@ -83,20 +79,14 @@ module Google
83
79
 
84
80
  default_config.rpcs.delete_job.timeout = 30.0
85
81
  default_config.rpcs.delete_job.retry_policy = {
86
- initial_delay: 0.1,
87
- max_delay: 60.0,
88
- multiplier: 1.3,
89
- retry_codes: [4, 14]
82
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
90
83
  }
91
84
 
92
85
  default_config.rpcs.batch_delete_jobs.timeout = 30.0
93
86
 
94
87
  default_config.rpcs.list_jobs.timeout = 30.0
95
88
  default_config.rpcs.list_jobs.retry_policy = {
96
- initial_delay: 0.1,
97
- max_delay: 60.0,
98
- multiplier: 1.3,
99
- retry_codes: [4, 14]
89
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
100
90
  }
101
91
 
102
92
  default_config.rpcs.search_jobs.timeout = 30.0
@@ -132,19 +122,15 @@ module Google
132
122
  ##
133
123
  # Create a new JobService client object.
134
124
  #
135
- # ## Examples
136
- #
137
- # To create a new JobService client with the default
138
- # configuration:
139
- #
140
- # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
125
+ # @example
141
126
  #
142
- # To create a new JobService client with a custom
143
- # configuration:
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new
144
129
  #
145
- # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
146
- # config.timeout = 10.0
147
- # end
130
+ # # Create a client using a custom configuration
131
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
132
+ # config.timeout = 10.0
133
+ # end
148
134
  #
149
135
  # @yield [config] Configure the JobService client.
150
136
  # @yieldparam config [Client::Configuration]
@@ -164,14 +150,13 @@ module Google
164
150
 
165
151
  # Create credentials
166
152
  credentials = @config.credentials
167
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
153
+ # Use self-signed JWT if the endpoint is unchanged from default,
168
154
  # but only if the default endpoint does not have a region prefix.
169
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
170
- @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
171
156
  !@config.endpoint.split(".").first.include?("-")
172
157
  credentials ||= Credentials.default scope: @config.scope,
173
158
  enable_self_signed_jwt: enable_self_signed_jwt
174
- if credentials.is_a?(String) || credentials.is_a?(Hash)
159
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
175
160
  credentials = Credentials.new credentials, scope: @config.scope
176
161
  end
177
162
  @quota_project_id = @config.quota_project
@@ -255,16 +240,20 @@ module Google
255
240
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
256
241
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
242
 
258
- header_params = {
259
- "parent" => request.parent
260
- }
243
+ header_params = {}
244
+ if request.parent
245
+ header_params["parent"] = request.parent
246
+ end
247
+
261
248
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
262
249
  metadata[:"x-goog-request-params"] ||= request_params_header
263
250
 
264
251
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
265
252
  metadata: metadata,
266
253
  retry_policy: @config.rpcs.create_job.retry_policy
267
- options.apply_defaults metadata: @config.metadata,
254
+
255
+ options.apply_defaults timeout: @config.timeout,
256
+ metadata: @config.metadata,
268
257
  retry_policy: @config.retry_policy
269
258
 
270
259
  @job_service_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -327,16 +316,20 @@ module Google
327
316
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
328
317
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
329
318
 
330
- header_params = {
331
- "parent" => request.parent
332
- }
319
+ header_params = {}
320
+ if request.parent
321
+ header_params["parent"] = request.parent
322
+ end
323
+
333
324
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
334
325
  metadata[:"x-goog-request-params"] ||= request_params_header
335
326
 
336
327
  options.apply_defaults timeout: @config.rpcs.batch_create_jobs.timeout,
337
328
  metadata: metadata,
338
329
  retry_policy: @config.rpcs.batch_create_jobs.retry_policy
339
- options.apply_defaults metadata: @config.metadata,
330
+
331
+ options.apply_defaults timeout: @config.timeout,
332
+ metadata: @config.metadata,
340
333
  retry_policy: @config.retry_policy
341
334
 
342
335
  @job_service_stub.call_rpc :batch_create_jobs, request, options: options do |response, operation|
@@ -402,16 +395,20 @@ module Google
402
395
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
403
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
404
397
 
405
- header_params = {
406
- "name" => request.name
407
- }
398
+ header_params = {}
399
+ if request.name
400
+ header_params["name"] = request.name
401
+ end
402
+
408
403
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
409
404
  metadata[:"x-goog-request-params"] ||= request_params_header
410
405
 
411
406
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
412
407
  metadata: metadata,
413
408
  retry_policy: @config.rpcs.get_job.retry_policy
414
- options.apply_defaults metadata: @config.metadata,
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: @config.metadata,
415
412
  retry_policy: @config.retry_policy
416
413
 
417
414
  @job_service_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -479,16 +476,20 @@ module Google
479
476
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
480
477
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
481
478
 
482
- header_params = {
483
- "job.name" => request.job.name
484
- }
479
+ header_params = {}
480
+ if request.job&.name
481
+ header_params["job.name"] = request.job.name
482
+ end
483
+
485
484
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
486
485
  metadata[:"x-goog-request-params"] ||= request_params_header
487
486
 
488
487
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
489
488
  metadata: metadata,
490
489
  retry_policy: @config.rpcs.update_job.retry_policy
491
- options.apply_defaults metadata: @config.metadata,
490
+
491
+ options.apply_defaults timeout: @config.timeout,
492
+ metadata: @config.metadata,
492
493
  retry_policy: @config.retry_policy
493
494
 
494
495
  @job_service_stub.call_rpc :update_job, request, options: options do |response, operation|
@@ -566,16 +567,20 @@ module Google
566
567
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
567
568
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
568
569
 
569
- header_params = {
570
- "parent" => request.parent
571
- }
570
+ header_params = {}
571
+ if request.parent
572
+ header_params["parent"] = request.parent
573
+ end
574
+
572
575
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
573
576
  metadata[:"x-goog-request-params"] ||= request_params_header
574
577
 
575
578
  options.apply_defaults timeout: @config.rpcs.batch_update_jobs.timeout,
576
579
  metadata: metadata,
577
580
  retry_policy: @config.rpcs.batch_update_jobs.retry_policy
578
- options.apply_defaults metadata: @config.metadata,
581
+
582
+ options.apply_defaults timeout: @config.timeout,
583
+ metadata: @config.metadata,
579
584
  retry_policy: @config.retry_policy
580
585
 
581
586
  @job_service_stub.call_rpc :batch_update_jobs, request, options: options do |response, operation|
@@ -643,16 +648,20 @@ module Google
643
648
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
644
649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
645
650
 
646
- header_params = {
647
- "name" => request.name
648
- }
651
+ header_params = {}
652
+ if request.name
653
+ header_params["name"] = request.name
654
+ end
655
+
649
656
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
650
657
  metadata[:"x-goog-request-params"] ||= request_params_header
651
658
 
652
659
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
653
660
  metadata: metadata,
654
661
  retry_policy: @config.rpcs.delete_job.retry_policy
655
- options.apply_defaults metadata: @config.metadata,
662
+
663
+ options.apply_defaults timeout: @config.timeout,
664
+ metadata: @config.metadata,
656
665
  retry_policy: @config.retry_policy
657
666
 
658
667
  @job_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -725,16 +734,20 @@ module Google
725
734
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
726
735
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
- header_params = {
729
- "parent" => request.parent
730
- }
737
+ header_params = {}
738
+ if request.parent
739
+ header_params["parent"] = request.parent
740
+ end
741
+
731
742
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
732
743
  metadata[:"x-goog-request-params"] ||= request_params_header
733
744
 
734
745
  options.apply_defaults timeout: @config.rpcs.batch_delete_jobs.timeout,
735
746
  metadata: metadata,
736
747
  retry_policy: @config.rpcs.batch_delete_jobs.retry_policy
737
- options.apply_defaults metadata: @config.metadata,
748
+
749
+ options.apply_defaults timeout: @config.timeout,
750
+ metadata: @config.metadata,
738
751
  retry_policy: @config.retry_policy
739
752
 
740
753
  @job_service_stub.call_rpc :batch_delete_jobs, request, options: options do |response, operation|
@@ -827,16 +840,20 @@ module Google
827
840
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
828
841
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
829
842
 
830
- header_params = {
831
- "parent" => request.parent
832
- }
843
+ header_params = {}
844
+ if request.parent
845
+ header_params["parent"] = request.parent
846
+ end
847
+
833
848
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
834
849
  metadata[:"x-goog-request-params"] ||= request_params_header
835
850
 
836
851
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
837
852
  metadata: metadata,
838
853
  retry_policy: @config.rpcs.list_jobs.retry_policy
839
- options.apply_defaults metadata: @config.metadata,
854
+
855
+ options.apply_defaults timeout: @config.timeout,
856
+ metadata: @config.metadata,
840
857
  retry_policy: @config.retry_policy
841
858
 
842
859
  @job_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -916,7 +933,7 @@ module Google
916
933
  #
917
934
  # Data types:
918
935
  #
919
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
936
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
920
937
  # * String: string like "any string with backslash escape for quote(\")."
921
938
  # * Number: whole number and floating point number like 10, -1 and -0.01.
922
939
  # * List: list of elements with comma(,) separator surrounded by square
@@ -1126,16 +1143,20 @@ module Google
1126
1143
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1127
1144
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1128
1145
 
1129
- header_params = {
1130
- "parent" => request.parent
1131
- }
1146
+ header_params = {}
1147
+ if request.parent
1148
+ header_params["parent"] = request.parent
1149
+ end
1150
+
1132
1151
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1133
1152
  metadata[:"x-goog-request-params"] ||= request_params_header
1134
1153
 
1135
1154
  options.apply_defaults timeout: @config.rpcs.search_jobs.timeout,
1136
1155
  metadata: metadata,
1137
1156
  retry_policy: @config.rpcs.search_jobs.retry_policy
1138
- options.apply_defaults metadata: @config.metadata,
1157
+
1158
+ options.apply_defaults timeout: @config.timeout,
1159
+ metadata: @config.metadata,
1139
1160
  retry_policy: @config.retry_policy
1140
1161
 
1141
1162
  @job_service_stub.call_rpc :search_jobs, request, options: options do |response, operation|
@@ -1219,7 +1240,7 @@ module Google
1219
1240
  #
1220
1241
  # Data types:
1221
1242
  #
1222
- # * Histogram facet: facet names with format [a-zA-Z][a-zA-Z0-9_]+.
1243
+ # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
1223
1244
  # * String: string like "any string with backslash escape for quote(\")."
1224
1245
  # * Number: whole number and floating point number like 10, -1 and -0.01.
1225
1246
  # * List: list of elements with comma(,) separator surrounded by square
@@ -1429,16 +1450,20 @@ module Google
1429
1450
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
1430
1451
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1431
1452
 
1432
- header_params = {
1433
- "parent" => request.parent
1434
- }
1453
+ header_params = {}
1454
+ if request.parent
1455
+ header_params["parent"] = request.parent
1456
+ end
1457
+
1435
1458
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1436
1459
  metadata[:"x-goog-request-params"] ||= request_params_header
1437
1460
 
1438
1461
  options.apply_defaults timeout: @config.rpcs.search_jobs_for_alert.timeout,
1439
1462
  metadata: metadata,
1440
1463
  retry_policy: @config.rpcs.search_jobs_for_alert.retry_policy
1441
- options.apply_defaults metadata: @config.metadata,
1464
+
1465
+ options.apply_defaults timeout: @config.timeout,
1466
+ metadata: @config.metadata,
1442
1467
  retry_policy: @config.retry_policy
1443
1468
 
1444
1469
  @job_service_stub.call_rpc :search_jobs_for_alert, request, options: options do |response, operation|
@@ -1462,22 +1487,21 @@ module Google
1462
1487
  # Configuration can be applied globally to all clients, or to a single client
1463
1488
  # on construction.
1464
1489
  #
1465
- # # Examples
1466
- #
1467
- # To modify the global config, setting the timeout for create_job
1468
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1469
- #
1470
- # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
1471
- # config.timeout = 10.0
1472
- # config.rpcs.create_job.timeout = 20.0
1473
- # end
1474
- #
1475
- # To apply the above configuration only to a new client:
1476
- #
1477
- # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
1478
- # config.timeout = 10.0
1479
- # config.rpcs.create_job.timeout = 20.0
1480
- # end
1490
+ # @example
1491
+ #
1492
+ # # Modify the global config, setting the timeout for
1493
+ # # create_job to 20 seconds,
1494
+ # # and all remaining timeouts to 10 seconds.
1495
+ # ::Google::Cloud::Talent::V4beta1::JobService::Client.configure do |config|
1496
+ # config.timeout = 10.0
1497
+ # config.rpcs.create_job.timeout = 20.0
1498
+ # end
1499
+ #
1500
+ # # Apply the above configuration only to a new client.
1501
+ # client = ::Google::Cloud::Talent::V4beta1::JobService::Client.new do |config|
1502
+ # config.timeout = 10.0
1503
+ # config.rpcs.create_job.timeout = 20.0
1504
+ # end
1481
1505
  #
1482
1506
  # @!attribute [rw] endpoint
1483
1507
  # The hostname or hostname:port of the service endpoint.
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -160,16 +160,20 @@ module Google
160
160
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
161
161
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
162
 
163
- header_params = {
164
- "name" => request.name
165
- }
163
+ header_params = {}
164
+ if request.name
165
+ header_params["name"] = request.name
166
+ end
167
+
166
168
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
169
  metadata[:"x-goog-request-params"] ||= request_params_header
168
170
 
169
171
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
172
  metadata: metadata,
171
173
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
174
+
175
+ options.apply_defaults timeout: @config.timeout,
176
+ metadata: @config.metadata,
173
177
  retry_policy: @config.retry_policy
174
178
 
175
179
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -230,16 +234,20 @@ module Google
230
234
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
231
235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
236
 
233
- header_params = {
234
- "name" => request.name
235
- }
237
+ header_params = {}
238
+ if request.name
239
+ header_params["name"] = request.name
240
+ end
241
+
236
242
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
243
  metadata[:"x-goog-request-params"] ||= request_params_header
238
244
 
239
245
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
246
  metadata: metadata,
241
247
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
248
+
249
+ options.apply_defaults timeout: @config.timeout,
250
+ metadata: @config.metadata,
243
251
  retry_policy: @config.retry_policy
244
252
 
245
253
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -300,16 +308,20 @@ module Google
300
308
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
301
309
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
302
310
 
303
- header_params = {
304
- "name" => request.name
305
- }
311
+ header_params = {}
312
+ if request.name
313
+ header_params["name"] = request.name
314
+ end
315
+
306
316
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
307
317
  metadata[:"x-goog-request-params"] ||= request_params_header
308
318
 
309
319
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
320
  metadata: metadata,
311
321
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
322
+
323
+ options.apply_defaults timeout: @config.timeout,
324
+ metadata: @config.metadata,
313
325
  retry_policy: @config.retry_policy
314
326
 
315
327
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -375,16 +387,20 @@ module Google
375
387
  gapic_version: ::Google::Cloud::Talent::V4beta1::VERSION
376
388
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
389
 
378
- header_params = {
379
- "name" => request.name
380
- }
390
+ header_params = {}
391
+ if request.name
392
+ header_params["name"] = request.name
393
+ end
394
+
381
395
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
382
396
  metadata[:"x-goog-request-params"] ||= request_params_header
383
397
 
384
398
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
399
  metadata: metadata,
386
400
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
401
+
402
+ options.apply_defaults timeout: @config.timeout,
403
+ metadata: @config.metadata,
388
404
  retry_policy: @config.retry_policy
389
405
 
390
406
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -396,9 +412,9 @@ module Google
396
412
  end
397
413
 
398
414
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
415
+ # Waits until the specified long-running operation is done or reaches at most
416
+ # a specified timeout, returning the latest state. If the operation is
417
+ # already done, the latest state is immediately returned. If the timeout
402
418
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
419
  # timeout is used. If the server does not support this method, it returns
404
420
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -456,7 +472,9 @@ module Google
456
472
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
473
  metadata: metadata,
458
474
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
475
+
476
+ options.apply_defaults timeout: @config.timeout,
477
+ metadata: @config.metadata,
460
478
  retry_policy: @config.retry_policy
461
479
 
462
480
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +499,21 @@ module Google
481
499
  # Configuration can be applied globally to all clients, or to a single client
482
500
  # on construction.
483
501
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
502
+ # @example
503
+ #
504
+ # # Modify the global config, setting the timeout for
505
+ # # list_operations to 20 seconds,
506
+ # # and all remaining timeouts to 10 seconds.
507
+ # ::Google::Longrunning::Operations::Client.configure do |config|
508
+ # config.timeout = 10.0
509
+ # config.rpcs.list_operations.timeout = 20.0
510
+ # end
511
+ #
512
+ # # Apply the above configuration only to a new client.
513
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
514
+ # config.timeout = 10.0
515
+ # config.rpcs.list_operations.timeout = 20.0
516
+ # end
500
517
  #
501
518
  # @!attribute [rw] endpoint
502
519
  # The hostname or hostname:port of the service endpoint.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/job_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'
@@ -17,6 +15,8 @@ require 'google/protobuf/duration_pb'
17
15
  require 'google/protobuf/empty_pb'
18
16
  require 'google/protobuf/field_mask_pb'
19
17
  require 'google/rpc/status_pb'
18
+ require 'google/protobuf'
19
+
20
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
21
21
  add_file("google/cloud/talent/v4beta1/job_service.proto", :syntax => :proto3) do
22
22
  add_message "google.cloud.talent.v4beta1.CreateJobRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # A service handles job management, including job CRUD, enumeration and search.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/profile.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/talent/v4beta1/common_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/wrappers_pb'
12
10
  require 'google/type/date_pb'
13
11
  require 'google/type/postal_address_pb'
14
12
  require 'google/api/annotations_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/talent/v4beta1/profile.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.talent.v4beta1.Profile" do