Skip to content

Commit 67f6d0b

Browse files
Google APIscopybara-github
authored andcommitted
build: library of v4 jobs onboarded to SAM
PiperOrigin-RevId: 457827103
1 parent 42a7911 commit 67f6d0b

4 files changed

Lines changed: 0 additions & 230 deletions

File tree

google/cloud/talent/v4/common.proto

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -551,22 +551,13 @@ message RequestMetadata {
551551
// The type of device used by the job seeker at the time of the call to the
552552
// service.
553553
DeviceInfo device_info = 5;
554-
555-
// Delegated user information only used for internal purpose.
556-
DelegatedUserInfo delegated_user_info = 6;
557-
558-
// Enables debugging mode and controls various debug parameters in the search
559-
// process. Internal only.
560-
DebugOptions debug_options = 7;
561554
}
562555

563556
// Additional information returned to client, such as debugging information.
564557
message ResponseMetadata {
565558
// A unique id associated with this call.
566559
// This id is logged for tracking purposes.
567560
string request_id = 1;
568-
569-
DebugInfo debug_info = 2;
570561
}
571562

572563
// Device information collected from the job seeker, candidate, or
@@ -820,70 +811,6 @@ message CompensationInfo {
820811
CompensationRange annualized_total_compensation_range = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
821812
}
822813

823-
// Delegated partner information where for admin or debug purpose, our
824-
// internal source needs to act as a partner to do READ_ONLY operations (for
825-
// example, SearchJobs).
826-
message DelegatedUserInfo {
827-
// The GCP project number of the customer that the caller is acting on
828-
// behalf of.
829-
//
830-
// If both project number and distributor id are provided,
831-
// distributor id has the higher priority.
832-
int64 project_number = 1;
833-
834-
// The pretended distributor id.
835-
//
836-
// If both project number and distributor id are provided,
837-
// distributor id has the higher priority.
838-
string distributor_id = 2;
839-
840-
// The pretended tenant id.
841-
string tenant_id = 3;
842-
}
843-
844-
// Various debug options available for debugging mode. Internal only.
845-
message DebugOptions {
846-
// Specifies the level of debug output. The higher the number, the more
847-
// debug information is returned and printed in backend server logs.
848-
// Current levels are 1-4.
849-
int32 level = 1;
850-
851-
// Specifies which search backend to use. Current available options are:
852-
// st-bti, model-t, and st-muppet.
853-
string searcher = 2;
854-
855-
// Specifies the scoring parameters to override during search. This is
856-
// equivalent to the 'dsp' url parameter in the legacy system. For details,
857-
// consult go/gjobs-scoring-params.
858-
string scoring_parameter_override = 3;
859-
860-
// Overrides the ST sorting/scoring expression.
861-
string st_expression_override = 4;
862-
863-
// Search documents of all tenants (only implemented for job search as of
864-
// 6/14/2019).
865-
google.protobuf.BoolValue search_all_tenant = 5;
866-
867-
// Temporarily added this flag for profile wildcard search
868-
// Flag to indicate whether wildcard search is enabled
869-
google.protobuf.BoolValue enable_wildcard_search = 6;
870-
}
871-
872-
// Debug information.
873-
message DebugInfo {
874-
string query_debug_info = 1;
875-
876-
string moonshine_debug_info = 2;
877-
878-
// Identifiers for the versions of the search algorithm used during
879-
// this API invocation if multiple algorithms are used.
880-
// The default value is empty.
881-
repeated int32 experiment_ids = 3;
882-
883-
// The model id for profiles recommendation.
884-
string recommend_model_id = 4;
885-
}
886-
887814
// Metadata used for long running operations returned by CTS batch APIs.
888815
// It's used to replace [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata].
889816
message BatchOperationMetadata {

google/cloud/talent/v4/job.proto

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,6 @@ message Job {
6868
// order.
6969
repeated Location locations = 1;
7070

71-
// Structured street locations of the job.
72-
//
73-
// Unlike [locations][google.cloud.talent.v4.Job.DerivedInfo.locations], [street_locations][google.cloud.talent.v4.Job.DerivedInfo.street_locations] contains street locations
74-
// inferred from job posting details, e.g. [Job.addresses][google.cloud.talent.v4.Job.addresses],
75-
// [Job.company_display_name][google.cloud.talent.v4.Job.company_display_name], and so on.
76-
//
77-
// Note that the inference of [street_locations][google.cloud.talent.v4.Job.DerivedInfo.street_locations] isn't guaranteed to
78-
// be 100% correct.
79-
//
80-
// [street_locations][google.cloud.talent.v4.Job.DerivedInfo.street_locations] are exactly matched to [Job.addresses][google.cloud.talent.v4.Job.addresses] in the same
81-
// order.
82-
repeated Location street_locations = 2;
83-
8471
// Job categories derived from [Job.title][google.cloud.talent.v4.Job.title] and [Job.description][google.cloud.talent.v4.Job.description].
8572
repeated JobCategory job_categories = 3;
8673
}
@@ -106,58 +93,6 @@ message Job {
10693
HtmlSanitization html_sanitization = 2;
10794
}
10895

109-
// Debugging information for internal users.
110-
message JobDebugInfo {
111-
enum JobStatus {
112-
JOB_DEBUG_INFO_UNSPECIFIED = 0;
113-
114-
EXPIRED = 1;
115-
116-
OPEN = 2;
117-
118-
DELETED = 3;
119-
}
120-
121-
// A belief that a job has particular soc with some probability.
122-
message SocBelief {
123-
string soc_code = 1;
124-
125-
double probability = 2;
126-
127-
int32 svp = 3;
128-
}
129-
130-
// Job Status.
131-
JobStatus status = 1;
132-
133-
// Soc Beliefs.
134-
repeated SocBelief soc_beliefs = 2;
135-
136-
// project id.
137-
string project_id = 3;
138-
139-
// distributor id
140-
string distributor_id = 4;
141-
142-
// tenant id.
143-
string tenant_id = 5;
144-
145-
// project number
146-
int64 project_number = 6;
147-
148-
// Job Classifications
149-
repeated string job_classifications = 7;
150-
151-
// Seniority
152-
string seniority = 8;
153-
154-
// Confidence Scores
155-
repeated double confidence_scores = 9;
156-
157-
// Last Update TIme
158-
google.protobuf.Timestamp last_update_time = 10;
159-
}
160-
16196
// Required during job update.
16297
//
16398
// The resource name for the job. This is generated by the service when a
@@ -412,7 +347,4 @@ message Job {
412347

413348
// Options for job processing.
414349
ProcessingOptions processing_options = 30;
415-
416-
// Debugging information for internal users.
417-
JobDebugInfo job_debug_info = 58;
418350
}

google/cloud/talent/v4/job_service.proto

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import "google/cloud/talent/v4/filters.proto";
2525
import "google/cloud/talent/v4/histogram.proto";
2626
import "google/cloud/talent/v4/job.proto";
2727
import "google/longrunning/operations.proto";
28-
import "google/protobuf/any.proto";
2928
import "google/protobuf/duration.proto";
3029
import "google/protobuf/empty.proto";
3130
import "google/protobuf/field_mask.proto";
@@ -127,24 +126,6 @@ service JobService {
127126
};
128127
}
129128

130-
// Purges all jobs associated with requested target.
131-
//
132-
// Note: Jobs in OPEN status remain searchable until the operation completes.
133-
//
134-
// Note: The operation returned may take hours or longer to complete,
135-
// depending on the number of jobs that need to be deleted.
136-
rpc PurgeJobs(PurgeJobsRequest) returns (google.longrunning.Operation) {
137-
option (google.api.http) = {
138-
post: "/v4/{parent=projects/*}/jobs:purge"
139-
body: "*"
140-
};
141-
option (google.api.method_signature) = "parent,filter";
142-
option (google.longrunning.operation_info) = {
143-
response_type: "PurgeJobsResponse"
144-
metadata_type: "BatchOperationMetadata"
145-
};
146-
}
147-
148129
// Lists jobs by filter.
149130
rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) {
150131
option (google.api.http) = {
@@ -729,12 +710,6 @@ message SearchJobsRequest {
729710
// score (determined by API algorithm).
730711
CustomRankingInfo custom_ranking_info = 14;
731712

732-
// Controls whether to add search debug information
733-
// (sortExpr, partial expressions) into SearchResponse.
734-
//
735-
// Defaults to false.
736-
bool enable_debug_info = 15;
737-
738713
// This field is deprecated. Please use
739714
// [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode] going forward.
740715
//
@@ -770,10 +745,6 @@ message SearchJobsRequest {
770745
// Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value
771746
// is specified.
772747
KeywordMatchMode keyword_match_mode = 18;
773-
774-
// This field allows us to pass in a MendelDebugInput proto to force mendel
775-
// experiment traffic in FORCEABLE experiments.
776-
google.protobuf.Any mendel_debug_input = 17;
777748
}
778749

779750
// Response for SearchJob method.
@@ -801,8 +772,6 @@ message SearchJobsResponse {
801772
// Commute information which is generated based on specified
802773
// [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
803774
CommuteInfo commute_info = 5;
804-
805-
string debug_info = 6;
806775
}
807776

808777
// Commute details related to this job.
@@ -933,39 +902,6 @@ message BatchDeleteJobsRequest {
933902
}];
934903
}
935904

936-
// Request to purge a set of jobs.
937-
message PurgeJobsRequest {
938-
// Required. The resource name of the project under which the jobs should be deleted.
939-
//
940-
// The format is "projects/{project_id}". For example, "projects/foo".
941-
string parent = 1 [
942-
(google.api.field_behavior) = REQUIRED,
943-
(google.api.resource_reference) = {
944-
type: "cloudresourcemanager.googleapis.com/Project"
945-
}
946-
];
947-
948-
// Required. A filter matching the jobs to be purged.
949-
//
950-
// The filter can be one of the following three parent resources.
951-
// 1. Company. Resource name of the company under which all the jobs should be
952-
// deleted. The format is
953-
// "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For
954-
// example, "projects/foo/tenants/bar/companies/baz"
955-
// 2. Tenant. Resource name of the tenant under which all the jobs should be
956-
// deleted. The format is "projects/{project_id}/tenants/{tenant_id}". For
957-
// example, "projects/foo/tenants/bar".
958-
// 3. Project. Resource name of the project under which all the jobs should be
959-
// deleted. The format is "projects/{project_id}". For example,
960-
// "projects/foo/".
961-
string filter = 2 [(google.api.field_behavior) = REQUIRED];
962-
963-
// Actually perform the purge.
964-
// If `force` is set to false, the method will return a sample of
965-
// resource names that will be deleted.
966-
bool force = 3;
967-
}
968-
969905
// Mutation result of a job from a batch operation.
970906
message JobResult {
971907
// Here [Job][google.cloud.talent.v4.Job] only contains basic information including [name][google.cloud.talent.v4.Job.name],
@@ -1002,27 +938,3 @@ message BatchDeleteJobsResponse {
1002938
// until operation status is FINISHED, FAILED or CANCELLED.
1003939
repeated JobResult job_results = 1;
1004940
}
1005-
1006-
// The result of [JobService.PurgeJobs][google.cloud.talent.v4.JobService.PurgeJobs]. It's used to
1007-
// replace [google.longrunning.Operation.response][google.longrunning.Operation.response] in case of success.
1008-
message PurgeJobsResponse {
1009-
// The number of jobs that this request deleted (or, if `force` is false,
1010-
// the number of jobs that will be deleted).
1011-
//
1012-
// Note: This number isn't guaranteed to be accurate.
1013-
// Note: This number might change until operation status is FINISHED, FAILED
1014-
// or CANCELLED.
1015-
int32 purge_count = 1;
1016-
1017-
// A sample of the resource names of jobs that will be deleted.
1018-
// Only populated if `force` is set to false.
1019-
// At most 100 job names are returned as a sample.
1020-
repeated string purge_sample = 2;
1021-
1022-
// List of job purge results from a purge jobs operation.
1023-
// Only populated if `force` is set to true.
1024-
//
1025-
// Note: This may change until operation status is FINISHED, FAILED or
1026-
// CANCELLED.
1027-
repeated JobResult job_results = 3;
1028-
}

google/cloud/talent/v4/jobs_v4.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ types:
1616
- name: google.cloud.talent.v4.BatchDeleteJobsResponse
1717
- name: google.cloud.talent.v4.BatchOperationMetadata
1818
- name: google.cloud.talent.v4.BatchUpdateJobsResponse
19-
- name: google.cloud.talent.v4.PurgeJobsResponse
2019

2120
documentation:
2221
summary: |-

0 commit comments

Comments
 (0)