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,125 @@
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
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # A Company resource represents a company in the service. A company is the
21
+ # entity that owns job postings, that is, the hiring entity responsible for
22
+ # employing applicants for the job position.
23
+ # @!attribute [rw] name
24
+ # @return [String]
25
+ # Required during company update.
26
+ #
27
+ # The resource name for a company. This is generated by the service when a
28
+ # company is created.
29
+ #
30
+ # The format is "projects/{project_id}/companies/{company_id}", for example,
31
+ # "projects/api-test-project/companies/foo".
32
+ # @!attribute [rw] display_name
33
+ # @return [String]
34
+ # Required.
35
+ #
36
+ # The display name of the company, for example, "Google, LLC".
37
+ # @!attribute [rw] external_id
38
+ # @return [String]
39
+ # Required.
40
+ #
41
+ # Client side company identifier, used to uniquely identify the
42
+ # company.
43
+ #
44
+ # The maximum number of allowed characters is 255.
45
+ # @!attribute [rw] size
46
+ # @return [Google::Cloud::Talent::V4beta1::CompanySize]
47
+ # Optional.
48
+ #
49
+ # The employer's company size.
50
+ # @!attribute [rw] headquarters_address
51
+ # @return [String]
52
+ # Optional.
53
+ #
54
+ # The street address of the company's main headquarters, which may be
55
+ # different from the job location. The service attempts
56
+ # to geolocate the provided address, and populates a more specific
57
+ # location wherever possible in
58
+ # {Google::Cloud::Talent::V4beta1::Company::DerivedInfo#headquarters_location DerivedInfo#headquarters_location}.
59
+ # @!attribute [rw] hiring_agency
60
+ # @return [true, false]
61
+ # Optional.
62
+ #
63
+ # Set to true if it is the hiring agency that post jobs for other
64
+ # employers.
65
+ #
66
+ # Defaults to false if not provided.
67
+ # @!attribute [rw] eeo_text
68
+ # @return [String]
69
+ # Optional.
70
+ #
71
+ # Equal Employment Opportunity legal disclaimer text to be
72
+ # associated with all jobs, and typically to be displayed in all
73
+ # roles.
74
+ #
75
+ # The maximum number of allowed characters is 500.
76
+ # @!attribute [rw] website_uri
77
+ # @return [String]
78
+ # Optional.
79
+ #
80
+ # The URI representing the company's primary web site or home page,
81
+ # for example, "https://www.google.com".
82
+ #
83
+ # The maximum number of allowed characters is 255.
84
+ # @!attribute [rw] career_site_uri
85
+ # @return [String]
86
+ # Optional.
87
+ #
88
+ # The URI to employer's career site or careers page on the employer's web
89
+ # site, for example, "https://careers.google.com".
90
+ # @!attribute [rw] image_uri
91
+ # @return [String]
92
+ # Optional.
93
+ #
94
+ # A URI that hosts the employer's company logo.
95
+ # @!attribute [rw] keyword_searchable_job_custom_attributes
96
+ # @return [Array<String>]
97
+ # Optional.
98
+ #
99
+ # A list of keys of filterable
100
+ # {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job#custom_attributes},
101
+ # whose corresponding `string_values` are used in keyword search. Jobs with
102
+ # `string_values` under these specified field keys are returned if any
103
+ # of the values matches the search keyword. Custom field values with
104
+ # parenthesis, brackets and special symbols won't be properly searchable,
105
+ # and those keyword queries need to be surrounded by quotes.
106
+ # @!attribute [rw] derived_info
107
+ # @return [Google::Cloud::Talent::V4beta1::Company::DerivedInfo]
108
+ # Output only. Derived details about the company.
109
+ # @!attribute [rw] suspended
110
+ # @return [true, false]
111
+ # Output only. Indicates whether a company is flagged to be suspended from
112
+ # public availability by the service when job content appears suspicious,
113
+ # abusive, or spammy.
114
+ class Company
115
+ # Derived details about the company.
116
+ # @!attribute [rw] headquarters_location
117
+ # @return [Google::Cloud::Talent::V4beta1::Location]
118
+ # A structured headquarters location of the company, resolved from
119
+ # {Company#hq_location} if provided.
120
+ class DerivedInfo; end
121
+ end
122
+ end
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,130 @@
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
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # The Request of the CreateCompany method.
21
+ # @!attribute [rw] parent
22
+ # @return [String]
23
+ # Required.
24
+ #
25
+ # Resource name of the project under which the company is created.
26
+ #
27
+ # The format is "projects/{project_id}", for example,
28
+ # "projects/api-test-project".
29
+ # @!attribute [rw] company
30
+ # @return [Google::Cloud::Talent::V4beta1::Company]
31
+ # Required.
32
+ #
33
+ # The company to be created.
34
+ class CreateCompanyRequest; end
35
+
36
+ # Request for getting a company by name.
37
+ # @!attribute [rw] name
38
+ # @return [String]
39
+ # Required.
40
+ #
41
+ # The resource name of the company to be retrieved.
42
+ #
43
+ # The format is "projects/{project_id}/companies/{company_id}", for example,
44
+ # "projects/api-test-project/companies/foo".
45
+ class GetCompanyRequest; end
46
+
47
+ # Request for updating a specified company.
48
+ # @!attribute [rw] company
49
+ # @return [Google::Cloud::Talent::V4beta1::Company]
50
+ # Required.
51
+ #
52
+ # The company resource to replace the current resource in the system.
53
+ # @!attribute [rw] update_mask
54
+ # @return [Google::Protobuf::FieldMask]
55
+ # Optional but strongly recommended for the best service
56
+ # experience.
57
+ #
58
+ # If
59
+ # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#update_mask update_mask}
60
+ # is provided, only the specified fields in
61
+ # {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#company company} are
62
+ # updated. Otherwise all the fields are updated.
63
+ #
64
+ # A field mask to specify the company fields to be updated. Only
65
+ # top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are
66
+ # supported.
67
+ class UpdateCompanyRequest; end
68
+
69
+ # Request to delete a company.
70
+ # @!attribute [rw] name
71
+ # @return [String]
72
+ # Required.
73
+ #
74
+ # The resource name of the company to be deleted.
75
+ #
76
+ # The format is "projects/{project_id}/companies/{company_id}", for example,
77
+ # "projects/api-test-project/companies/foo".
78
+ class DeleteCompanyRequest; end
79
+
80
+ # List companies for which the client has ACL visibility.
81
+ # @!attribute [rw] parent
82
+ # @return [String]
83
+ # Required.
84
+ #
85
+ # Resource name of the project under which the company is created.
86
+ #
87
+ # The format is "projects/{project_id}", for example,
88
+ # "projects/api-test-project".
89
+ # @!attribute [rw] page_token
90
+ # @return [String]
91
+ # Optional.
92
+ #
93
+ # The starting indicator from which to return results.
94
+ # @!attribute [rw] page_size
95
+ # @return [Integer]
96
+ # Optional.
97
+ #
98
+ # The maximum number of companies to be returned, at most 100.
99
+ # Default is 100 if a non-positive number is provided.
100
+ # @!attribute [rw] require_open_jobs
101
+ # @return [true, false]
102
+ # Optional.
103
+ #
104
+ # Set to true if the companies requested must have open jobs.
105
+ #
106
+ # Defaults to false.
107
+ #
108
+ # If true, at most
109
+ # {Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of
110
+ # companies are fetched, among which only those with open jobs are returned.
111
+ class ListCompaniesRequest; end
112
+
113
+ # Output only.
114
+ #
115
+ # The List companies response object.
116
+ # @!attribute [rw] companies
117
+ # @return [Array<Google::Cloud::Talent::V4beta1::Company>]
118
+ # Companies for the current client.
119
+ # @!attribute [rw] next_page_token
120
+ # @return [String]
121
+ # A token to retrieve the next page of results.
122
+ # @!attribute [rw] metadata
123
+ # @return [Google::Cloud::Talent::V4beta1::ResponseMetadata]
124
+ # Additional information for the API invocation, such as the request
125
+ # tracking id.
126
+ class ListCompaniesResponse; end
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,153 @@
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
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # Input only.
21
+ #
22
+ # Auto-complete parameters.
23
+ # @!attribute [rw] name
24
+ # @return [String]
25
+ # Required.
26
+ #
27
+ # Resource name of project the completion is performed within.
28
+ #
29
+ # The format is "projects/{project_id}", for example,
30
+ # "projects/api-test-project".
31
+ # @!attribute [rw] query
32
+ # @return [String]
33
+ # Required.
34
+ #
35
+ # The query used to generate suggestions.
36
+ #
37
+ # The maximum number of allowed characters is 255.
38
+ # @!attribute [rw] language_codes
39
+ # @return [Array<String>]
40
+ # Optional.
41
+ #
42
+ # The list of languages of the query. This is
43
+ # the BCP-47 language code, such as "en-US" or "sr-Latn".
44
+ # For more information, see
45
+ # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
46
+ #
47
+ # For
48
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType::JOB_TITLE}
49
+ # type, only open jobs with the same
50
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
51
+ # are returned.
52
+ #
53
+ # For
54
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType::COMPANY_NAME}
55
+ # type, only companies having open jobs with the same
56
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
57
+ # are returned.
58
+ #
59
+ # For
60
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}
61
+ # type, only open jobs with the same
62
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
63
+ # or companies having open jobs with the same
64
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
65
+ # are returned.
66
+ #
67
+ # The maximum number of allowed characters is 255.
68
+ # @!attribute [rw] page_size
69
+ # @return [Integer]
70
+ # Required.
71
+ #
72
+ # Completion result count.
73
+ #
74
+ # The maximum allowed page size is 10.
75
+ # @!attribute [rw] company_name
76
+ # @return [String]
77
+ # Optional.
78
+ #
79
+ # If provided, restricts completion to specified company.
80
+ #
81
+ # The format is "projects/{project_id}/companies/{company_id}", for example,
82
+ # "projects/api-test-project/companies/foo".
83
+ # @!attribute [rw] scope
84
+ # @return [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope]
85
+ # Optional.
86
+ #
87
+ # The scope of the completion. The defaults is
88
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC CompletionScope::PUBLIC}.
89
+ # @!attribute [rw] type
90
+ # @return [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType]
91
+ # Optional.
92
+ #
93
+ # The completion topic. The default is
94
+ # {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}.
95
+ class CompleteQueryRequest
96
+ # Enum to specify the scope of completion.
97
+ module CompletionScope
98
+ # Default value.
99
+ COMPLETION_SCOPE_UNSPECIFIED = 0
100
+
101
+ # Suggestions are based only on the data provided by the client.
102
+ TENANT = 1
103
+
104
+ # Suggestions are based on all jobs data in the system that's visible to
105
+ # the client
106
+ PUBLIC = 2
107
+ end
108
+
109
+ # Enum to specify auto-completion topics.
110
+ module CompletionType
111
+ # Default value.
112
+ COMPLETION_TYPE_UNSPECIFIED = 0
113
+
114
+ # Only suggest job titles.
115
+ JOB_TITLE = 1
116
+
117
+ # Only suggest company names.
118
+ COMPANY_NAME = 2
119
+
120
+ # Suggest both job titles and company names.
121
+ COMBINED = 3
122
+ end
123
+ end
124
+
125
+ # Output only.
126
+ #
127
+ # Response of auto-complete query.
128
+ # @!attribute [rw] completion_results
129
+ # @return [Array<Google::Cloud::Talent::V4beta1::CompleteQueryResponse::CompletionResult>]
130
+ # Results of the matching job/company candidates.
131
+ # @!attribute [rw] metadata
132
+ # @return [Google::Cloud::Talent::V4beta1::ResponseMetadata]
133
+ # Additional information for the API invocation, such as the request
134
+ # tracking id.
135
+ class CompleteQueryResponse
136
+ # Output only.
137
+ #
138
+ # Resource that represents completion results.
139
+ # @!attribute [rw] suggestion
140
+ # @return [String]
141
+ # The suggestion for the query.
142
+ # @!attribute [rw] type
143
+ # @return [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType]
144
+ # The completion topic.
145
+ # @!attribute [rw] image_uri
146
+ # @return [String]
147
+ # The URI of the company image for {CompletionType::COMPANY_NAME}.
148
+ class CompletionResult; end
149
+ end
150
+ end
151
+ end
152
+ end
153
+ end
@@ -0,0 +1,252 @@
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
+
16
+ module Google
17
+ module Cloud
18
+ module Talent
19
+ module V4beta1
20
+ # An event issued when an end user interacts with the application that
21
+ # implements Cloud Talent Solution. Providing this information improves the
22
+ # quality of search and recommendation for the API clients, enabling the
23
+ # service to perform optimally. The number of events sent must be consistent
24
+ # with other calls, such as job searches, issued to the service by the client.
25
+ # @!attribute [rw] request_id
26
+ # @return [String]
27
+ # Required.
28
+ #
29
+ # A unique ID generated in the API responses. It can be found in
30
+ # {Google::Cloud::Talent::V4beta1::ResponseMetadata#request_id ResponseMetadata#request_id}.
31
+ # @!attribute [rw] event_id
32
+ # @return [String]
33
+ # Required.
34
+ #
35
+ # A unique identifier, generated by the client application.
36
+ # @!attribute [rw] create_time
37
+ # @return [Google::Protobuf::Timestamp]
38
+ # Required.
39
+ #
40
+ # The timestamp of the event.
41
+ # @!attribute [rw] job_event
42
+ # @return [Google::Cloud::Talent::V4beta1::JobEvent]
43
+ # An event issued when a job seeker interacts with the application that
44
+ # implements Cloud Talent Solution.
45
+ # @!attribute [rw] profile_event
46
+ # @return [Google::Cloud::Talent::V4beta1::ProfileEvent]
47
+ # An event issued when a profile searcher interacts with the application
48
+ # that implements Cloud Talent Solution.
49
+ # @!attribute [rw] extra_info
50
+ # @return [Hash{String => String}]
51
+ # Optional.
52
+ #
53
+ # Extra information about this event. Used for storing information with no
54
+ # matching field in {Google::Cloud::Talent::V4beta1::Event event} payload, for
55
+ # example, user application specific context or details.
56
+ #
57
+ # At most 20 keys are supported. The maximum total size of all keys and
58
+ # values is 2 KB.
59
+ class ClientEvent; end
60
+
61
+ # An event issued when a job seeker interacts with the application that
62
+ # implements Cloud Talent Solution.
63
+ # @!attribute [rw] type
64
+ # @return [Google::Cloud::Talent::V4beta1::JobEvent::JobEventType]
65
+ # Required.
66
+ #
67
+ # The type of the event (see
68
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType JobEventType}).
69
+ # @!attribute [rw] jobs
70
+ # @return [Array<String>]
71
+ # Required.
72
+ #
73
+ # The {Google::Cloud::Talent::V4beta1::Job#name job name(s)} associated with
74
+ # this event. For example, if this is an
75
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::IMPRESSION impression}
76
+ # event, this field contains the identifiers of all jobs shown to the job
77
+ # seeker. If this was a
78
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::VIEW view} event, this
79
+ # field contains the identifier of the viewed job.
80
+ class JobEvent
81
+ # An enumeration of an event attributed to the behavior of the end user,
82
+ # such as a job seeker.
83
+ module JobEventType
84
+ # The event is unspecified by other provided values.
85
+ JOB_EVENT_TYPE_UNSPECIFIED = 0
86
+
87
+ # The job seeker or other entity interacting with the service has
88
+ # had a job rendered in their view, such as in a list of search results in
89
+ # a compressed or clipped format. This event is typically associated with
90
+ # the viewing of a jobs list on a single page by a job seeker.
91
+ IMPRESSION = 1
92
+
93
+ # The job seeker, or other entity interacting with the service, has
94
+ # viewed the details of a job, including the full description. This
95
+ # event doesn't apply to the viewing a snippet of a job appearing as a
96
+ # part of the job search results. Viewing a snippet is associated with an
97
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::IMPRESSION impression}).
98
+ VIEW = 2
99
+
100
+ # The job seeker or other entity interacting with the service
101
+ # performed an action to view a job and was redirected to a different
102
+ # website for job.
103
+ VIEW_REDIRECT = 3
104
+
105
+ # The job seeker or other entity interacting with the service
106
+ # began the process or demonstrated the intention of applying for a job.
107
+ APPLICATION_START = 4
108
+
109
+ # The job seeker or other entity interacting with the service
110
+ # submitted an application for a job.
111
+ APPLICATION_FINISH = 5
112
+
113
+ # The job seeker or other entity interacting with the service
114
+ # submitted an application for a job with a single click without
115
+ # entering information. If a job seeker performs this action, send only
116
+ # this event to the service. Do not also send
117
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_START JobEventType::APPLICATION_START}
118
+ # or
119
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_FINISH JobEventType::APPLICATION_FINISH}
120
+ # events.
121
+ APPLICATION_QUICK_SUBMISSION = 6
122
+
123
+ # The job seeker or other entity interacting with the service
124
+ # performed an action to apply to a job and was redirected to a different
125
+ # website to complete the application.
126
+ APPLICATION_REDIRECT = 7
127
+
128
+ # The job seeker or other entity interacting with the service began the
129
+ # process or demonstrated the intention of applying for a job from the
130
+ # search results page without viewing the details of the job posting.
131
+ # If sending this event, JobEventType.VIEW event shouldn't be sent.
132
+ APPLICATION_START_FROM_SEARCH = 8
133
+
134
+ # The job seeker, or other entity interacting with the service, performs an
135
+ # action with a single click from the search results page to apply to a job
136
+ # (without viewing the details of the job posting), and is redirected
137
+ # to a different website to complete the application. If a candidate
138
+ # performs this action, send only this event to the service. Do not also
139
+ # send
140
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_START JobEventType::APPLICATION_START},
141
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_FINISH JobEventType::APPLICATION_FINISH}
142
+ # or
143
+ # {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::VIEW JobEventType::VIEW}
144
+ # events.
145
+ APPLICATION_REDIRECT_FROM_SEARCH = 9
146
+
147
+ # This event should be used when a company submits an application
148
+ # on behalf of a job seeker. This event is intended for use by staffing
149
+ # agencies attempting to place candidates.
150
+ APPLICATION_COMPANY_SUBMIT = 10
151
+
152
+ # The job seeker or other entity interacting with the service demonstrated
153
+ # an interest in a job by bookmarking or saving it.
154
+ BOOKMARK = 11
155
+
156
+ # The job seeker or other entity interacting with the service was
157
+ # sent a notification, such as an email alert or device notification,
158
+ # containing one or more jobs listings generated by the service.
159
+ NOTIFICATION = 12
160
+
161
+ # The job seeker or other entity interacting with the service was
162
+ # employed by the hiring entity (employer). Send this event
163
+ # only if the job seeker was hired through an application that was
164
+ # initiated by a search conducted through the Cloud Talent Solution
165
+ # service.
166
+ HIRED = 13
167
+
168
+ # A recruiter or staffing agency submitted an application on behalf of the
169
+ # candidate after interacting with the service to identify a suitable job
170
+ # posting.
171
+ SENT_CV = 14
172
+
173
+ # The entity interacting with the service (for example, the job seeker),
174
+ # was granted an initial interview by the hiring entity (employer). This
175
+ # event should only be sent if the job seeker was granted an interview as
176
+ # part of an application that was initiated by a search conducted through /
177
+ # recommendation provided by the Cloud Talent Solution service.
178
+ INTERVIEW_GRANTED = 15
179
+
180
+ # The job seeker or other entity interacting with the service showed
181
+ # no interest in the job.
182
+ NOT_INTERESTED = 16
183
+ end
184
+ end
185
+
186
+ # An event issued when a profile searcher interacts with the application
187
+ # that implements Cloud Talent Solution.
188
+ # @!attribute [rw] type
189
+ # @return [Google::Cloud::Talent::V4beta1::ProfileEvent::ProfileEventType]
190
+ # Required.
191
+ #
192
+ # Type of event.
193
+ # @!attribute [rw] profiles
194
+ # @return [Array<String>]
195
+ # Required.
196
+ #
197
+ # The {Google::Cloud::Talent::V4beta1::Profile#name profile name(s)} associated
198
+ # with this client event.
199
+ # @!attribute [rw] job_id
200
+ # @return [String]
201
+ # Optional.
202
+ #
203
+ # The job ID associated with this client event if there is one. Leave it
204
+ # empty if the event isn't associated with a job.
205
+ #
206
+ # The job ID should be consistent with the
207
+ # {JobApplication#job#requisition_id} in the profile.
208
+ class ProfileEvent
209
+ # The enum represents types of client events for a candidate profile.
210
+ module ProfileEventType
211
+ # Default value.
212
+ PROFILE_EVENT_TYPE_UNSPECIFIED = 0
213
+
214
+ # The profile is displayed.
215
+ IMPRESSION = 1
216
+
217
+ # The profile is viewed.
218
+ VIEW = 2
219
+
220
+ # The profile is bookmarked.
221
+ BOOKMARK = 3
222
+
223
+ # Comment added to the profile.
224
+ COMMENT_ADDED = 4
225
+
226
+ # Email sent regarding the profile.
227
+ EMAIL_SENT = 5
228
+
229
+ # The resume of the profile is viewed.
230
+ RESUME_VIEWED = 6
231
+
232
+ # The profile is added to a job.
233
+ ADD_TO_JOB = 7
234
+
235
+ # The recruiter explicitly highlights that a given profile is interesting
236
+ # enough for later review or is a good result for the search.
237
+ POSITIVE_REACTION_TO_PROFILE = 8
238
+
239
+ # The recruiter explicitly highlights that a given profile is not
240
+ # interesting enough for later review or is not a good result for the
241
+ # search.
242
+ NEGATIVE_REACTION_TO_PROFILE = 9
243
+
244
+ # The candidate is interesting enough to set up an initial screen with the
245
+ # recruiter. This step may be skipped based on the interview process.
246
+ SCREEN = 10
247
+ end
248
+ end
249
+ end
250
+ end
251
+ end
252
+ end