Skip to content

Commit 9064293

Browse files
Google APIscopybara-github
authored andcommitted
chore: fix proto formatting
PiperOrigin-RevId: 503206506
1 parent 2e84009 commit 9064293

12 files changed

Lines changed: 590 additions & 383 deletions

google/cloud/talent/v4/common.proto

Lines changed: 121 additions & 59 deletions
Large diffs are not rendered by default.

google/cloud/talent/v4/company.proto

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ message Company {
3838
// Derived details about the company.
3939
message DerivedInfo {
4040
// A structured headquarters location of the company, resolved from
41-
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address] if provided.
41+
// [Company.headquarters_address][google.cloud.talent.v4.Company.headquarters_address]
42+
// if provided.
4243
Location headquarters_location = 1;
4344
}
4445

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

7375
// Set to true if it is the hiring agency that post jobs for other
@@ -97,15 +99,19 @@ message Company {
9799
string image_uri = 10;
98100

99101
// This field is deprecated. Please set the searchability of the custom
100-
// attribute in the [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes] going forward.
102+
// attribute in the
103+
// [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes] going
104+
// forward.
101105
//
102-
// A list of keys of filterable [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes], whose
103-
// corresponding `string_values` are used in keyword searches. Jobs with
106+
// A list of keys of filterable
107+
// [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes],
108+
// whose corresponding `string_values` are used in keyword searches. Jobs with
104109
// `string_values` under these specified field keys are returned if any
105110
// of the values match the search keyword. Custom field values with
106111
// parenthesis, brackets and special symbols are not searchable as-is,
107112
// and those keyword queries must be surrounded by quotes.
108-
repeated string keyword_searchable_job_custom_attributes = 11 [deprecated = true];
113+
repeated string keyword_searchable_job_custom_attributes = 11
114+
[deprecated = true];
109115

110116
// Output only. Derived details about the company.
111117
DerivedInfo derived_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];

google/cloud/talent/v4/company_service.proto

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

9896
// Required. The company to be created.
@@ -108,24 +106,26 @@ message GetCompanyRequest {
108106
// example, "projects/api-test-project/tenants/foo/companies/bar".
109107
string name = 1 [
110108
(google.api.field_behavior) = REQUIRED,
111-
(google.api.resource_reference) = {
112-
type: "jobs.googleapis.com/Company"
113-
}
109+
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
114110
];
115111
}
116112

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

122119
// Strongly recommended for the best service experience.
123120
//
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.
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.
126125
//
127126
// A field mask to specify the company fields to be updated. Only
128-
// top level fields of [Company][google.cloud.talent.v4.Company] are supported.
127+
// top level fields of [Company][google.cloud.talent.v4.Company] are
128+
// supported.
129129
google.protobuf.FieldMask update_mask = 2;
130130
}
131131

@@ -138,9 +138,7 @@ 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) = {
142-
type: "jobs.googleapis.com/Company"
143-
}
141+
(google.api.resource_reference) = { type: "jobs.googleapis.com/Company" }
144142
];
145143
}
146144

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

160156
// The starting indicator from which to return results.
@@ -168,8 +164,9 @@ message ListCompaniesRequest {
168164
//
169165
// Defaults to false.
170166
//
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.
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.
173170
bool require_open_jobs = 4;
174171
}
175172

google/cloud/talent/v4/completion_service.proto

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,31 @@ message CompleteQueryRequest {
6666

6767
// Suggest job titles for jobs autocomplete.
6868
//
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.
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.
7174
JOB_TITLE = 1;
7275

7376
// Suggest company names for jobs autocomplete.
7477
//
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.
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.
7883
COMPANY_NAME = 2;
7984

8085
// Suggest both job titles and company names for jobs autocomplete.
8186
//
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.
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.
8594
COMBINED = 3;
8695
}
8796

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

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

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

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

google/cloud/talent/v4/event.proto

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ message ClientEvent {
4141
string event_id = 2 [(google.api.field_behavior) = REQUIRED];
4242

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

4647
// Required.
4748
//
@@ -96,7 +97,9 @@ message JobEvent {
9697
// submitted an application for a job with a single click without
9798
// entering information. If a job seeker performs this action, send only
9899
// this event to the service. Do not also send
99-
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
100+
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START]
101+
// or
102+
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
100103
// events.
101104
APPLICATION_QUICK_SUBMISSION = 6;
102105

@@ -116,8 +119,11 @@ message JobEvent {
116119
// (without viewing the details of the job posting), and is redirected
117120
// to a different website to complete the application. If a candidate
118121
// performs this action, send only this event to the service. Do not also
119-
// send [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
120-
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] events.
122+
// send
123+
// [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
124+
// [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
125+
// or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW]
126+
// events.
121127
APPLICATION_REDIRECT_FROM_SEARCH = 9;
122128

123129
// This event should be used when a company submits an application
@@ -154,14 +160,17 @@ message JobEvent {
154160
INTERVIEW_GRANTED = 15;
155161
}
156162

157-
// Required. The type of the event (see [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
163+
// Required. The type of the event (see
164+
// [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
158165
JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];
159166

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

google/cloud/talent/v4/event_service.proto

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

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

0 commit comments

Comments
 (0)