google-cloud-talent-v4 0.4.3 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/talent/v4/common_pb.rb +5 -2
  3. data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
  4. data/lib/google/cloud/talent/v4/company_service/client.rb +106 -15
  5. data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
  6. data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
  7. data/lib/google/cloud/talent/v4/completion/client.rb +20 -3
  8. data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
  9. data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
  10. data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
  11. data/lib/google/cloud/talent/v4/event_service/client.rb +20 -3
  12. data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
  13. data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
  14. data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
  15. data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
  16. data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
  17. data/lib/google/cloud/talent/v4/job_service/client.rb +273 -37
  18. data/lib/google/cloud/talent/v4/job_service/operations.rb +115 -12
  19. data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
  20. data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
  21. data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
  22. data/lib/google/cloud/talent/v4/tenant_service/client.rb +106 -15
  23. data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
  24. data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
  25. data/lib/google/cloud/talent/v4/version.rb +1 -1
  26. data/proto_docs/google/cloud/talent/v4/common.rb +12 -1
  27. data/proto_docs/google/cloud/talent/v4/filters.rb +12 -8
  28. data/proto_docs/google/cloud/talent/v4/job.rb +10 -1
  29. data/proto_docs/google/cloud/talent/v4/job_service.rb +82 -8
  30. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0218310ff353868d4416fff4c18e1860801f05f36e8346ac413bf1554c5088d
4
- data.tar.gz: 5abea7b89ea6825f827fe4aa4bceccaa9492494e7b3ed8b7ef508875abc8d2a3
3
+ metadata.gz: ad781f9242cf907508322470bd01224dadc853650c09dc0880029e0bf9f8662d
4
+ data.tar.gz: 077ca4b8c031806e72e2398aaa80fb4065b89a0ea515edba315f064795d26310
5
5
  SHA512:
6
- metadata.gz: 422ab4d0c5db640ab8e04c43c608021e7370bc0ab42ebc4295d4f753535ea2f3ca33e63e32f8c25394fe6a8b045988e82102dcc8db63baa491462f91ec3341d7
7
- data.tar.gz: 626c0adc16359572e2708178c3a4c9cf5c8fb354ab1d8b2d68a48c6256b275cdd959fd9aa8e0cebfeed5e7d6947c1ccb74beb99408d4d31772def912131c35c9
6
+ metadata.gz: 48bf7661ad5a63432c67ae80d1160a97e7f6773688312d8f7aacf8b6f5fc797747feb14e1ab1dc82838e3e3c43c5412302934f55320d06d51d23351ec054b402
7
+ data.tar.gz: 295d2ce74ea0354c87ac1ea06ec31472fb66fb3bcd0968bac610bd416a6ca6ef501b9a5017ba6534730a9fd9ae945d2932602f75bdd95b9cdd9b671efbc414f3
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/protobuf/wrappers_pb'
@@ -10,6 +8,8 @@ require 'google/type/latlng_pb'
10
8
  require 'google/type/money_pb'
11
9
  require 'google/type/postal_address_pb'
12
10
  require 'google/api/annotations_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/talent/v4/common.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.talent.v4.TimestampRange" do
@@ -238,6 +238,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
238
238
  value :COMMUTE_METHOD_UNSPECIFIED, 0
239
239
  value :DRIVING, 1
240
240
  value :TRANSIT, 2
241
+ value :WALKING, 3
242
+ value :CYCLING, 4
243
+ value :TRANSIT_ACCESSIBLE, 5
241
244
  end
242
245
  end
243
246
  end
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/company.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/v4/common_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/talent/v4/company.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.talent.v4.Company" do
@@ -197,6 +197,21 @@ module Google
197
197
  #
198
198
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
199
199
  #
200
+ # @example Basic example
201
+ # require "google/cloud/talent/v4"
202
+ #
203
+ # # Create a client object. The client can be reused for multiple calls.
204
+ # client = Google::Cloud::Talent::V4::CompanyService::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Talent::V4::CreateCompanyRequest.new
208
+ #
209
+ # # Call the create_company method.
210
+ # result = client.create_company request
211
+ #
212
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
213
+ # p result
214
+ #
200
215
  def create_company request, options = nil
201
216
  raise ::ArgumentError, "request must be provided" if request.nil?
202
217
 
@@ -214,9 +229,11 @@ module Google
214
229
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
215
230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
216
231
 
217
- header_params = {
218
- "parent" => request.parent
219
- }
232
+ header_params = {}
233
+ if request.parent
234
+ header_params["parent"] = request.parent
235
+ end
236
+
220
237
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
221
238
  metadata[:"x-goog-request-params"] ||= request_params_header
222
239
 
@@ -269,6 +286,21 @@ module Google
269
286
  #
270
287
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
271
288
  #
289
+ # @example Basic example
290
+ # require "google/cloud/talent/v4"
291
+ #
292
+ # # Create a client object. The client can be reused for multiple calls.
293
+ # client = Google::Cloud::Talent::V4::CompanyService::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Cloud::Talent::V4::GetCompanyRequest.new
297
+ #
298
+ # # Call the get_company method.
299
+ # result = client.get_company request
300
+ #
301
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
302
+ # p result
303
+ #
272
304
  def get_company request, options = nil
273
305
  raise ::ArgumentError, "request must be provided" if request.nil?
274
306
 
@@ -286,9 +318,11 @@ module Google
286
318
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
287
319
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
288
320
 
289
- header_params = {
290
- "name" => request.name
291
- }
321
+ header_params = {}
322
+ if request.name
323
+ header_params["name"] = request.name
324
+ end
325
+
292
326
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
293
327
  metadata[:"x-goog-request-params"] ||= request_params_header
294
328
 
@@ -345,6 +379,21 @@ module Google
345
379
  #
346
380
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
347
381
  #
382
+ # @example Basic example
383
+ # require "google/cloud/talent/v4"
384
+ #
385
+ # # Create a client object. The client can be reused for multiple calls.
386
+ # client = Google::Cloud::Talent::V4::CompanyService::Client.new
387
+ #
388
+ # # Create a request. To set request fields, pass in keyword arguments.
389
+ # request = Google::Cloud::Talent::V4::UpdateCompanyRequest.new
390
+ #
391
+ # # Call the update_company method.
392
+ # result = client.update_company request
393
+ #
394
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
395
+ # p result
396
+ #
348
397
  def update_company request, options = nil
349
398
  raise ::ArgumentError, "request must be provided" if request.nil?
350
399
 
@@ -362,9 +411,11 @@ module Google
362
411
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
363
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
364
413
 
365
- header_params = {
366
- "company.name" => request.company.name
367
- }
414
+ header_params = {}
415
+ if request.company&.name
416
+ header_params["company.name"] = request.company.name
417
+ end
418
+
368
419
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
369
420
  metadata[:"x-goog-request-params"] ||= request_params_header
370
421
 
@@ -418,6 +469,21 @@ module Google
418
469
  #
419
470
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
420
471
  #
472
+ # @example Basic example
473
+ # require "google/cloud/talent/v4"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::Talent::V4::CompanyService::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::Talent::V4::DeleteCompanyRequest.new
480
+ #
481
+ # # Call the delete_company method.
482
+ # result = client.delete_company request
483
+ #
484
+ # # The returned object is of type Google::Protobuf::Empty.
485
+ # p result
486
+ #
421
487
  def delete_company request, options = nil
422
488
  raise ::ArgumentError, "request must be provided" if request.nil?
423
489
 
@@ -435,9 +501,11 @@ module Google
435
501
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
436
502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
437
503
 
438
- header_params = {
439
- "name" => request.name
440
- }
504
+ header_params = {}
505
+ if request.name
506
+ header_params["name"] = request.name
507
+ end
508
+
441
509
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
442
510
  metadata[:"x-goog-request-params"] ||= request_params_header
443
511
 
@@ -501,6 +569,27 @@ module Google
501
569
  #
502
570
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
503
571
  #
572
+ # @example Basic example
573
+ # require "google/cloud/talent/v4"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::Talent::V4::CompanyService::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::Talent::V4::ListCompaniesRequest.new
580
+ #
581
+ # # Call the list_companies method.
582
+ # result = client.list_companies request
583
+ #
584
+ # # The returned object is of type Gapic::PagedEnumerable. You can
585
+ # # iterate over all elements by calling #each, and the enumerable
586
+ # # will lazily make API calls to fetch subsequent pages. Other
587
+ # # methods are also available for managing paging directly.
588
+ # result.each do |response|
589
+ # # Each element is of type ::Google::Cloud::Talent::V4::Company.
590
+ # p response
591
+ # end
592
+ #
504
593
  def list_companies request, options = nil
505
594
  raise ::ArgumentError, "request must be provided" if request.nil?
506
595
 
@@ -518,9 +607,11 @@ module Google
518
607
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
519
608
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
609
 
521
- header_params = {
522
- "parent" => request.parent
523
- }
610
+ header_params = {}
611
+ if request.parent
612
+ header_params["parent"] = request.parent
613
+ end
614
+
524
615
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
525
616
  metadata[:"x-goog-request-params"] ||= request_params_header
526
617
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/company_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'
@@ -11,6 +9,8 @@ require 'google/cloud/talent/v4/common_pb'
11
9
  require 'google/cloud/talent/v4/company_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/talent/v4/company_service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.talent.v4.CreateCompanyRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # A service that handles company management, including CRUD and enumeration.
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
@@ -207,6 +207,21 @@ module Google
207
207
  #
208
208
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
209
209
  #
210
+ # @example Basic example
211
+ # require "google/cloud/talent/v4"
212
+ #
213
+ # # Create a client object. The client can be reused for multiple calls.
214
+ # client = Google::Cloud::Talent::V4::Completion::Client.new
215
+ #
216
+ # # Create a request. To set request fields, pass in keyword arguments.
217
+ # request = Google::Cloud::Talent::V4::CompleteQueryRequest.new
218
+ #
219
+ # # Call the complete_query method.
220
+ # result = client.complete_query request
221
+ #
222
+ # # The returned object is of type Google::Cloud::Talent::V4::CompleteQueryResponse.
223
+ # p result
224
+ #
210
225
  def complete_query request, options = nil
211
226
  raise ::ArgumentError, "request must be provided" if request.nil?
212
227
 
@@ -224,9 +239,11 @@ module Google
224
239
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
225
240
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
226
241
 
227
- header_params = {
228
- "tenant" => request.tenant
229
- }
242
+ header_params = {}
243
+ if request.tenant
244
+ header_params["tenant"] = request.tenant
245
+ end
246
+
230
247
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
231
248
  metadata[:"x-goog-request-params"] ||= request_params_header
232
249
 
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/completion_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/talent/v4/common_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/talent/v4/completion_service.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.talent.v4.CompleteQueryRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # A service handles auto completion.
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,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/event.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/talent/v4/event.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.talent.v4.ClientEvent" do
@@ -187,6 +187,21 @@ module Google
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
189
189
  #
190
+ # @example Basic example
191
+ # require "google/cloud/talent/v4"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::Talent::V4::EventService::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Talent::V4::CreateClientEventRequest.new
198
+ #
199
+ # # Call the create_client_event method.
200
+ # result = client.create_client_event request
201
+ #
202
+ # # The returned object is of type Google::Cloud::Talent::V4::ClientEvent.
203
+ # p result
204
+ #
190
205
  def create_client_event request, options = nil
191
206
  raise ::ArgumentError, "request must be provided" if request.nil?
192
207
 
@@ -204,9 +219,11 @@ module Google
204
219
  gapic_version: ::Google::Cloud::Talent::V4::VERSION
205
220
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
206
221
 
207
- header_params = {
208
- "parent" => request.parent
209
- }
222
+ header_params = {}
223
+ if request.parent
224
+ header_params["parent"] = request.parent
225
+ end
226
+
210
227
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
211
228
  metadata[:"x-goog-request-params"] ||= request_params_header
212
229
 
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/event_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'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/cloud/talent/v4/event_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/talent/v4/event_service.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.talent.v4.CreateClientEventRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # A service handles client event report.
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,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/filters.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/cloud/talent/v4/common_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/type/latlng_pb'
10
8
  require 'google/type/timeofday_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/v4/filters.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.talent.v4.JobQuery" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/histogram.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/talent/v4/histogram.proto", :syntax => :proto3) do
9
9
  add_message "google.cloud.talent.v4.HistogramQuery" do
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4/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/v4/common_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/talent/v4/job.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.talent.v4.Job" do