google-cloud-talent 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/talent.rb +28 -0
- data/lib/google/cloud/talent/v4beta1.rb +57 -0
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +1 -2
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +26 -24
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +30 -0
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +28 -29
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +36 -32
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +14 -33
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +18 -27
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +144 -135
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +19 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +20 -32
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +30 -32
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +121 -41
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +3 -7
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +239 -281
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +9 -3
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +129 -142
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +280 -215
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +198 -338
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +128 -108
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +11 -13
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +16 -27
- data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +51 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +87 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +13 -10
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +6 -1
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +528 -301
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +10 -0
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +13 -0
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +16 -8
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +118 -91
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +3 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -1
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +24 -24
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +1 -0
- data/lib/google/cloud/talent/version.rb +22 -0
- metadata +8 -9
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/resume_service.rb +0 -98
- data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +0 -296
- data/lib/google/cloud/talent/v4beta1/resume_service_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/resume_service_pb.rb +0 -37
- data/lib/google/cloud/talent/v4beta1/resume_service_services_pb.rb +0 -75
@@ -35,72 +35,54 @@ module Google
|
|
35
35
|
# example, "projects/api-test-project/companies/bar".
|
36
36
|
# @!attribute [rw] display_name
|
37
37
|
# @return [String]
|
38
|
-
# Required.
|
39
|
-
#
|
40
|
-
# The display name of the company, for example, "Google, LLC".
|
38
|
+
# Required. The display name of the company, for example, "Google, LLC".
|
41
39
|
# @!attribute [rw] external_id
|
42
40
|
# @return [String]
|
43
|
-
# Required.
|
44
|
-
#
|
45
|
-
# Client side company identifier, used to uniquely identify the
|
41
|
+
# Required. Client side company identifier, used to uniquely identify the
|
46
42
|
# company.
|
47
43
|
#
|
48
44
|
# The maximum number of allowed characters is 255.
|
49
45
|
# @!attribute [rw] size
|
50
46
|
# @return [Google::Cloud::Talent::V4beta1::CompanySize]
|
51
|
-
# Optional.
|
52
|
-
#
|
53
|
-
# The employer's company size.
|
47
|
+
# Optional. The employer's company size.
|
54
48
|
# @!attribute [rw] headquarters_address
|
55
49
|
# @return [String]
|
56
|
-
# Optional.
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
# location wherever possible in {Google::Cloud::Talent::V4beta1::Company::DerivedInfo#headquarters_location DerivedInfo#headquarters_location}.
|
50
|
+
# Optional. The street address of the company's main headquarters, which may
|
51
|
+
# be different from the job location. The service attempts to geolocate the
|
52
|
+
# provided address, and populates a more specific location wherever possible
|
53
|
+
# in
|
54
|
+
# {Google::Cloud::Talent::V4beta1::Company::DerivedInfo#headquarters_location DerivedInfo#headquarters_location}.
|
62
55
|
# @!attribute [rw] hiring_agency
|
63
56
|
# @return [true, false]
|
64
|
-
# Optional.
|
65
|
-
#
|
66
|
-
# Set to true if it is the hiring agency that post jobs for other
|
57
|
+
# Optional. Set to true if it is the hiring agency that post jobs for other
|
67
58
|
# employers.
|
68
59
|
#
|
69
60
|
# Defaults to false if not provided.
|
70
61
|
# @!attribute [rw] eeo_text
|
71
62
|
# @return [String]
|
72
|
-
# Optional.
|
73
|
-
#
|
74
|
-
# Equal Employment Opportunity legal disclaimer text to be
|
63
|
+
# Optional. Equal Employment Opportunity legal disclaimer text to be
|
75
64
|
# associated with all jobs, and typically to be displayed in all
|
76
65
|
# roles.
|
77
66
|
#
|
78
67
|
# The maximum number of allowed characters is 500.
|
79
68
|
# @!attribute [rw] website_uri
|
80
69
|
# @return [String]
|
81
|
-
# Optional.
|
82
|
-
#
|
83
|
-
# The URI representing the company's primary web site or home page,
|
70
|
+
# Optional. The URI representing the company's primary web site or home page,
|
84
71
|
# for example, "https://www.google.com".
|
85
72
|
#
|
86
73
|
# The maximum number of allowed characters is 255.
|
87
74
|
# @!attribute [rw] career_site_uri
|
88
75
|
# @return [String]
|
89
|
-
# Optional.
|
90
|
-
#
|
91
|
-
# The URI to employer's career site or careers page on the employer's web
|
92
|
-
# site, for example, "https://careers.google.com".
|
76
|
+
# Optional. The URI to employer's career site or careers page on the
|
77
|
+
# employer's web site, for example, "https://careers.google.com".
|
93
78
|
# @!attribute [rw] image_uri
|
94
79
|
# @return [String]
|
95
|
-
# Optional.
|
96
|
-
#
|
97
|
-
# A URI that hosts the employer's company logo.
|
80
|
+
# Optional. A URI that hosts the employer's company logo.
|
98
81
|
# @!attribute [rw] keyword_searchable_job_custom_attributes
|
99
82
|
# @return [Array<String>]
|
100
|
-
# Optional.
|
101
|
-
#
|
102
|
-
#
|
103
|
-
# corresponding `string_values` are used in keyword searches. Jobs with
|
83
|
+
# Optional. A list of keys of filterable
|
84
|
+
# {Google::Cloud::Talent::V4beta1::Job#custom_attributes Job#custom_attributes},
|
85
|
+
# whose corresponding `string_values` are used in keyword searches. Jobs with
|
104
86
|
# `string_values` under these specified field keys are returned if any
|
105
87
|
# of the values match the search keyword. Custom field values with
|
106
88
|
# parenthesis, brackets and special symbols are not searchable as-is,
|
@@ -118,7 +100,8 @@ module Google
|
|
118
100
|
# @!attribute [rw] headquarters_location
|
119
101
|
# @return [Google::Cloud::Talent::V4beta1::Location]
|
120
102
|
# A structured headquarters location of the company, resolved from
|
121
|
-
# {Company#
|
103
|
+
# {Google::Cloud::Talent::V4beta1::Company#headquarters_address Company#headquarters_address}
|
104
|
+
# if provided.
|
122
105
|
class DerivedInfo; end
|
123
106
|
end
|
124
107
|
end
|
@@ -20,9 +20,7 @@ module Google
|
|
20
20
|
# The Request of the CreateCompany method.
|
21
21
|
# @!attribute [rw] parent
|
22
22
|
# @return [String]
|
23
|
-
# Required.
|
24
|
-
#
|
25
|
-
# Resource name of the tenant under which the company is created.
|
23
|
+
# Required. Resource name of the tenant under which the company is created.
|
26
24
|
#
|
27
25
|
# The format is "projects/{project_id}/tenants/{tenant_id}", for example,
|
28
26
|
# "projects/api-test-project/tenant/foo".
|
@@ -31,17 +29,13 @@ module Google
|
|
31
29
|
# example, "projects/api-test-project".
|
32
30
|
# @!attribute [rw] company
|
33
31
|
# @return [Google::Cloud::Talent::V4beta1::Company]
|
34
|
-
# Required.
|
35
|
-
#
|
36
|
-
# The company to be created.
|
32
|
+
# Required. The company to be created.
|
37
33
|
class CreateCompanyRequest; end
|
38
34
|
|
39
35
|
# Request for getting a company by name.
|
40
36
|
# @!attribute [rw] name
|
41
37
|
# @return [String]
|
42
|
-
# Required.
|
43
|
-
#
|
44
|
-
# The resource name of the company to be retrieved.
|
38
|
+
# Required. The resource name of the company to be retrieved.
|
45
39
|
#
|
46
40
|
# The format is
|
47
41
|
# "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
|
@@ -54,27 +48,28 @@ module Google
|
|
54
48
|
# Request for updating a specified company.
|
55
49
|
# @!attribute [rw] company
|
56
50
|
# @return [Google::Cloud::Talent::V4beta1::Company]
|
57
|
-
# Required.
|
58
|
-
#
|
59
|
-
# The company resource to replace the current resource in the system.
|
51
|
+
# Required. The company resource to replace the current resource in the
|
52
|
+
# system.
|
60
53
|
# @!attribute [rw] update_mask
|
61
54
|
# @return [Google::Protobuf::FieldMask]
|
62
55
|
# Optional but strongly recommended for the best service
|
63
56
|
# experience.
|
64
57
|
#
|
65
|
-
# If
|
66
|
-
# {Google::Cloud::Talent::V4beta1::UpdateCompanyRequest#
|
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.
|
67
63
|
#
|
68
64
|
# A field mask to specify the company fields to be updated. Only
|
69
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are
|
65
|
+
# top level fields of {Google::Cloud::Talent::V4beta1::Company Company} are
|
66
|
+
# supported.
|
70
67
|
class UpdateCompanyRequest; end
|
71
68
|
|
72
69
|
# Request to delete a company.
|
73
70
|
# @!attribute [rw] name
|
74
71
|
# @return [String]
|
75
|
-
# Required.
|
76
|
-
#
|
77
|
-
# The resource name of the company to be deleted.
|
72
|
+
# Required. The resource name of the company to be deleted.
|
78
73
|
#
|
79
74
|
# The format is
|
80
75
|
# "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
|
@@ -87,9 +82,7 @@ module Google
|
|
87
82
|
# List companies for which the client has ACL visibility.
|
88
83
|
# @!attribute [rw] parent
|
89
84
|
# @return [String]
|
90
|
-
# Required.
|
91
|
-
#
|
92
|
-
# Resource name of the tenant under which the company is created.
|
85
|
+
# Required. Resource name of the tenant under which the company is created.
|
93
86
|
#
|
94
87
|
# The format is "projects/{project_id}/tenants/{tenant_id}", for example,
|
95
88
|
# "projects/api-test-project/tenant/foo".
|
@@ -98,25 +91,20 @@ module Google
|
|
98
91
|
# example, "projects/api-test-project".
|
99
92
|
# @!attribute [rw] page_token
|
100
93
|
# @return [String]
|
101
|
-
# Optional.
|
102
|
-
#
|
103
|
-
# The starting indicator from which to return results.
|
94
|
+
# Optional. The starting indicator from which to return results.
|
104
95
|
# @!attribute [rw] page_size
|
105
96
|
# @return [Integer]
|
106
|
-
# Optional.
|
107
|
-
#
|
108
|
-
# The maximum number of companies to be returned, at most 100.
|
97
|
+
# Optional. The maximum number of companies to be returned, at most 100.
|
109
98
|
# Default is 100 if a non-positive number is provided.
|
110
99
|
# @!attribute [rw] require_open_jobs
|
111
100
|
# @return [true, false]
|
112
|
-
# Optional.
|
113
|
-
#
|
114
|
-
# Set to true if the companies requested must have open jobs.
|
101
|
+
# Optional. Set to true if the companies requested must have open jobs.
|
115
102
|
#
|
116
103
|
# Defaults to false.
|
117
104
|
#
|
118
|
-
# If true, at most
|
119
|
-
#
|
105
|
+
# If true, at most
|
106
|
+
# {Google::Cloud::Talent::V4beta1::ListCompaniesRequest#page_size page_size} of
|
107
|
+
# companies are fetched, among which only those with open jobs are returned.
|
120
108
|
class ListCompaniesRequest; end
|
121
109
|
|
122
110
|
# Output only.
|
@@ -22,9 +22,7 @@ module Google
|
|
22
22
|
# Auto-complete parameters.
|
23
23
|
# @!attribute [rw] parent
|
24
24
|
# @return [String]
|
25
|
-
# Required.
|
26
|
-
#
|
27
|
-
# Resource name of tenant the completion is performed within.
|
25
|
+
# Required. Resource name of tenant the completion is performed within.
|
28
26
|
#
|
29
27
|
# The format is "projects/{project_id}/tenants/{tenant_id}", for example,
|
30
28
|
# "projects/api-test-project/tenant/foo".
|
@@ -33,44 +31,45 @@ module Google
|
|
33
31
|
# example, "projects/api-test-project".
|
34
32
|
# @!attribute [rw] query
|
35
33
|
# @return [String]
|
36
|
-
# Required.
|
37
|
-
#
|
38
|
-
# The query used to generate suggestions.
|
34
|
+
# Required. The query used to generate suggestions.
|
39
35
|
#
|
40
36
|
# The maximum number of allowed characters is 255.
|
41
37
|
# @!attribute [rw] language_codes
|
42
38
|
# @return [Array<String>]
|
43
|
-
# Optional.
|
44
|
-
#
|
45
|
-
# The list of languages of the query. This is
|
39
|
+
# Optional. The list of languages of the query. This is
|
46
40
|
# the BCP-47 language code, such as "en-US" or "sr-Latn".
|
47
41
|
# For more information, see
|
48
42
|
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
|
49
43
|
#
|
50
|
-
# For
|
51
|
-
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
|
44
|
+
# For
|
45
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType::JOB_TITLE}
|
46
|
+
# type, only open jobs with the same
|
47
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
|
48
|
+
# are returned.
|
49
|
+
#
|
50
|
+
# For
|
51
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType::COMPANY_NAME}
|
52
|
+
# type, only companies having open jobs with the same
|
53
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
|
54
|
+
# are returned.
|
55
|
+
#
|
56
|
+
# For
|
57
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}
|
58
|
+
# type, only open jobs with the same
|
59
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
|
60
|
+
# or companies having open jobs with the same
|
61
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest#language_codes language_codes}
|
62
|
+
# are returned.
|
60
63
|
#
|
61
64
|
# The maximum number of allowed characters is 255.
|
62
65
|
# @!attribute [rw] page_size
|
63
66
|
# @return [Integer]
|
64
|
-
# Required.
|
65
|
-
#
|
66
|
-
# Completion result count.
|
67
|
+
# Required. Completion result count.
|
67
68
|
#
|
68
69
|
# The maximum allowed page size is 10.
|
69
70
|
# @!attribute [rw] company
|
70
71
|
# @return [String]
|
71
|
-
# Optional.
|
72
|
-
#
|
73
|
-
# If provided, restricts completion to specified company.
|
72
|
+
# Optional. If provided, restricts completion to specified company.
|
74
73
|
#
|
75
74
|
# The format is
|
76
75
|
# "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
|
@@ -80,14 +79,12 @@ module Google
|
|
80
79
|
# example, "projects/api-test-project/companies/bar".
|
81
80
|
# @!attribute [rw] scope
|
82
81
|
# @return [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope]
|
83
|
-
# Optional.
|
84
|
-
#
|
85
|
-
# The scope of the completion. The defaults is {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC CompletionScope::PUBLIC}.
|
82
|
+
# Optional. The scope of the completion. The defaults is
|
83
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope::PUBLIC CompletionScope::PUBLIC}.
|
86
84
|
# @!attribute [rw] type
|
87
85
|
# @return [Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType]
|
88
|
-
# Optional.
|
89
|
-
#
|
90
|
-
# The completion topic. The default is {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}.
|
86
|
+
# Optional. The completion topic. The default is
|
87
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMBINED CompletionType::COMBINED}.
|
91
88
|
class CompleteQueryRequest
|
92
89
|
# Enum to specify the scope of completion.
|
93
90
|
module CompletionScope
|
@@ -140,7 +137,8 @@ module Google
|
|
140
137
|
# The completion topic.
|
141
138
|
# @!attribute [rw] image_uri
|
142
139
|
# @return [String]
|
143
|
-
# The URI of the company image for
|
140
|
+
# The URI of the company image for
|
141
|
+
# {Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType::COMPANY_NAME COMPANY_NAME}.
|
144
142
|
class CompletionResult; end
|
145
143
|
end
|
146
144
|
end
|
@@ -19,25 +19,21 @@ module Google
|
|
19
19
|
module V4beta1
|
20
20
|
# An event issued when an end user interacts with the application that
|
21
21
|
# implements Cloud Talent Solution. Providing this information improves the
|
22
|
-
# quality of
|
22
|
+
# quality of results for the API clients, enabling the
|
23
23
|
# service to perform optimally. The number of events sent must be consistent
|
24
24
|
# with other calls, such as job searches, issued to the service by the client.
|
25
25
|
# @!attribute [rw] request_id
|
26
26
|
# @return [String]
|
27
|
-
#
|
27
|
+
# Optional but highly recommended.
|
28
28
|
#
|
29
29
|
# A unique ID generated in the API responses. It can be found in
|
30
30
|
# {Google::Cloud::Talent::V4beta1::ResponseMetadata#request_id ResponseMetadata#request_id}.
|
31
31
|
# @!attribute [rw] event_id
|
32
32
|
# @return [String]
|
33
|
-
# Required.
|
34
|
-
#
|
35
|
-
# A unique identifier, generated by the client application.
|
33
|
+
# Required. A unique identifier, generated by the client application.
|
36
34
|
# @!attribute [rw] create_time
|
37
35
|
# @return [Google::Protobuf::Timestamp]
|
38
|
-
# Required.
|
39
|
-
#
|
40
|
-
# The timestamp of the event.
|
36
|
+
# Required. The timestamp of the event.
|
41
37
|
# @!attribute [rw] job_event
|
42
38
|
# @return [Google::Cloud::Talent::V4beta1::JobEvent]
|
43
39
|
# An event issued when a job seeker interacts with the application that
|
@@ -48,28 +44,37 @@ module Google
|
|
48
44
|
# that implements Cloud Talent Solution.
|
49
45
|
# @!attribute [rw] event_notes
|
50
46
|
# @return [String]
|
51
|
-
# Optional.
|
52
|
-
#
|
53
|
-
# Notes about the event provided by recruiters or other users, for example,
|
54
|
-
# feedback on why a profile was bookmarked.
|
47
|
+
# Optional. Notes about the event provided by recruiters or other users, for
|
48
|
+
# example, feedback on why a profile was bookmarked.
|
55
49
|
class ClientEvent; end
|
56
50
|
|
57
51
|
# An event issued when a job seeker interacts with the application that
|
58
52
|
# implements Cloud Talent Solution.
|
59
53
|
# @!attribute [rw] type
|
60
54
|
# @return [Google::Cloud::Talent::V4beta1::JobEvent::JobEventType]
|
61
|
-
# Required.
|
62
|
-
#
|
63
|
-
# The type of the event (see {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType JobEventType}).
|
55
|
+
# Required. The type of the event (see
|
56
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType JobEventType}).
|
64
57
|
# @!attribute [rw] jobs
|
65
58
|
# @return [Array<String>]
|
66
|
-
# Required.
|
59
|
+
# Required. The {Google::Cloud::Talent::V4beta1::Job#name job name(s)}
|
60
|
+
# associated with this event. For example, if this is an
|
61
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::IMPRESSION impression}
|
62
|
+
# event, this field contains the identifiers of all jobs shown to the job
|
63
|
+
# seeker. If this was a
|
64
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::VIEW view} event, this
|
65
|
+
# field contains the identifier of the viewed job.
|
66
|
+
#
|
67
|
+
# The format is
|
68
|
+
# "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
|
69
|
+
# example, "projects/api-test-project/tenants/foo/jobs/1234".
|
70
|
+
# @!attribute [rw] profile
|
71
|
+
# @return [String]
|
72
|
+
# Optional. The {Google::Cloud::Talent::V4beta1::Profile#name profile name}
|
73
|
+
# associated with this client event.
|
67
74
|
#
|
68
|
-
# The
|
69
|
-
#
|
70
|
-
#
|
71
|
-
# If this was a {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::VIEW view} event, this field contains the
|
72
|
-
# identifier of the viewed job.
|
75
|
+
# The format is
|
76
|
+
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
|
77
|
+
# for example, "projects/api-test-project/tenants/foo/profiles/bar".
|
73
78
|
class JobEvent
|
74
79
|
# An enumeration of an event attributed to the behavior of the end user,
|
75
80
|
# such as a job seeker.
|
@@ -107,7 +112,9 @@ module Google
|
|
107
112
|
# submitted an application for a job with a single click without
|
108
113
|
# entering information. If a job seeker performs this action, send only
|
109
114
|
# this event to the service. Do not also send
|
110
|
-
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_START JobEventType::APPLICATION_START}
|
115
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_START JobEventType::APPLICATION_START}
|
116
|
+
# or
|
117
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_FINISH JobEventType::APPLICATION_FINISH}
|
111
118
|
# events.
|
112
119
|
APPLICATION_QUICK_SUBMISSION = 6
|
113
120
|
|
@@ -127,8 +134,12 @@ module Google
|
|
127
134
|
# (without viewing the details of the job posting), and is redirected
|
128
135
|
# to a different website to complete the application. If a candidate
|
129
136
|
# performs this action, send only this event to the service. Do not also
|
130
|
-
# send
|
131
|
-
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::
|
137
|
+
# send
|
138
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_START JobEventType::APPLICATION_START},
|
139
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::APPLICATION_FINISH JobEventType::APPLICATION_FINISH}
|
140
|
+
# or
|
141
|
+
# {Google::Cloud::Talent::V4beta1::JobEvent::JobEventType::VIEW JobEventType::VIEW}
|
142
|
+
# events.
|
132
143
|
APPLICATION_REDIRECT_FROM_SEARCH = 9
|
133
144
|
|
134
145
|
# This event should be used when a company submits an application
|
@@ -163,10 +174,6 @@ module Google
|
|
163
174
|
# part of an application that was initiated by a search conducted through /
|
164
175
|
# recommendation provided by the Cloud Talent Solution service.
|
165
176
|
INTERVIEW_GRANTED = 15
|
166
|
-
|
167
|
-
# The job seeker or other entity interacting with the service showed
|
168
|
-
# no interest in the job.
|
169
|
-
NOT_INTERESTED = 16
|
170
177
|
end
|
171
178
|
end
|
172
179
|
|
@@ -174,33 +181,106 @@ module Google
|
|
174
181
|
# that implements Cloud Talent Solution.
|
175
182
|
# @!attribute [rw] type
|
176
183
|
# @return [Google::Cloud::Talent::V4beta1::ProfileEvent::ProfileEventType]
|
177
|
-
# Required.
|
178
|
-
#
|
179
|
-
# Type of event.
|
184
|
+
# Required. Type of event.
|
180
185
|
# @!attribute [rw] profiles
|
181
186
|
# @return [Array<String>]
|
182
|
-
# Required.
|
187
|
+
# Required. The {Google::Cloud::Talent::V4beta1::Profile#name profile name(s)}
|
188
|
+
# associated with this client event.
|
183
189
|
#
|
184
|
-
# The
|
190
|
+
# The format is
|
191
|
+
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
|
192
|
+
# for example, "projects/api-test-project/tenants/foo/profiles/bar".
|
185
193
|
# @!attribute [rw] jobs
|
186
194
|
# @return [Array<String>]
|
187
|
-
# Optional.
|
188
|
-
#
|
189
|
-
#
|
190
|
-
# empty if the event isn't associated with a job.
|
195
|
+
# Optional. The {Google::Cloud::Talent::V4beta1::Job#name job name(s)}
|
196
|
+
# associated with this client event. Leave it empty if the event isn't
|
197
|
+
# associated with a job.
|
191
198
|
#
|
192
|
-
# The
|
193
|
-
# {
|
199
|
+
# The format is
|
200
|
+
# "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
|
201
|
+
# example, "projects/api-test-project/tenants/foo/jobs/1234".
|
194
202
|
class ProfileEvent
|
195
203
|
# The enum represents types of client events for a candidate profile.
|
196
204
|
module ProfileEventType
|
197
205
|
# Default value.
|
198
206
|
PROFILE_EVENT_TYPE_UNSPECIFIED = 0
|
199
207
|
|
200
|
-
#
|
208
|
+
# Send this event when a
|
209
|
+
# {Google::Cloud::Talent::V4beta1::ProfileEvent#profiles ProfileEvent#profiles}
|
210
|
+
# meets all of the following criteria:
|
211
|
+
# * Was sent as a part of a result set for a CTS API call.
|
212
|
+
# * Was rendered in the end user's UI (that is, the
|
213
|
+
# {Google::Cloud::Talent::V4beta1::ProfileEvent#recruiter ProfileEvent#recruiter}).
|
214
|
+
# * That UI rendering was displayed in the end user's viewport for >=3
|
215
|
+
# seconds.
|
216
|
+
#
|
217
|
+
# In other words, send this event when the end user of the CTS service
|
218
|
+
# actually saw a resulting profile in their viewport.
|
219
|
+
#
|
220
|
+
# To understand how to use this event, consider an example:
|
221
|
+
#
|
222
|
+
# * The customer's UI for interacting with CTS
|
223
|
+
# result sets is accessed by the end user through a web browser.
|
224
|
+
# * The UI calls for a page size of 15 candidates (that is, 15 candidates
|
225
|
+
# are rendered on each page of results).
|
226
|
+
# * However, the UI design calls for only 5 candidates to be shown at any
|
227
|
+
# given time in the viewport (that is, the end user can only see 5 results
|
228
|
+
# at any given time and needs to scroll up or down to view all 15 results).
|
229
|
+
#
|
230
|
+
# To render each page of results, the customer will send a
|
231
|
+
# request to CTS with a page size = 15.
|
232
|
+
#
|
233
|
+
# * User loads page #1 of results.
|
234
|
+
# * User scrolls down to expose results #1 - #5 and dwells on this view for
|
235
|
+
# 30 seconds.
|
236
|
+
# * Send an IMPRESSION event for result 1, 2, 3, 4, 5.
|
237
|
+
# * User scrolls down a bit, exposing results #2 - #6 in the viewport and
|
238
|
+
# dwells on this view for 5 minutes.
|
239
|
+
# * Send an IMPRESSION event for result 6.
|
240
|
+
# * User scrolls to the bottom of the page, with results #7 - #15 shown in
|
241
|
+
# the viewport for ~5 seconds each.
|
242
|
+
# * Specifically, NO IMPRESSION events are sent for result 7, 8, 9, 10, 11,
|
243
|
+
# 12, 13, 14, 15.
|
244
|
+
# * User clicks to the next page and loads page #2 of results.
|
245
|
+
# * Within 2 seconds, user scrolls to expose results #20 - #24 in the
|
246
|
+
# viewport and dwells on this view for 20 mins.
|
247
|
+
# * Send an IMPRESSION event for result 20, 21, 22, 23, 24
|
248
|
+
# * User closes their browser window.
|
201
249
|
IMPRESSION = 1
|
202
250
|
|
203
|
-
# The profile
|
251
|
+
# The VIEW event allows CTS to understand if a candidate's profile was
|
252
|
+
# viewed by an end user (that is, recruiter) of the system for >=3 seconds.
|
253
|
+
# This is critical to tracking product metrics and should be sent for every
|
254
|
+
# profile VIEW that happens in the customer's system.
|
255
|
+
#
|
256
|
+
# VIEW events should be sent whether an end user views a candidate's
|
257
|
+
# profile as a result of seeing that profile in the result set of a
|
258
|
+
# CTS API request or whether the end user
|
259
|
+
# views the profile for some other reason (that is, clicks to the
|
260
|
+
# candidate's profile in the ATS, and so on).
|
261
|
+
#
|
262
|
+
# For a VIEW that happens as a result of seeing the profile in
|
263
|
+
# a CTS API request's result set, the
|
264
|
+
# {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
|
265
|
+
# should be populated. If the VIEW happens for some other reason, the
|
266
|
+
# [requestId] should not be populated.
|
267
|
+
#
|
268
|
+
# This event requires a valid recruiter and one valid ID in profiles.
|
269
|
+
#
|
270
|
+
# To understand how to use this event, consider 2 examples in which a VIEW
|
271
|
+
# event should be sent:
|
272
|
+
# * End user makes a request to the CTS API for a result set.
|
273
|
+
# * Results for the request are shown to the end user.
|
274
|
+
# * End user clicks on one of the candidates that are shown as part of the
|
275
|
+
# results.
|
276
|
+
# * A VIEW event with the
|
277
|
+
# {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
|
278
|
+
# of the API call in the first step of this example is sent.
|
279
|
+
#
|
280
|
+
# * End user browses to a candidate's profile in the ATS.
|
281
|
+
# * A VIEW event without a
|
282
|
+
# {Google::Cloud::Talent::V4beta1::ClientEvent#request_id ClientEvent#request_id}
|
283
|
+
# is sent.
|
204
284
|
VIEW = 2
|
205
285
|
|
206
286
|
# The profile is bookmarked.
|