Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit e239d24

Browse files
fix!: remove WALKING and CYCLING from v4 commute methods (#37)
These methods are not available on the public v4 API.
1 parent 5c5a14c commit e239d24

File tree

16 files changed

+240
-385
lines changed

16 files changed

+240
-385
lines changed

.kokoro/samples/python3.8/common.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ env_vars: {
1313
value: "py-3.8"
1414
}
1515

16+
# Declare build specific Cloud project.
17+
env_vars: {
18+
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
19+
value: "python-docs-samples-tests-py38"
20+
}
21+
1622
env_vars: {
1723
key: "TRAMPOLINE_BUILD_FILE"
1824
value: "github/python-talent/.kokoro/test-samples.sh"
@@ -24,12 +30,6 @@ env_vars: {
2430
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
2531
}
2632

27-
# Declare build specific Cloud project.
28-
env_vars: {
29-
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
30-
value: "python-docs-samples-tests-py38"
31-
}
32-
3333
# Download secrets for samples
3434
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3535

google/cloud/talent_v4/proto/common.proto

Lines changed: 60 additions & 128 deletions
Large diffs are not rendered by default.

google/cloud/talent_v4/proto/company.proto

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ syntax = "proto3";
1616

1717
package google.cloud.talent.v4;
1818

19-
import "google/api/annotations.proto";
2019
import "google/api/field_behavior.proto";
2120
import "google/api/resource.proto";
2221
import "google/cloud/talent/v4/common.proto";
22+
import "google/api/annotations.proto";
2323

2424
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2525
option java_multiple_files = true;
@@ -39,8 +39,7 @@ message Company {
3939
// Derived details about the company.
4040
message DerivedInfo {
4141
// A structured headquarters location of the company, resolved from
42-
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address]
43-
// if provided.
42+
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address] if provided.
4443
Location headquarters_location = 1;
4544
}
4645

@@ -69,8 +68,7 @@ message Company {
6968
// The street address of the company's main headquarters, which may be
7069
// different from the job location. The service attempts
7170
// to geolocate the provided address, and populates a more specific
72-
// location wherever possible in
73-
// [DerivedInfo.headquarters_location][google.cloud.talent.v4.Company.DerivedInfo.headquarters_location].
71+
// location wherever possible in [DerivedInfo.headquarters_location][google.cloud.talent.v4.Company.DerivedInfo.headquarters_location].
7472
string headquarters_address = 5;
7573

7674
// Set to true if it is the hiring agency that post jobs for other
@@ -99,9 +97,8 @@ message Company {
9997
// A URI that hosts the employer's company logo.
10098
string image_uri = 10;
10199

102-
// A list of keys of filterable
103-
// [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes],
104-
// whose corresponding `string_values` are used in keyword searches. Jobs with
100+
// A list of keys of filterable [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes], whose
101+
// corresponding `string_values` are used in keyword searches. Jobs with
105102
// `string_values` under these specified field keys are returned if any
106103
// of the values match the search keyword. Custom field values with
107104
// parenthesis, brackets and special symbols are not searchable as-is,

google/cloud/talent_v4/proto/company_service.proto

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ message CreateCompanyRequest {
9090
// "projects/foo/tenants/bar".
9191
string parent = 1 [
9292
(google.api.field_behavior) = REQUIRED,
93-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
93+
(google.api.resource_reference) = {
94+
type: "jobs.googleapis.com/Tenant"
95+
}
9496
];
9597

9698
// Required. The company to be created.
@@ -106,26 +108,24 @@ message GetCompanyRequest {
106108
// example, "projects/api-test-project/tenants/foo/companies/bar".
107109
string name = 1 [
108110
(google.api.field_behavior) = REQUIRED,
109-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
111+
(google.api.resource_reference) = {
112+
type: "jobs.googleapis.com/Company"
113+
}
110114
];
111115
}
112116

113117
// Request for updating a specified company.
114118
message UpdateCompanyRequest {
115-
// Required. The company resource to replace the current resource in the
116-
// system.
119+
// Required. The company resource to replace the current resource in the system.
117120
Company company = 1 [(google.api.field_behavior) = REQUIRED];
118121

119122
// Strongly recommended for the best service experience.
120123
//
121-
// If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask]
122-
// is provided, only the specified fields in
123-
// [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated.
124-
// Otherwise all the fields are updated.
124+
// If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask] is provided, only the specified fields in
125+
// [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated.
125126
//
126127
// A field mask to specify the company fields to be updated. Only
127-
// top level fields of [Company][google.cloud.talent.v4.Company] are
128-
// supported.
128+
// top level fields of [Company][google.cloud.talent.v4.Company] are supported.
129129
google.protobuf.FieldMask update_mask = 2;
130130
}
131131

@@ -138,7 +138,9 @@ message DeleteCompanyRequest {
138138
// example, "projects/foo/tenants/bar/companies/baz".
139139
string name = 1 [
140140
(google.api.field_behavior) = REQUIRED,
141-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
141+
(google.api.resource_reference) = {
142+
type: "jobs.googleapis.com/Company"
143+
}
142144
];
143145
}
144146

@@ -150,7 +152,9 @@ message ListCompaniesRequest {
150152
// "projects/foo/tenants/bar".
151153
string parent = 1 [
152154
(google.api.field_behavior) = REQUIRED,
153-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
155+
(google.api.resource_reference) = {
156+
type: "jobs.googleapis.com/Tenant"
157+
}
154158
];
155159

156160
// The starting indicator from which to return results.
@@ -164,9 +168,8 @@ message ListCompaniesRequest {
164168
//
165169
// Defaults to false.
166170
//
167-
// If true, at most
168-
// [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of
169-
// companies are fetched, among which only those with open jobs are returned.
171+
// If true, at most [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of companies are fetched, among which
172+
// only those with open jobs are returned.
170173
bool require_open_jobs = 4;
171174
}
172175

google/cloud/talent_v4/proto/completion_service.proto

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ syntax = "proto3";
1717
package google.cloud.talent.v4;
1818

1919
import "google/api/annotations.proto";
20-
import "google/api/client.proto";
2120
import "google/api/field_behavior.proto";
2221
import "google/api/resource.proto";
2322
import "google/cloud/talent/v4/common.proto";
23+
import "google/api/client.proto";
2424

2525
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2626
option java_multiple_files = true;
@@ -66,31 +66,22 @@ message CompleteQueryRequest {
6666

6767
// Suggest job titles for jobs autocomplete.
6868
//
69-
// For
70-
// [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE]
71-
// type, only open jobs with the same
72-
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
73-
// are returned.
69+
// For [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same
70+
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
7471
JOB_TITLE = 1;
7572

7673
// Suggest company names for jobs autocomplete.
7774
//
78-
// For
79-
// [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME]
80-
// type, only companies having open jobs with the same
81-
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
82-
// are returned.
75+
// For [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME] type,
76+
// only companies having open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are
77+
// returned.
8378
COMPANY_NAME = 2;
8479

8580
// Suggest both job titles and company names for jobs autocomplete.
8681
//
87-
// For
88-
// [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED]
89-
// type, only open jobs with the same
90-
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
91-
// or companies having open jobs with the same
92-
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes]
93-
// are returned.
82+
// For [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same
83+
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] or companies having open jobs with the same
84+
// [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
9485
COMBINED = 3;
9586
}
9687

@@ -100,7 +91,9 @@ message CompleteQueryRequest {
10091
// "projects/foo/tenants/bar".
10192
string tenant = 1 [
10293
(google.api.field_behavior) = REQUIRED,
103-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
94+
(google.api.resource_reference) = {
95+
type: "jobs.googleapis.com/Tenant"
96+
}
10497
];
10598

10699
// Required. The query used to generate suggestions.
@@ -126,16 +119,14 @@ message CompleteQueryRequest {
126119
// The format is
127120
// "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
128121
// example, "projects/foo/tenants/bar/companies/baz".
129-
string company = 5 [
130-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
131-
];
122+
string company = 5 [(google.api.resource_reference) = {
123+
type: "jobs.googleapis.com/Company"
124+
}];
132125

133-
// The scope of the completion. The defaults is
134-
// [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
126+
// The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
135127
CompletionScope scope = 6;
136128

137-
// The completion topic. The default is
138-
// [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
129+
// The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
139130
CompletionType type = 7;
140131
}
141132

google/cloud/talent_v4/proto/event.proto

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ syntax = "proto3";
1616

1717
package google.cloud.talent.v4;
1818

19-
import "google/api/annotations.proto";
2019
import "google/api/field_behavior.proto";
2120
import "google/protobuf/timestamp.proto";
21+
import "google/api/annotations.proto";
2222

2323
option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
2424
option java_multiple_files = true;
@@ -42,8 +42,7 @@ message ClientEvent {
4242
string event_id = 2 [(google.api.field_behavior) = REQUIRED];
4343

4444
// Required. The timestamp of the event.
45-
google.protobuf.Timestamp create_time = 4
46-
[(google.api.field_behavior) = REQUIRED];
45+
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = REQUIRED];
4746

4847
// Required.
4948
//
@@ -98,9 +97,7 @@ message JobEvent {
9897
// submitted an application for a job with a single click without
9998
// entering information. If a job seeker performs this action, send only
10099
// this event to the service. Do not also send
101-
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START]
102-
// or
103-
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
100+
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
104101
// events.
105102
APPLICATION_QUICK_SUBMISSION = 6;
106103

@@ -120,11 +117,8 @@ message JobEvent {
120117
// (without viewing the details of the job posting), and is redirected
121118
// to a different website to complete the application. If a candidate
122119
// performs this action, send only this event to the service. Do not also
123-
// send
124-
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
125-
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
126-
// or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW]
127-
// events.
120+
// send [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
121+
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] events.
128122
APPLICATION_REDIRECT_FROM_SEARCH = 9;
129123

130124
// This event should be used when a company submits an application
@@ -161,17 +155,14 @@ message JobEvent {
161155
INTERVIEW_GRANTED = 15;
162156
}
163157

164-
// Required. The type of the event (see
165-
// [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
158+
// Required. The type of the event (see [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
166159
JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];
167160

168-
// Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
169-
// with this event. For example, if this is an
170-
// [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
171-
// event, this field contains the identifiers of all jobs shown to the job
172-
// seeker. If this was a
173-
// [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
174-
// contains the identifier of the viewed job.
161+
// Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated with this event.
162+
// For example, if this is an [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION] event,
163+
// this field contains the identifiers of all jobs shown to the job seeker.
164+
// If this was a [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field contains the
165+
// identifier of the viewed job.
175166
//
176167
// The format is
177168
// "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for

google/cloud/talent_v4/proto/event_service.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ message CreateClientEventRequest {
5959
// "projects/foo/tenants/bar".
6060
string parent = 1 [
6161
(google.api.field_behavior) = REQUIRED,
62-
(google.api.resource_reference) = { type: "jobs.googleapis.com/Tenant" }
62+
(google.api.resource_reference) = {
63+
type: "jobs.googleapis.com/Tenant"
64+
}
6365
];
6466

65-
// Required. Events issued when end user interacts with customer's application
66-
// that uses Cloud Talent Solution.
67+
// Required. Events issued when end user interacts with customer's application that
68+
// uses Cloud Talent Solution.
6769
ClientEvent client_event = 2 [(google.api.field_behavior) = REQUIRED];
6870
}

0 commit comments

Comments
 (0)