google-cloud-talent-v4beta1 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +13 -31
  4. data/README.md +9 -4
  5. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +0 -1
  6. data/lib/google/cloud/talent/v4beta1/common_pb.rb +3 -65
  7. data/lib/google/cloud/talent/v4beta1/company_pb.rb +2 -2
  8. data/lib/google/cloud/talent/v4beta1/company_service/client.rb +81 -0
  9. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +2 -1
  10. data/lib/google/cloud/talent/v4beta1/completion/client.rb +15 -0
  11. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +3 -2
  12. data/lib/google/cloud/talent/v4beta1/event_pb.rb +2 -16
  13. data/lib/google/cloud/talent/v4beta1/event_service/client.rb +15 -0
  14. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +2 -1
  15. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +3 -102
  16. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +0 -1
  17. data/lib/google/cloud/talent/v4beta1/job_pb.rb +2 -3
  18. data/lib/google/cloud/talent/v4beta1/job_service/client.rb +219 -23
  19. data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +95 -0
  20. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +10 -2
  21. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +2 -3
  22. data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +81 -0
  23. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +2 -1
  24. data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
  25. data/lib/google/cloud/talent/v4beta1.rb +3 -3
  26. data/proto_docs/google/api/resource.rb +10 -71
  27. data/proto_docs/google/cloud/talent/v4beta1/common.rb +10 -227
  28. data/proto_docs/google/cloud/talent/v4beta1/event.rb +1 -60
  29. data/proto_docs/google/cloud/talent/v4beta1/filters.rb +40 -482
  30. data/proto_docs/google/cloud/talent/v4beta1/histogram.rb +1 -1
  31. data/proto_docs/google/cloud/talent/v4beta1/job.rb +1 -1
  32. data/proto_docs/google/cloud/talent/v4beta1/job_service.rb +64 -16
  33. data/proto_docs/google/cloud/talent/v4beta1/tenant.rb +1 -1
  34. data/proto_docs/google/protobuf/any.rb +3 -3
  35. data/proto_docs/google/type/timeofday.rb +1 -1
  36. metadata +3 -22
  37. data/lib/google/cloud/talent/v4beta1/application_pb.rb +0 -64
  38. data/lib/google/cloud/talent/v4beta1/application_service/client.rb +0 -732
  39. data/lib/google/cloud/talent/v4beta1/application_service/credentials.rb +0 -52
  40. data/lib/google/cloud/talent/v4beta1/application_service/paths.rb +0 -155
  41. data/lib/google/cloud/talent/v4beta1/application_service.rb +0 -50
  42. data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +0 -56
  43. data/lib/google/cloud/talent/v4beta1/application_service_services_pb.rb +0 -54
  44. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +0 -214
  45. data/lib/google/cloud/talent/v4beta1/profile_service/client.rb +0 -1011
  46. data/lib/google/cloud/talent/v4beta1/profile_service/credentials.rb +0 -52
  47. data/lib/google/cloud/talent/v4beta1/profile_service/paths.rb +0 -69
  48. data/lib/google/cloud/talent/v4beta1/profile_service.rb +0 -50
  49. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +0 -92
  50. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +0 -63
  51. data/proto_docs/google/cloud/talent/v4beta1/application.rb +0 -169
  52. data/proto_docs/google/cloud/talent/v4beta1/application_service.rb +0 -122
  53. data/proto_docs/google/cloud/talent/v4beta1/profile.rb +0 -811
  54. data/proto_docs/google/cloud/talent/v4beta1/profile_service.rb +0 -392
  55. data/proto_docs/google/type/date.rb +0 -53
@@ -1,17 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/filters.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/cloud/talent/v4beta1/common_pb'
6
8
  require 'google/protobuf/duration_pb'
7
- require 'google/protobuf/field_mask_pb'
8
- require 'google/protobuf/timestamp_pb'
9
- require 'google/protobuf/wrappers_pb'
10
- require 'google/type/date_pb'
11
9
  require 'google/type/latlng_pb'
12
10
  require 'google/type/timeofday_pb'
13
- require 'google/api/annotations_pb'
14
- require 'google/protobuf'
15
11
 
16
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
13
  add_file("google/cloud/talent/v4beta1/filters.proto", :syntax => :proto3) do
@@ -31,24 +27,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
27
  optional :publish_time_range, :message, 12, "google.cloud.talent.v4beta1.TimestampRange"
32
28
  repeated :excluded_jobs, :string, 13
33
29
  end
34
- add_message "google.cloud.talent.v4beta1.ProfileQuery" do
35
- optional :query, :string, 1
36
- repeated :location_filters, :message, 2, "google.cloud.talent.v4beta1.LocationFilter"
37
- repeated :job_title_filters, :message, 3, "google.cloud.talent.v4beta1.JobTitleFilter"
38
- repeated :employer_filters, :message, 4, "google.cloud.talent.v4beta1.EmployerFilter"
39
- repeated :education_filters, :message, 5, "google.cloud.talent.v4beta1.EducationFilter"
40
- repeated :skill_filters, :message, 6, "google.cloud.talent.v4beta1.SkillFilter"
41
- repeated :work_experience_filter, :message, 7, "google.cloud.talent.v4beta1.WorkExperienceFilter"
42
- repeated :time_filters, :message, 8, "google.cloud.talent.v4beta1.TimeFilter"
43
- optional :hirable_filter, :message, 9, "google.protobuf.BoolValue"
44
- repeated :application_date_filters, :message, 10, "google.cloud.talent.v4beta1.ApplicationDateFilter"
45
- repeated :application_outcome_notes_filters, :message, 11, "google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter"
46
- repeated :application_job_filters, :message, 13, "google.cloud.talent.v4beta1.ApplicationJobFilter"
47
- optional :custom_attribute_filter, :string, 15
48
- optional :candidate_availability_filter, :message, 16, "google.cloud.talent.v4beta1.CandidateAvailabilityFilter"
49
- repeated :availability_filters, :message, 18, "google.cloud.talent.v4beta1.AvailabilityFilter"
50
- repeated :person_name_filters, :message, 17, "google.cloud.talent.v4beta1.PersonNameFilter"
51
- end
52
30
  add_message "google.cloud.talent.v4beta1.LocationFilter" do
53
31
  optional :address, :string, 1
54
32
  optional :region_code, :string, 2
@@ -61,6 +39,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
39
  value :TELECOMMUTE_PREFERENCE_UNSPECIFIED, 0
62
40
  value :TELECOMMUTE_EXCLUDED, 1
63
41
  value :TELECOMMUTE_ALLOWED, 2
42
+ value :TELECOMMUTE_JOBS_EXCLUDED, 3
64
43
  end
65
44
  add_message "google.cloud.talent.v4beta1.CompensationFilter" do
66
45
  optional :type, :enum, 1, "google.cloud.talent.v4beta1.CompensationFilter.FilterType"
@@ -90,69 +69,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
90
69
  value :TRAFFIC_FREE, 1
91
70
  value :BUSY_HOUR, 2
92
71
  end
93
- add_message "google.cloud.talent.v4beta1.JobTitleFilter" do
94
- optional :job_title, :string, 1
95
- optional :negated, :bool, 2
96
- end
97
- add_message "google.cloud.talent.v4beta1.SkillFilter" do
98
- optional :skill, :string, 1
99
- optional :negated, :bool, 2
100
- end
101
- add_message "google.cloud.talent.v4beta1.EmployerFilter" do
102
- optional :employer, :string, 1
103
- optional :mode, :enum, 2, "google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode"
104
- optional :negated, :bool, 3
105
- end
106
- add_enum "google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode" do
107
- value :EMPLOYER_FILTER_MODE_UNSPECIFIED, 0
108
- value :ALL_EMPLOYMENT_RECORDS, 1
109
- value :CURRENT_EMPLOYMENT_RECORDS_ONLY, 2
110
- value :PAST_EMPLOYMENT_RECORDS_ONLY, 3
111
- end
112
- add_message "google.cloud.talent.v4beta1.EducationFilter" do
113
- optional :school, :string, 1
114
- optional :field_of_study, :string, 2
115
- optional :degree_type, :enum, 3, "google.cloud.talent.v4beta1.DegreeType"
116
- optional :negated, :bool, 6
117
- end
118
- add_message "google.cloud.talent.v4beta1.WorkExperienceFilter" do
119
- optional :min_experience, :message, 1, "google.protobuf.Duration"
120
- optional :max_experience, :message, 2, "google.protobuf.Duration"
121
- end
122
- add_message "google.cloud.talent.v4beta1.ApplicationDateFilter" do
123
- optional :start_date, :message, 1, "google.type.Date"
124
- optional :end_date, :message, 2, "google.type.Date"
125
- end
126
- add_message "google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter" do
127
- optional :outcome_notes, :string, 1
128
- optional :negated, :bool, 2
129
- end
130
- add_message "google.cloud.talent.v4beta1.ApplicationJobFilter" do
131
- optional :job_requisition_id, :string, 2
132
- optional :job_title, :string, 3
133
- optional :negated, :bool, 4
134
- end
135
- add_message "google.cloud.talent.v4beta1.TimeFilter" do
136
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
137
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
138
- optional :time_field, :enum, 3, "google.cloud.talent.v4beta1.TimeFilter.TimeField"
139
- end
140
- add_enum "google.cloud.talent.v4beta1.TimeFilter.TimeField" do
141
- value :TIME_FIELD_UNSPECIFIED, 0
142
- value :CREATE_TIME, 1
143
- value :UPDATE_TIME, 2
144
- end
145
- add_message "google.cloud.talent.v4beta1.CandidateAvailabilityFilter" do
146
- optional :negated, :bool, 1
147
- end
148
- add_message "google.cloud.talent.v4beta1.AvailabilityFilter" do
149
- optional :signal_type, :enum, 1, "google.cloud.talent.v4beta1.AvailabilitySignalType"
150
- optional :range, :message, 2, "google.cloud.talent.v4beta1.TimestampRange"
151
- optional :required, :bool, 3
152
- end
153
- add_message "google.cloud.talent.v4beta1.PersonNameFilter" do
154
- optional :person_name, :string, 1
155
- end
156
72
  end
157
73
  end
158
74
 
@@ -161,27 +77,12 @@ module Google
161
77
  module Talent
162
78
  module V4beta1
163
79
  JobQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobQuery").msgclass
164
- ProfileQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileQuery").msgclass
165
80
  LocationFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.LocationFilter").msgclass
166
81
  LocationFilter::TelecommutePreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference").enummodule
167
82
  CompensationFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationFilter").msgclass
168
83
  CompensationFilter::FilterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationFilter.FilterType").enummodule
169
84
  CommuteFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteFilter").msgclass
170
85
  CommuteFilter::RoadTraffic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic").enummodule
171
- JobTitleFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobTitleFilter").msgclass
172
- SkillFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.SkillFilter").msgclass
173
- EmployerFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EmployerFilter").msgclass
174
- EmployerFilter::EmployerFilterMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode").enummodule
175
- EducationFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EducationFilter").msgclass
176
- WorkExperienceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.WorkExperienceFilter").msgclass
177
- ApplicationDateFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationDateFilter").msgclass
178
- ApplicationOutcomeNotesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter").msgclass
179
- ApplicationJobFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationJobFilter").msgclass
180
- TimeFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.TimeFilter").msgclass
181
- TimeFilter::TimeField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.TimeFilter.TimeField").enummodule
182
- CandidateAvailabilityFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CandidateAvailabilityFilter").msgclass
183
- AvailabilityFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.AvailabilityFilter").msgclass
184
- PersonNameFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.PersonNameFilter").msgclass
185
86
  end
186
87
  end
187
88
  end
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/talent/v4beta1/histogram.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,13 +1,12 @@
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
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/talent/v4beta1/common_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
- require 'google/type/postal_address_pb'
9
- require 'google/api/annotations_pb'
10
- require 'google/protobuf'
11
10
 
12
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
12
  add_file("google/cloud/talent/v4beta1/job.proto", :syntax => :proto3) do
@@ -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
 
@@ -223,6 +224,21 @@ module Google
223
224
  #
224
225
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
225
226
  #
227
+ # @example Basic example
228
+ # require "google/cloud/talent/v4beta1"
229
+ #
230
+ # # Create a client object. The client can be reused for multiple calls.
231
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
232
+ #
233
+ # # Create a request. To set request fields, pass in keyword arguments.
234
+ # request = Google::Cloud::Talent::V4beta1::CreateJobRequest.new
235
+ #
236
+ # # Call the create_job method.
237
+ # result = client.create_job request
238
+ #
239
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
240
+ # p result
241
+ #
226
242
  def create_job request, options = nil
227
243
  raise ::ArgumentError, "request must be provided" if request.nil?
228
244
 
@@ -299,6 +315,28 @@ module Google
299
315
  #
300
316
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
301
317
  #
318
+ # @example Basic example
319
+ # require "google/cloud/talent/v4beta1"
320
+ #
321
+ # # Create a client object. The client can be reused for multiple calls.
322
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
323
+ #
324
+ # # Create a request. To set request fields, pass in keyword arguments.
325
+ # request = Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest.new
326
+ #
327
+ # # Call the batch_create_jobs method.
328
+ # result = client.batch_create_jobs request
329
+ #
330
+ # # The returned object is of type Gapic::Operation. You can use this
331
+ # # object to check the status of an operation, cancel it, or wait
332
+ # # for results. Here is how to block until completion:
333
+ # result.wait_until_done! timeout: 60
334
+ # if result.response?
335
+ # p result.response
336
+ # else
337
+ # puts "Error!"
338
+ # end
339
+ #
302
340
  def batch_create_jobs request, options = nil
303
341
  raise ::ArgumentError, "request must be provided" if request.nil?
304
342
 
@@ -378,6 +416,21 @@ module Google
378
416
  #
379
417
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
380
418
  #
419
+ # @example Basic example
420
+ # require "google/cloud/talent/v4beta1"
421
+ #
422
+ # # Create a client object. The client can be reused for multiple calls.
423
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
424
+ #
425
+ # # Create a request. To set request fields, pass in keyword arguments.
426
+ # request = Google::Cloud::Talent::V4beta1::GetJobRequest.new
427
+ #
428
+ # # Call the get_job method.
429
+ # result = client.get_job request
430
+ #
431
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
432
+ # p result
433
+ #
381
434
  def get_job request, options = nil
382
435
  raise ::ArgumentError, "request must be provided" if request.nil?
383
436
 
@@ -459,6 +512,21 @@ module Google
459
512
  #
460
513
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
461
514
  #
515
+ # @example Basic example
516
+ # require "google/cloud/talent/v4beta1"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::Talent::V4beta1::UpdateJobRequest.new
523
+ #
524
+ # # Call the update_job method.
525
+ # result = client.update_job request
526
+ #
527
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
528
+ # p result
529
+ #
462
530
  def update_job request, options = nil
463
531
  raise ::ArgumentError, "request must be provided" if request.nil?
464
532
 
@@ -550,6 +618,28 @@ module Google
550
618
  #
551
619
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
552
620
  #
621
+ # @example Basic example
622
+ # require "google/cloud/talent/v4beta1"
623
+ #
624
+ # # Create a client object. The client can be reused for multiple calls.
625
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
626
+ #
627
+ # # Create a request. To set request fields, pass in keyword arguments.
628
+ # request = Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest.new
629
+ #
630
+ # # Call the batch_update_jobs method.
631
+ # result = client.batch_update_jobs request
632
+ #
633
+ # # The returned object is of type Gapic::Operation. You can use this
634
+ # # object to check the status of an operation, cancel it, or wait
635
+ # # for results. Here is how to block until completion:
636
+ # result.wait_until_done! timeout: 60
637
+ # if result.response?
638
+ # p result.response
639
+ # else
640
+ # puts "Error!"
641
+ # end
642
+ #
553
643
  def batch_update_jobs request, options = nil
554
644
  raise ::ArgumentError, "request must be provided" if request.nil?
555
645
 
@@ -631,6 +721,21 @@ module Google
631
721
  #
632
722
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
633
723
  #
724
+ # @example Basic example
725
+ # require "google/cloud/talent/v4beta1"
726
+ #
727
+ # # Create a client object. The client can be reused for multiple calls.
728
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
729
+ #
730
+ # # Create a request. To set request fields, pass in keyword arguments.
731
+ # request = Google::Cloud::Talent::V4beta1::DeleteJobRequest.new
732
+ #
733
+ # # Call the delete_job method.
734
+ # result = client.delete_job request
735
+ #
736
+ # # The returned object is of type Google::Protobuf::Empty.
737
+ # p result
738
+ #
634
739
  def delete_job request, options = nil
635
740
  raise ::ArgumentError, "request must be provided" if request.nil?
636
741
 
@@ -717,6 +822,21 @@ module Google
717
822
  #
718
823
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
719
824
  #
825
+ # @example Basic example
826
+ # require "google/cloud/talent/v4beta1"
827
+ #
828
+ # # Create a client object. The client can be reused for multiple calls.
829
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
830
+ #
831
+ # # Create a request. To set request fields, pass in keyword arguments.
832
+ # request = Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest.new
833
+ #
834
+ # # Call the batch_delete_jobs method.
835
+ # result = client.batch_delete_jobs request
836
+ #
837
+ # # The returned object is of type Google::Protobuf::Empty.
838
+ # p result
839
+ #
720
840
  def batch_delete_jobs request, options = nil
721
841
  raise ::ArgumentError, "request must be provided" if request.nil?
722
842
 
@@ -789,11 +909,14 @@ module Google
789
909
  #
790
910
  # The fields eligible for filtering are:
791
911
  #
792
- # * `companyName` (Required)
912
+ # * `companyName`
793
913
  # * `requisitionId`
794
914
  # * `status` Available values: OPEN, EXPIRED, ALL. Defaults to
795
915
  # OPEN if no value is specified.
796
916
  #
917
+ # At least one of `companyName` and `requisitionId` must present or an
918
+ # INVALID_ARGUMENT error is thrown.
919
+ #
797
920
  # Sample Query:
798
921
  #
799
922
  # * companyName = "projects/foo/tenants/bar/companies/baz"
@@ -801,6 +924,8 @@ module Google
801
924
  # requisitionId = "req-1"
802
925
  # * companyName = "projects/foo/tenants/bar/companies/baz" AND
803
926
  # status = "EXPIRED"
927
+ # * requisitionId = "req-1"
928
+ # * requisitionId = "req-1" AND status = "EXPIRED"
804
929
  # @param page_token [::String]
805
930
  # The starting point of a query result.
806
931
  # @param page_size [::Integer]
@@ -823,6 +948,27 @@ module Google
823
948
  #
824
949
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
825
950
  #
951
+ # @example Basic example
952
+ # require "google/cloud/talent/v4beta1"
953
+ #
954
+ # # Create a client object. The client can be reused for multiple calls.
955
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
956
+ #
957
+ # # Create a request. To set request fields, pass in keyword arguments.
958
+ # request = Google::Cloud::Talent::V4beta1::ListJobsRequest.new
959
+ #
960
+ # # Call the list_jobs method.
961
+ # result = client.list_jobs request
962
+ #
963
+ # # The returned object is of type Gapic::PagedEnumerable. You can
964
+ # # iterate over all elements by calling #each, and the enumerable
965
+ # # will lazily make API calls to fetch subsequent pages. Other
966
+ # # methods are also available for managing paging directly.
967
+ # result.each do |response|
968
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Job.
969
+ # p response
970
+ # end
971
+ #
826
972
  def list_jobs request, options = nil
827
973
  raise ::ArgumentError, "request must be provided" if request.nil?
828
974
 
@@ -882,7 +1028,7 @@ module Google
882
1028
  # @param options [::Gapic::CallOptions, ::Hash]
883
1029
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
884
1030
  #
885
- # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
1031
+ # @overload search_jobs(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
886
1032
  # Pass arguments to `search_jobs` via keyword arguments. Note that at
887
1033
  # least one keyword argument is required. To specify no parameters, or to keep all
888
1034
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -910,15 +1056,7 @@ module Google
910
1056
  #
911
1057
  # Defaults to false.
912
1058
  # @param require_precise_result_size [::Boolean]
913
- # Controls if the search job request requires the return of a precise
914
- # count of the first 300 results. Setting this to `true` ensures
915
- # consistency in the number of results per page. Best practice is to set this
916
- # value to true if a client allows users to jump directly to a
917
- # non-sequential search results page.
918
- #
919
- # Enabling this flag may adversely impact performance.
920
- #
921
- # Defaults to false.
1059
+ # This field is deprecated.
922
1060
  # @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
923
1061
  # An expression specifies a histogram request against matching jobs.
924
1062
  #
@@ -931,6 +1069,8 @@ module Google
931
1069
  # * `count(numeric_histogram_facet, list of buckets)`: Count the number of
932
1070
  # matching entities within each bucket.
933
1071
  #
1072
+ # A maximum of 200 histogram buckets are supported.
1073
+ #
934
1074
  # Data types:
935
1075
  #
936
1076
  # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
@@ -957,6 +1097,9 @@ module Google
957
1097
  # "FULL_TIME", "PART_TIME".
958
1098
  # * company_size: histogram by {::Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
959
1099
  # "MEDIUM", "BIG".
1100
+ # * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1101
+ # in days.
1102
+ # Must specify list of numeric buckets in spec.
960
1103
  # * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
961
1104
  # in months.
962
1105
  # Must specify list of numeric buckets in spec.
@@ -1010,7 +1153,7 @@ module Google
1010
1153
  # bucket(100000, MAX)])`
1011
1154
  # * `count(string_custom_attribute["some-string-custom-attribute"])`
1012
1155
  # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
1013
- # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
1156
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
1014
1157
  # @param job_view [::Google::Cloud::Talent::V4beta1::JobView]
1015
1158
  # The desired job attributes returned for jobs in the search response.
1016
1159
  # Defaults to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
@@ -1098,6 +1241,14 @@ module Google
1098
1241
  # Controls over how job documents get ranked on top of existing relevance
1099
1242
  # score (determined by API algorithm).
1100
1243
  # @param disable_keyword_match [::Boolean]
1244
+ # This field is deprecated. Please use
1245
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
1246
+ #
1247
+ # To migrate, disable_keyword_match set to false maps to
1248
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
1249
+ # true maps to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
1250
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
1251
+ #
1101
1252
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4beta1::Job#title Job.title},
1102
1253
  # {::Google::Cloud::Talent::V4beta1::Job#description Job.description}, {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1103
1254
  # {::Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -1117,6 +1268,11 @@ module Google
1117
1268
  # requests.
1118
1269
  #
1119
1270
  # Defaults to false.
1271
+ # @param keyword_match_mode [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode]
1272
+ # Controls what keyword match options to use.
1273
+ #
1274
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
1275
+ # is specified.
1120
1276
  #
1121
1277
  # @yield [response, operation] Access the result along with the RPC operation
1122
1278
  # @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
@@ -1126,6 +1282,21 @@ module Google
1126
1282
  #
1127
1283
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1128
1284
  #
1285
+ # @example Basic example
1286
+ # require "google/cloud/talent/v4beta1"
1287
+ #
1288
+ # # Create a client object. The client can be reused for multiple calls.
1289
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
1290
+ #
1291
+ # # Create a request. To set request fields, pass in keyword arguments.
1292
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
1293
+ #
1294
+ # # Call the search_jobs method.
1295
+ # result = client.search_jobs request
1296
+ #
1297
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
1298
+ # p result
1299
+ #
1129
1300
  def search_jobs request, options = nil
1130
1301
  raise ::ArgumentError, "request must be provided" if request.nil?
1131
1302
 
@@ -1189,7 +1360,7 @@ module Google
1189
1360
  # @param options [::Gapic::CallOptions, ::Hash]
1190
1361
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1191
1362
  #
1192
- # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil)
1363
+ # @overload search_jobs_for_alert(parent: nil, search_mode: nil, request_metadata: nil, job_query: nil, enable_broadening: nil, require_precise_result_size: nil, histogram_queries: nil, job_view: nil, offset: nil, page_size: nil, page_token: nil, order_by: nil, diversification_level: nil, custom_ranking_info: nil, disable_keyword_match: nil, keyword_match_mode: nil)
1193
1364
  # Pass arguments to `search_jobs_for_alert` via keyword arguments. Note that at
1194
1365
  # least one keyword argument is required. To specify no parameters, or to keep all
1195
1366
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1217,15 +1388,7 @@ module Google
1217
1388
  #
1218
1389
  # Defaults to false.
1219
1390
  # @param require_precise_result_size [::Boolean]
1220
- # Controls if the search job request requires the return of a precise
1221
- # count of the first 300 results. Setting this to `true` ensures
1222
- # consistency in the number of results per page. Best practice is to set this
1223
- # value to true if a client allows users to jump directly to a
1224
- # non-sequential search results page.
1225
- #
1226
- # Enabling this flag may adversely impact performance.
1227
- #
1228
- # Defaults to false.
1391
+ # This field is deprecated.
1229
1392
  # @param histogram_queries [::Array<::Google::Cloud::Talent::V4beta1::HistogramQuery, ::Hash>]
1230
1393
  # An expression specifies a histogram request against matching jobs.
1231
1394
  #
@@ -1238,6 +1401,8 @@ module Google
1238
1401
  # * `count(numeric_histogram_facet, list of buckets)`: Count the number of
1239
1402
  # matching entities within each bucket.
1240
1403
  #
1404
+ # A maximum of 200 histogram buckets are supported.
1405
+ #
1241
1406
  # Data types:
1242
1407
  #
1243
1408
  # * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`.
@@ -1264,6 +1429,9 @@ module Google
1264
1429
  # "FULL_TIME", "PART_TIME".
1265
1430
  # * company_size: histogram by {::Google::Cloud::Talent::V4beta1::CompanySize CompanySize}, for example, "SMALL",
1266
1431
  # "MEDIUM", "BIG".
1432
+ # * publish_time_in_day: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1433
+ # in days.
1434
+ # Must specify list of numeric buckets in spec.
1267
1435
  # * publish_time_in_month: histogram by the {::Google::Cloud::Talent::V4beta1::Job#posting_publish_time Job.posting_publish_time}
1268
1436
  # in months.
1269
1437
  # Must specify list of numeric buckets in spec.
@@ -1317,7 +1485,7 @@ module Google
1317
1485
  # bucket(100000, MAX)])`
1318
1486
  # * `count(string_custom_attribute["some-string-custom-attribute"])`
1319
1487
  # * `count(numeric_custom_attribute["some-numeric-custom-attribute"],
1320
- # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`
1488
+ # [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])`
1321
1489
  # @param job_view [::Google::Cloud::Talent::V4beta1::JobView]
1322
1490
  # The desired job attributes returned for jobs in the search response.
1323
1491
  # Defaults to {::Google::Cloud::Talent::V4beta1::JobView::JOB_VIEW_SMALL JobView.JOB_VIEW_SMALL} if no value is specified.
@@ -1405,6 +1573,14 @@ module Google
1405
1573
  # Controls over how job documents get ranked on top of existing relevance
1406
1574
  # score (determined by API algorithm).
1407
1575
  # @param disable_keyword_match [::Boolean]
1576
+ # This field is deprecated. Please use
1577
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} going forward.
1578
+ #
1579
+ # To migrate, disable_keyword_match set to false maps to
1580
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL}, and disable_keyword_match set to
1581
+ # true maps to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_DISABLED KeywordMatchMode.KEYWORD_MATCH_DISABLED}. If
1582
+ # {::Google::Cloud::Talent::V4beta1::SearchJobsRequest#keyword_match_mode SearchJobsRequest.keyword_match_mode} is set, this field is ignored.
1583
+ #
1408
1584
  # Controls whether to disable exact keyword match on {::Google::Cloud::Talent::V4beta1::Job#title Job.title},
1409
1585
  # {::Google::Cloud::Talent::V4beta1::Job#description Job.description}, {::Google::Cloud::Talent::V4beta1::Job#company_display_name Job.company_display_name}, {::Google::Cloud::Talent::V4beta1::Job#addresses Job.addresses},
1410
1586
  # {::Google::Cloud::Talent::V4beta1::Job#qualifications Job.qualifications}. When disable keyword match is turned off, a
@@ -1424,6 +1600,11 @@ module Google
1424
1600
  # requests.
1425
1601
  #
1426
1602
  # Defaults to false.
1603
+ # @param keyword_match_mode [::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode]
1604
+ # Controls what keyword match options to use.
1605
+ #
1606
+ # Defaults to {::Google::Cloud::Talent::V4beta1::SearchJobsRequest::KeywordMatchMode::KEYWORD_MATCH_ALL KeywordMatchMode.KEYWORD_MATCH_ALL} if no value
1607
+ # is specified.
1427
1608
  #
1428
1609
  # @yield [response, operation] Access the result along with the RPC operation
1429
1610
  # @yieldparam response [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
@@ -1433,6 +1614,21 @@ module Google
1433
1614
  #
1434
1615
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1435
1616
  #
1617
+ # @example Basic example
1618
+ # require "google/cloud/talent/v4beta1"
1619
+ #
1620
+ # # Create a client object. The client can be reused for multiple calls.
1621
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
1622
+ #
1623
+ # # Create a request. To set request fields, pass in keyword arguments.
1624
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
1625
+ #
1626
+ # # Call the search_jobs_for_alert method.
1627
+ # result = client.search_jobs_for_alert request
1628
+ #
1629
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
1630
+ # p result
1631
+ #
1436
1632
  def search_jobs_for_alert request, options = nil
1437
1633
  raise ::ArgumentError, "request must be provided" if request.nil?
1438
1634