google-cloud-talent 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +69 -0
  5. data/lib/google/cloud/talent.rb +456 -0
  6. data/lib/google/cloud/talent/v4beta1.rb +484 -0
  7. data/lib/google/cloud/talent/v4beta1/batch_pb.rb +21 -0
  8. data/lib/google/cloud/talent/v4beta1/common_pb.rb +264 -0
  9. data/lib/google/cloud/talent/v4beta1/company_pb.rb +39 -0
  10. data/lib/google/cloud/talent/v4beta1/company_service_client.rb +479 -0
  11. data/lib/google/cloud/talent/v4beta1/company_service_client_config.json +51 -0
  12. data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +53 -0
  13. data/lib/google/cloud/talent/v4beta1/company_service_services_pb.rb +56 -0
  14. data/lib/google/cloud/talent/v4beta1/completion_client.rb +303 -0
  15. data/lib/google/cloud/talent/v4beta1/completion_client_config.json +31 -0
  16. data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +53 -0
  17. data/lib/google/cloud/talent/v4beta1/completion_service_services_pb.rb +48 -0
  18. data/lib/google/cloud/talent/v4beta1/credentials.rb +42 -0
  19. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +890 -0
  20. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +125 -0
  21. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +130 -0
  22. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +153 -0
  23. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +252 -0
  24. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +34 -0
  25. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +853 -0
  26. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +56 -0
  27. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +409 -0
  28. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +732 -0
  29. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +1125 -0
  30. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +392 -0
  31. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/resume_service.rb +98 -0
  32. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +68 -0
  33. data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +119 -0
  34. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/duration.rb +91 -0
  35. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/empty.rb +29 -0
  36. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/field_mask.rb +230 -0
  37. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/timestamp.rb +109 -0
  38. data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/wrappers.rb +34 -0
  39. data/lib/google/cloud/talent/v4beta1/doc/google/type/date.rb +39 -0
  40. data/lib/google/cloud/talent/v4beta1/doc/google/type/latlng.rb +65 -0
  41. data/lib/google/cloud/talent/v4beta1/doc/google/type/money.rb +36 -0
  42. data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +126 -0
  43. data/lib/google/cloud/talent/v4beta1/doc/google/type/timeofday.rb +38 -0
  44. data/lib/google/cloud/talent/v4beta1/event_pb.rb +75 -0
  45. data/lib/google/cloud/talent/v4beta1/event_service_client.rb +239 -0
  46. data/lib/google/cloud/talent/v4beta1/event_service_client_config.json +31 -0
  47. data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +24 -0
  48. data/lib/google/cloud/talent/v4beta1/event_service_services_pb.rb +53 -0
  49. data/lib/google/cloud/talent/v4beta1/filters_pb.rb +182 -0
  50. data/lib/google/cloud/talent/v4beta1/helpers.rb +90 -0
  51. data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +28 -0
  52. data/lib/google/cloud/talent/v4beta1/job_pb.rb +69 -0
  53. data/lib/google/cloud/talent/v4beta1/job_service_client.rb +1295 -0
  54. data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +66 -0
  55. data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +142 -0
  56. data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +88 -0
  57. data/lib/google/cloud/talent/v4beta1/profile_pb.rb +249 -0
  58. data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +757 -0
  59. data/lib/google/cloud/talent/v4beta1/profile_service_client_config.json +56 -0
  60. data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +81 -0
  61. data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +65 -0
  62. data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +296 -0
  63. data/lib/google/cloud/talent/v4beta1/resume_service_client_config.json +31 -0
  64. data/lib/google/cloud/talent/v4beta1/resume_service_pb.rb +37 -0
  65. data/lib/google/cloud/talent/v4beta1/resume_service_services_pb.rb +75 -0
  66. data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +31 -0
  67. data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +466 -0
  68. data/lib/google/cloud/talent/v4beta1/tenant_service_client_config.json +51 -0
  69. data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +52 -0
  70. data/lib/google/cloud/talent/v4beta1/tenant_service_services_pb.rb +55 -0
  71. metadata +197 -0
@@ -0,0 +1,75 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/event.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.cloud.talent.v4beta1.ClientEvent" do
11
+ optional :request_id, :string, 1
12
+ optional :event_id, :string, 2
13
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
14
+ map :extra_info, :string, :string, 7
15
+ oneof :event do
16
+ optional :job_event, :message, 5, "google.cloud.talent.v4beta1.JobEvent"
17
+ optional :profile_event, :message, 6, "google.cloud.talent.v4beta1.ProfileEvent"
18
+ end
19
+ end
20
+ add_message "google.cloud.talent.v4beta1.JobEvent" do
21
+ optional :type, :enum, 1, "google.cloud.talent.v4beta1.JobEvent.JobEventType"
22
+ repeated :jobs, :string, 2
23
+ end
24
+ add_enum "google.cloud.talent.v4beta1.JobEvent.JobEventType" do
25
+ value :JOB_EVENT_TYPE_UNSPECIFIED, 0
26
+ value :IMPRESSION, 1
27
+ value :VIEW, 2
28
+ value :VIEW_REDIRECT, 3
29
+ value :APPLICATION_START, 4
30
+ value :APPLICATION_FINISH, 5
31
+ value :APPLICATION_QUICK_SUBMISSION, 6
32
+ value :APPLICATION_REDIRECT, 7
33
+ value :APPLICATION_START_FROM_SEARCH, 8
34
+ value :APPLICATION_REDIRECT_FROM_SEARCH, 9
35
+ value :APPLICATION_COMPANY_SUBMIT, 10
36
+ value :BOOKMARK, 11
37
+ value :NOTIFICATION, 12
38
+ value :HIRED, 13
39
+ value :SENT_CV, 14
40
+ value :INTERVIEW_GRANTED, 15
41
+ value :NOT_INTERESTED, 16
42
+ end
43
+ add_message "google.cloud.talent.v4beta1.ProfileEvent" do
44
+ optional :type, :enum, 1, "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType"
45
+ repeated :profiles, :string, 2
46
+ optional :job_id, :string, 3
47
+ end
48
+ add_enum "google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType" do
49
+ value :PROFILE_EVENT_TYPE_UNSPECIFIED, 0
50
+ value :IMPRESSION, 1
51
+ value :VIEW, 2
52
+ value :BOOKMARK, 3
53
+ value :COMMENT_ADDED, 4
54
+ value :EMAIL_SENT, 5
55
+ value :RESUME_VIEWED, 6
56
+ value :ADD_TO_JOB, 7
57
+ value :POSITIVE_REACTION_TO_PROFILE, 8
58
+ value :NEGATIVE_REACTION_TO_PROFILE, 9
59
+ value :SCREEN, 10
60
+ end
61
+ end
62
+
63
+ module Google
64
+ module Cloud
65
+ module Talent
66
+ module V4beta1
67
+ ClientEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ClientEvent").msgclass
68
+ JobEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent").msgclass
69
+ JobEvent::JobEventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobEvent.JobEventType").enummodule
70
+ ProfileEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent").msgclass
71
+ ProfileEvent::ProfileEventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType").enummodule
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,239 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # EDITING INSTRUCTIONS
16
+ # This file was generated from the file
17
+ # https://github.com/googleapis/googleapis/blob/master/google/cloud/talent/v4beta1/event_service.proto,
18
+ # and updates to that file get reflected here through a refresh process.
19
+ # For the short term, the refresh process will only be runnable by Google
20
+ # engineers.
21
+
22
+
23
+ require "json"
24
+ require "pathname"
25
+
26
+ require "google/gax"
27
+
28
+ require "google/cloud/talent/v4beta1/event_service_pb"
29
+ require "google/cloud/talent/v4beta1/credentials"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Talent
34
+ module V4beta1
35
+ # A service handles client event report.
36
+ #
37
+ # @!attribute [r] event_service_stub
38
+ # @return [Google::Cloud::Talent::V4beta1::EventService::Stub]
39
+ class EventServiceClient
40
+ # @private
41
+ attr_reader :event_service_stub
42
+
43
+ # The default address of the service.
44
+ SERVICE_ADDRESS = "jobs.googleapis.com".freeze
45
+
46
+ # The default port of the service.
47
+ DEFAULT_SERVICE_PORT = 443
48
+
49
+ # The default set of gRPC interceptors.
50
+ GRPC_INTERCEPTORS = []
51
+
52
+ DEFAULT_TIMEOUT = 30
53
+
54
+ # The scopes needed to make gRPC calls to all of the methods defined in
55
+ # this service.
56
+ ALL_SCOPES = [
57
+ "https://www.googleapis.com/auth/cloud-platform",
58
+ "https://www.googleapis.com/auth/jobs"
59
+ ].freeze
60
+
61
+
62
+ PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
63
+ "projects/{project}"
64
+ )
65
+
66
+ private_constant :PROJECT_PATH_TEMPLATE
67
+
68
+ # Returns a fully-qualified project resource name string.
69
+ # @param project [String]
70
+ # @return [String]
71
+ def self.project_path project
72
+ PROJECT_PATH_TEMPLATE.render(
73
+ :"project" => project
74
+ )
75
+ end
76
+
77
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
78
+ # Provides the means for authenticating requests made by the client. This parameter can
79
+ # be many types.
80
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
81
+ # authenticating requests made by this client.
82
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
83
+ # credentials for this client.
84
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
85
+ # credentials for this client.
86
+ # A `GRPC::Core::Channel` will be used to make calls through.
87
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
88
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
89
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
90
+ # metadata for requests, generally, to give OAuth credentials.
91
+ # @param scopes [Array<String>]
92
+ # The OAuth scopes for this service. This parameter is ignored if
93
+ # an updater_proc is supplied.
94
+ # @param client_config [Hash]
95
+ # A Hash for call options for each method. See
96
+ # Google::Gax#construct_settings for the structure of
97
+ # this data. Falls back to the default config if not specified
98
+ # or the specified config is missing data points.
99
+ # @param timeout [Numeric]
100
+ # The default timeout, in seconds, for calls made through this client.
101
+ # @param metadata [Hash]
102
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
103
+ # @param exception_transformer [Proc]
104
+ # An optional proc that intercepts any exceptions raised during an API call to inject
105
+ # custom error handling.
106
+ def initialize \
107
+ credentials: nil,
108
+ scopes: ALL_SCOPES,
109
+ client_config: {},
110
+ timeout: DEFAULT_TIMEOUT,
111
+ metadata: nil,
112
+ exception_transformer: nil,
113
+ lib_name: nil,
114
+ lib_version: ""
115
+ # These require statements are intentionally placed here to initialize
116
+ # the gRPC module only when it's required.
117
+ # See https://github.com/googleapis/toolkit/issues/446
118
+ require "google/gax/grpc"
119
+ require "google/cloud/talent/v4beta1/event_service_services_pb"
120
+
121
+ credentials ||= Google::Cloud::Talent::V4beta1::Credentials.default
122
+
123
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
124
+ updater_proc = Google::Cloud::Talent::V4beta1::Credentials.new(credentials).updater_proc
125
+ end
126
+ if credentials.is_a?(GRPC::Core::Channel)
127
+ channel = credentials
128
+ end
129
+ if credentials.is_a?(GRPC::Core::ChannelCredentials)
130
+ chan_creds = credentials
131
+ end
132
+ if credentials.is_a?(Proc)
133
+ updater_proc = credentials
134
+ end
135
+ if credentials.is_a?(Google::Auth::Credentials)
136
+ updater_proc = credentials.updater_proc
137
+ end
138
+
139
+ package_version = Gem.loaded_specs['google-cloud-talent'].version.version
140
+
141
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
143
+ google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
144
+ google_api_client << " grpc/#{GRPC::VERSION}"
145
+ google_api_client.freeze
146
+
147
+ headers = { :"x-goog-api-client" => google_api_client }
148
+ headers.merge!(metadata) unless metadata.nil?
149
+ client_config_file = Pathname.new(__dir__).join(
150
+ "event_service_client_config.json"
151
+ )
152
+ defaults = client_config_file.open do |f|
153
+ Google::Gax.construct_settings(
154
+ "google.cloud.talent.v4beta1.EventService",
155
+ JSON.parse(f.read),
156
+ client_config,
157
+ Google::Gax::Grpc::STATUS_CODE_NAMES,
158
+ timeout,
159
+ errors: Google::Gax::Grpc::API_ERRORS,
160
+ metadata: headers
161
+ )
162
+ end
163
+
164
+ # Allow overriding the service path/port in subclasses.
165
+ service_path = self.class::SERVICE_ADDRESS
166
+ port = self.class::DEFAULT_SERVICE_PORT
167
+ interceptors = self.class::GRPC_INTERCEPTORS
168
+ @event_service_stub = Google::Gax::Grpc.create_stub(
169
+ service_path,
170
+ port,
171
+ chan_creds: chan_creds,
172
+ channel: channel,
173
+ updater_proc: updater_proc,
174
+ scopes: scopes,
175
+ interceptors: interceptors,
176
+ &Google::Cloud::Talent::V4beta1::EventService::Stub.method(:new)
177
+ )
178
+
179
+ @create_client_event = Google::Gax.create_api_call(
180
+ @event_service_stub.method(:create_client_event),
181
+ defaults["create_client_event"],
182
+ exception_transformer: exception_transformer
183
+ )
184
+ end
185
+
186
+ # Service calls
187
+
188
+ # Report events issued when end user interacts with customer's application
189
+ # that uses Cloud Talent Solution. You may inspect the created events in
190
+ # [self service
191
+ # tools](https://console.cloud.google.com/talent-solution/overview).
192
+ # [Learn
193
+ # more](https://cloud.google.com/talent-solution/job-search/docs/management-tools)
194
+ # about self service tools.
195
+ #
196
+ # @param parent [String]
197
+ # Parent project name.
198
+ # @param client_event [Google::Cloud::Talent::V4beta1::ClientEvent | Hash]
199
+ # Required.
200
+ #
201
+ # Events issued when end user interacts with customer's application that
202
+ # uses Cloud Talent Solution.
203
+ # A hash of the same form as `Google::Cloud::Talent::V4beta1::ClientEvent`
204
+ # can also be provided.
205
+ # @param options [Google::Gax::CallOptions]
206
+ # Overrides the default settings for this call, e.g, timeout,
207
+ # retries, etc.
208
+ # @yield [result, operation] Access the result along with the RPC operation
209
+ # @yieldparam result [Google::Cloud::Talent::V4beta1::ClientEvent]
210
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
211
+ # @return [Google::Cloud::Talent::V4beta1::ClientEvent]
212
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
213
+ # @example
214
+ # require "google/cloud/talent"
215
+ #
216
+ # event_service_client = Google::Cloud::Talent::Event.new(version: :v4beta1)
217
+ # formatted_parent = Google::Cloud::Talent::V4beta1::EventServiceClient.project_path("[PROJECT]")
218
+ #
219
+ # # TODO: Initialize `client_event`:
220
+ # client_event = {}
221
+ # response = event_service_client.create_client_event(formatted_parent, client_event)
222
+
223
+ def create_client_event \
224
+ parent,
225
+ client_event,
226
+ options: nil,
227
+ &block
228
+ req = {
229
+ parent: parent,
230
+ client_event: client_event
231
+ }.delete_if { |_, v| v.nil? }
232
+ req = Google::Gax::to_proto(req, Google::Cloud::Talent::V4beta1::CreateClientEventRequest)
233
+ @create_client_event.call(req, options, &block)
234
+ end
235
+ end
236
+ end
237
+ end
238
+ end
239
+ end
@@ -0,0 +1,31 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.talent.v4beta1.EventService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "CreateClientEvent": {
24
+ "timeout_millis": 30000,
25
+ "retry_codes_name": "non_idempotent",
26
+ "retry_params_name": "default"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/event_service.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/cloud/talent/v4beta1/event_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.cloud.talent.v4beta1.CreateClientEventRequest" do
11
+ optional :parent, :string, 1
12
+ optional :client_event, :message, 2, "google.cloud.talent.v4beta1.ClientEvent"
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ CreateClientEventRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CreateClientEventRequest").msgclass
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,53 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/talent/v4beta1/event_service.proto for package 'google.cloud.talent.v4beta1'
3
+ # Original file comments:
4
+ # Copyright 2019 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+
21
+ require 'grpc'
22
+ require 'google/cloud/talent/v4beta1/event_service_pb'
23
+
24
+ module Google
25
+ module Cloud
26
+ module Talent
27
+ module V4beta1
28
+ module EventService
29
+ # A service handles client event report.
30
+ class Service
31
+
32
+ include GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.talent.v4beta1.EventService'
37
+
38
+ # Report events issued when end user interacts with customer's application
39
+ # that uses Cloud Talent Solution. You may inspect the created events in
40
+ # [self service
41
+ # tools](https://console.cloud.google.com/talent-solution/overview).
42
+ # [Learn
43
+ # more](https://cloud.google.com/talent-solution/job-search/docs/management-tools)
44
+ # about self service tools.
45
+ rpc :CreateClientEvent, CreateClientEventRequest, ClientEvent
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,182 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/talent/v4beta1/filters.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/cloud/talent/v4beta1/common_pb'
9
+ require 'google/cloud/talent/v4beta1/job_pb'
10
+ require 'google/cloud/talent/v4beta1/profile_pb'
11
+ require 'google/protobuf/duration_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ require 'google/protobuf/wrappers_pb'
14
+ require 'google/type/date_pb'
15
+ require 'google/type/latlng_pb'
16
+ require 'google/type/timeofday_pb'
17
+ Google::Protobuf::DescriptorPool.generated_pool.build do
18
+ add_message "google.cloud.talent.v4beta1.JobQuery" do
19
+ optional :query, :string, 1
20
+ repeated :company_names, :string, 2
21
+ repeated :location_filters, :message, 3, "google.cloud.talent.v4beta1.LocationFilter"
22
+ repeated :job_categories, :enum, 4, "google.cloud.talent.v4beta1.JobCategory"
23
+ optional :commute_filter, :message, 5, "google.cloud.talent.v4beta1.CommuteFilter"
24
+ repeated :company_display_names, :string, 6
25
+ optional :compensation_filter, :message, 7, "google.cloud.talent.v4beta1.CompensationFilter"
26
+ optional :custom_attribute_filter, :string, 8
27
+ optional :disable_spell_check, :bool, 9
28
+ repeated :employment_types, :enum, 10, "google.cloud.talent.v4beta1.EmploymentType"
29
+ repeated :language_codes, :string, 11
30
+ optional :publish_time_range, :message, 12, "google.cloud.talent.v4beta1.TimestampRange"
31
+ repeated :excluded_jobs, :string, 13
32
+ end
33
+ add_message "google.cloud.talent.v4beta1.ProfileQuery" do
34
+ optional :query, :string, 1
35
+ repeated :location_filters, :message, 2, "google.cloud.talent.v4beta1.LocationFilter"
36
+ repeated :job_title_filters, :message, 3, "google.cloud.talent.v4beta1.JobTitleFilter"
37
+ repeated :employer_filters, :message, 4, "google.cloud.talent.v4beta1.EmployerFilter"
38
+ repeated :education_filters, :message, 5, "google.cloud.talent.v4beta1.EducationFilter"
39
+ repeated :skill_filters, :message, 6, "google.cloud.talent.v4beta1.SkillFilter"
40
+ repeated :work_experience_filter, :message, 7, "google.cloud.talent.v4beta1.WorkExperienceFilter"
41
+ repeated :time_filters, :message, 8, "google.cloud.talent.v4beta1.TimeFilter"
42
+ optional :hirable_filter, :message, 9, "google.protobuf.BoolValue"
43
+ repeated :application_date_filters, :message, 10, "google.cloud.talent.v4beta1.ApplicationDateFilter"
44
+ repeated :application_outcome_reason_filters, :message, 11, "google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter"
45
+ repeated :application_last_stage_filters, :message, 12, "google.cloud.talent.v4beta1.ApplicationLastStageFilter"
46
+ repeated :application_job_filters, :message, 13, "google.cloud.talent.v4beta1.ApplicationJobFilter"
47
+ repeated :application_status_filters, :message, 14, "google.cloud.talent.v4beta1.ApplicationStatusFilter"
48
+ optional :custom_field_filter, :string, 15
49
+ end
50
+ add_message "google.cloud.talent.v4beta1.LocationFilter" do
51
+ optional :address, :string, 1
52
+ optional :region_code, :string, 2
53
+ optional :lat_lng, :message, 3, "google.type.LatLng"
54
+ optional :distance_in_miles, :double, 4
55
+ optional :telecommute_preference, :enum, 5, "google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference"
56
+ optional :negated, :bool, 6
57
+ end
58
+ add_enum "google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference" do
59
+ value :TELECOMMUTE_PREFERENCE_UNSPECIFIED, 0
60
+ value :TELECOMMUTE_EXCLUDED, 1
61
+ value :TELECOMMUTE_ALLOWED, 2
62
+ end
63
+ add_message "google.cloud.talent.v4beta1.CompensationFilter" do
64
+ optional :type, :enum, 1, "google.cloud.talent.v4beta1.CompensationFilter.FilterType"
65
+ repeated :units, :enum, 2, "google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit"
66
+ optional :range, :message, 3, "google.cloud.talent.v4beta1.CompensationInfo.CompensationRange"
67
+ optional :include_jobs_with_unspecified_compensation_range, :bool, 4
68
+ end
69
+ add_enum "google.cloud.talent.v4beta1.CompensationFilter.FilterType" do
70
+ value :FILTER_TYPE_UNSPECIFIED, 0
71
+ value :UNIT_ONLY, 1
72
+ value :UNIT_AND_AMOUNT, 2
73
+ value :ANNUALIZED_BASE_AMOUNT, 3
74
+ value :ANNUALIZED_TOTAL_AMOUNT, 4
75
+ end
76
+ add_message "google.cloud.talent.v4beta1.CommuteFilter" do
77
+ optional :commute_method, :enum, 1, "google.cloud.talent.v4beta1.CommuteMethod"
78
+ optional :start_coordinates, :message, 2, "google.type.LatLng"
79
+ optional :travel_duration, :message, 3, "google.protobuf.Duration"
80
+ optional :allow_imprecise_addresses, :bool, 4
81
+ oneof :traffic_option do
82
+ optional :road_traffic, :enum, 5, "google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic"
83
+ optional :departure_time, :message, 6, "google.type.TimeOfDay"
84
+ end
85
+ end
86
+ add_enum "google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic" do
87
+ value :ROAD_TRAFFIC_UNSPECIFIED, 0
88
+ value :TRAFFIC_FREE, 1
89
+ value :BUSY_HOUR, 2
90
+ end
91
+ add_message "google.cloud.talent.v4beta1.JobTitleFilter" do
92
+ optional :job_title, :string, 1
93
+ optional :negated, :bool, 2
94
+ end
95
+ add_message "google.cloud.talent.v4beta1.SkillFilter" do
96
+ optional :skill, :string, 1
97
+ optional :negated, :bool, 2
98
+ end
99
+ add_message "google.cloud.talent.v4beta1.EmployerFilter" do
100
+ optional :employer, :string, 1
101
+ optional :mode, :enum, 2, "google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode"
102
+ optional :negated, :bool, 3
103
+ end
104
+ add_enum "google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode" do
105
+ value :EMPLOYER_FILTER_MODE_UNSPECIFIED, 0
106
+ value :ALL_EMPLOYMENT_RECORDS, 1
107
+ value :CURRENT_EMPLOYMENT_RECORDS_ONLY, 2
108
+ value :PAST_EMPLOYMENT_RECORDS_ONLY, 3
109
+ end
110
+ add_message "google.cloud.talent.v4beta1.EducationFilter" do
111
+ optional :school, :string, 1
112
+ optional :field_of_study, :string, 2
113
+ optional :degree_type, :enum, 3, "google.cloud.talent.v4beta1.DegreeType"
114
+ optional :negated, :bool, 6
115
+ end
116
+ add_message "google.cloud.talent.v4beta1.WorkExperienceFilter" do
117
+ optional :min_experience, :message, 1, "google.protobuf.Duration"
118
+ optional :max_experience, :message, 2, "google.protobuf.Duration"
119
+ end
120
+ add_message "google.cloud.talent.v4beta1.ApplicationDateFilter" do
121
+ optional :start_date, :message, 1, "google.type.Date"
122
+ optional :end_date, :message, 2, "google.type.Date"
123
+ end
124
+ add_message "google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter" do
125
+ optional :outcome_reason, :string, 1
126
+ optional :negated, :bool, 2
127
+ end
128
+ add_message "google.cloud.talent.v4beta1.ApplicationLastStageFilter" do
129
+ optional :last_stage, :string, 1
130
+ optional :negated, :bool, 2
131
+ end
132
+ add_message "google.cloud.talent.v4beta1.ApplicationJobFilter" do
133
+ optional :job_name, :string, 1
134
+ optional :job_requisition_id, :string, 2
135
+ optional :job_title, :string, 3
136
+ optional :negated, :bool, 4
137
+ end
138
+ add_message "google.cloud.talent.v4beta1.ApplicationStatusFilter" do
139
+ optional :application_status, :enum, 1, "google.cloud.talent.v4beta1.JobApplication.ApplicationStatus"
140
+ optional :negated, :bool, 2
141
+ end
142
+ add_message "google.cloud.talent.v4beta1.TimeFilter" do
143
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
144
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
145
+ optional :time_field, :enum, 3, "google.cloud.talent.v4beta1.TimeFilter.TimeField"
146
+ end
147
+ add_enum "google.cloud.talent.v4beta1.TimeFilter.TimeField" do
148
+ value :TIME_FIELD_UNSPECIFIED, 0
149
+ value :CREATE_TIME, 1
150
+ value :UPDATE_TIME, 2
151
+ end
152
+ end
153
+
154
+ module Google
155
+ module Cloud
156
+ module Talent
157
+ module V4beta1
158
+ JobQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobQuery").msgclass
159
+ ProfileQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ProfileQuery").msgclass
160
+ LocationFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.LocationFilter").msgclass
161
+ LocationFilter::TelecommutePreference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference").enummodule
162
+ CompensationFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationFilter").msgclass
163
+ CompensationFilter::FilterType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CompensationFilter.FilterType").enummodule
164
+ CommuteFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteFilter").msgclass
165
+ CommuteFilter::RoadTraffic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic").enummodule
166
+ JobTitleFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobTitleFilter").msgclass
167
+ SkillFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.SkillFilter").msgclass
168
+ EmployerFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EmployerFilter").msgclass
169
+ EmployerFilter::EmployerFilterMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode").enummodule
170
+ EducationFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.EducationFilter").msgclass
171
+ WorkExperienceFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.WorkExperienceFilter").msgclass
172
+ ApplicationDateFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationDateFilter").msgclass
173
+ ApplicationOutcomeReasonFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter").msgclass
174
+ ApplicationLastStageFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationLastStageFilter").msgclass
175
+ ApplicationJobFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationJobFilter").msgclass
176
+ ApplicationStatusFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.ApplicationStatusFilter").msgclass
177
+ TimeFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.TimeFilter").msgclass
178
+ TimeFilter::TimeField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.TimeFilter.TimeField").enummodule
179
+ end
180
+ end
181
+ end
182
+ end